-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(skills): add Agent Skills spec optional metadata fields #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add optional fields to SkillTemplate interface and all skill templates
to improve compliance with the Agent Skills specification:
- license: MIT (matching project license)
- compatibility: Requires openspec CLI.
- metadata: { author: openspec, version: 1.0 }
Updates skill file generation to include these fields in YAML frontmatter.
📝 WalkthroughWalkthroughThe changes extend the SkillTemplate interface with three new optional fields—license, compatibility, and metadata—and propagate these fields across multiple template implementations while updating the skill file generation logic to include corresponding YAML frontmatter. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
Greptile SummaryAdded optional Key changes:
Implementation quality:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant CLI as artifactExperimentalSetupCommand
participant Templates as skill-templates.ts
participant FS as FileSystem
User->>CLI: Run setup command
CLI->>Templates: getExploreSkillTemplate()
Templates-->>CLI: Return SkillTemplate with license, compatibility, metadata
CLI->>Templates: getNewChangeSkillTemplate()
Templates-->>CLI: Return SkillTemplate with license, compatibility, metadata
CLI->>Templates: ... (7 more templates)
Templates-->>CLI: Return all templates
loop For each skill template
CLI->>CLI: Generate YAML frontmatter<br/>with license, compatibility, metadata
Note over CLI: Uses template values<br/>or defaults if missing
CLI->>FS: Write SKILL.md with frontmatter
FS-->>CLI: File written successfully
end
CLI-->>User: Setup complete (9 skills generated)
|
Summary
SkillTemplateinterface for Agent Skills spec compliancelicense,compatibility, andmetadatafieldsChanges
Generated skill files now include:
Test plan
npm run build)npm test)🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.