Split setup into focused commands and improve meta skills#37
Merged
LadyBluenotes merged 6 commits intomainfrom Mar 5, 2026
Merged
Split setup into focused commands and improve meta skills#37LadyBluenotes merged 6 commits intomainfrom
LadyBluenotes merged 6 commits intomainfrom
Conversation
Replace `intent setup` with three focused commands: - `intent add-library-bin` — generates the bin/intent bridge file - `intent edit-package-json` — wires package.json for skill publishing - `intent setup-github-actions` — copies CI workflow templates Improve meta skill SKILL.md files based on real scaffolding feedback: - Soften lightweight path threshold and narrative guide reading - Add companion library and experimental features questions - Add YAML validation step in domain discovery - Add subagent guidance and review cadence preference in generate-skill - Replace inline feedback sections with pointer to feedback-collection - Update tree-generator to reference edit-package-json command Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
commit: |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Merged
…lls/_artifacts in monorepos Restore content accidentally removed in PR #34's merge conflict resolution: - Hard rules section enforcing mandatory interactive interviews - STOP gates after Phase 1c, 2e, 3i - Interactive phase headings and preambles for Phases 2 and 4 - Expanded rules for Phases 2 and 4 (open-ended questions, wait for response) - Monorepo cross-package question in Phase 2a - Phase 3 docs file listing preamble - packages field in domain_map.yaml schema - Additional constraints table rows (interview interactivity, STOP gates, etc.) - Cross-model compatibility notes about STOP gates and hard rules Also fix !skills/_artifacts to only be added in non-monorepo packages, since in monorepos _artifacts lives at repo root. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
LadyBluenotes
approved these changes
Mar 5, 2026
Merged
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.
Summary
Replace the monolithic
intent setupcommand with three focused commands and apply 9 improvements to meta skill SKILL.md files based on real scaffolding runs (durable-streams, ElectricSQL).User-visible impact: Library maintainers get a new
intent edit-package-jsoncommand that automatically wires package.json for skill publishing (including safe handling of existing CLIs), and improved meta skill instructions that produce better results during scaffolding.Approach
CLI refactoring
intent setup --shim --workflows --all→ three single-purpose commands:setup --shimadd-library-binbin/intent.{js,mjs}bridge fileedit-package-jsonskills,bin,!skills/_artifactstofiles; addsbin.intententrysetup --workflowssetup-github-actionsThe new
edit-package-jsonis entirely new functionality — the oldsetupnever touched package.json contents. It handles threebinscenarios safely:binfield — creates{ intent: "./bin/intent.{ext}" }bin— addsintentalongside existing entriesbinshorthand — converts to object form preserving the existing entryMeta skill improvements
Based on feedback from two real scaffolding runs:
edit-package-jsonreferenceError handling improvements
runEditPackageJson: try-catch aroundJSON.parsewith actionable error messagedetectVarsanddetectShimExtension: distinguish ENOENT (silent fallback) from parse/permission errors (warning)process.exitCode = 1Non-goals
Verification
Files changed
src/setup.tsrunSetup→runAddLibraryBin,runEditPackageJson,runSetupGithubActionswith improved error handlingsrc/cli.tssetup; updated usage string and scaffold promptsrc/index.tstests/setup.test.tsmeta/domain-discovery/SKILL.mdmeta/tree-generator/SKILL.mdmeta/generate-skill/SKILL.mdmeta/feedback-collection/SKILL.md🤖 Generated with Claude Code