devflow-kit 0.8.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +185 -29
- package/LICENSE +1 -1
- package/README.md +179 -308
- package/dist/cli.js +3 -1
- package/dist/commands/init.d.ts +21 -0
- package/dist/commands/init.js +311 -575
- package/dist/commands/list.d.ts +3 -0
- package/dist/commands/list.js +20 -0
- package/dist/commands/uninstall.d.ts +10 -0
- package/dist/commands/uninstall.js +351 -78
- package/dist/plugins.d.ts +46 -0
- package/dist/plugins.js +162 -0
- package/dist/utils/cli.d.ts +5 -0
- package/dist/utils/cli.js +14 -0
- package/dist/utils/installer.d.ts +41 -0
- package/dist/utils/installer.js +177 -0
- package/dist/utils/paths.d.ts +10 -0
- package/dist/utils/paths.js +23 -3
- package/dist/utils/post-install.d.ts +68 -0
- package/dist/utils/post-install.js +427 -0
- package/dist/utils/safe-delete-install.d.ts +22 -0
- package/dist/utils/safe-delete-install.js +156 -0
- package/dist/utils/safe-delete.d.ts +12 -0
- package/dist/utils/safe-delete.js +83 -0
- package/package.json +18 -8
- package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +7 -0
- package/plugins/devflow-audit-claude/README.md +46 -0
- package/plugins/devflow-audit-claude/agents/claude-md-auditor.md +134 -0
- package/plugins/devflow-audit-claude/commands/audit-claude.md +85 -0
- package/plugins/devflow-code-review/.claude-plugin/plugin.json +31 -0
- package/plugins/devflow-code-review/README.md +73 -0
- package/plugins/devflow-code-review/agents/git.md +272 -0
- package/plugins/devflow-code-review/agents/reviewer.md +119 -0
- package/plugins/devflow-code-review/agents/synthesizer.md +204 -0
- package/plugins/devflow-code-review/commands/code-review-teams.md +262 -0
- package/plugins/devflow-code-review/commands/code-review.md +141 -0
- package/plugins/devflow-code-review/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-code-review/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-code-review/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-code-review/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-code-review/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/SKILL.md +153 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/detection.md +337 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/patterns.md +873 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/violations.md +575 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/SKILL.md +143 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/detection.md +264 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/patterns.md +487 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/violations.md +361 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/SKILL.md +140 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/detection.md +207 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/patterns.md +202 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/violations.md +213 -0
- package/plugins/devflow-code-review/skills/database-patterns/SKILL.md +134 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/detection.md +208 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/patterns.md +394 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/violations.md +332 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/SKILL.md +141 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/detection.md +181 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/patterns.md +225 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/violations.md +247 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/SKILL.md +125 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/detection.md +190 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/patterns.md +189 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/violations.md +163 -0
- package/plugins/devflow-code-review/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-code-review/skills/performance-patterns/SKILL.md +154 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/detection.md +351 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/patterns.md +503 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/violations.md +354 -0
- package/plugins/devflow-code-review/skills/react/SKILL.md +276 -0
- package/plugins/devflow-code-review/skills/react/references/patterns.md +1331 -0
- package/plugins/devflow-code-review/skills/react/references/violations.md +565 -0
- package/plugins/devflow-code-review/skills/regression-patterns/SKILL.md +146 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/detection.md +237 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/patterns.md +226 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/violations.md +225 -0
- package/plugins/devflow-code-review/skills/review-methodology/SKILL.md +119 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/patterns.md +186 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/report-template.md +142 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/violations.md +125 -0
- package/plugins/devflow-code-review/skills/security-patterns/SKILL.md +156 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/detection.md +287 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/patterns.md +507 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/violations.md +237 -0
- package/plugins/devflow-code-review/skills/test-patterns/SKILL.md +183 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/detection.md +149 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/patterns.md +220 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/report-template.md +108 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/violations.md +221 -0
- package/plugins/devflow-core-skills/.claude-plugin/plugin.json +27 -0
- package/plugins/devflow-core-skills/README.md +50 -0
- package/plugins/devflow-core-skills/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-core-skills/skills/core-patterns/SKILL.md +162 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/checklist.md +276 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/detection.md +303 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/patterns.md +576 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/violations.md +369 -0
- package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +134 -0
- package/plugins/devflow-core-skills/skills/docs-framework/references/patterns.md +346 -0
- package/plugins/devflow-core-skills/skills/docs-framework/references/violations.md +221 -0
- package/plugins/devflow-core-skills/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-core-skills/skills/git-safety/SKILL.md +122 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/detection.md +290 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/patterns.md +289 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/violations.md +18 -0
- package/plugins/devflow-core-skills/skills/git-workflow/SKILL.md +158 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-patterns.md +115 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-violations.md +77 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-patterns.md +127 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-violations.md +96 -0
- package/plugins/devflow-core-skills/skills/github-patterns/SKILL.md +153 -0
- package/plugins/devflow-core-skills/skills/github-patterns/references/patterns.md +572 -0
- package/plugins/devflow-core-skills/skills/github-patterns/references/violations.md +298 -0
- package/plugins/devflow-core-skills/skills/input-validation/SKILL.md +148 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/detection.md +283 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/patterns.md +361 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/violations.md +224 -0
- package/plugins/devflow-core-skills/skills/react/SKILL.md +276 -0
- package/plugins/devflow-core-skills/skills/react/references/patterns.md +1331 -0
- package/plugins/devflow-core-skills/skills/react/references/violations.md +565 -0
- package/plugins/devflow-core-skills/skills/test-patterns/SKILL.md +183 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/detection.md +149 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/patterns.md +220 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/report-template.md +108 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/violations.md +221 -0
- package/plugins/devflow-core-skills/skills/typescript/SKILL.md +176 -0
- package/plugins/devflow-core-skills/skills/typescript/references/patterns.md +1105 -0
- package/plugins/devflow-core-skills/skills/typescript/references/violations.md +433 -0
- package/plugins/devflow-debug/.claude-plugin/plugin.json +18 -0
- package/plugins/devflow-debug/README.md +65 -0
- package/plugins/devflow-debug/agents/git.md +272 -0
- package/plugins/devflow-debug/commands/debug-teams.md +231 -0
- package/plugins/devflow-debug/commands/debug.md +160 -0
- package/plugins/devflow-debug/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-debug/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-debug/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-debug/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-debug/skills/git-safety/SKILL.md +122 -0
- package/plugins/devflow-debug/skills/git-safety/references/detection.md +290 -0
- package/plugins/devflow-debug/skills/git-safety/references/patterns.md +289 -0
- package/plugins/devflow-debug/skills/git-safety/references/violations.md +18 -0
- package/plugins/devflow-implement/.claude-plugin/plugin.json +21 -0
- package/plugins/devflow-implement/README.md +71 -0
- package/plugins/devflow-implement/agents/coder.md +122 -0
- package/plugins/devflow-implement/agents/git.md +272 -0
- package/plugins/devflow-implement/agents/scrutinizer.md +80 -0
- package/plugins/devflow-implement/agents/shepherd.md +94 -0
- package/plugins/devflow-implement/agents/simplifier.md +62 -0
- package/plugins/devflow-implement/agents/skimmer.md +88 -0
- package/plugins/devflow-implement/agents/synthesizer.md +204 -0
- package/plugins/devflow-implement/agents/validator.md +86 -0
- package/plugins/devflow-implement/commands/implement-teams.md +608 -0
- package/plugins/devflow-implement/commands/implement.md +426 -0
- package/plugins/devflow-implement/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-implement/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-implement/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-implement/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-implement/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-implement/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-implement/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-implement/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-implement/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-implement/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-implement/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-implement/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-implement/skills/implementation-patterns/SKILL.md +162 -0
- package/plugins/devflow-implement/skills/implementation-patterns/references/patterns.md +1063 -0
- package/plugins/devflow-implement/skills/implementation-patterns/references/violations.md +483 -0
- package/plugins/devflow-implement/skills/self-review/SKILL.md +149 -0
- package/plugins/devflow-implement/skills/self-review/references/patterns.md +405 -0
- package/plugins/devflow-implement/skills/self-review/references/report-template.md +253 -0
- package/plugins/devflow-implement/skills/self-review/references/violations.md +308 -0
- package/plugins/devflow-resolve/.claude-plugin/plugin.json +19 -0
- package/plugins/devflow-resolve/README.md +65 -0
- package/plugins/devflow-resolve/agents/git.md +272 -0
- package/plugins/devflow-resolve/agents/resolver.md +131 -0
- package/plugins/devflow-resolve/agents/simplifier.md +62 -0
- package/plugins/devflow-resolve/commands/resolve-teams.md +298 -0
- package/plugins/devflow-resolve/commands/resolve.md +237 -0
- package/plugins/devflow-resolve/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/SKILL.md +162 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/references/patterns.md +1063 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/references/violations.md +483 -0
- package/plugins/devflow-resolve/skills/security-patterns/SKILL.md +156 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/detection.md +287 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/patterns.md +507 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/violations.md +237 -0
- package/plugins/devflow-self-review/.claude-plugin/plugin.json +7 -0
- package/plugins/devflow-self-review/README.md +38 -0
- package/plugins/devflow-self-review/agents/scrutinizer.md +80 -0
- package/plugins/devflow-self-review/agents/simplifier.md +62 -0
- package/plugins/devflow-self-review/agents/validator.md +86 -0
- package/plugins/devflow-self-review/commands/self-review.md +126 -0
- package/plugins/devflow-self-review/skills/core-patterns/SKILL.md +162 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/checklist.md +276 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/detection.md +303 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/patterns.md +576 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/violations.md +369 -0
- package/plugins/devflow-self-review/skills/self-review/SKILL.md +149 -0
- package/plugins/devflow-self-review/skills/self-review/references/patterns.md +405 -0
- package/plugins/devflow-self-review/skills/self-review/references/report-template.md +253 -0
- package/plugins/devflow-self-review/skills/self-review/references/violations.md +308 -0
- package/plugins/devflow-specify/.claude-plugin/plugin.json +15 -0
- package/plugins/devflow-specify/README.md +46 -0
- package/plugins/devflow-specify/agents/skimmer.md +88 -0
- package/plugins/devflow-specify/agents/synthesizer.md +204 -0
- package/plugins/devflow-specify/commands/specify-teams.md +314 -0
- package/plugins/devflow-specify/commands/specify.md +179 -0
- package/plugins/devflow-specify/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-specify/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-specify/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-specify/skills/agent-teams/references/team-patterns.md +217 -0
- package/scripts/hooks/background-memory-update.sh +167 -0
- package/scripts/hooks/pre-compact-memory.sh +81 -0
- package/scripts/hooks/session-start-memory.sh +84 -0
- package/scripts/hooks/stop-update-memory.sh +81 -0
- package/shared/agents/coder.md +122 -0
- package/shared/agents/git.md +272 -0
- package/shared/agents/resolver.md +131 -0
- package/shared/agents/reviewer.md +119 -0
- package/shared/agents/scrutinizer.md +80 -0
- package/shared/agents/shepherd.md +94 -0
- package/shared/agents/simplifier.md +62 -0
- package/shared/agents/skimmer.md +88 -0
- package/shared/agents/synthesizer.md +204 -0
- package/shared/agents/validator.md +86 -0
- package/shared/skills/accessibility/SKILL.md +229 -0
- package/shared/skills/accessibility/references/detection.md +171 -0
- package/shared/skills/accessibility/references/patterns.md +670 -0
- package/shared/skills/accessibility/references/violations.md +419 -0
- package/shared/skills/agent-teams/SKILL.md +124 -0
- package/shared/skills/agent-teams/references/cleanup.md +104 -0
- package/shared/skills/agent-teams/references/communication.md +122 -0
- package/shared/skills/agent-teams/references/team-patterns.md +217 -0
- package/shared/skills/architecture-patterns/SKILL.md +153 -0
- package/shared/skills/architecture-patterns/references/detection.md +337 -0
- package/shared/skills/architecture-patterns/references/patterns.md +873 -0
- package/shared/skills/architecture-patterns/references/violations.md +575 -0
- package/shared/skills/complexity-patterns/SKILL.md +143 -0
- package/shared/skills/complexity-patterns/references/detection.md +264 -0
- package/shared/skills/complexity-patterns/references/patterns.md +487 -0
- package/shared/skills/complexity-patterns/references/violations.md +361 -0
- package/shared/skills/consistency-patterns/SKILL.md +140 -0
- package/shared/skills/consistency-patterns/references/detection.md +207 -0
- package/shared/skills/consistency-patterns/references/patterns.md +202 -0
- package/shared/skills/consistency-patterns/references/violations.md +213 -0
- package/shared/skills/core-patterns/SKILL.md +162 -0
- package/shared/skills/core-patterns/references/checklist.md +276 -0
- package/shared/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/shared/skills/core-patterns/references/detection.md +303 -0
- package/shared/skills/core-patterns/references/patterns.md +576 -0
- package/shared/skills/core-patterns/references/violations.md +369 -0
- package/shared/skills/database-patterns/SKILL.md +134 -0
- package/shared/skills/database-patterns/references/detection.md +208 -0
- package/shared/skills/database-patterns/references/patterns.md +394 -0
- package/shared/skills/database-patterns/references/violations.md +332 -0
- package/shared/skills/dependencies-patterns/SKILL.md +141 -0
- package/shared/skills/dependencies-patterns/references/detection.md +181 -0
- package/shared/skills/dependencies-patterns/references/patterns.md +225 -0
- package/shared/skills/dependencies-patterns/references/violations.md +247 -0
- package/shared/skills/docs-framework/SKILL.md +134 -0
- package/shared/skills/docs-framework/references/patterns.md +346 -0
- package/shared/skills/docs-framework/references/violations.md +221 -0
- package/shared/skills/documentation-patterns/SKILL.md +125 -0
- package/shared/skills/documentation-patterns/references/detection.md +190 -0
- package/shared/skills/documentation-patterns/references/patterns.md +189 -0
- package/shared/skills/documentation-patterns/references/violations.md +163 -0
- package/shared/skills/frontend-design/SKILL.md +254 -0
- package/shared/skills/frontend-design/references/detection.md +184 -0
- package/shared/skills/frontend-design/references/patterns.md +511 -0
- package/shared/skills/frontend-design/references/violations.md +453 -0
- package/shared/skills/git-safety/SKILL.md +122 -0
- package/shared/skills/git-safety/references/detection.md +290 -0
- package/shared/skills/git-safety/references/patterns.md +289 -0
- package/shared/skills/git-safety/references/violations.md +18 -0
- package/shared/skills/git-workflow/SKILL.md +158 -0
- package/shared/skills/git-workflow/references/commit-patterns.md +115 -0
- package/shared/skills/git-workflow/references/commit-violations.md +77 -0
- package/shared/skills/git-workflow/references/pr-patterns.md +127 -0
- package/shared/skills/git-workflow/references/pr-violations.md +96 -0
- package/shared/skills/github-patterns/SKILL.md +153 -0
- package/shared/skills/github-patterns/references/patterns.md +572 -0
- package/shared/skills/github-patterns/references/violations.md +298 -0
- package/shared/skills/implementation-patterns/SKILL.md +162 -0
- package/shared/skills/implementation-patterns/references/patterns.md +1063 -0
- package/shared/skills/implementation-patterns/references/violations.md +483 -0
- package/shared/skills/input-validation/SKILL.md +148 -0
- package/shared/skills/input-validation/references/detection.md +283 -0
- package/shared/skills/input-validation/references/patterns.md +361 -0
- package/shared/skills/input-validation/references/violations.md +224 -0
- package/shared/skills/performance-patterns/SKILL.md +154 -0
- package/shared/skills/performance-patterns/references/detection.md +351 -0
- package/shared/skills/performance-patterns/references/patterns.md +503 -0
- package/shared/skills/performance-patterns/references/violations.md +354 -0
- package/shared/skills/react/SKILL.md +276 -0
- package/shared/skills/react/references/patterns.md +1331 -0
- package/shared/skills/react/references/violations.md +565 -0
- package/shared/skills/regression-patterns/SKILL.md +146 -0
- package/shared/skills/regression-patterns/references/detection.md +237 -0
- package/shared/skills/regression-patterns/references/patterns.md +226 -0
- package/shared/skills/regression-patterns/references/violations.md +225 -0
- package/shared/skills/review-methodology/SKILL.md +119 -0
- package/shared/skills/review-methodology/references/patterns.md +186 -0
- package/shared/skills/review-methodology/references/report-template.md +142 -0
- package/shared/skills/review-methodology/references/violations.md +125 -0
- package/shared/skills/security-patterns/SKILL.md +156 -0
- package/shared/skills/security-patterns/references/detection.md +287 -0
- package/shared/skills/security-patterns/references/patterns.md +507 -0
- package/shared/skills/security-patterns/references/violations.md +237 -0
- package/shared/skills/self-review/SKILL.md +149 -0
- package/shared/skills/self-review/references/patterns.md +405 -0
- package/shared/skills/self-review/references/report-template.md +253 -0
- package/shared/skills/self-review/references/violations.md +308 -0
- package/shared/skills/test-patterns/SKILL.md +183 -0
- package/shared/skills/test-patterns/references/detection.md +149 -0
- package/shared/skills/test-patterns/references/patterns.md +220 -0
- package/shared/skills/test-patterns/references/report-template.md +108 -0
- package/shared/skills/test-patterns/references/violations.md +221 -0
- package/shared/skills/typescript/SKILL.md +176 -0
- package/shared/skills/typescript/references/patterns.md +1105 -0
- package/shared/skills/typescript/references/violations.md +433 -0
- package/src/templates/claudeignore.template +188 -0
- package/src/templates/managed-settings.json +146 -0
- package/src/templates/settings.json +59 -0
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/uninstall.d.ts.map +0 -1
- package/dist/commands/uninstall.js.map +0 -1
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/src/claude/CLAUDE.md +0 -400
- package/src/claude/agents/devflow/audit-architecture.md +0 -132
- package/src/claude/agents/devflow/audit-complexity.md +0 -132
- package/src/claude/agents/devflow/audit-database.md +0 -132
- package/src/claude/agents/devflow/audit-dependencies.md +0 -132
- package/src/claude/agents/devflow/audit-documentation.md +0 -132
- package/src/claude/agents/devflow/audit-performance.md +0 -256
- package/src/claude/agents/devflow/audit-security.md +0 -259
- package/src/claude/agents/devflow/audit-tests.md +0 -132
- package/src/claude/agents/devflow/audit-typescript.md +0 -132
- package/src/claude/agents/devflow/brainstorm.md +0 -279
- package/src/claude/agents/devflow/catch-up.md +0 -345
- package/src/claude/agents/devflow/code-review.md +0 -307
- package/src/claude/agents/devflow/commit.md +0 -380
- package/src/claude/agents/devflow/debug.md +0 -476
- package/src/claude/agents/devflow/design.md +0 -491
- package/src/claude/agents/devflow/pr-comments.md +0 -285
- package/src/claude/agents/devflow/project-state.md +0 -419
- package/src/claude/agents/devflow/pull-request.md +0 -423
- package/src/claude/agents/devflow/release.md +0 -1137
- package/src/claude/agents/devflow/tech-debt.md +0 -338
- package/src/claude/commands/devflow/brainstorm.md +0 -68
- package/src/claude/commands/devflow/breakdown.md +0 -125
- package/src/claude/commands/devflow/catch-up.md +0 -29
- package/src/claude/commands/devflow/code-review.md +0 -237
- package/src/claude/commands/devflow/commit.md +0 -17
- package/src/claude/commands/devflow/debug.md +0 -56
- package/src/claude/commands/devflow/design.md +0 -82
- package/src/claude/commands/devflow/devlog.md +0 -408
- package/src/claude/commands/devflow/implement.md +0 -100
- package/src/claude/commands/devflow/plan.md +0 -223
- package/src/claude/commands/devflow/pull-request.md +0 -269
- package/src/claude/commands/devflow/release.md +0 -251
- package/src/claude/commands/devflow/resolve-comments.md +0 -583
- package/src/claude/scripts/statusline.sh +0 -47
- package/src/claude/settings.json +0 -6
- package/src/claude/skills/devflow/code-smell/SKILL.md +0 -428
- package/src/claude/skills/devflow/debug/SKILL.md +0 -119
- package/src/claude/skills/devflow/error-handling/SKILL.md +0 -597
- package/src/claude/skills/devflow/input-validation/SKILL.md +0 -514
- package/src/claude/skills/devflow/pattern-check/SKILL.md +0 -238
- package/src/claude/skills/devflow/research/SKILL.md +0 -138
- package/src/claude/skills/devflow/test-design/SKILL.md +0 -384
package/README.md
CHANGED
|
@@ -1,370 +1,241 @@
|
|
|
1
|
-
# DevFlow
|
|
1
|
+
# DevFlow
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/devflow-kit)
|
|
4
|
+
[](https://github.com/dean0x/devflow/actions/workflows/ci.yml)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://nodejs.org/)
|
|
7
|
+
[](https://dean0x.github.io/x/devflow/)
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
**Development workflows for Claude Code — spec, implement, code-review, debug in one command.**
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src=".github/assets/devflow-init.gif" alt="DevFlow init demo" width="720" />
|
|
13
|
+
</p>
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
## Why DevFlow
|
|
13
16
|
|
|
14
|
-
|
|
17
|
+
Claude Code is powerful but workflows are manual — you write ad-hoc prompts, lose context on every restart, and repeat the same review steps across projects.
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
19
|
+
DevFlow adds structured commands that handle the full lifecycle: specify features, implement with exploration and planning, review with multiple perspectives, and debug with parallel investigation. Session memory persists automatically across restarts and compaction.
|
|
20
|
+
|
|
21
|
+
## Features
|
|
22
|
+
|
|
23
|
+
- **Structured code review** — multiple specialized reviewers (security, architecture, performance, and more)
|
|
24
|
+
- **Full-lifecycle implementation** — spec, explore, plan, code, validate, refine in one command
|
|
25
|
+
- **Automatic session memory** — survives restarts, `/clear`, and context compaction
|
|
26
|
+
- **Parallel debugging** — competing hypotheses investigated simultaneously
|
|
27
|
+
- **24 quality skills** — 11 auto-activating, plus specialized review and agent skills
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
24
30
|
|
|
25
|
-
**Local Scope** - Install for current project only
|
|
26
31
|
```bash
|
|
27
|
-
npx devflow-kit init
|
|
32
|
+
npx devflow-kit init
|
|
28
33
|
```
|
|
29
|
-
- Installs to `<git-root>/.claude/` and `<git-root>/.devflow/`
|
|
30
|
-
- Only available in the current project
|
|
31
|
-
- Recommended for team projects where DevFlow should be project-specific
|
|
32
|
-
- Requires a git repository (run `git init` first)
|
|
33
|
-
- Add `.claude/` and `.devflow/` to `.gitignore` (done automatically)
|
|
34
|
-
|
|
35
|
-
That's it! DevFlow is now installed and ready to use in Claude Code.
|
|
36
|
-
|
|
37
|
-
## What's Included
|
|
38
|
-
|
|
39
|
-
### 🎯 Skills (Auto-Activate)
|
|
40
|
-
|
|
41
|
-
**Skills are model-invoked** - Claude automatically activates them based on context, enforcing quality without manual invocation.
|
|
42
|
-
|
|
43
|
-
| Skill | Purpose | Auto-Triggers When |
|
|
44
|
-
|-------|---------|---------------------|
|
|
45
|
-
| `pattern-check` | Architectural pattern validation (Result types, DI, immutability) | Code changes are made, new functions added |
|
|
46
|
-
| `test-design` | Test quality enforcement (setup complexity, mocking, behavior vs implementation) | Tests are written or modified |
|
|
47
|
-
| `code-smell` | Anti-pattern detection (fake solutions, unlabeled workarounds, magic values) | Features are implemented, code is reviewed |
|
|
48
|
-
| `research` | Pre-implementation planning, documentation study, integration strategy | Unfamiliar features requested, architectural decisions needed |
|
|
49
|
-
| `debug` | Systematic debugging with hypothesis testing and root cause analysis | Errors occur, tests fail, performance issues detected |
|
|
50
|
-
| `input-validation` | Boundary validation enforcement (parse-don't-validate, SQL injection prevention) | API endpoints created, external data handled |
|
|
51
|
-
| `error-handling` | Result type consistency and exception boundary enforcement | Error handling code written, functions that can fail |
|
|
52
|
-
|
|
53
|
-
**How Skills Work:**
|
|
54
|
-
- **Proactive enforcement** - Catch issues during implementation, not after
|
|
55
|
-
- **No manual invocation** - Model decides when skills are relevant
|
|
56
|
-
- **Quality gates** - Block anti-patterns automatically
|
|
57
|
-
- **Context-aware** - Activate based on what you're doing
|
|
58
|
-
|
|
59
|
-
**IMPORTANT**: Skills are **automatically activated** by Claude based on context. They cannot be manually invoked like slash commands.
|
|
60
|
-
|
|
61
|
-
**Dual-Mode Pattern**: The `debug` skill also exists as a slash command (`/debug`) for manual control:
|
|
62
|
-
- **Skill mode** (auto): Activates when Claude detects errors or failures
|
|
63
|
-
- **Command mode** (manual): Use `/debug` when you want explicit control over the debugging workflow
|
|
64
|
-
|
|
65
|
-
This gives you the best of both worlds: automatic assistance when needed, manual control when preferred.
|
|
66
|
-
|
|
67
|
-
### 📊 Slash Commands (User-Invoked)
|
|
68
|
-
|
|
69
|
-
| Command | Purpose | When to Use |
|
|
70
|
-
|---------|---------|-------------|
|
|
71
|
-
| `/catch-up` | Smart summaries for starting new sessions with status validation | Starting a session |
|
|
72
|
-
| `/brainstorm` | Explore design decisions and architectural approaches | Before implementation, evaluating options |
|
|
73
|
-
| `/design` | Create detailed implementation plan with integration points | After brainstorming, ready for detailed design |
|
|
74
|
-
| `/plan` | Triage issues - implement now, defer to GitHub issue, or skip | After code-review or discussion, deciding what to tackle |
|
|
75
|
-
| `/breakdown` | Quickly break down discussion into actionable tasks | After planning discussion, quick task capture |
|
|
76
|
-
| `/implement` | Streamlined todo implementation, only stopping for design decisions | After planning, ready to implement todos |
|
|
77
|
-
| `/debug` | Systematic debugging workflow with hypothesis testing | When errors occur, tests fail, or investigating issues |
|
|
78
|
-
| `/code-review` | Comprehensive code review using specialized sub-agents | Before committing or creating PR |
|
|
79
|
-
| `/commit` | Intelligent atomic commit creation with safety checks | When ready to commit |
|
|
80
|
-
| `/pull-request` | Create PR with comprehensive analysis and smart description | After commits, ready to create PR |
|
|
81
|
-
| `/resolve-comments` | Systematically address PR review feedback | After PR feedback, need to resolve comments |
|
|
82
|
-
| `/release` | Automated release workflow with version management and publishing | Creating a new release |
|
|
83
|
-
| `/devlog` | Development log for comprehensive session documentation | Ending a session |
|
|
84
|
-
|
|
85
|
-
### 🤖 Sub-Agents
|
|
86
|
-
|
|
87
|
-
| Sub-Agent | Specialty | Purpose |
|
|
88
|
-
|-----------|-----------|---------|
|
|
89
|
-
| `audit-security` | Security Analysis | Expert vulnerability detection and security code review |
|
|
90
|
-
| `audit-performance` | Performance | Optimization and bottleneck detection |
|
|
91
|
-
| `audit-architecture` | Architecture | Design pattern analysis and code structure review |
|
|
92
|
-
| `audit-tests` | Testing | Test quality, coverage, and effectiveness analysis (surgical execution) |
|
|
93
|
-
| `audit-complexity` | Complexity | Code complexity and maintainability assessment |
|
|
94
|
-
| `audit-dependencies` | Dependencies | Dependency management and security analysis |
|
|
95
|
-
| `audit-database` | Database | Database design and optimization review |
|
|
96
|
-
| `audit-documentation` | Documentation | Docs-code alignment, API accuracy, comment quality |
|
|
97
|
-
| `audit-typescript` | TypeScript | Type safety enforcement and TypeScript code quality |
|
|
98
|
-
| `brainstorm` | Design Decisions | Explore architectural approaches and evaluate trade-offs |
|
|
99
|
-
| `design` | Implementation Planning | Detailed implementation design with integration points and edge cases |
|
|
100
|
-
| `catch-up` | Context Restoration | Project status and context restoration with validation |
|
|
101
|
-
| `commit` | Git Operations | Intelligent commit creation with safety checks |
|
|
102
|
-
| `pull-request` | PR Creation | Analyze commits/changes and generate comprehensive PR descriptions |
|
|
103
|
-
| `release` | Release Automation | Project-agnostic release workflow with version management |
|
|
104
|
-
| `debug` | Debugging | Systematic debugging with hypothesis testing and issue tracking |
|
|
105
|
-
|
|
106
|
-
**How Sub-Agents Work:**
|
|
107
|
-
- Specialized AI assistants with deep expertise in specific domains
|
|
108
|
-
- Separate context windows for focused analysis
|
|
109
|
-
- Can be invoked explicitly or automatically by orchestrator commands
|
|
110
|
-
- Restricted tool access appropriate to their domain
|
|
111
|
-
|
|
112
|
-
**Invoking Sub-Agents:**
|
|
113
|
-
```bash
|
|
114
|
-
# Explicit invocation
|
|
115
|
-
"Use the audit-security sub-agent to analyze this authentication code"
|
|
116
34
|
|
|
117
|
-
|
|
118
|
-
|
|
35
|
+
Then in Claude Code:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
/code-review
|
|
119
39
|
```
|
|
120
40
|
|
|
121
|
-
|
|
41
|
+
## Commands
|
|
122
42
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
127
|
-
-
|
|
128
|
-
-
|
|
43
|
+
| Plugin | Command | Description |
|
|
44
|
+
|--------|---------|-------------|
|
|
45
|
+
| `devflow-specify` | `/specify` | Interactive feature specification with clarification gates |
|
|
46
|
+
| `devflow-implement` | `/implement` | Complete task lifecycle — explore, plan, code, validate, refine |
|
|
47
|
+
| `devflow-code-review` | `/code-review` | Multi-perspective code review with severity classification |
|
|
48
|
+
| `devflow-resolve` | `/resolve` | Process review issues — fix or defer to tech debt |
|
|
49
|
+
| `devflow-debug` | `/debug` | Parallel hypothesis debugging |
|
|
50
|
+
| `devflow-self-review` | `/self-review` | Self-review workflow (Simplifier + Scrutinizer) |
|
|
51
|
+
| `devflow-core-skills` | (auto) | Auto-activating quality enforcement skills |
|
|
129
52
|
|
|
130
|
-
|
|
53
|
+
## Command Details
|
|
131
54
|
|
|
132
|
-
|
|
55
|
+
### /specify
|
|
133
56
|
|
|
134
|
-
|
|
135
|
-
- Environment files (`.env`, `.env.*`, `.envrc`)
|
|
136
|
-
- Credentials & keys (`*.key`, `*.pem`, SSH keys)
|
|
137
|
-
- Cloud configs (`.aws/`, `.gcp/`, `.azure/`)
|
|
138
|
-
- Package tokens (`.npmrc`, `.pypirc`)
|
|
139
|
-
- Database files (`*.sql`, `*.db`)
|
|
57
|
+
Guides you through defining a feature with three mandatory gates:
|
|
140
58
|
|
|
141
|
-
**
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
- IDE files (`.vscode/`, `.idea/`)
|
|
145
|
-
- Lock files (`package-lock.json`, `yarn.lock`)
|
|
146
|
-
- Media and binaries
|
|
59
|
+
1. **Understanding Gate** - Confirm the feature idea is understood
|
|
60
|
+
2. **Scope Gate** - Validate priorities and boundaries
|
|
61
|
+
3. **Acceptance Gate** - Confirm success criteria
|
|
147
62
|
|
|
148
|
-
|
|
63
|
+
Creates a GitHub issue with well-defined requirements ready for `/implement`.
|
|
149
64
|
|
|
150
|
-
|
|
65
|
+
### /implement
|
|
151
66
|
|
|
152
|
-
|
|
67
|
+
Executes a single task through the complete development lifecycle:
|
|
153
68
|
|
|
154
|
-
|
|
69
|
+
1. **Exploration** — analyze codebase for relevant patterns and dependencies
|
|
70
|
+
2. **Planning** — design the implementation approach
|
|
71
|
+
3. **Implementation** — write code on a feature branch
|
|
72
|
+
4. **Validation** — run build, typecheck, lint, and tests
|
|
73
|
+
5. **Refinement** — simplify and review for quality
|
|
74
|
+
6. **Alignment Check** — verify implementation matches the original request
|
|
155
75
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
│ └── RELEASE_NOTES_v{version}.md
|
|
170
|
-
├── status/ # Development logs
|
|
171
|
-
│ ├── {timestamp}.md
|
|
172
|
-
│ ├── compact/{timestamp}.md
|
|
173
|
-
│ └── INDEX.md
|
|
174
|
-
└── CATCH_UP.md # Latest summary
|
|
175
|
-
```
|
|
76
|
+
Creates a PR when complete.
|
|
77
|
+
|
|
78
|
+
### /code-review
|
|
79
|
+
|
|
80
|
+
Multi-perspective code review with specialized reviewers:
|
|
81
|
+
|
|
82
|
+
- **Core**: Security, Architecture, Performance, Quality
|
|
83
|
+
- **Conditional** (activated when relevant): TypeScript, React, Accessibility, Database, Dependencies, Documentation
|
|
84
|
+
- Findings classified as must-fix, should-fix, or nit with severity and confidence levels
|
|
85
|
+
|
|
86
|
+
Provides actionable feedback with specific file locations and suggested fixes.
|
|
87
|
+
|
|
88
|
+
### /debug
|
|
176
89
|
|
|
177
|
-
|
|
90
|
+
Investigates bugs using competing hypotheses:
|
|
178
91
|
|
|
179
|
-
**
|
|
180
|
-
|
|
92
|
+
1. **Hypothesis Generation** — identify 3-5 plausible explanations
|
|
93
|
+
2. **Parallel Investigation** — each hypothesis investigated independently
|
|
94
|
+
3. **Evidence Evaluation** — hypotheses ranked by supporting evidence
|
|
95
|
+
4. **Root Cause** — the best-supported explanation with fix recommendation
|
|
181
96
|
|
|
182
|
-
|
|
183
|
-
- `feature/auth` → `feature-auth`
|
|
97
|
+
Produces a root cause analysis report with confidence level.
|
|
184
98
|
|
|
185
|
-
|
|
186
|
-
- `"JWT Authentication"` → `jwt-authentication`
|
|
99
|
+
### /resolve
|
|
187
100
|
|
|
188
|
-
|
|
101
|
+
Processes issues from `/code-review`:
|
|
189
102
|
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
- **`/design`** → `.docs/design/{topic}-{timestamp}.md`
|
|
195
|
-
- **`/code-review`** → `.docs/audits/{branch}/` (9 audit reports + summary)
|
|
196
|
-
- **`/release`** → `.docs/releases/RELEASE_NOTES_v{version}.md`
|
|
103
|
+
- Validates each issue is real (not false positive)
|
|
104
|
+
- Assesses risk of fixing (low vs high)
|
|
105
|
+
- Fixes low-risk issues immediately
|
|
106
|
+
- Defers high-risk issues to tech debt backlog
|
|
197
107
|
|
|
198
|
-
|
|
108
|
+
## Auto-Activating Skills
|
|
199
109
|
|
|
200
|
-
|
|
201
|
-
```gitignore
|
|
202
|
-
# Exclude ephemeral catch-up summaries
|
|
203
|
-
.docs/CATCH_UP.md
|
|
110
|
+
The `devflow-core-skills` plugin provides quality enforcement skills that activate automatically:
|
|
204
111
|
|
|
205
|
-
|
|
206
|
-
|
|
112
|
+
| Skill | Triggers When |
|
|
113
|
+
|-------|---------------|
|
|
114
|
+
| `core-patterns` | Implementing business logic, error handling |
|
|
115
|
+
| `docs-framework` | Creating documentation artifacts in .docs/ |
|
|
116
|
+
| `git-safety` | Rebasing, force-pushing, merge conflicts |
|
|
117
|
+
| `git-workflow` | Staging files, creating commits, PRs |
|
|
118
|
+
| `github-patterns` | GitHub API operations, PR comments, releases |
|
|
119
|
+
| `test-patterns` | Writing or modifying tests |
|
|
120
|
+
| `input-validation` | Creating API endpoints |
|
|
121
|
+
| `typescript` | Working in TypeScript codebases |
|
|
122
|
+
| `react` | Working with React components |
|
|
123
|
+
| `accessibility` | Creating UI components, forms, interactive elements |
|
|
124
|
+
| `frontend-design` | Working with CSS, styling, visual design |
|
|
207
125
|
|
|
208
|
-
|
|
126
|
+
## Requirements
|
|
127
|
+
|
|
128
|
+
- [Claude Code](https://claude.ai/download) (latest)
|
|
129
|
+
- Node.js 18+
|
|
130
|
+
|
|
131
|
+
## Installation
|
|
132
|
+
|
|
133
|
+
### Install All Plugins
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
npx devflow-kit init
|
|
209
137
|
```
|
|
210
138
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
## Development Workflow
|
|
214
|
-
|
|
215
|
-
### Starting a Session
|
|
216
|
-
1. `/catch-up` - Review what was done previously
|
|
217
|
-
2. Check statusline for current model, git state, duration
|
|
218
|
-
3. Review recommended next actions
|
|
219
|
-
|
|
220
|
-
### During Development
|
|
221
|
-
1. **Skills auto-activate** - `research` skill triggers for unfamiliar features, `pattern-check` validates architecture
|
|
222
|
-
2. **Plan your work** - `/plan` to triage issues, or `/breakdown` for quick task capture
|
|
223
|
-
3. **Implement efficiently** - `/implement` flows through todos automatically
|
|
224
|
-
4. **Code with confidence** - Skills catch anti-patterns and violations during implementation
|
|
225
|
-
5. `/code-review` - Review changes before committing
|
|
226
|
-
6. `/commit` - Create intelligent atomic commits
|
|
227
|
-
|
|
228
|
-
### Creating Pull Requests
|
|
229
|
-
1. `/code-review` - Comprehensive branch review
|
|
230
|
-
2. `/commit` - Final commits with validation
|
|
231
|
-
3. `/pull-request` - Create PR with smart description
|
|
232
|
-
4. Wait for review feedback
|
|
233
|
-
5. `/resolve-comments` - Address feedback systematically
|
|
234
|
-
6. Repeat steps 4-5 until approved
|
|
235
|
-
|
|
236
|
-
### Ending a Session
|
|
237
|
-
1. `/devlog` - Document decisions and state
|
|
238
|
-
2. `/code-review` - Review branch before creating PR
|
|
239
|
-
3. `/commit` - Final commits with validation
|
|
240
|
-
4. `/pull-request` - Create PR if ready
|
|
241
|
-
|
|
242
|
-
### Creating a Release
|
|
243
|
-
1. `/code-review` - Comprehensive branch review
|
|
244
|
-
2. `/release` - Automated release workflow
|
|
245
|
-
- Detects project type (Node.js, Rust, Python, Go, etc.)
|
|
246
|
-
- Analyzes commits and suggests version bump
|
|
247
|
-
- Generates changelog from git history
|
|
248
|
-
- Builds and tests before publishing
|
|
249
|
-
- Creates git tags and platform releases
|
|
250
|
-
3. Verify package in registry
|
|
251
|
-
|
|
252
|
-
### When Things Go Wrong
|
|
253
|
-
1. **Skills auto-activate** - `debug` skill triggers on errors/failures with systematic approach
|
|
254
|
-
2. Check git log and recent commits
|
|
255
|
-
3. Revert changes using git
|
|
256
|
-
4. Document lessons learned in `.docs/debug/`
|
|
257
|
-
|
|
258
|
-
## CLI Commands
|
|
259
|
-
|
|
260
|
-
| Command | Purpose | Options |
|
|
261
|
-
|---------|---------|---------|
|
|
262
|
-
| `npx devflow-kit init` | Initialize DevFlow for Claude Code | `--scope <user\|local>` - Installation scope (user: user-wide, local: project-only)<br>`--verbose` - Show detailed installation output<br>`--skip-docs` - Skip creating `.docs/` structure |
|
|
263
|
-
| `npx devflow-kit uninstall` | Remove DevFlow from Claude Code | `--scope <user\|local>` - Uninstall from specific scope only (default: auto-detect all)<br>`--keep-docs` - Keep `.docs/` directory |
|
|
264
|
-
|
|
265
|
-
**What `npx devflow-kit init` does:**
|
|
266
|
-
|
|
267
|
-
**User Scope** (default):
|
|
268
|
-
- Installs commands to `~/.claude/commands/devflow/`
|
|
269
|
-
- Installs sub-agents to `~/.claude/agents/devflow/`
|
|
270
|
-
- Installs skills to `~/.claude/skills/`
|
|
271
|
-
- Installs scripts to `~/.devflow/scripts/`
|
|
272
|
-
- Updates `~/.claude/settings.json` (statusline and model)
|
|
273
|
-
- Creates `.claudeignore` at git repository root
|
|
274
|
-
- Creates `.docs/` structure for project documentation
|
|
275
|
-
|
|
276
|
-
**Local Scope** (`--scope local`):
|
|
277
|
-
- Installs commands to `<git-root>/.claude/commands/devflow/`
|
|
278
|
-
- Installs sub-agents to `<git-root>/.claude/agents/devflow/`
|
|
279
|
-
- Installs skills to `<git-root>/.claude/skills/`
|
|
280
|
-
- Installs scripts to `<git-root>/.devflow/scripts/`
|
|
281
|
-
- Creates `<git-root>/.claude/settings.json` (statusline and model)
|
|
282
|
-
- Creates `.claudeignore` at git repository root
|
|
283
|
-
- Creates `.docs/` structure for project documentation
|
|
284
|
-
- Adds `.claude/` and `.devflow/` to `.gitignore`
|
|
285
|
-
|
|
286
|
-
**First Run:**
|
|
139
|
+
### Install Specific Plugins
|
|
140
|
+
|
|
287
141
|
```bash
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
142
|
+
# List available plugins
|
|
143
|
+
npx devflow-kit list
|
|
144
|
+
|
|
145
|
+
# Install specific plugin(s)
|
|
146
|
+
npx devflow-kit init --plugin=implement
|
|
147
|
+
npx devflow-kit init --plugin=implement,code-review
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Scopes
|
|
151
|
+
|
|
152
|
+
- `--scope user` (default) - Install for all projects (`~/.claude/`)
|
|
153
|
+
- `--scope local` - Install for current project only (`.claude/`)
|
|
154
|
+
|
|
155
|
+
## Working Memory
|
|
156
|
+
|
|
157
|
+
DevFlow automatically preserves session context across restarts, `/clear`, and context compaction — zero ceremony required.
|
|
158
|
+
|
|
159
|
+
Three shell hooks run behind the scenes:
|
|
160
|
+
|
|
161
|
+
| Hook | When | What |
|
|
162
|
+
|------|------|------|
|
|
163
|
+
| **Stop** | After each response | Updates `.docs/WORKING-MEMORY.md` with current focus, decisions, and progress. Throttled — skips if updated <2 min ago. |
|
|
164
|
+
| **SessionStart** | On startup, `/clear`, resume, compaction | Injects previous working memory + fresh git state as system context. Warns if memory is >1h stale. |
|
|
165
|
+
| **PreCompact** | Before context compaction | Backs up git state to JSON. Bootstraps a minimal working memory from git if none exists yet. |
|
|
166
|
+
|
|
167
|
+
Working memory is **per-project** — scoped to each repo's `.docs/` directory. Multiple sessions across different repos don't interfere.
|
|
168
|
+
|
|
169
|
+
## Documentation Structure
|
|
170
|
+
|
|
171
|
+
DevFlow creates project documentation in `.docs/`:
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
.docs/
|
|
175
|
+
├── reviews/{branch}/ # Review reports per branch
|
|
176
|
+
├── design/ # Implementation plans
|
|
177
|
+
├── WORKING-MEMORY.md # Auto-maintained by Stop hook
|
|
178
|
+
└── working-memory-backup.json # Pre-compact git state snapshot
|
|
291
179
|
```
|
|
292
180
|
|
|
293
|
-
##
|
|
181
|
+
## Workflow Examples
|
|
294
182
|
|
|
295
|
-
###
|
|
183
|
+
### Implementing a Feature
|
|
296
184
|
```bash
|
|
297
|
-
#
|
|
298
|
-
|
|
185
|
+
/specify # Define the feature with clarification gates
|
|
186
|
+
/implement # Execute the full lifecycle
|
|
299
187
|
```
|
|
300
188
|
|
|
301
|
-
###
|
|
189
|
+
### Debugging an Issue
|
|
302
190
|
```bash
|
|
303
|
-
|
|
304
|
-
/
|
|
305
|
-
git add .docs/status/
|
|
306
|
-
git commit -m "Session status: completed user auth feature"
|
|
191
|
+
/debug "login fails after session timeout"
|
|
192
|
+
/debug #42 # Investigate from GitHub issue
|
|
307
193
|
```
|
|
308
194
|
|
|
309
|
-
###
|
|
195
|
+
### Before Creating a PR
|
|
310
196
|
```bash
|
|
311
|
-
#
|
|
312
|
-
|
|
313
|
-
"Fix this error" # debug skill activates and guides systematic approach
|
|
314
|
-
|
|
315
|
-
# Manual command invocation for structured workflows
|
|
316
|
-
/brainstorm user authentication # Explore architectural approaches
|
|
317
|
-
/design JWT token system # Create detailed implementation plan
|
|
318
|
-
/code-review # Review changes before committing
|
|
319
|
-
/commit # Create atomic commits
|
|
320
|
-
/release # Automated release workflow
|
|
197
|
+
/code-review # Multi-perspective code review
|
|
198
|
+
/resolve # Fix low-risk issues, defer high-risk to backlog
|
|
321
199
|
```
|
|
322
200
|
|
|
323
|
-
|
|
201
|
+
### Session Continuity
|
|
202
|
+
|
|
203
|
+
Session context is saved and restored automatically via Working Memory hooks — no manual steps needed.
|
|
204
|
+
|
|
205
|
+
## CLI Reference
|
|
206
|
+
|
|
207
|
+
| Command | Description |
|
|
208
|
+
|---------|-------------|
|
|
209
|
+
| `npx devflow-kit init` | Install all plugins |
|
|
210
|
+
| `npx devflow-kit init --plugin=<names>` | Install specific plugin(s) |
|
|
211
|
+
| `npx devflow-kit list` | List available plugins |
|
|
212
|
+
| `npx devflow-kit uninstall` | Remove DevFlow |
|
|
213
|
+
|
|
214
|
+
### Init Options
|
|
215
|
+
|
|
216
|
+
| Option | Description |
|
|
217
|
+
|--------|-------------|
|
|
218
|
+
| `--plugin <names>` | Comma-separated plugin names (e.g., `implement,code-review`) |
|
|
219
|
+
| `--scope <user\|local>` | Installation scope (default: user) |
|
|
220
|
+
| `--teams` / `--no-teams` | Enable/disable experimental Agent Teams (default: off) |
|
|
221
|
+
| `--verbose` | Show detailed output |
|
|
324
222
|
|
|
325
|
-
|
|
223
|
+
### Uninstall Options
|
|
326
224
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
225
|
+
| Option | Description |
|
|
226
|
+
|--------|-------------|
|
|
227
|
+
| `--scope <user\|local>` | Uninstall scope (default: user) |
|
|
228
|
+
| `--keep-docs` | Preserve .docs/ directory |
|
|
331
229
|
|
|
332
230
|
## Building from Source
|
|
333
231
|
|
|
334
232
|
```bash
|
|
335
|
-
# Clone and build
|
|
336
233
|
git clone https://github.com/dean0x/devflow.git
|
|
337
234
|
cd devflow
|
|
338
235
|
npm install
|
|
339
236
|
npm run build
|
|
340
|
-
|
|
341
|
-
# Test locally
|
|
342
237
|
node dist/cli.js init
|
|
343
|
-
|
|
344
|
-
# Watch mode for development
|
|
345
|
-
npm run dev
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
**Project Structure:**
|
|
349
238
|
```
|
|
350
|
-
src/
|
|
351
|
-
├── cli/ # CLI source code (TypeScript)
|
|
352
|
-
│ ├── commands/ # init.ts, uninstall.ts
|
|
353
|
-
│ └── cli.ts # CLI entry point
|
|
354
|
-
└── claude/ # Claude Code configuration
|
|
355
|
-
├── agents/devflow/ # Sub-agent definitions (.md)
|
|
356
|
-
├── commands/devflow/ # Slash command definitions (.md)
|
|
357
|
-
├── skills/devflow/ # Skill source (installed flat to ~/.claude/skills/)
|
|
358
|
-
├── scripts/ # statusline.sh
|
|
359
|
-
└── settings.json # Claude Code settings
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
## Support
|
|
363
|
-
|
|
364
|
-
- Check installed command documentation
|
|
365
|
-
- Review `.docs/status/` for recent sessions
|
|
366
|
-
- Skills auto-activate for systematic troubleshooting
|
|
367
|
-
- Report issues at https://github.com/dean0x/devflow/issues
|
|
368
239
|
|
|
369
240
|
## License
|
|
370
241
|
|
package/dist/cli.js
CHANGED
|
@@ -5,6 +5,7 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
import { initCommand } from './commands/init.js';
|
|
7
7
|
import { uninstallCommand } from './commands/uninstall.js';
|
|
8
|
+
import { listCommand } from './commands/list.js';
|
|
8
9
|
const __filename = fileURLToPath(import.meta.url);
|
|
9
10
|
const __dirname = dirname(__filename);
|
|
10
11
|
// Read version from package.json
|
|
@@ -15,10 +16,11 @@ program
|
|
|
15
16
|
.description('Agentic Development Toolkit for Claude Code\n\nEnhance your AI-assisted development with intelligent commands and workflows.')
|
|
16
17
|
.version(packageJson.version, '-v, --version', 'Display version number')
|
|
17
18
|
.helpOption('-h, --help', 'Display help information')
|
|
18
|
-
.addHelpText('after', '\nExamples:\n $ devflow init
|
|
19
|
+
.addHelpText('after', '\nExamples:\n $ devflow init Install all DevFlow plugins\n $ devflow init --plugin=implement Install specific plugin\n $ devflow init --plugin=implement,review Install multiple plugins\n $ devflow list List available plugins\n $ devflow uninstall Remove DevFlow from Claude Code\n $ devflow --version Show version\n $ devflow --help Show help\n\nDocumentation:\n https://github.com/dean0x/devflow#readme');
|
|
19
20
|
// Register commands
|
|
20
21
|
program.addCommand(initCommand);
|
|
21
22
|
program.addCommand(uninstallCommand);
|
|
23
|
+
program.addCommand(listCommand);
|
|
22
24
|
// Handle no command
|
|
23
25
|
program.action(() => {
|
|
24
26
|
program.help();
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
+
import { type PluginDefinition } from '../plugins.js';
|
|
3
|
+
export { substituteSettingsTemplate, computeGitignoreAppend, applyTeamsConfig, stripTeamsConfig, mergeDenyList } from '../utils/post-install.js';
|
|
4
|
+
/**
|
|
5
|
+
* Parse a comma-separated plugin selection string into normalized plugin names.
|
|
6
|
+
* Validates against known plugins; returns invalid names as errors.
|
|
7
|
+
*/
|
|
8
|
+
export declare function parsePluginSelection(input: string, validPlugins: PluginDefinition[]): {
|
|
9
|
+
selected: string[];
|
|
10
|
+
invalid: string[];
|
|
11
|
+
};
|
|
12
|
+
export type ExtraId = 'settings' | 'claudeignore' | 'gitignore' | 'docs' | 'safe-delete';
|
|
13
|
+
interface ExtraOption {
|
|
14
|
+
value: ExtraId;
|
|
15
|
+
label: string;
|
|
16
|
+
hint: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Build the list of configuration extras available for the given scope/git context.
|
|
20
|
+
* Pure function — no I/O, no side effects.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildExtrasOptions(scope: 'user' | 'local', gitRoot: string | null): ExtraOption[];
|
|
2
23
|
export declare const initCommand: Command;
|
|
3
24
|
//# sourceMappingURL=init.d.ts.map
|