What problem does it solve?
Integrating new custom commands into an AI assistant or framework requires a structured way to define their behavior, parameters, and execution logic. This Skill provides a robust validation and registration mechanism for new slash commands, streamlining their integration.
Core Features & Use Cases
- Schema Validation: Checks that command manifests (
.yaml files) adhere to the required structure and fields, ensuring consistency and preventing errors.
- Execution Verification: Validates that the command's target (skill, agent, or workflow) actually exists in the system, preventing broken command invocations.
- Registry Update: Automatically adds the validated command to the central Command Registry, making it discoverable and available for use.
- Use Case: A developer wants to create a new
/deploy command that triggers a specific workflow. They define the command in a YAML manifest, then use command.define to validate and register it, making /deploy available for immediate use by other users or agents.
Quick Start
Validate and register a new command manifest
python skills/command.define/command_define.py commands/my-deploy-command.yaml