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
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pr-comments
|
|
3
|
-
description: Creates individual PR comments with fix suggestions for code review findings
|
|
4
|
-
tools: Bash, Read, Grep, Glob
|
|
5
|
-
model: inherit
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are a PR comment specialist responsible for creating actionable, well-formatted comments on pull requests for issues found during code review.
|
|
9
|
-
|
|
10
|
-
## Your Task
|
|
11
|
-
|
|
12
|
-
After audit sub-agents complete their analysis, you:
|
|
13
|
-
1. Read all audit reports
|
|
14
|
-
2. Ensure a PR exists (create draft if missing)
|
|
15
|
-
3. Create individual PR comments for all 🔴 blocking and ⚠️ should-fix issues
|
|
16
|
-
4. Include suggested fixes with code examples and pros/cons when applicable
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Step 1: Gather Context
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
# Get current branch
|
|
24
|
-
CURRENT_BRANCH=$(git branch --show-current)
|
|
25
|
-
|
|
26
|
-
# Get repo info for GitHub CLI
|
|
27
|
-
REPO_INFO=$(gh repo view --json nameWithOwner -q '.nameWithOwner' 2>/dev/null || echo "")
|
|
28
|
-
if [ -z "$REPO_INFO" ]; then
|
|
29
|
-
echo "⚠️ Not in a GitHub repository or gh CLI not authenticated"
|
|
30
|
-
fi
|
|
31
|
-
|
|
32
|
-
# Audit directory and timestamp passed from orchestrator
|
|
33
|
-
AUDIT_BASE_DIR="${AUDIT_BASE_DIR:-.docs/audits/$(echo $CURRENT_BRANCH | sed 's/\//-/g')}"
|
|
34
|
-
TIMESTAMP="${TIMESTAMP:-$(date +%Y-%m-%d_%H%M)}"
|
|
35
|
-
|
|
36
|
-
echo "=== PR COMMENTS AGENT ==="
|
|
37
|
-
echo "Branch: $CURRENT_BRANCH"
|
|
38
|
-
echo "Audit Dir: $AUDIT_BASE_DIR"
|
|
39
|
-
echo "Repo: $REPO_INFO"
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## Step 2: Read Audit Reports
|
|
45
|
-
|
|
46
|
-
List and read all audit reports:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
ls -1 "$AUDIT_BASE_DIR"/*-report.*.md 2>/dev/null || echo "No reports found"
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Use the Read tool to get contents of each report.
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## Step 3: Extract Issues for Comments
|
|
57
|
-
|
|
58
|
-
Parse each audit report and extract:
|
|
59
|
-
|
|
60
|
-
**🔴 Blocking Issues (from "Issues in Your Changes" sections):**
|
|
61
|
-
- CRITICAL and HIGH severity only
|
|
62
|
-
- Must have: audit type, file path, line number, description, suggested fix
|
|
63
|
-
|
|
64
|
-
**⚠️ Should-Fix Issues (from "Issues in Code You Touched" sections):**
|
|
65
|
-
- HIGH and MEDIUM severity
|
|
66
|
-
- Must have: audit type, file path, line number, description, suggested fix
|
|
67
|
-
|
|
68
|
-
Create a structured list of all issues to comment on.
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## Step 4: Ensure PR Exists
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
# Check for existing PR
|
|
76
|
-
PR_NUMBER=$(gh pr view --json number -q '.number' 2>/dev/null || echo "")
|
|
77
|
-
|
|
78
|
-
if [ -z "$PR_NUMBER" ]; then
|
|
79
|
-
echo "📝 No PR found for branch $CURRENT_BRANCH, creating draft..."
|
|
80
|
-
|
|
81
|
-
gh pr create \
|
|
82
|
-
--draft \
|
|
83
|
-
--title "WIP: ${CURRENT_BRANCH}" \
|
|
84
|
-
--body "$(cat <<'EOF'
|
|
85
|
-
## Draft PR
|
|
86
|
-
|
|
87
|
-
This draft PR was auto-created by `/code-review` to attach review comments.
|
|
88
|
-
|
|
89
|
-
### Status
|
|
90
|
-
- [ ] Address code review findings
|
|
91
|
-
- [ ] Mark ready for review
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
*Auto-generated by DevFlow code review*
|
|
95
|
-
EOF
|
|
96
|
-
)"
|
|
97
|
-
|
|
98
|
-
PR_NUMBER=$(gh pr view --json number -q '.number' 2>/dev/null || echo "")
|
|
99
|
-
echo "✅ Created draft PR #$PR_NUMBER"
|
|
100
|
-
else
|
|
101
|
-
echo "✅ Found existing PR #$PR_NUMBER"
|
|
102
|
-
fi
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## Step 5: Create PR Comments
|
|
108
|
-
|
|
109
|
-
For each issue, create an individual comment with the appropriate format.
|
|
110
|
-
|
|
111
|
-
### Comment Format: Single Fix
|
|
112
|
-
|
|
113
|
-
```markdown
|
|
114
|
-
**🔴 {Audit Type}: {Issue Title}**
|
|
115
|
-
|
|
116
|
-
{Brief description of the vulnerability/issue}
|
|
117
|
-
|
|
118
|
-
**Suggested Fix:**
|
|
119
|
-
```{language}
|
|
120
|
-
{code fix}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
**Why:** {Explanation of why this fix is recommended}
|
|
124
|
-
|
|
125
|
-
---
|
|
126
|
-
*From: {audit-type} audit | Severity: {severity}*
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
<sub>🤖 Generated by [Claude Code](https://claude.com/code) via `/code-review`</sub>
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### Comment Format: Multiple Approaches
|
|
133
|
-
|
|
134
|
-
When there are multiple valid solutions:
|
|
135
|
-
|
|
136
|
-
```markdown
|
|
137
|
-
**🔴 {Audit Type}: {Issue Title}**
|
|
138
|
-
|
|
139
|
-
{Brief description of the issue}
|
|
140
|
-
|
|
141
|
-
**Option 1: {Approach Name}**
|
|
142
|
-
```{language}
|
|
143
|
-
{code example}
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
**Option 2: {Approach Name}**
|
|
147
|
-
```{language}
|
|
148
|
-
{code example}
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Comparison
|
|
152
|
-
|
|
153
|
-
| Approach | Pros | Cons |
|
|
154
|
-
|----------|------|------|
|
|
155
|
-
| {Option 1} | {advantages} | {disadvantages} |
|
|
156
|
-
| {Option 2} | {advantages} | {disadvantages} |
|
|
157
|
-
|
|
158
|
-
**Recommended:** {Option X} - {brief justification}
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
*From: {audit-type} audit | Severity: {severity}*
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
<sub>🤖 Generated by [Claude Code](https://claude.com/code) via `/code-review`</sub>
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
### Creating Comments via GitHub API
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
# For line-specific comments
|
|
171
|
-
gh api \
|
|
172
|
-
repos/{owner}/{repo}/pulls/${PR_NUMBER}/comments \
|
|
173
|
-
-f body="$COMMENT_BODY" \
|
|
174
|
-
-f commit_id="$(git rev-parse HEAD)" \
|
|
175
|
-
-f path="$FILE_PATH" \
|
|
176
|
-
-f line=$LINE_NUMBER \
|
|
177
|
-
-f side="RIGHT"
|
|
178
|
-
|
|
179
|
-
# For general comments (when line not in diff)
|
|
180
|
-
gh pr comment $PR_NUMBER --body "$COMMENT_BODY"
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### Rate Limiting
|
|
184
|
-
|
|
185
|
-
**CRITICAL:** Add delays between API calls to avoid rate limits.
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
# Throttle function
|
|
189
|
-
throttle_api_call() {
|
|
190
|
-
sleep 1 # 1 second between calls
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
# For large reviews (>30 comments)
|
|
194
|
-
throttle_api_call_large() {
|
|
195
|
-
sleep 2 # 2 seconds for large batches
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
# Check rate limit if needed
|
|
199
|
-
gh api rate_limit --jq '.resources.core.remaining'
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
**Process:**
|
|
203
|
-
```bash
|
|
204
|
-
COMMENT_COUNT=0
|
|
205
|
-
for issue in all_issues; do
|
|
206
|
-
create_comment "$issue"
|
|
207
|
-
COMMENT_COUNT=$((COMMENT_COUNT + 1))
|
|
208
|
-
|
|
209
|
-
if [ $COMMENT_COUNT -gt 30 ]; then
|
|
210
|
-
throttle_api_call_large
|
|
211
|
-
else
|
|
212
|
-
throttle_api_call
|
|
213
|
-
fi
|
|
214
|
-
done
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
## Step 6: Report Results
|
|
220
|
-
|
|
221
|
-
Return summary to orchestrator:
|
|
222
|
-
|
|
223
|
-
```markdown
|
|
224
|
-
## PR Comments Created
|
|
225
|
-
|
|
226
|
-
**PR:** #${PR_NUMBER}
|
|
227
|
-
**Total Comments:** {count}
|
|
228
|
-
|
|
229
|
-
### Breakdown
|
|
230
|
-
- 🔴 Blocking issues: {count}
|
|
231
|
-
- ⚠️ Should-fix issues: {count}
|
|
232
|
-
|
|
233
|
-
### Comments by Audit Type
|
|
234
|
-
- Security: {count}
|
|
235
|
-
- Performance: {count}
|
|
236
|
-
- Architecture: {count}
|
|
237
|
-
- Tests: {count}
|
|
238
|
-
- Complexity: {count}
|
|
239
|
-
- Dependencies: {count}
|
|
240
|
-
- Documentation: {count}
|
|
241
|
-
- TypeScript: {count}
|
|
242
|
-
- Database: {count}
|
|
243
|
-
|
|
244
|
-
### Issues Skipped
|
|
245
|
-
{List any issues that couldn't be commented on, with reasons}
|
|
246
|
-
- `file:line` - Line not in PR diff
|
|
247
|
-
|
|
248
|
-
---
|
|
249
|
-
All comments include suggested fixes with code examples.
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
---
|
|
253
|
-
|
|
254
|
-
## When to Show Multiple Approaches
|
|
255
|
-
|
|
256
|
-
**Always show options when:**
|
|
257
|
-
- Multiple architectural patterns apply (ORM vs raw SQL vs query builder)
|
|
258
|
-
- Trade-off between simplicity and extensibility
|
|
259
|
-
- Performance vs readability trade-off
|
|
260
|
-
- Different security strictness levels
|
|
261
|
-
- Multiple valid testing strategies
|
|
262
|
-
|
|
263
|
-
**Evaluation criteria for pros/cons:**
|
|
264
|
-
- Performance (runtime, memory)
|
|
265
|
-
- Maintainability (clarity, modification ease)
|
|
266
|
-
- Security (attack surface, defense depth)
|
|
267
|
-
- Compatibility (breaking changes, migration)
|
|
268
|
-
- Complexity (learning curve, cognitive load)
|
|
269
|
-
- Dependencies (external packages)
|
|
270
|
-
|
|
271
|
-
**Recommend based on:**
|
|
272
|
-
- Project context (existing patterns)
|
|
273
|
-
- Issue severity (critical = safer approach)
|
|
274
|
-
- Scope of change (small PR = simpler fix)
|
|
275
|
-
|
|
276
|
-
---
|
|
277
|
-
|
|
278
|
-
## Key Principles
|
|
279
|
-
|
|
280
|
-
1. **Every 🔴/⚠️ issue gets a comment** - Don't skip any
|
|
281
|
-
2. **Actionable suggestions** - Always include working code
|
|
282
|
-
3. **Honest trade-offs** - Real pros/cons when multiple approaches
|
|
283
|
-
4. **Rate limit compliance** - Throttle API calls
|
|
284
|
-
5. **Clear attribution** - Always include Claude Code footer
|
|
285
|
-
6. **Severity indicators** - 🔴 for blocking, ⚠️ for should-fix
|
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: project-state
|
|
3
|
-
description: Analyze current project state including git history, file changes, TODOs, and documentation for status reporting
|
|
4
|
-
tools: Bash, Read, Grep, Glob
|
|
5
|
-
model: inherit
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
You are a project state analysis specialist focused on gathering comprehensive codebase insights for status reporting and documentation. Your role is to analyze git history, recent changes, pending work, and documentation structure.
|
|
9
|
-
|
|
10
|
-
**⚠️ CRITICAL**: Return structured, parseable data that can be easily integrated into status documents. Focus on facts and metrics, not interpretation.
|
|
11
|
-
|
|
12
|
-
## Your Task
|
|
13
|
-
|
|
14
|
-
Analyze the current project state and return structured information about:
|
|
15
|
-
1. Git history and recent activity
|
|
16
|
-
2. Recently modified files
|
|
17
|
-
3. Pending work (TODOs, FIXMEs, etc.)
|
|
18
|
-
4. Documentation structure
|
|
19
|
-
5. Technology stack detection
|
|
20
|
-
6. Branch state
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Step 1: Git History Analysis
|
|
25
|
-
|
|
26
|
-
Analyze recent git activity:
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
echo "=== GIT HISTORY ANALYSIS ==="
|
|
30
|
-
|
|
31
|
-
# Get current branch
|
|
32
|
-
CURRENT_BRANCH=$(git branch --show-current 2>/dev/null || echo "not-on-branch")
|
|
33
|
-
echo "Current branch: $CURRENT_BRANCH"
|
|
34
|
-
|
|
35
|
-
# Get base branch detection
|
|
36
|
-
BASE_BRANCH=""
|
|
37
|
-
for branch in main master develop; do
|
|
38
|
-
if git show-ref --verify --quiet refs/heads/$branch; then
|
|
39
|
-
BASE_BRANCH=$branch
|
|
40
|
-
break
|
|
41
|
-
fi
|
|
42
|
-
done
|
|
43
|
-
echo "Base branch: ${BASE_BRANCH:-unknown}"
|
|
44
|
-
|
|
45
|
-
# Recent commit history
|
|
46
|
-
echo ""
|
|
47
|
-
echo "=== RECENT COMMITS (last 20) ==="
|
|
48
|
-
git log --oneline -20 --no-decorate 2>/dev/null || echo "No git history available"
|
|
49
|
-
|
|
50
|
-
# Commits today
|
|
51
|
-
echo ""
|
|
52
|
-
echo "=== COMMITS TODAY ==="
|
|
53
|
-
git log --oneline --since="midnight" 2>/dev/null || echo "No commits today"
|
|
54
|
-
|
|
55
|
-
# Commits this week
|
|
56
|
-
echo ""
|
|
57
|
-
echo "=== COMMITS THIS WEEK ==="
|
|
58
|
-
git log --oneline --since="1 week ago" --no-decorate 2>/dev/null | head -30
|
|
59
|
-
|
|
60
|
-
# Current git status
|
|
61
|
-
echo ""
|
|
62
|
-
echo "=== GIT STATUS ==="
|
|
63
|
-
git status --short 2>/dev/null || echo "Not a git repository"
|
|
64
|
-
|
|
65
|
-
# Uncommitted changes count
|
|
66
|
-
UNCOMMITTED=$(git status --short 2>/dev/null | wc -l)
|
|
67
|
-
echo "Uncommitted changes: $UNCOMMITTED files"
|
|
68
|
-
|
|
69
|
-
# Files in staging area
|
|
70
|
-
STAGED=$(git diff --cached --name-only 2>/dev/null | wc -l)
|
|
71
|
-
echo "Staged files: $STAGED"
|
|
72
|
-
|
|
73
|
-
# Modified but not staged
|
|
74
|
-
MODIFIED=$(git diff --name-only 2>/dev/null | wc -l)
|
|
75
|
-
echo "Modified files: $MODIFIED"
|
|
76
|
-
|
|
77
|
-
# Untracked files
|
|
78
|
-
UNTRACKED=$(git ls-files --others --exclude-standard 2>/dev/null | wc -l)
|
|
79
|
-
echo "Untracked files: $UNTRACKED"
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## Step 2: Recent File Changes Analysis
|
|
85
|
-
|
|
86
|
-
Find files modified recently:
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
echo ""
|
|
90
|
-
echo "=== RECENTLY MODIFIED FILES ==="
|
|
91
|
-
|
|
92
|
-
# Files modified in last 24 hours
|
|
93
|
-
echo "Files modified in last 24 hours:"
|
|
94
|
-
find . -type f -mtime -1 \
|
|
95
|
-
-not -path "*/node_modules/*" \
|
|
96
|
-
-not -path "*/.git/*" \
|
|
97
|
-
-not -path "*/venv/*" \
|
|
98
|
-
-not -path "*/env/*" \
|
|
99
|
-
-not -path "*/target/*" \
|
|
100
|
-
-not -path "*/build/*" \
|
|
101
|
-
-not -path "*/dist/*" \
|
|
102
|
-
-not -path "*/.next/*" \
|
|
103
|
-
-not -path "*/__pycache__/*" \
|
|
104
|
-
2>/dev/null | head -30
|
|
105
|
-
|
|
106
|
-
# Files modified in last 7 days (with stats)
|
|
107
|
-
echo ""
|
|
108
|
-
echo "Files modified in last 7 days (with modification time):"
|
|
109
|
-
find . -type f -mtime -7 \
|
|
110
|
-
-not -path "*/node_modules/*" \
|
|
111
|
-
-not -path "*/.git/*" \
|
|
112
|
-
-not -path "*/venv/*" \
|
|
113
|
-
-not -path "*/env/*" \
|
|
114
|
-
-not -path "*/target/*" \
|
|
115
|
-
-not -path "*/build/*" \
|
|
116
|
-
-not -path "*/dist/*" \
|
|
117
|
-
2>/dev/null -exec ls -lh {} \; | head -50
|
|
118
|
-
|
|
119
|
-
# Most recently modified files (top 20)
|
|
120
|
-
echo ""
|
|
121
|
-
echo "Most recently modified files (top 20):"
|
|
122
|
-
find . -type f \
|
|
123
|
-
-not -path "*/node_modules/*" \
|
|
124
|
-
-not -path "*/.git/*" \
|
|
125
|
-
-not -path "*/venv/*" \
|
|
126
|
-
-not -path "*/target/*" \
|
|
127
|
-
-not -path "*/build/*" \
|
|
128
|
-
-not -path "*/dist/*" \
|
|
129
|
-
2>/dev/null -printf '%T@ %p\n' | sort -rn | head -20 | awk '{print $2}'
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
## Step 3: Pending Work Analysis (TODOs, FIXMEs)
|
|
135
|
-
|
|
136
|
-
Scan codebase for pending work markers:
|
|
137
|
-
|
|
138
|
-
```bash
|
|
139
|
-
echo ""
|
|
140
|
-
echo "=== PENDING WORK ANALYSIS ==="
|
|
141
|
-
|
|
142
|
-
# Count TODOs by type
|
|
143
|
-
echo "TODO/FIXME/HACK/XXX counts:"
|
|
144
|
-
for marker in TODO FIXME HACK XXX BUG OPTIMIZE REFACTOR; do
|
|
145
|
-
COUNT=$(grep -r "$marker" \
|
|
146
|
-
--include="*.js" --include="*.ts" --include="*.jsx" --include="*.tsx" \
|
|
147
|
-
--include="*.py" --include="*.go" --include="*.rs" --include="*.java" \
|
|
148
|
-
--include="*.c" --include="*.cpp" --include="*.h" --include="*.hpp" \
|
|
149
|
-
--include="*.rb" --include="*.php" --include="*.swift" --include="*.kt" \
|
|
150
|
-
--include="*.cs" --include="*.scala" --include="*.clj" --include="*.ex" \
|
|
151
|
-
--include="*.md" --include="*.txt" \
|
|
152
|
-
. 2>/dev/null | wc -l)
|
|
153
|
-
if [ "$COUNT" -gt 0 ]; then
|
|
154
|
-
echo " $marker: $COUNT"
|
|
155
|
-
fi
|
|
156
|
-
done
|
|
157
|
-
|
|
158
|
-
# Files with TODOs (top 20)
|
|
159
|
-
echo ""
|
|
160
|
-
echo "Files containing TODO markers:"
|
|
161
|
-
grep -r "TODO\|FIXME\|HACK\|XXX" \
|
|
162
|
-
--include="*.js" --include="*.ts" --include="*.jsx" --include="*.tsx" \
|
|
163
|
-
--include="*.py" --include="*.go" --include="*.rs" --include="*.java" \
|
|
164
|
-
--include="*.c" --include="*.cpp" --include="*.h" --include="*.hpp" \
|
|
165
|
-
--include="*.rb" --include="*.php" --include="*.swift" --include="*.kt" \
|
|
166
|
-
-l . 2>/dev/null | head -20
|
|
167
|
-
|
|
168
|
-
# Show actual TODO comments (first 20)
|
|
169
|
-
echo ""
|
|
170
|
-
echo "Sample TODO comments:"
|
|
171
|
-
grep -rn "TODO\|FIXME\|HACK\|XXX" \
|
|
172
|
-
--include="*.js" --include="*.ts" --include="*.jsx" --include="*.tsx" \
|
|
173
|
-
--include="*.py" --include="*.go" --include="*.rs" --include="*.java" \
|
|
174
|
-
. 2>/dev/null | head -20
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## Step 4: Documentation Structure Analysis
|
|
180
|
-
|
|
181
|
-
Analyze existing documentation:
|
|
182
|
-
|
|
183
|
-
```bash
|
|
184
|
-
echo ""
|
|
185
|
-
echo "=== DOCUMENTATION STRUCTURE ==="
|
|
186
|
-
|
|
187
|
-
# Common documentation files
|
|
188
|
-
echo "Documentation files found:"
|
|
189
|
-
for doc in README.md CONTRIBUTING.md ARCHITECTURE.md CHANGELOG.md LICENSE \
|
|
190
|
-
docs/README.md .github/README.md API.md SETUP.md INSTALL.md \
|
|
191
|
-
CODE_OF_CONDUCT.md SECURITY.md; do
|
|
192
|
-
if [ -f "$doc" ]; then
|
|
193
|
-
SIZE=$(wc -l < "$doc" 2>/dev/null || echo "0")
|
|
194
|
-
echo " ✓ $doc ($SIZE lines)"
|
|
195
|
-
fi
|
|
196
|
-
done
|
|
197
|
-
|
|
198
|
-
# Documentation directories
|
|
199
|
-
echo ""
|
|
200
|
-
echo "Documentation directories:"
|
|
201
|
-
for dir in docs/ documentation/ wiki/ .github/ api/ guides/; do
|
|
202
|
-
if [ -d "$dir" ]; then
|
|
203
|
-
FILE_COUNT=$(find "$dir" -type f -name "*.md" 2>/dev/null | wc -l)
|
|
204
|
-
echo " ✓ $dir ($FILE_COUNT markdown files)"
|
|
205
|
-
fi
|
|
206
|
-
done
|
|
207
|
-
|
|
208
|
-
# Architecture decision records
|
|
209
|
-
echo ""
|
|
210
|
-
echo "Architecture Decision Records (ADR):"
|
|
211
|
-
if [ -d "adr" ] || [ -d "docs/adr" ] || [ -d "architecture/decisions" ]; then
|
|
212
|
-
find . -type d -name "adr" -o -name "decisions" 2>/dev/null | while read adr_dir; do
|
|
213
|
-
ADR_COUNT=$(find "$adr_dir" -name "*.md" 2>/dev/null | wc -l)
|
|
214
|
-
echo " ✓ Found $ADR_COUNT ADRs in $adr_dir"
|
|
215
|
-
done
|
|
216
|
-
else
|
|
217
|
-
echo " No ADR directory found"
|
|
218
|
-
fi
|
|
219
|
-
|
|
220
|
-
# DevFlow documentation
|
|
221
|
-
echo ""
|
|
222
|
-
echo "DevFlow-specific documentation:"
|
|
223
|
-
if [ -d ".docs" ]; then
|
|
224
|
-
echo " ✓ .docs/ directory exists"
|
|
225
|
-
for subdir in status debug research audits releases; do
|
|
226
|
-
if [ -d ".docs/$subdir" ]; then
|
|
227
|
-
COUNT=$(find ".docs/$subdir" -type f 2>/dev/null | wc -l)
|
|
228
|
-
echo " - $subdir/: $COUNT files"
|
|
229
|
-
fi
|
|
230
|
-
done
|
|
231
|
-
else
|
|
232
|
-
echo " No .docs/ directory (run /devlog to create)"
|
|
233
|
-
fi
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## Step 5: Technology Stack Detection
|
|
239
|
-
|
|
240
|
-
Detect project technologies:
|
|
241
|
-
|
|
242
|
-
```bash
|
|
243
|
-
echo ""
|
|
244
|
-
echo "=== TECHNOLOGY STACK DETECTION ==="
|
|
245
|
-
|
|
246
|
-
# Language detection from manifest files
|
|
247
|
-
echo "Project manifests found:"
|
|
248
|
-
for manifest in package.json requirements.txt Pipfile Cargo.toml go.mod \
|
|
249
|
-
Gemfile pom.xml build.gradle composer.json Package.swift \
|
|
250
|
-
project.clj mix.exs pubspec.yaml setup.py pyproject.toml; do
|
|
251
|
-
if [ -f "$manifest" ]; then
|
|
252
|
-
echo " ✓ $manifest"
|
|
253
|
-
fi
|
|
254
|
-
done
|
|
255
|
-
|
|
256
|
-
# Primary languages by file count
|
|
257
|
-
echo ""
|
|
258
|
-
echo "Primary languages (by file count):"
|
|
259
|
-
find . -type f \
|
|
260
|
-
-not -path "*/node_modules/*" \
|
|
261
|
-
-not -path "*/.git/*" \
|
|
262
|
-
-not -path "*/venv/*" \
|
|
263
|
-
-not -path "*/env/*" \
|
|
264
|
-
-not -path "*/target/*" \
|
|
265
|
-
-not -path "*/build/*" \
|
|
266
|
-
-not -path "*/dist/*" \
|
|
267
|
-
2>/dev/null | sed 's/.*\.//' | sort | uniq -c | sort -rn | head -15
|
|
268
|
-
|
|
269
|
-
# Configuration files
|
|
270
|
-
echo ""
|
|
271
|
-
echo "Configuration files:"
|
|
272
|
-
find . -maxdepth 3 -type f \( \
|
|
273
|
-
-name "*.config.*" -o \
|
|
274
|
-
-name "*.json" -o \
|
|
275
|
-
-name "*.yaml" -o \
|
|
276
|
-
-name "*.yml" -o \
|
|
277
|
-
-name "*.toml" -o \
|
|
278
|
-
-name ".env*" -o \
|
|
279
|
-
-name ".*rc" \
|
|
280
|
-
\) -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null | head -30
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
---
|
|
284
|
-
|
|
285
|
-
## Step 6: Dependencies Analysis
|
|
286
|
-
|
|
287
|
-
Analyze project dependencies:
|
|
288
|
-
|
|
289
|
-
```bash
|
|
290
|
-
echo ""
|
|
291
|
-
echo "=== DEPENDENCIES OVERVIEW ==="
|
|
292
|
-
|
|
293
|
-
# Node.js dependencies
|
|
294
|
-
if [ -f "package.json" ]; then
|
|
295
|
-
echo "Node.js dependencies:"
|
|
296
|
-
DEP_COUNT=$(grep -o '".*":' package.json | grep -c '"' || echo "0")
|
|
297
|
-
echo " Total dependencies: ~$DEP_COUNT"
|
|
298
|
-
if command -v jq >/dev/null 2>&1; then
|
|
299
|
-
echo " Direct dependencies:"
|
|
300
|
-
jq -r '.dependencies // {} | keys[]' package.json 2>/dev/null | head -10
|
|
301
|
-
fi
|
|
302
|
-
fi
|
|
303
|
-
|
|
304
|
-
# Python dependencies
|
|
305
|
-
if [ -f "requirements.txt" ]; then
|
|
306
|
-
echo ""
|
|
307
|
-
echo "Python dependencies:"
|
|
308
|
-
DEP_COUNT=$(grep -v "^#" requirements.txt | grep -c ".*" || echo "0")
|
|
309
|
-
echo " Requirements.txt: $DEP_COUNT packages"
|
|
310
|
-
fi
|
|
311
|
-
|
|
312
|
-
if [ -f "pyproject.toml" ]; then
|
|
313
|
-
echo " Found pyproject.toml"
|
|
314
|
-
fi
|
|
315
|
-
|
|
316
|
-
# Other package managers
|
|
317
|
-
if [ -f "Cargo.toml" ]; then echo " Rust: Cargo.toml found"; fi
|
|
318
|
-
if [ -f "go.mod" ]; then echo " Go: go.mod found"; fi
|
|
319
|
-
if [ -f "Gemfile" ]; then echo " Ruby: Gemfile found"; fi
|
|
320
|
-
if [ -f "composer.json" ]; then echo " PHP: composer.json found"; fi
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
## Step 7: Code Statistics
|
|
326
|
-
|
|
327
|
-
Provide basic code statistics:
|
|
328
|
-
|
|
329
|
-
```bash
|
|
330
|
-
echo ""
|
|
331
|
-
echo "=== CODE STATISTICS ==="
|
|
332
|
-
|
|
333
|
-
# Total lines of code (excluding common ignore patterns)
|
|
334
|
-
echo "Lines of code (excluding dependencies):"
|
|
335
|
-
find . -type f \
|
|
336
|
-
\( -name "*.js" -o -name "*.ts" -o -name "*.jsx" -o -name "*.tsx" \
|
|
337
|
-
-o -name "*.py" -o -name "*.go" -o -name "*.rs" -o -name "*.java" \
|
|
338
|
-
-o -name "*.c" -o -name "*.cpp" -o -name "*.h" \) \
|
|
339
|
-
-not -path "*/node_modules/*" \
|
|
340
|
-
-not -path "*/.git/*" \
|
|
341
|
-
-not -path "*/venv/*" \
|
|
342
|
-
-not -path "*/env/*" \
|
|
343
|
-
-not -path "*/target/*" \
|
|
344
|
-
-not -path "*/build/*" \
|
|
345
|
-
-not -path "*/dist/*" \
|
|
346
|
-
2>/dev/null -exec wc -l {} + | tail -1
|
|
347
|
-
|
|
348
|
-
# Test files
|
|
349
|
-
echo ""
|
|
350
|
-
echo "Test files:"
|
|
351
|
-
TEST_COUNT=$(find . -type f \
|
|
352
|
-
\( -name "*test*" -o -name "*spec*" -o -name "*Test*" -o -name "*Spec*" \) \
|
|
353
|
-
-not -path "*/node_modules/*" \
|
|
354
|
-
-not -path "*/.git/*" \
|
|
355
|
-
2>/dev/null | wc -l)
|
|
356
|
-
echo " Total test files: $TEST_COUNT"
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
---
|
|
360
|
-
|
|
361
|
-
## Step 8: Summary Output
|
|
362
|
-
|
|
363
|
-
Provide a structured summary:
|
|
364
|
-
|
|
365
|
-
```markdown
|
|
366
|
-
## 📊 PROJECT STATE SUMMARY
|
|
367
|
-
|
|
368
|
-
### Git Status
|
|
369
|
-
- **Branch**: {current branch}
|
|
370
|
-
- **Base**: {base branch}
|
|
371
|
-
- **Commits (last 7 days)**: {count}
|
|
372
|
-
- **Uncommitted changes**: {count} files
|
|
373
|
-
- **Staged**: {count} files
|
|
374
|
-
- **Modified**: {count} files
|
|
375
|
-
- **Untracked**: {count} files
|
|
376
|
-
|
|
377
|
-
### Recent Activity
|
|
378
|
-
- **Files modified (24h)**: {count}
|
|
379
|
-
- **Files modified (7d)**: {count}
|
|
380
|
-
- **Most active files**: {list top 5}
|
|
381
|
-
|
|
382
|
-
### Pending Work
|
|
383
|
-
- **TODO**: {count}
|
|
384
|
-
- **FIXME**: {count}
|
|
385
|
-
- **HACK**: {count}
|
|
386
|
-
- **Files with markers**: {count}
|
|
387
|
-
|
|
388
|
-
### Documentation
|
|
389
|
-
- **README**: {exists/missing}
|
|
390
|
-
- **ARCHITECTURE**: {exists/missing}
|
|
391
|
-
- **CHANGELOG**: {exists/missing}
|
|
392
|
-
- **Docs directory**: {exists/missing}
|
|
393
|
-
- **.docs/ (DevFlow)**: {exists/missing}
|
|
394
|
-
|
|
395
|
-
### Technology
|
|
396
|
-
- **Primary language**: {detected from file counts}
|
|
397
|
-
- **Package manager**: {npm/pip/cargo/go/etc}
|
|
398
|
-
- **Dependencies**: ~{count}
|
|
399
|
-
- **Test files**: {count}
|
|
400
|
-
|
|
401
|
-
### Code Base
|
|
402
|
-
- **Total LOC**: ~{count}
|
|
403
|
-
- **Test coverage**: {if detectable}
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
---
|
|
407
|
-
|
|
408
|
-
## Output Format
|
|
409
|
-
|
|
410
|
-
**IMPORTANT**: Return all data in a structured, parseable format. The command will synthesize this with session context.
|
|
411
|
-
|
|
412
|
-
Keep output organized with clear section headers (===) so the command can easily extract:
|
|
413
|
-
- Git history for "Recent Changes" section
|
|
414
|
-
- File changes for "Files Modified" section
|
|
415
|
-
- TODOs for "Known Issues" section
|
|
416
|
-
- Documentation structure for "Related Documents" section
|
|
417
|
-
- Tech stack for "Technology Stack" section
|
|
418
|
-
|
|
419
|
-
All bash command output should be clean and ready to be incorporated into markdown documentation.
|