feat: generate skills to workspace root with composable naming and YAML frontmatter#775
Merged
pyramation merged 4 commits intomainfrom Mar 4, 2026
Merged
Conversation
…ML frontmatter
- Add findWorkspaceRoot() utility (pnpm-workspace.yaml, lerna.json, package.json workspaces)
- Add skillsPath config option for explicit override
- Remove docs.skills from DocsConfig (skills now auto-generate)
- Update buildSkillFile() to emit YAML frontmatter (name, description)
- Update ORM skills: orm-{target}-{entity}/SKILL.md
- Update hooks skills: hooks-{target}-{entity}/SKILL.md
- Update CLI skills: cli-{target}-{entity}/SKILL.md + cli-context, cli-auth
- Refactor generate()/generateMulti() to write skills to workspace root
- Clean up old nested skills dirs after writing
- Update SDK/React generation scripts to remove docs.skills
- Fix test expectations for resolveDocsConfig
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: generate skills to workspace root with composable naming
Summary
Refactors codegen skill generation to output skills to the workspace root
skills/directory (instead of nested inside each generator’s output likeorm/skills/,hooks/skills/,cli/skills/), using Agent Skills format (SKILL.md+ YAML frontmatter) and composable naming to avoid collisions across targets and generator types.Skills generation is controlled via
docs.skills(defaultfalse).Key changes:
workspace.ts:findWorkspaceRoot()walks up from the output dir looking forpnpm-workspace.yaml→lerna.json→package.jsonwithworkspaces→ nearestpackage.jsondocs.skills?: boolean(defaultfalse) gates skill generationskillsPath?: stringonGraphQLSDKConfigTargetto override the output directory; otherwise uses{workspaceRoot}/skills/orm-{target}-{entity}/SKILL.mdhooks-{target}-{entity}/SKILL.mdcli-{target}-{entity}/SKILL.md(pluscli-context/andcli-auth/for infra)Updates since last revision
orm/skills,hooks/skills,cli/skills). No migration/cleanup behavior is performed by the generator.Review & Testing Checklist for Human
cli-{target}-{kebab}. If a table and operation share the same kebab-cased name, one will overwrite the other. Consider disambiguating (e.g.cli-{target}-table-{kebab}vscli-{target}-op-{kebab}).docs.skillstoggle behavior: confirm skills are only generated whendocs.skills: trueand default behavior (omitted) does not emit skills.targetNamedefaults to'default': whengenerate()is called directly (not viagenerateMulti), skills are named*-default-{entity}. Confirm this is desired vs inferring from config.pruneStaleFiles: false(removed entities leave orphan skill dirs). Confirm this is intentional.pnpm generate:sdk) and confirm:{workspaceRoot}/skills/(orskillsPath), not undersrc/**Recommended test plan: run the SDK generation script(s) that your release process uses and inspect the resulting
{workspaceRoot}/skills/directory for naming, frontmatter, and collisions.Notes
pnpm buildpasses at repo rootgraphql/codegentests pass