mirror of
https://github.com/github/spec-kit.git
synced 2026-03-28 00:03:08 +00:00
* fix: prevent extension command shadowing * Validate extension command namespaces * Reuse extension command name pattern
Extension Template
Starter template for creating a Spec Kit extension.
Quick Start
-
Copy this template:
cp -r extensions/template my-extension cd my-extension -
Customize
extension.yml:- Change extension ID, name, description
- Update author and repository
- Define your commands
-
Create commands:
- Add command files in
commands/directory - Use Markdown format with YAML frontmatter
- Add command files in
-
Create config template:
- Define configuration options
- Document all settings
-
Write documentation:
- Update README.md with usage instructions
- Add examples
-
Test locally:
cd /path/to/spec-kit-project specify extension add --dev /path/to/my-extension -
Publish (optional):
- Create GitHub repository
- Create release
- Submit to catalog (see EXTENSION-PUBLISHING-GUIDE.md)
Files in This Template
extension.yml- Extension manifest (CUSTOMIZE THIS)config-template.yml- Configuration template (CUSTOMIZE THIS)commands/example.md- Example command (REPLACE THIS)README.md- Extension documentation (REPLACE THIS)LICENSE- MIT License (REVIEW THIS)CHANGELOG.md- Version history (UPDATE THIS).gitignore- Git ignore rules
Customization Checklist
- Update
extension.ymlwith your extension details - Change extension ID to your extension name
- Update author information
- Define your commands
- Create command files in
commands/ - Update config template
- Write README with usage instructions
- Add examples
- Update LICENSE if needed
- Test extension locally
- Create git repository
- Create first release
Need Help?
- Development Guide: See EXTENSION-DEVELOPMENT-GUIDE.md
- API Reference: See EXTENSION-API-REFERENCE.md
- Publishing Guide: See EXTENSION-PUBLISHING-GUIDE.md
- User Guide: See EXTENSION-USER-GUIDE.md
Template Version
- Version: 1.0.0
- Last Updated: 2026-01-28
- Compatible with Spec Kit: >=0.1.0