devflow-kit 0.9.0 → 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 +167 -29
- package/LICENSE +1 -1
- package/README.md +179 -310
- package/dist/cli.js +3 -1
- package/dist/commands/init.d.ts +21 -0
- package/dist/commands/init.js +311 -576
- 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/get-issue.md +0 -286
- 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 -493
- 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/get-issue.md +0 -16
- 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 -20
- 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,372 +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
|
-
| `/get-issue` | Fetch GitHub issue details and create working branch | Starting work on a GitHub issue |
|
|
77
|
-
| `/implement` | Streamlined todo implementation, only stopping for design decisions | After planning, ready to implement todos |
|
|
78
|
-
| `/debug` | Systematic debugging workflow with hypothesis testing | When errors occur, tests fail, or investigating issues |
|
|
79
|
-
| `/code-review` | Comprehensive code review using specialized sub-agents | Before committing or creating PR |
|
|
80
|
-
| `/commit` | Intelligent atomic commit creation with safety checks | When ready to commit |
|
|
81
|
-
| `/pull-request` | Create PR with comprehensive analysis and smart description | After commits, ready to create PR |
|
|
82
|
-
| `/resolve-comments` | Systematically address PR review feedback | After PR feedback, need to resolve comments |
|
|
83
|
-
| `/release` | Automated release workflow with version management and publishing | Creating a new release |
|
|
84
|
-
| `/devlog` | Development log for comprehensive session documentation | Ending a session |
|
|
85
|
-
|
|
86
|
-
### 🤖 Sub-Agents
|
|
87
|
-
|
|
88
|
-
| Sub-Agent | Specialty | Purpose |
|
|
89
|
-
|-----------|-----------|---------|
|
|
90
|
-
| `audit-security` | Security Analysis | Expert vulnerability detection and security code review |
|
|
91
|
-
| `audit-performance` | Performance | Optimization and bottleneck detection |
|
|
92
|
-
| `audit-architecture` | Architecture | Design pattern analysis and code structure review |
|
|
93
|
-
| `audit-tests` | Testing | Test quality, coverage, and effectiveness analysis (surgical execution) |
|
|
94
|
-
| `audit-complexity` | Complexity | Code complexity and maintainability assessment |
|
|
95
|
-
| `audit-dependencies` | Dependencies | Dependency management and security analysis |
|
|
96
|
-
| `audit-database` | Database | Database design and optimization review |
|
|
97
|
-
| `audit-documentation` | Documentation | Docs-code alignment, API accuracy, comment quality |
|
|
98
|
-
| `audit-typescript` | TypeScript | Type safety enforcement and TypeScript code quality |
|
|
99
|
-
| `brainstorm` | Design Decisions | Explore architectural approaches and evaluate trade-offs |
|
|
100
|
-
| `design` | Implementation Planning | Detailed implementation design with integration points and edge cases |
|
|
101
|
-
| `catch-up` | Context Restoration | Project status and context restoration with validation |
|
|
102
|
-
| `commit` | Git Operations | Intelligent commit creation with safety checks |
|
|
103
|
-
| `get-issue` | GitHub Issues | Fetch issue details and create working branches |
|
|
104
|
-
| `pull-request` | PR Creation | Analyze commits/changes and generate comprehensive PR descriptions |
|
|
105
|
-
| `release` | Release Automation | Project-agnostic release workflow with version management |
|
|
106
|
-
| `debug` | Debugging | Systematic debugging with hypothesis testing and issue tracking |
|
|
107
|
-
|
|
108
|
-
**How Sub-Agents Work:**
|
|
109
|
-
- Specialized AI assistants with deep expertise in specific domains
|
|
110
|
-
- Separate context windows for focused analysis
|
|
111
|
-
- Can be invoked explicitly or automatically by orchestrator commands
|
|
112
|
-
- Restricted tool access appropriate to their domain
|
|
113
|
-
|
|
114
|
-
**Invoking Sub-Agents:**
|
|
115
|
-
```bash
|
|
116
|
-
# Explicit invocation
|
|
117
|
-
"Use the audit-security sub-agent to analyze this authentication code"
|
|
118
34
|
|
|
119
|
-
|
|
120
|
-
|
|
35
|
+
Then in Claude Code:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
/code-review
|
|
121
39
|
```
|
|
122
40
|
|
|
123
|
-
|
|
41
|
+
## Commands
|
|
124
42
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
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 |
|
|
131
52
|
|
|
132
|
-
|
|
53
|
+
## Command Details
|
|
133
54
|
|
|
134
|
-
|
|
55
|
+
### /specify
|
|
135
56
|
|
|
136
|
-
|
|
137
|
-
- Environment files (`.env`, `.env.*`, `.envrc`)
|
|
138
|
-
- Credentials & keys (`*.key`, `*.pem`, SSH keys)
|
|
139
|
-
- Cloud configs (`.aws/`, `.gcp/`, `.azure/`)
|
|
140
|
-
- Package tokens (`.npmrc`, `.pypirc`)
|
|
141
|
-
- Database files (`*.sql`, `*.db`)
|
|
57
|
+
Guides you through defining a feature with three mandatory gates:
|
|
142
58
|
|
|
143
|
-
**
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
- IDE files (`.vscode/`, `.idea/`)
|
|
147
|
-
- Lock files (`package-lock.json`, `yarn.lock`)
|
|
148
|
-
- 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
|
|
149
62
|
|
|
150
|
-
|
|
63
|
+
Creates a GitHub issue with well-defined requirements ready for `/implement`.
|
|
151
64
|
|
|
152
|
-
|
|
65
|
+
### /implement
|
|
153
66
|
|
|
154
|
-
|
|
67
|
+
Executes a single task through the complete development lifecycle:
|
|
155
68
|
|
|
156
|
-
|
|
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
|
|
157
75
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
│ └── RELEASE_NOTES_v{version}.md
|
|
172
|
-
├── status/ # Development logs
|
|
173
|
-
│ ├── {timestamp}.md
|
|
174
|
-
│ ├── compact/{timestamp}.md
|
|
175
|
-
│ └── INDEX.md
|
|
176
|
-
└── CATCH_UP.md # Latest summary
|
|
177
|
-
```
|
|
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
|
|
178
89
|
|
|
179
|
-
|
|
90
|
+
Investigates bugs using competing hypotheses:
|
|
180
91
|
|
|
181
|
-
**
|
|
182
|
-
|
|
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
|
|
183
96
|
|
|
184
|
-
|
|
185
|
-
- `feature/auth` → `feature-auth`
|
|
97
|
+
Produces a root cause analysis report with confidence level.
|
|
186
98
|
|
|
187
|
-
|
|
188
|
-
- `"JWT Authentication"` → `jwt-authentication`
|
|
99
|
+
### /resolve
|
|
189
100
|
|
|
190
|
-
|
|
101
|
+
Processes issues from `/code-review`:
|
|
191
102
|
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
- **`/design`** → `.docs/design/{topic}-{timestamp}.md`
|
|
197
|
-
- **`/code-review`** → `.docs/audits/{branch}/` (9 audit reports + summary)
|
|
198
|
-
- **`/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
|
|
199
107
|
|
|
200
|
-
|
|
108
|
+
## Auto-Activating Skills
|
|
201
109
|
|
|
202
|
-
|
|
203
|
-
```gitignore
|
|
204
|
-
# Exclude ephemeral catch-up summaries
|
|
205
|
-
.docs/CATCH_UP.md
|
|
110
|
+
The `devflow-core-skills` plugin provides quality enforcement skills that activate automatically:
|
|
206
111
|
|
|
207
|
-
|
|
208
|
-
|
|
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 |
|
|
209
125
|
|
|
210
|
-
|
|
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
|
|
211
137
|
```
|
|
212
138
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
## Development Workflow
|
|
216
|
-
|
|
217
|
-
### Starting a Session
|
|
218
|
-
1. `/catch-up` - Review what was done previously
|
|
219
|
-
2. Check statusline for current model, git state, duration
|
|
220
|
-
3. Review recommended next actions
|
|
221
|
-
|
|
222
|
-
### During Development
|
|
223
|
-
1. **Skills auto-activate** - `research` skill triggers for unfamiliar features, `pattern-check` validates architecture
|
|
224
|
-
2. **Plan your work** - `/plan` to triage issues, or `/breakdown` for quick task capture
|
|
225
|
-
3. **Implement efficiently** - `/implement` flows through todos automatically
|
|
226
|
-
4. **Code with confidence** - Skills catch anti-patterns and violations during implementation
|
|
227
|
-
5. `/code-review` - Review changes before committing
|
|
228
|
-
6. `/commit` - Create intelligent atomic commits
|
|
229
|
-
|
|
230
|
-
### Creating Pull Requests
|
|
231
|
-
1. `/code-review` - Comprehensive branch review
|
|
232
|
-
2. `/commit` - Final commits with validation
|
|
233
|
-
3. `/pull-request` - Create PR with smart description
|
|
234
|
-
4. Wait for review feedback
|
|
235
|
-
5. `/resolve-comments` - Address feedback systematically
|
|
236
|
-
6. Repeat steps 4-5 until approved
|
|
237
|
-
|
|
238
|
-
### Ending a Session
|
|
239
|
-
1. `/devlog` - Document decisions and state
|
|
240
|
-
2. `/code-review` - Review branch before creating PR
|
|
241
|
-
3. `/commit` - Final commits with validation
|
|
242
|
-
4. `/pull-request` - Create PR if ready
|
|
243
|
-
|
|
244
|
-
### Creating a Release
|
|
245
|
-
1. `/code-review` - Comprehensive branch review
|
|
246
|
-
2. `/release` - Automated release workflow
|
|
247
|
-
- Detects project type (Node.js, Rust, Python, Go, etc.)
|
|
248
|
-
- Analyzes commits and suggests version bump
|
|
249
|
-
- Generates changelog from git history
|
|
250
|
-
- Builds and tests before publishing
|
|
251
|
-
- Creates git tags and platform releases
|
|
252
|
-
3. Verify package in registry
|
|
253
|
-
|
|
254
|
-
### When Things Go Wrong
|
|
255
|
-
1. **Skills auto-activate** - `debug` skill triggers on errors/failures with systematic approach
|
|
256
|
-
2. Check git log and recent commits
|
|
257
|
-
3. Revert changes using git
|
|
258
|
-
4. Document lessons learned in `.docs/debug/`
|
|
259
|
-
|
|
260
|
-
## CLI Commands
|
|
261
|
-
|
|
262
|
-
| Command | Purpose | Options |
|
|
263
|
-
|---------|---------|---------|
|
|
264
|
-
| `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 |
|
|
265
|
-
| `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 |
|
|
266
|
-
|
|
267
|
-
**What `npx devflow-kit init` does:**
|
|
268
|
-
|
|
269
|
-
**User Scope** (default):
|
|
270
|
-
- Installs commands to `~/.claude/commands/devflow/`
|
|
271
|
-
- Installs sub-agents to `~/.claude/agents/devflow/`
|
|
272
|
-
- Installs skills to `~/.claude/skills/`
|
|
273
|
-
- Installs scripts to `~/.devflow/scripts/`
|
|
274
|
-
- Updates `~/.claude/settings.json` (statusline and model)
|
|
275
|
-
- Creates `.claudeignore` at git repository root
|
|
276
|
-
- Creates `.docs/` structure for project documentation
|
|
277
|
-
|
|
278
|
-
**Local Scope** (`--scope local`):
|
|
279
|
-
- Installs commands to `<git-root>/.claude/commands/devflow/`
|
|
280
|
-
- Installs sub-agents to `<git-root>/.claude/agents/devflow/`
|
|
281
|
-
- Installs skills to `<git-root>/.claude/skills/`
|
|
282
|
-
- Installs scripts to `<git-root>/.devflow/scripts/`
|
|
283
|
-
- Creates `<git-root>/.claude/settings.json` (statusline and model)
|
|
284
|
-
- Creates `.claudeignore` at git repository root
|
|
285
|
-
- Creates `.docs/` structure for project documentation
|
|
286
|
-
- Adds `.claude/` and `.devflow/` to `.gitignore`
|
|
287
|
-
|
|
288
|
-
**First Run:**
|
|
139
|
+
### Install Specific Plugins
|
|
140
|
+
|
|
289
141
|
```bash
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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
|
|
293
179
|
```
|
|
294
180
|
|
|
295
|
-
##
|
|
181
|
+
## Workflow Examples
|
|
296
182
|
|
|
297
|
-
###
|
|
183
|
+
### Implementing a Feature
|
|
298
184
|
```bash
|
|
299
|
-
#
|
|
300
|
-
|
|
185
|
+
/specify # Define the feature with clarification gates
|
|
186
|
+
/implement # Execute the full lifecycle
|
|
301
187
|
```
|
|
302
188
|
|
|
303
|
-
###
|
|
189
|
+
### Debugging an Issue
|
|
304
190
|
```bash
|
|
305
|
-
|
|
306
|
-
/
|
|
307
|
-
git add .docs/status/
|
|
308
|
-
git commit -m "Session status: completed user auth feature"
|
|
191
|
+
/debug "login fails after session timeout"
|
|
192
|
+
/debug #42 # Investigate from GitHub issue
|
|
309
193
|
```
|
|
310
194
|
|
|
311
|
-
###
|
|
195
|
+
### Before Creating a PR
|
|
312
196
|
```bash
|
|
313
|
-
#
|
|
314
|
-
|
|
315
|
-
"Fix this error" # debug skill activates and guides systematic approach
|
|
316
|
-
|
|
317
|
-
# Manual command invocation for structured workflows
|
|
318
|
-
/brainstorm user authentication # Explore architectural approaches
|
|
319
|
-
/design JWT token system # Create detailed implementation plan
|
|
320
|
-
/code-review # Review changes before committing
|
|
321
|
-
/commit # Create atomic commits
|
|
322
|
-
/release # Automated release workflow
|
|
197
|
+
/code-review # Multi-perspective code review
|
|
198
|
+
/resolve # Fix low-risk issues, defer high-risk to backlog
|
|
323
199
|
```
|
|
324
200
|
|
|
325
|
-
|
|
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 |
|
|
326
222
|
|
|
327
|
-
|
|
223
|
+
### Uninstall Options
|
|
328
224
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
225
|
+
| Option | Description |
|
|
226
|
+
|--------|-------------|
|
|
227
|
+
| `--scope <user\|local>` | Uninstall scope (default: user) |
|
|
228
|
+
| `--keep-docs` | Preserve .docs/ directory |
|
|
333
229
|
|
|
334
230
|
## Building from Source
|
|
335
231
|
|
|
336
232
|
```bash
|
|
337
|
-
# Clone and build
|
|
338
233
|
git clone https://github.com/dean0x/devflow.git
|
|
339
234
|
cd devflow
|
|
340
235
|
npm install
|
|
341
236
|
npm run build
|
|
342
|
-
|
|
343
|
-
# Test locally
|
|
344
237
|
node dist/cli.js init
|
|
345
|
-
|
|
346
|
-
# Watch mode for development
|
|
347
|
-
npm run dev
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
**Project Structure:**
|
|
351
238
|
```
|
|
352
|
-
src/
|
|
353
|
-
├── cli/ # CLI source code (TypeScript)
|
|
354
|
-
│ ├── commands/ # init.ts, uninstall.ts
|
|
355
|
-
│ └── cli.ts # CLI entry point
|
|
356
|
-
└── claude/ # Claude Code configuration
|
|
357
|
-
├── agents/devflow/ # Sub-agent definitions (.md)
|
|
358
|
-
├── commands/devflow/ # Slash command definitions (.md)
|
|
359
|
-
├── skills/devflow/ # Skill source (installed flat to ~/.claude/skills/)
|
|
360
|
-
├── scripts/ # statusline.sh
|
|
361
|
-
└── settings.json # Claude Code settings
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
## Support
|
|
365
|
-
|
|
366
|
-
- Check installed command documentation
|
|
367
|
-
- Review `.docs/status/` for recent sessions
|
|
368
|
-
- Skills auto-activate for systematic troubleshooting
|
|
369
|
-
- Report issues at https://github.com/dean0x/devflow/issues
|
|
370
239
|
|
|
371
240
|
## License
|
|
372
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
|