feat(skills): skill shadowing for personal overrides#87
Open
Conversation
Adds `devflow skills shadow/unshadow/list-shadowed` commands for personal skill customization. Shadowed skills are preserved across `devflow init` — the installer skips both cleanup and copy for any skill that has a shadow in `~/.devflow/skills/`. Changes: - src/cli/commands/skills.ts: new command with shadow/unshadow/list - src/cli/cli.ts: register skillsCommand - src/cli/utils/installer.ts: skip shadowed skills in cleanup + copy - src/cli/commands/uninstall.ts: warn about personal overrides - tests/skills.test.ts: 7 new tests for hasShadow + listShadowed Closes #81
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
devflow skills shadow <name>— saves reference copy to~/.devflow/skills/, marks skill as user-manageddevflow skills unshadow <name>— removes override, nextdevflow initrestores defaultdevflow skills list-shadowed— shows all overridden skills with active/unknown statusdevflow initHow It Works
devflow skills shadow core-patterns→ copies current version to~/.devflow/skills/core-patterns/as reference~/.claude/skills/core-patterns/SKILL.mdfreelydevflow initsees shadow → skips overwriting that skilldevflow skills unshadow core-patterns→ removes shadow → next init restores defaultTest plan
npm run buildpassesnpm test— all 185 tests pass (7 new)hasShadowreturns false when no shadow existshasShadowreturns true when shadow directory existslistShadowedreturns empty array for fresh installlistShadowedlists all shadow directories, ignores filesCloses #81
Part of #78