Claude-skill-registry-data manage-interface
Manage Interface specifications with CRUD operations, automatic numbering, and AsciiDoc formatting
git clone https://github.com/majiayu000/claude-skill-registry-data
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"
data/manage-interface/SKILL.mdInterface 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
| Workflow | Purpose | Script Used |
|---|---|---|
| list-interfaces | List all interfaces with optional filtering | |
| create-interface | Create new interface from template | |
| read-interface | Read interface content | |
| update-interface | Update interface content | |
| delete-interface | Delete interface (with confirmation) | |
| validate-interface | Validate interface format | ref-documentation workflows |
Workflow: list-interfaces
List all interfaces with optional type filtering.
Parameters
(optional): Filter by type (REST_API, Event, gRPC, Database, File, Other)type
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
(required): Interface nametitle
(required): Interface type (REST_API, Event, gRPC, Database, File, Other)type
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
(required): Interface number (1, 2, 3, etc.)number
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
(required): Interface numbernumber
(required): Field to update (overview, type, input, output, errors, auth, versioning, consumers, providers)field
(required): New value for the fieldvalue
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
(required): Interface numbernumber
(required): Must be true to confirm deletionforce
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
(required): Interface number to validatenumber
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
| Type | Description |
|---|---|
| REST_API | HTTP/REST service endpoints |
| Event | Event-driven message contracts |
| gRPC | gRPC service and message definitions |
| Database | Database schema and access contracts |
| File | File format and exchange specifications |
| Other | Other interface types |
Interface Template Structure
Each interface specification contains these sections:
- Overview - Brief description of the interface
- Interface Type - REST_API, Event, gRPC, Database, File, Other
- Contract Definition - Request/Input, Response/Output, Error Handling
- Authentication & Authorization - Security requirements
- Versioning - Version strategy and compatibility
- Examples - Request and response examples
- Consumers - Systems that consume this interface
- Providers - Systems that provide this interface
- 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.adocdoc/interfaces/002-Event_Bus_Interface.adocdoc/interfaces/003-Database_Schema_V2.adoc
References
- ref-documentation SKILL - Format validation