Claude-skill-registry-data manage-interface

Manage Interface specifications with CRUD operations, automatic numbering, and AsciiDoc formatting

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/manage-interface" ~/.claude/skills/majiayu000-claude-skill-registry-data-manage-interface && rm -rf "$T"
manifest: data/manage-interface/SKILL.md
source content

Interface Management Skill

Manage Interface specifications stored in

doc/interfaces/
directory.

Purpose

Provide structured management of interface documentation:

  • Create interface specs with automatic numbering and template
  • Read interface content by number
  • Update interface specifications
  • Delete interfaces when necessary
  • List all interfaces with optional filtering
  • Validate interface format using ref-documentation

Available Workflows

WorkflowPurposeScript Used
list-interfacesList all interfaces with optional filtering
manage-interface.py list
create-interfaceCreate new interface from template
manage-interface.py create
read-interfaceRead interface content
manage-interface.py read
update-interfaceUpdate interface content
manage-interface.py update
delete-interfaceDelete interface (with confirmation)
manage-interface.py delete
validate-interfaceValidate interface formatref-documentation workflows

Workflow: list-interfaces

List all interfaces with optional type filtering.

Parameters

  • type
    (optional): Filter by type (REST_API, Event, gRPC, Database, File, Other)

Steps

Step 1: Execute List

python3 .plan/execute-script.py pm-documents:manage-interface:manage-interface list [--type {type}]

Step 3: Parse Output

Parse JSON output containing interface list with metadata.

Output

{
  "success": true,
  "operation": "list",
  "count": 2,
  "interfaces": [
    {"number": 1, "title": "User Service API", "type": "REST_API", "path": "doc/interfaces/001-User_Service_API.adoc"},
    {"number": 2, "title": "Event Bus", "type": "Event", "path": "doc/interfaces/002-Event_Bus.adoc"}
  ]
}

Workflow: create-interface

Create a new interface specification with automatic numbering.

Parameters

  • title
    (required): Interface name
  • type
    (required): Interface type (REST_API, Event, gRPC, Database, File, Other)

Steps

Step 1: Create Interface

python3 .plan/execute-script.py pm-documents:manage-interface:manage-interface create --title "{title}" --type "{type}"

Step 3: Parse Output

Extract created file path from JSON output.

Step 4: Open for Editing

Read the created file and inform user to fill in content sections.

Step 5: Validate Format

Skill: pm-documents:ref-documentation
Execute workflow: validate-format
Parameters:
  target: {created_path}

Output

Interface Created: doc/interfaces/003-{title}.adoc
Number: INTER-003
Type: REST_API

Next steps:
1. Edit doc/interfaces/003-{title}.adoc to fill in:
   - Contract definition (request/response)
   - Error handling
   - Authentication requirements
   - Examples
2. Add consumers and providers

Workflow: read-interface

Read interface content by number.

Parameters

  • number
    (required): Interface number (1, 2, 3, etc.)

Steps

Step 1: Read Interface

python3 .plan/execute-script.py pm-documents:manage-interface:manage-interface read --number {number}

Step 3: Display Content

Show interface metadata and content to user.

Workflow: update-interface

Update interface field content.

Parameters

  • number
    (required): Interface number
  • field
    (required): Field to update (overview, type, input, output, errors, auth, versioning, consumers, providers)
  • value
    (required): New value for the field

Steps

Step 1: Update Interface

python3 .plan/execute-script.py pm-documents:manage-interface:manage-interface update --number {number} --field {field} --value "{value}"

Step 3: Confirm Update

Report updated field to user.

Workflow: delete-interface

Delete interface with confirmation.

Parameters

  • number
    (required): Interface number
  • force
    (required): Must be true to confirm deletion

Steps

Step 1: Delete Interface

python3 .plan/execute-script.py pm-documents:manage-interface:manage-interface delete --number {number} --force

Step 3: Confirm Deletion

Report deletion to user.

Workflow: validate-interface

Validate interface format using ref-documentation skill.

Parameters

  • number
    (required): Interface number to validate

Steps

Step 1: Find Interface Path

Use list-interfaces workflow to get interface path by number.

Step 2: Validate Format

Skill: pm-documents:ref-documentation
Execute workflow: validate-format
Parameters:
  target: {interface_path}

Step 3: Report Results

Report validation results to user.

Integration with ref-documentation

This skill integrates with

ref-documentation
for:

  • Format validation: Ensures AsciiDoc formatting compliance
  • Link verification: Validates cross-references
  • Content review: Reviews interface content quality

Interface Types

TypeDescription
REST_APIHTTP/REST service endpoints
EventEvent-driven message contracts
gRPCgRPC service and message definitions
DatabaseDatabase schema and access contracts
FileFile format and exchange specifications
OtherOther interface types

Interface Template Structure

Each interface specification contains these sections:

  1. Overview - Brief description of the interface
  2. Interface Type - REST_API, Event, gRPC, Database, File, Other
  3. Contract Definition - Request/Input, Response/Output, Error Handling
  4. Authentication & Authorization - Security requirements
  5. Versioning - Version strategy and compatibility
  6. Examples - Request and response examples
  7. Consumers - Systems that consume this interface
  8. Providers - Systems that provide this interface
  9. References - Related documents and links

File Naming Convention

Interfaces follow this naming pattern:

doc/interfaces/{NNN}-{Title_With_Underscores}.adoc

Examples:

  • doc/interfaces/001-User_Service_API.adoc
  • doc/interfaces/002-Event_Bus_Interface.adoc
  • doc/interfaces/003-Database_Schema_V2.adoc

References