feat: consolidate skills into single-per-API with references/ subdirectories#780
Merged
pyramation merged 2 commits intomainfrom Mar 4, 2026
Merged
Conversation
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:
|
…ctories - Update ORM, hooks, and CLI skill generators to emit one skill per API (e.g. orm-public, hooks-admin) with entity docs in references/ - Add buildSkillReference() helper for reference file generation - Update buildSkillFile() to accept referenceNames and generate References section - Delete 486 old per-entity skill directories - Regenerate SDK and React SDK with new consolidated structure - Update test assertions and snapshots for new structure
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: consolidate skills into single-per-API with references/ subdirectories
Summary
Follow-up to PR #775. Restructures the generated skill output from 486 individual per-entity skill directories into ~8 consolidated skills (one per API), each with entity documentation in a
references/subdirectory.Before (486 dirs)
After (8 dirs)
Codegen changes
docs-utils.ts: AddedSkillReferenceDefinitioninterface andbuildSkillReference()helper for reference file generation. UpdatedbuildSkillFile()to accept optionalreferenceNamesand emit a## Referencessection with links.orm/docs-generator.ts: RewrotegenerateOrmSkills()— emits oneorm-{target}/SKILL.md+ per-entity reference files inreferences/.hooks-docs-generator.ts: RewrotegenerateHooksSkills()— same pattern as ORM.cli/docs-generator.ts: Rewrote bothgenerateSkills()(single-target →cli-{target}/with context/auth/table/op references) andgenerateMultiTargetSkills()(emitscli-common/for shared context/auth +cli-{target}/per target).Review & Testing Checklist for Human
skills/*/references/*.mdfiles and confirm they have NO YAML frontmatter (just# Title+ content), whileskills/*/SKILL.mdfiles DO have---\nname:\ndescription:\n---frontmatter.orm-publicskill's references include entities from theobjectstarget (e.g.,freeze-objects.md,get-all-record.md,store.md). This happens because thepublicGraphQL schema includes objects tables. Confirm this is expected or whether objects entities should only appear inorm-objects.skills/orm-public/SKILL.mdand verify the## Referencessection at the bottom has working relative links to all reference files (e.g.,[field](references/field.md)).cli-common/(shared context/auth) +cli-{target}/per target. Confirm this naming convention is acceptable.cd sdk/constructive-sdk && npx tsx scripts/generate-sdk.ts && cd ../constructive-react && npx tsx scripts/generate-react.tslocally — there should be no diff after re-running.Notes
schema-only.test.ts,expand-targets.test.ts) are pre-existingpgsql-seedmodule resolution issues, unrelated to this PR.pnpm buildhas a pre-existing failure inpgsql-client. The codegen package builds cleanly after runningcd postgres/pgsql-seed && pnpm buildfirst.Link to Devin Session: https://app.devin.ai/sessions/56210b5075d14c03abb8d475e781b23e
Requested by: @pyramation