Add Claude Code skill for database migrations to scaffolded projects#11
Merged
Conversation
…nto scaffolded projects Upon initializing a new project, the CLI now runs `npx skills add` to copy the @schemavaults/dbh database-migrations Claude Code skill into the new project's .claude/skills/, so coding agents know how to author migrations in the format this template scaffolds. Uses --copy so the vendored files are committable (no symlinks into a global cache) and --agent claude-code for a deterministic install target. The step is non-fatal: a network failure prints a warning with the manual command rather than aborting an otherwise-ready scaffold. https://claude.ai/code/session_013VHYeGtyxYgvT9rQQYq9Nj
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
This PR enhances the project initialization process by automatically installing the
@schemavaults/dbhClaude Code skill into newly scaffolded projects. This enables AI coding agents to understand and author database migrations in the format established by the template.Key Changes
npx skills add schemavaults/dbhafter auth codegen completes, with graceful error handling that warns users if the installation fails while allowing the project setup to continue.claude/skills/database-migrations/directory andSKILL.mdfile)Implementation Details
--agent claude-code --copy --yesflags to ensure deterministic behavior and vendor real files (avoiding symlink issues in committed repositories)https://claude.ai/code/session_013VHYeGtyxYgvT9rQQYq9Nj