feat(skill-authoring): refine skill authoring guidance#299
Conversation
- Introduced `existing-workflow.md` to guide users on adopting existing workflows without overwriting. - Added `oo-powered.md` to provide detailed instructions for authoring OO-powered skills. - Created `skill-authoring.md` to outline the process for creating or revising skills, emphasizing reusable intent and validation. - Updated `embedded-assets.ts` to include new reference files for the above documents.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Summary by CodeRabbit
WalkthroughThe Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@contrib/skills/shared/oo-create-skill/references/oo-powered.md`:
- Around line 12-23: Align the “Authoring State Machine” table of contents with
the actual section order in oo-powered.md: ensure the section 7 heading,
“Validate Before Finishing,” appears before “Final Acceptance Check,” or adjust
the heading hierarchy and TOC nesting so the documented workflow order is
unambiguous.
In `@src/application/commands/skills/embedded-assets.test.ts`:
- Around line 183-193: Update the path expectations in the
availableBundledSkillAgentNames test to avoid hardcoded "/" separators. Use the
repository’s node:path helper or normalize the actual and expected paths
consistently with the bundle’s logical-path contract, while preserving the
asserted file order and names.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4cd8b4ec-6fc4-41b8-9c6f-e5695eab9fc8
📒 Files selected for processing (6)
contrib/skills/shared/oo-create-skill/SKILL.mdcontrib/skills/shared/oo-create-skill/references/existing-workflow.mdcontrib/skills/shared/oo-create-skill/references/oo-powered.mdcontrib/skills/shared/oo-create-skill/references/skill-authoring.mdsrc/application/commands/skills/embedded-assets.test.tssrc/application/commands/skills/embedded-assets.ts
Summary
This PR modernizes the bundled
oo-create-skillguidance while preserving its core behavior: the authoring agent decides whether the generated skill is standard or OO-powered from the intended runtime dependency, rather than from whetheroowas used during authoring.The previous refactor split the creator into a compact router plus focused references, but several parts of the guidance still assumed a narrower skill model. In particular, review and improvement requests were not explicit trigger cases, optional Agent Skills frontmatter was not described, all generated prose was forced to English, imported workflows were not treated as potentially untrusted, and forward testing did not explicitly cover activation boundaries. Some embedded-asset tests also continued to look for content in the root
SKILL.mdafter that content had moved into references, and several assertions depended on physical Markdown line wrapping.The updated guidance:
For users, this makes
oo-create-skilla more portable and standards-aligned creator while retaining the safety and evidence requirements around OOMOL capabilities. Standard skills remain free of an unnecessary OO runtime declaration, and OO-powered skills still receive concrete service/action, payload, result, artifact, and failure guidance.Validation
bun run lint:fixbun run ts-checkbun run test src/application/commands/skills/embedded-assets.test.tsbun run test— 1533 passed, 9 skipped, 0 failed