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
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# Detection Patterns
|
|
2
|
+
|
|
3
|
+
Bash commands and grep patterns for detecting architecture violations. Reference from main SKILL.md.
|
|
4
|
+
|
|
5
|
+
## SOLID Violations
|
|
6
|
+
|
|
7
|
+
### Single Responsibility Violations
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Find god classes (large files)
|
|
11
|
+
find . -name "*.ts" -not -path "*/node_modules/*" -exec wc -l {} \; | \
|
|
12
|
+
sort -rn | head -20
|
|
13
|
+
|
|
14
|
+
# Find classes with too many methods
|
|
15
|
+
grep -rn "class.*{" --include="*.ts" -A 100 | \
|
|
16
|
+
grep -E "^\s+(async\s+)?\w+\(" | \
|
|
17
|
+
awk -F: '{print $1}' | sort | uniq -c | sort -rn | head -20
|
|
18
|
+
|
|
19
|
+
# Find services with too many dependencies (constructor injection)
|
|
20
|
+
grep -rn "constructor(" --include="*service*.ts" -A 10 | \
|
|
21
|
+
grep -E "private|readonly" | \
|
|
22
|
+
awk -F: '{print $1}' | sort | uniq -c | sort -rn | head -20
|
|
23
|
+
|
|
24
|
+
# More than 5 injected dependencies = potential SRP violation
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Open/Closed Violations
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Find switch statements on type fields (often OCP violation)
|
|
31
|
+
grep -rn "switch.*type\|switch.*kind\|switch.*status" --include="*.ts"
|
|
32
|
+
|
|
33
|
+
# Find if-else chains on types
|
|
34
|
+
grep -rn "if.*type\s*===\|if.*type\s*==" --include="*.ts" -A 5 | \
|
|
35
|
+
grep -E "else if.*type"
|
|
36
|
+
|
|
37
|
+
# Find instanceof checks (often indicates missing polymorphism)
|
|
38
|
+
grep -rn "instanceof" --include="*.ts"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Liskov Substitution Violations
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Find methods that throw "not supported" or "not implemented"
|
|
45
|
+
grep -rn "throw.*not supported\|throw.*not implemented\|throw.*cannot" --include="*.ts"
|
|
46
|
+
|
|
47
|
+
# Find overridden methods with different behavior
|
|
48
|
+
grep -rn "override\|@Override" --include="*.ts" -A 10 | \
|
|
49
|
+
grep -E "throw|return null|return undefined"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Interface Segregation Violations
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Find large interfaces (too many methods)
|
|
56
|
+
grep -rn "interface.*{" --include="*.ts" -A 50 | \
|
|
57
|
+
grep -E "^\s+\w+\(" | \
|
|
58
|
+
awk -F: '{gsub(/-.*/,"",$1); print $1}' | sort | uniq -c | sort -rn | head -20
|
|
59
|
+
|
|
60
|
+
# Find implementations that throw on interface methods
|
|
61
|
+
grep -rn "implements" --include="*.ts" -A 100 | \
|
|
62
|
+
grep -B 5 "throw.*not\|throw.*Error\|not implemented"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Dependency Inversion Violations
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# Find direct instantiation in services (new keyword)
|
|
69
|
+
grep -rn "new [A-Z].*Service\|new [A-Z].*Repository\|new [A-Z].*Client" \
|
|
70
|
+
--include="*.ts" | grep -v "\.test\.\|\.spec\."
|
|
71
|
+
|
|
72
|
+
# Find concrete class imports in services
|
|
73
|
+
grep -rn "import.*Client\|import.*Repository\|import.*Service" \
|
|
74
|
+
--include="*service*.ts" | grep -v "interface\|type\|from.*interface"
|
|
75
|
+
|
|
76
|
+
# Find services without constructor injection
|
|
77
|
+
grep -rn "class.*Service" --include="*.ts" -A 20 | \
|
|
78
|
+
grep -v "constructor" | head -50
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Coupling Issues
|
|
84
|
+
|
|
85
|
+
### Circular Dependencies
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# Find potential circular imports between services
|
|
89
|
+
for file in $(find . -name "*service*.ts" -not -path "*/node_modules/*"); do
|
|
90
|
+
imports=$(grep "import.*from.*service" "$file" | sed 's/.*from.*\/\([^'"'"'\"]*\).*/\1/')
|
|
91
|
+
for import in $imports; do
|
|
92
|
+
if grep -q "$(basename "$file" .ts)" "$(dirname "$file")/$import.ts" 2>/dev/null; then
|
|
93
|
+
echo "CIRCULAR: $file <-> $import"
|
|
94
|
+
fi
|
|
95
|
+
done
|
|
96
|
+
done
|
|
97
|
+
|
|
98
|
+
# Use madge for accurate circular dependency detection
|
|
99
|
+
npx madge --circular src/
|
|
100
|
+
|
|
101
|
+
# Generate dependency graph
|
|
102
|
+
npx madge --image deps.svg src/
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Feature Envy
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Find methods with many dot-chains (accessing other objects' internals)
|
|
109
|
+
grep -rn "\.\w\+\.\w\+\.\w\+\.\w\+" --include="*.ts" | \
|
|
110
|
+
grep -v "node_modules\|\.test\.\|\.spec\."
|
|
111
|
+
|
|
112
|
+
# Find repeated access to same object prefix
|
|
113
|
+
grep -rn "this\.\w\+\.\|order\.\|user\.\|customer\." --include="*.ts" | \
|
|
114
|
+
awk -F: '{print $1}' | sort | uniq -c | sort -rn | head -20
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Tight Coupling
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Find direct instantiation (new keyword outside factories/tests)
|
|
121
|
+
grep -rn "= new [A-Z]" --include="*.ts" | \
|
|
122
|
+
grep -v "\.test\.\|\.spec\.\|factory\|Factory\|mock\|Mock"
|
|
123
|
+
|
|
124
|
+
# Find static method calls (often indicates coupling)
|
|
125
|
+
grep -rn "[A-Z][a-zA-Z]*\.[a-z][a-zA-Z]*(" --include="*.ts" | \
|
|
126
|
+
grep -v "import\|Math\.\|Date\.\|JSON\.\|Object\.\|Array\.\|console\."
|
|
127
|
+
|
|
128
|
+
# Find hardcoded configuration
|
|
129
|
+
grep -rn "localhost\|127\.0\.0\.1\|:3000\|:5432\|:6379" --include="*.ts" | \
|
|
130
|
+
grep -v "\.test\.\|\.spec\.\|config"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Layering Violations
|
|
136
|
+
|
|
137
|
+
### Skipping Layers
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# Find direct database access in controllers
|
|
141
|
+
grep -rn "db\.\|prisma\.\|mongoose\.\|sequelize\." \
|
|
142
|
+
--include="*controller*.ts" --include="*handler*.ts"
|
|
143
|
+
|
|
144
|
+
# Find direct SQL in non-repository files
|
|
145
|
+
grep -rn "SELECT\|INSERT\|UPDATE\|DELETE" --include="*.ts" | \
|
|
146
|
+
grep -v "repository\|Repository\|\.test\.\|\.spec\."
|
|
147
|
+
|
|
148
|
+
# Find HTTP calls in domain/service layers
|
|
149
|
+
grep -rn "fetch(\|axios\.\|http\." --include="*service*.ts" --include="*/domain/*.ts"
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Leaky Abstractions
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# Find ORM decorators in domain models
|
|
156
|
+
grep -rn "@Entity\|@Column\|@PrimaryKey\|@ManyToOne" --include="*/domain/*.ts"
|
|
157
|
+
|
|
158
|
+
# Find database-specific types in domain
|
|
159
|
+
grep -rn "ObjectId\|QueryResult\|RowDataPacket\|PrismaClient" --include="*/domain/*.ts"
|
|
160
|
+
|
|
161
|
+
# Find infrastructure imports in domain
|
|
162
|
+
grep -rn "import.*from.*infrastructure\|import.*from.*db\|import.*from.*redis" \
|
|
163
|
+
--include="*/domain/*.ts"
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Wrong Direction Dependencies
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Find domain importing from infrastructure
|
|
170
|
+
grep -rn "import.*from.*infrastructure\|import.*from.*adapters" \
|
|
171
|
+
--include="*/domain/*.ts"
|
|
172
|
+
|
|
173
|
+
# Find domain importing from application
|
|
174
|
+
grep -rn "import.*from.*application\|import.*from.*services" \
|
|
175
|
+
--include="*/domain/*.ts"
|
|
176
|
+
|
|
177
|
+
# Check import directions with dependency-cruiser
|
|
178
|
+
npx depcruise --validate .dependency-cruiser.js src/
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Modularity Issues
|
|
184
|
+
|
|
185
|
+
### God Classes
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Find files over 500 lines
|
|
189
|
+
find . -name "*.ts" -not -path "*/node_modules/*" -exec wc -l {} \; | \
|
|
190
|
+
awk '$1 > 500 {print}' | sort -rn
|
|
191
|
+
|
|
192
|
+
# Find classes with many public methods
|
|
193
|
+
grep -rn "class.*{" --include="*.ts" -A 200 | \
|
|
194
|
+
grep -E "^\s+public\s+\w+\(" | \
|
|
195
|
+
awk -F: '{gsub(/-.*/,"",$1); print $1}' | sort | uniq -c | \
|
|
196
|
+
awk '$1 > 10 {print}' | sort -rn
|
|
197
|
+
|
|
198
|
+
# Find files with many exports
|
|
199
|
+
grep -rn "^export " --include="*.ts" | \
|
|
200
|
+
awk -F: '{print $1}' | sort | uniq -c | \
|
|
201
|
+
awk '$1 > 20 {print}' | sort -rn
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Inappropriate Intimacy
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
# Find private member access (using type assertions)
|
|
208
|
+
grep -rn "as any)\.\|as unknown)\." --include="*.ts"
|
|
209
|
+
|
|
210
|
+
# Find access to private fields with underscore prefix
|
|
211
|
+
grep -rn "\._[a-zA-Z]" --include="*.ts" | grep -v "this\._"
|
|
212
|
+
|
|
213
|
+
# Find deep object access
|
|
214
|
+
grep -rn "\w\+\.\w\+\.\w\+\.\w\+\.\w\+" --include="*.ts"
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Quick Architecture Audit
|
|
220
|
+
|
|
221
|
+
Run this script for a quick architecture health check:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
#!/bin/bash
|
|
225
|
+
|
|
226
|
+
echo "=== Architecture Audit ==="
|
|
227
|
+
echo ""
|
|
228
|
+
|
|
229
|
+
echo "1. God Classes (files > 500 lines):"
|
|
230
|
+
find . -name "*.ts" -not -path "*/node_modules/*" -exec wc -l {} \; | \
|
|
231
|
+
awk '$1 > 500 {print " " $1 " " $2}' | sort -rn | head -10
|
|
232
|
+
|
|
233
|
+
echo ""
|
|
234
|
+
echo "2. Direct DB Access in Controllers:"
|
|
235
|
+
grep -rn "db\.\|prisma\.\|mongoose\." --include="*controller*.ts" -l 2>/dev/null | \
|
|
236
|
+
sed 's/^/ /'
|
|
237
|
+
|
|
238
|
+
echo ""
|
|
239
|
+
echo "3. Concrete Instantiation in Services:"
|
|
240
|
+
grep -rn "= new [A-Z]" --include="*service*.ts" 2>/dev/null | \
|
|
241
|
+
grep -v "\.test\.\|\.spec\." | head -10 | sed 's/^/ /'
|
|
242
|
+
|
|
243
|
+
echo ""
|
|
244
|
+
echo "4. Domain Importing Infrastructure:"
|
|
245
|
+
grep -rn "import.*postgres\|import.*mongo\|import.*redis" \
|
|
246
|
+
--include="*/domain/*.ts" 2>/dev/null | sed 's/^/ /'
|
|
247
|
+
|
|
248
|
+
echo ""
|
|
249
|
+
echo "5. Missing Dependency Injection:"
|
|
250
|
+
for f in $(find . -name "*service*.ts" -not -path "*/node_modules/*" 2>/dev/null); do
|
|
251
|
+
if ! grep -q "constructor" "$f"; then
|
|
252
|
+
echo " $f (no constructor)"
|
|
253
|
+
fi
|
|
254
|
+
done | head -10
|
|
255
|
+
|
|
256
|
+
echo ""
|
|
257
|
+
echo "6. Potential Circular Dependencies:"
|
|
258
|
+
npx madge --circular src/ 2>/dev/null || echo " Install madge: npm i -g madge"
|
|
259
|
+
|
|
260
|
+
echo ""
|
|
261
|
+
echo "=== End Audit ==="
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## IDE/Editor Integration
|
|
267
|
+
|
|
268
|
+
### VS Code Settings
|
|
269
|
+
|
|
270
|
+
```json
|
|
271
|
+
// .vscode/settings.json
|
|
272
|
+
{
|
|
273
|
+
"editor.codeActionsOnSave": {
|
|
274
|
+
"source.organizeImports": true
|
|
275
|
+
},
|
|
276
|
+
"typescript.preferences.importModuleSpecifier": "relative",
|
|
277
|
+
"eslint.rules.customizations": [
|
|
278
|
+
{ "rule": "no-restricted-imports", "severity": "error" }
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### ESLint Rules for Architecture
|
|
284
|
+
|
|
285
|
+
```javascript
|
|
286
|
+
// .eslintrc.js
|
|
287
|
+
module.exports = {
|
|
288
|
+
rules: {
|
|
289
|
+
'no-restricted-imports': ['error', {
|
|
290
|
+
patterns: [
|
|
291
|
+
// Prevent domain from importing infrastructure
|
|
292
|
+
{
|
|
293
|
+
group: ['**/infrastructure/**'],
|
|
294
|
+
message: 'Domain cannot import from infrastructure'
|
|
295
|
+
},
|
|
296
|
+
// Prevent direct database imports in services
|
|
297
|
+
{
|
|
298
|
+
group: ['pg', 'mysql', 'mongodb', '@prisma/client'],
|
|
299
|
+
message: 'Use repository pattern instead of direct DB access'
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}],
|
|
303
|
+
// Flag large files
|
|
304
|
+
'max-lines': ['warn', { max: 500 }],
|
|
305
|
+
// Flag too many parameters (potential SRP violation)
|
|
306
|
+
'max-params': ['warn', { max: 5 }]
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Dependency Cruiser Config
|
|
312
|
+
|
|
313
|
+
```javascript
|
|
314
|
+
// .dependency-cruiser.js
|
|
315
|
+
module.exports = {
|
|
316
|
+
forbidden: [
|
|
317
|
+
{
|
|
318
|
+
name: 'no-circular',
|
|
319
|
+
severity: 'error',
|
|
320
|
+
from: {},
|
|
321
|
+
to: { circular: true }
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: 'domain-cannot-depend-on-infrastructure',
|
|
325
|
+
severity: 'error',
|
|
326
|
+
from: { path: '^src/domain' },
|
|
327
|
+
to: { path: '^src/infrastructure' }
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
name: 'domain-cannot-depend-on-application',
|
|
331
|
+
severity: 'error',
|
|
332
|
+
from: { path: '^src/domain' },
|
|
333
|
+
to: { path: '^src/application' }
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
};
|
|
337
|
+
```
|