devflow-kit 0.9.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +167 -29
- package/LICENSE +1 -1
- package/README.md +179 -310
- package/dist/cli.js +3 -1
- package/dist/commands/init.d.ts +21 -0
- package/dist/commands/init.js +311 -576
- package/dist/commands/list.d.ts +3 -0
- package/dist/commands/list.js +20 -0
- package/dist/commands/uninstall.d.ts +10 -0
- package/dist/commands/uninstall.js +351 -78
- package/dist/plugins.d.ts +46 -0
- package/dist/plugins.js +162 -0
- package/dist/utils/cli.d.ts +5 -0
- package/dist/utils/cli.js +14 -0
- package/dist/utils/installer.d.ts +41 -0
- package/dist/utils/installer.js +177 -0
- package/dist/utils/paths.d.ts +10 -0
- package/dist/utils/paths.js +23 -3
- package/dist/utils/post-install.d.ts +68 -0
- package/dist/utils/post-install.js +427 -0
- package/dist/utils/safe-delete-install.d.ts +22 -0
- package/dist/utils/safe-delete-install.js +156 -0
- package/dist/utils/safe-delete.d.ts +12 -0
- package/dist/utils/safe-delete.js +83 -0
- package/package.json +18 -8
- package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +7 -0
- package/plugins/devflow-audit-claude/README.md +46 -0
- package/plugins/devflow-audit-claude/agents/claude-md-auditor.md +134 -0
- package/plugins/devflow-audit-claude/commands/audit-claude.md +85 -0
- package/plugins/devflow-code-review/.claude-plugin/plugin.json +31 -0
- package/plugins/devflow-code-review/README.md +73 -0
- package/plugins/devflow-code-review/agents/git.md +272 -0
- package/plugins/devflow-code-review/agents/reviewer.md +119 -0
- package/plugins/devflow-code-review/agents/synthesizer.md +204 -0
- package/plugins/devflow-code-review/commands/code-review-teams.md +262 -0
- package/plugins/devflow-code-review/commands/code-review.md +141 -0
- package/plugins/devflow-code-review/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-code-review/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-code-review/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-code-review/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-code-review/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/SKILL.md +153 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/detection.md +337 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/patterns.md +873 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/violations.md +575 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/SKILL.md +143 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/detection.md +264 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/patterns.md +487 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/violations.md +361 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/SKILL.md +140 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/detection.md +207 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/patterns.md +202 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/violations.md +213 -0
- package/plugins/devflow-code-review/skills/database-patterns/SKILL.md +134 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/detection.md +208 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/patterns.md +394 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/violations.md +332 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/SKILL.md +141 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/detection.md +181 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/patterns.md +225 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/violations.md +247 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/SKILL.md +125 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/detection.md +190 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/patterns.md +189 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/violations.md +163 -0
- package/plugins/devflow-code-review/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-code-review/skills/performance-patterns/SKILL.md +154 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/detection.md +351 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/patterns.md +503 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/violations.md +354 -0
- package/plugins/devflow-code-review/skills/react/SKILL.md +276 -0
- package/plugins/devflow-code-review/skills/react/references/patterns.md +1331 -0
- package/plugins/devflow-code-review/skills/react/references/violations.md +565 -0
- package/plugins/devflow-code-review/skills/regression-patterns/SKILL.md +146 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/detection.md +237 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/patterns.md +226 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/violations.md +225 -0
- package/plugins/devflow-code-review/skills/review-methodology/SKILL.md +119 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/patterns.md +186 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/report-template.md +142 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/violations.md +125 -0
- package/plugins/devflow-code-review/skills/security-patterns/SKILL.md +156 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/detection.md +287 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/patterns.md +507 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/violations.md +237 -0
- package/plugins/devflow-code-review/skills/test-patterns/SKILL.md +183 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/detection.md +149 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/patterns.md +220 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/report-template.md +108 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/violations.md +221 -0
- package/plugins/devflow-core-skills/.claude-plugin/plugin.json +27 -0
- package/plugins/devflow-core-skills/README.md +50 -0
- package/plugins/devflow-core-skills/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-core-skills/skills/core-patterns/SKILL.md +162 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/checklist.md +276 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/detection.md +303 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/patterns.md +576 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/violations.md +369 -0
- package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +134 -0
- package/plugins/devflow-core-skills/skills/docs-framework/references/patterns.md +346 -0
- package/plugins/devflow-core-skills/skills/docs-framework/references/violations.md +221 -0
- package/plugins/devflow-core-skills/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-core-skills/skills/git-safety/SKILL.md +122 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/detection.md +290 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/patterns.md +289 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/violations.md +18 -0
- package/plugins/devflow-core-skills/skills/git-workflow/SKILL.md +158 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-patterns.md +115 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-violations.md +77 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-patterns.md +127 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-violations.md +96 -0
- package/plugins/devflow-core-skills/skills/github-patterns/SKILL.md +153 -0
- package/plugins/devflow-core-skills/skills/github-patterns/references/patterns.md +572 -0
- package/plugins/devflow-core-skills/skills/github-patterns/references/violations.md +298 -0
- package/plugins/devflow-core-skills/skills/input-validation/SKILL.md +148 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/detection.md +283 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/patterns.md +361 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/violations.md +224 -0
- package/plugins/devflow-core-skills/skills/react/SKILL.md +276 -0
- package/plugins/devflow-core-skills/skills/react/references/patterns.md +1331 -0
- package/plugins/devflow-core-skills/skills/react/references/violations.md +565 -0
- package/plugins/devflow-core-skills/skills/test-patterns/SKILL.md +183 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/detection.md +149 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/patterns.md +220 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/report-template.md +108 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/violations.md +221 -0
- package/plugins/devflow-core-skills/skills/typescript/SKILL.md +176 -0
- package/plugins/devflow-core-skills/skills/typescript/references/patterns.md +1105 -0
- package/plugins/devflow-core-skills/skills/typescript/references/violations.md +433 -0
- package/plugins/devflow-debug/.claude-plugin/plugin.json +18 -0
- package/plugins/devflow-debug/README.md +65 -0
- package/plugins/devflow-debug/agents/git.md +272 -0
- package/plugins/devflow-debug/commands/debug-teams.md +231 -0
- package/plugins/devflow-debug/commands/debug.md +160 -0
- package/plugins/devflow-debug/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-debug/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-debug/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-debug/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-debug/skills/git-safety/SKILL.md +122 -0
- package/plugins/devflow-debug/skills/git-safety/references/detection.md +290 -0
- package/plugins/devflow-debug/skills/git-safety/references/patterns.md +289 -0
- package/plugins/devflow-debug/skills/git-safety/references/violations.md +18 -0
- package/plugins/devflow-implement/.claude-plugin/plugin.json +21 -0
- package/plugins/devflow-implement/README.md +71 -0
- package/plugins/devflow-implement/agents/coder.md +122 -0
- package/plugins/devflow-implement/agents/git.md +272 -0
- package/plugins/devflow-implement/agents/scrutinizer.md +80 -0
- package/plugins/devflow-implement/agents/shepherd.md +94 -0
- package/plugins/devflow-implement/agents/simplifier.md +62 -0
- package/plugins/devflow-implement/agents/skimmer.md +88 -0
- package/plugins/devflow-implement/agents/synthesizer.md +204 -0
- package/plugins/devflow-implement/agents/validator.md +86 -0
- package/plugins/devflow-implement/commands/implement-teams.md +608 -0
- package/plugins/devflow-implement/commands/implement.md +426 -0
- package/plugins/devflow-implement/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-implement/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-implement/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-implement/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-implement/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-implement/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-implement/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-implement/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-implement/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-implement/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-implement/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-implement/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-implement/skills/implementation-patterns/SKILL.md +162 -0
- package/plugins/devflow-implement/skills/implementation-patterns/references/patterns.md +1063 -0
- package/plugins/devflow-implement/skills/implementation-patterns/references/violations.md +483 -0
- package/plugins/devflow-implement/skills/self-review/SKILL.md +149 -0
- package/plugins/devflow-implement/skills/self-review/references/patterns.md +405 -0
- package/plugins/devflow-implement/skills/self-review/references/report-template.md +253 -0
- package/plugins/devflow-implement/skills/self-review/references/violations.md +308 -0
- package/plugins/devflow-resolve/.claude-plugin/plugin.json +19 -0
- package/plugins/devflow-resolve/README.md +65 -0
- package/plugins/devflow-resolve/agents/git.md +272 -0
- package/plugins/devflow-resolve/agents/resolver.md +131 -0
- package/plugins/devflow-resolve/agents/simplifier.md +62 -0
- package/plugins/devflow-resolve/commands/resolve-teams.md +298 -0
- package/plugins/devflow-resolve/commands/resolve.md +237 -0
- package/plugins/devflow-resolve/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/SKILL.md +162 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/references/patterns.md +1063 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/references/violations.md +483 -0
- package/plugins/devflow-resolve/skills/security-patterns/SKILL.md +156 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/detection.md +287 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/patterns.md +507 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/violations.md +237 -0
- package/plugins/devflow-self-review/.claude-plugin/plugin.json +7 -0
- package/plugins/devflow-self-review/README.md +38 -0
- package/plugins/devflow-self-review/agents/scrutinizer.md +80 -0
- package/plugins/devflow-self-review/agents/simplifier.md +62 -0
- package/plugins/devflow-self-review/agents/validator.md +86 -0
- package/plugins/devflow-self-review/commands/self-review.md +126 -0
- package/plugins/devflow-self-review/skills/core-patterns/SKILL.md +162 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/checklist.md +276 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/detection.md +303 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/patterns.md +576 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/violations.md +369 -0
- package/plugins/devflow-self-review/skills/self-review/SKILL.md +149 -0
- package/plugins/devflow-self-review/skills/self-review/references/patterns.md +405 -0
- package/plugins/devflow-self-review/skills/self-review/references/report-template.md +253 -0
- package/plugins/devflow-self-review/skills/self-review/references/violations.md +308 -0
- package/plugins/devflow-specify/.claude-plugin/plugin.json +15 -0
- package/plugins/devflow-specify/README.md +46 -0
- package/plugins/devflow-specify/agents/skimmer.md +88 -0
- package/plugins/devflow-specify/agents/synthesizer.md +204 -0
- package/plugins/devflow-specify/commands/specify-teams.md +314 -0
- package/plugins/devflow-specify/commands/specify.md +179 -0
- package/plugins/devflow-specify/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-specify/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-specify/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-specify/skills/agent-teams/references/team-patterns.md +217 -0
- package/scripts/hooks/background-memory-update.sh +167 -0
- package/scripts/hooks/pre-compact-memory.sh +81 -0
- package/scripts/hooks/session-start-memory.sh +84 -0
- package/scripts/hooks/stop-update-memory.sh +81 -0
- package/shared/agents/coder.md +122 -0
- package/shared/agents/git.md +272 -0
- package/shared/agents/resolver.md +131 -0
- package/shared/agents/reviewer.md +119 -0
- package/shared/agents/scrutinizer.md +80 -0
- package/shared/agents/shepherd.md +94 -0
- package/shared/agents/simplifier.md +62 -0
- package/shared/agents/skimmer.md +88 -0
- package/shared/agents/synthesizer.md +204 -0
- package/shared/agents/validator.md +86 -0
- package/shared/skills/accessibility/SKILL.md +229 -0
- package/shared/skills/accessibility/references/detection.md +171 -0
- package/shared/skills/accessibility/references/patterns.md +670 -0
- package/shared/skills/accessibility/references/violations.md +419 -0
- package/shared/skills/agent-teams/SKILL.md +124 -0
- package/shared/skills/agent-teams/references/cleanup.md +104 -0
- package/shared/skills/agent-teams/references/communication.md +122 -0
- package/shared/skills/agent-teams/references/team-patterns.md +217 -0
- package/shared/skills/architecture-patterns/SKILL.md +153 -0
- package/shared/skills/architecture-patterns/references/detection.md +337 -0
- package/shared/skills/architecture-patterns/references/patterns.md +873 -0
- package/shared/skills/architecture-patterns/references/violations.md +575 -0
- package/shared/skills/complexity-patterns/SKILL.md +143 -0
- package/shared/skills/complexity-patterns/references/detection.md +264 -0
- package/shared/skills/complexity-patterns/references/patterns.md +487 -0
- package/shared/skills/complexity-patterns/references/violations.md +361 -0
- package/shared/skills/consistency-patterns/SKILL.md +140 -0
- package/shared/skills/consistency-patterns/references/detection.md +207 -0
- package/shared/skills/consistency-patterns/references/patterns.md +202 -0
- package/shared/skills/consistency-patterns/references/violations.md +213 -0
- package/shared/skills/core-patterns/SKILL.md +162 -0
- package/shared/skills/core-patterns/references/checklist.md +276 -0
- package/shared/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/shared/skills/core-patterns/references/detection.md +303 -0
- package/shared/skills/core-patterns/references/patterns.md +576 -0
- package/shared/skills/core-patterns/references/violations.md +369 -0
- package/shared/skills/database-patterns/SKILL.md +134 -0
- package/shared/skills/database-patterns/references/detection.md +208 -0
- package/shared/skills/database-patterns/references/patterns.md +394 -0
- package/shared/skills/database-patterns/references/violations.md +332 -0
- package/shared/skills/dependencies-patterns/SKILL.md +141 -0
- package/shared/skills/dependencies-patterns/references/detection.md +181 -0
- package/shared/skills/dependencies-patterns/references/patterns.md +225 -0
- package/shared/skills/dependencies-patterns/references/violations.md +247 -0
- package/shared/skills/docs-framework/SKILL.md +134 -0
- package/shared/skills/docs-framework/references/patterns.md +346 -0
- package/shared/skills/docs-framework/references/violations.md +221 -0
- package/shared/skills/documentation-patterns/SKILL.md +125 -0
- package/shared/skills/documentation-patterns/references/detection.md +190 -0
- package/shared/skills/documentation-patterns/references/patterns.md +189 -0
- package/shared/skills/documentation-patterns/references/violations.md +163 -0
- package/shared/skills/frontend-design/SKILL.md +254 -0
- package/shared/skills/frontend-design/references/detection.md +184 -0
- package/shared/skills/frontend-design/references/patterns.md +511 -0
- package/shared/skills/frontend-design/references/violations.md +453 -0
- package/shared/skills/git-safety/SKILL.md +122 -0
- package/shared/skills/git-safety/references/detection.md +290 -0
- package/shared/skills/git-safety/references/patterns.md +289 -0
- package/shared/skills/git-safety/references/violations.md +18 -0
- package/shared/skills/git-workflow/SKILL.md +158 -0
- package/shared/skills/git-workflow/references/commit-patterns.md +115 -0
- package/shared/skills/git-workflow/references/commit-violations.md +77 -0
- package/shared/skills/git-workflow/references/pr-patterns.md +127 -0
- package/shared/skills/git-workflow/references/pr-violations.md +96 -0
- package/shared/skills/github-patterns/SKILL.md +153 -0
- package/shared/skills/github-patterns/references/patterns.md +572 -0
- package/shared/skills/github-patterns/references/violations.md +298 -0
- package/shared/skills/implementation-patterns/SKILL.md +162 -0
- package/shared/skills/implementation-patterns/references/patterns.md +1063 -0
- package/shared/skills/implementation-patterns/references/violations.md +483 -0
- package/shared/skills/input-validation/SKILL.md +148 -0
- package/shared/skills/input-validation/references/detection.md +283 -0
- package/shared/skills/input-validation/references/patterns.md +361 -0
- package/shared/skills/input-validation/references/violations.md +224 -0
- package/shared/skills/performance-patterns/SKILL.md +154 -0
- package/shared/skills/performance-patterns/references/detection.md +351 -0
- package/shared/skills/performance-patterns/references/patterns.md +503 -0
- package/shared/skills/performance-patterns/references/violations.md +354 -0
- package/shared/skills/react/SKILL.md +276 -0
- package/shared/skills/react/references/patterns.md +1331 -0
- package/shared/skills/react/references/violations.md +565 -0
- package/shared/skills/regression-patterns/SKILL.md +146 -0
- package/shared/skills/regression-patterns/references/detection.md +237 -0
- package/shared/skills/regression-patterns/references/patterns.md +226 -0
- package/shared/skills/regression-patterns/references/violations.md +225 -0
- package/shared/skills/review-methodology/SKILL.md +119 -0
- package/shared/skills/review-methodology/references/patterns.md +186 -0
- package/shared/skills/review-methodology/references/report-template.md +142 -0
- package/shared/skills/review-methodology/references/violations.md +125 -0
- package/shared/skills/security-patterns/SKILL.md +156 -0
- package/shared/skills/security-patterns/references/detection.md +287 -0
- package/shared/skills/security-patterns/references/patterns.md +507 -0
- package/shared/skills/security-patterns/references/violations.md +237 -0
- package/shared/skills/self-review/SKILL.md +149 -0
- package/shared/skills/self-review/references/patterns.md +405 -0
- package/shared/skills/self-review/references/report-template.md +253 -0
- package/shared/skills/self-review/references/violations.md +308 -0
- package/shared/skills/test-patterns/SKILL.md +183 -0
- package/shared/skills/test-patterns/references/detection.md +149 -0
- package/shared/skills/test-patterns/references/patterns.md +220 -0
- package/shared/skills/test-patterns/references/report-template.md +108 -0
- package/shared/skills/test-patterns/references/violations.md +221 -0
- package/shared/skills/typescript/SKILL.md +176 -0
- package/shared/skills/typescript/references/patterns.md +1105 -0
- package/shared/skills/typescript/references/violations.md +433 -0
- package/src/templates/claudeignore.template +188 -0
- package/src/templates/managed-settings.json +146 -0
- package/src/templates/settings.json +59 -0
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/uninstall.d.ts.map +0 -1
- package/dist/commands/uninstall.js.map +0 -1
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/src/claude/CLAUDE.md +0 -400
- package/src/claude/agents/devflow/audit-architecture.md +0 -132
- package/src/claude/agents/devflow/audit-complexity.md +0 -132
- package/src/claude/agents/devflow/audit-database.md +0 -132
- package/src/claude/agents/devflow/audit-dependencies.md +0 -132
- package/src/claude/agents/devflow/audit-documentation.md +0 -132
- package/src/claude/agents/devflow/audit-performance.md +0 -256
- package/src/claude/agents/devflow/audit-security.md +0 -259
- package/src/claude/agents/devflow/audit-tests.md +0 -132
- package/src/claude/agents/devflow/audit-typescript.md +0 -132
- package/src/claude/agents/devflow/brainstorm.md +0 -279
- package/src/claude/agents/devflow/catch-up.md +0 -345
- package/src/claude/agents/devflow/code-review.md +0 -307
- package/src/claude/agents/devflow/commit.md +0 -380
- package/src/claude/agents/devflow/debug.md +0 -476
- package/src/claude/agents/devflow/design.md +0 -491
- package/src/claude/agents/devflow/get-issue.md +0 -286
- package/src/claude/agents/devflow/pr-comments.md +0 -285
- package/src/claude/agents/devflow/project-state.md +0 -419
- package/src/claude/agents/devflow/pull-request.md +0 -493
- package/src/claude/agents/devflow/release.md +0 -1137
- package/src/claude/agents/devflow/tech-debt.md +0 -338
- package/src/claude/commands/devflow/brainstorm.md +0 -68
- package/src/claude/commands/devflow/breakdown.md +0 -125
- package/src/claude/commands/devflow/catch-up.md +0 -29
- package/src/claude/commands/devflow/code-review.md +0 -237
- package/src/claude/commands/devflow/commit.md +0 -17
- package/src/claude/commands/devflow/debug.md +0 -56
- package/src/claude/commands/devflow/design.md +0 -82
- package/src/claude/commands/devflow/devlog.md +0 -408
- package/src/claude/commands/devflow/get-issue.md +0 -16
- package/src/claude/commands/devflow/implement.md +0 -100
- package/src/claude/commands/devflow/plan.md +0 -223
- package/src/claude/commands/devflow/pull-request.md +0 -20
- package/src/claude/commands/devflow/release.md +0 -251
- package/src/claude/commands/devflow/resolve-comments.md +0 -583
- package/src/claude/scripts/statusline.sh +0 -47
- package/src/claude/settings.json +0 -6
- package/src/claude/skills/devflow/code-smell/SKILL.md +0 -428
- package/src/claude/skills/devflow/debug/SKILL.md +0 -119
- package/src/claude/skills/devflow/error-handling/SKILL.md +0 -597
- package/src/claude/skills/devflow/input-validation/SKILL.md +0 -514
- package/src/claude/skills/devflow/pattern-check/SKILL.md +0 -238
- package/src/claude/skills/devflow/research/SKILL.md +0 -138
- package/src/claude/skills/devflow/test-design/SKILL.md +0 -384
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pattern-check
|
|
3
|
-
description: Automatically validate architectural patterns and detect violations when code changes are made. Use when implementing new functionality, refactoring existing code, or when Result types, dependency injection, or immutability patterns might be violated.
|
|
4
|
-
allowed-tools: Read, Grep, Glob, AskUserQuestion
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Pattern Check Skill
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
|
|
11
|
-
Enforce core architectural patterns defined in project guidelines:
|
|
12
|
-
1. **Result types** instead of exceptions
|
|
13
|
-
2. **Dependency injection** instead of internal instantiation
|
|
14
|
-
3. **Immutability** instead of mutation
|
|
15
|
-
4. **Pure functions** instead of side-effect-heavy code
|
|
16
|
-
|
|
17
|
-
## When This Skill Activates
|
|
18
|
-
|
|
19
|
-
Automatically triggers when:
|
|
20
|
-
- New functions or methods are being added
|
|
21
|
-
- Error handling code is being written
|
|
22
|
-
- Class constructors are being modified
|
|
23
|
-
- Data structures are being updated
|
|
24
|
-
- Refactoring is in progress
|
|
25
|
-
|
|
26
|
-
## Pattern Validation Process
|
|
27
|
-
|
|
28
|
-
### 1. Result Type Pattern Check
|
|
29
|
-
|
|
30
|
-
**CRITICAL**: Business logic must NEVER throw exceptions directly.
|
|
31
|
-
|
|
32
|
-
Search for violations:
|
|
33
|
-
```typescript
|
|
34
|
-
// ❌ VIOLATION
|
|
35
|
-
function createUser(data: unknown): User {
|
|
36
|
-
if (!valid(data)) {
|
|
37
|
-
throw new ValidationError(); // VIOLATION: throwing exception
|
|
38
|
-
}
|
|
39
|
-
return user;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// ✅ CORRECT
|
|
43
|
-
function createUser(data: unknown): Result<User, ValidationError> {
|
|
44
|
-
if (!valid(data)) {
|
|
45
|
-
return { ok: false, error: new ValidationError() };
|
|
46
|
-
}
|
|
47
|
-
return { ok: true, value: user };
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**Detection patterns:**
|
|
52
|
-
- `throw new Error` inside business logic functions
|
|
53
|
-
- `try/catch` blocks wrapping business operations (except at boundaries)
|
|
54
|
-
- Functions returning data types without Result wrapper
|
|
55
|
-
- Missing error handling in function signatures
|
|
56
|
-
|
|
57
|
-
### 2. Dependency Injection Pattern Check
|
|
58
|
-
|
|
59
|
-
**CRITICAL**: Dependencies must be injected, not instantiated internally.
|
|
60
|
-
|
|
61
|
-
Search for violations:
|
|
62
|
-
```typescript
|
|
63
|
-
// ❌ VIOLATION
|
|
64
|
-
class UserService {
|
|
65
|
-
private db = new Database(); // VIOLATION: creating dependency
|
|
66
|
-
|
|
67
|
-
async getUser(id: string) {
|
|
68
|
-
return this.db.query(id);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// ✅ CORRECT
|
|
73
|
-
class UserService {
|
|
74
|
-
constructor(private db: Database) {} // Injected dependency
|
|
75
|
-
|
|
76
|
-
async getUser(id: string) {
|
|
77
|
-
return this.db.query(id);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
**Detection patterns:**
|
|
83
|
-
- `new SomeClass()` inside constructors or methods
|
|
84
|
-
- Direct file system imports for services
|
|
85
|
-
- Hardcoded configuration values
|
|
86
|
-
- Singleton patterns without DI container
|
|
87
|
-
|
|
88
|
-
### 3. Immutability Pattern Check
|
|
89
|
-
|
|
90
|
-
**CRITICAL**: Data structures must return new objects, not mutate existing ones.
|
|
91
|
-
|
|
92
|
-
Search for violations:
|
|
93
|
-
```typescript
|
|
94
|
-
// ❌ VIOLATION
|
|
95
|
-
function updateUser(user: User, name: string): User {
|
|
96
|
-
user.name = name; // VIOLATION: mutating input
|
|
97
|
-
return user;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// ✅ CORRECT
|
|
101
|
-
function updateUser(user: User, name: string): User {
|
|
102
|
-
return { ...user, name }; // New object
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Detection patterns:**
|
|
107
|
-
- Direct property assignment on parameters
|
|
108
|
-
- Array mutation methods: `push`, `pop`, `splice`, `sort` (without returning new array)
|
|
109
|
-
- Object property mutations on inputs
|
|
110
|
-
- Missing `const` declarations for data structures
|
|
111
|
-
|
|
112
|
-
### 4. Pure Function Pattern Check
|
|
113
|
-
|
|
114
|
-
**CRITICAL**: Business logic should be pure; side effects isolated.
|
|
115
|
-
|
|
116
|
-
Search for violations:
|
|
117
|
-
```typescript
|
|
118
|
-
// ❌ VIOLATION
|
|
119
|
-
function calculateTotal(items: Item[]): number {
|
|
120
|
-
console.log('Calculating...'); // VIOLATION: side effect
|
|
121
|
-
logToDatabase('calculation'); // VIOLATION: side effect
|
|
122
|
-
return items.reduce((sum, item) => sum + item.price, 0);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// ✅ CORRECT
|
|
126
|
-
function calculateTotal(items: Item[]): number {
|
|
127
|
-
return items.reduce((sum, item) => sum + item.price, 0); // Pure
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Wrapper handles side effects
|
|
131
|
-
async function processOrder(items: Item[]): Promise<Result<number, Error>> {
|
|
132
|
-
logToDatabase('calculation'); // Side effect in wrapper
|
|
133
|
-
const total = calculateTotal(items); // Pure function call
|
|
134
|
-
return { ok: true, value: total };
|
|
135
|
-
}
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
**Detection patterns:**
|
|
139
|
-
- I/O operations inside pure business logic
|
|
140
|
-
- Console logs in calculation functions
|
|
141
|
-
- Database calls mixed with business logic
|
|
142
|
-
- File system access in data transformations
|
|
143
|
-
|
|
144
|
-
## Violation Report Format
|
|
145
|
-
|
|
146
|
-
When violations are found, report using this format:
|
|
147
|
-
|
|
148
|
-
```markdown
|
|
149
|
-
⚠️ ARCHITECTURAL PATTERN VIOLATIONS DETECTED
|
|
150
|
-
|
|
151
|
-
## 🔴 CRITICAL - Result Type Violations
|
|
152
|
-
**File**: src/services/user.ts:45
|
|
153
|
-
**Issue**: Function throws exception instead of returning Result type
|
|
154
|
-
**Current**:
|
|
155
|
-
```typescript
|
|
156
|
-
throw new ValidationError('Invalid email');
|
|
157
|
-
```
|
|
158
|
-
**Fix Required**:
|
|
159
|
-
```typescript
|
|
160
|
-
return { ok: false, error: new ValidationError('Invalid email') };
|
|
161
|
-
```
|
|
162
|
-
**Impact**: Breaks error handling consistency, makes errors invisible to type system
|
|
163
|
-
|
|
164
|
-
## 🔴 CRITICAL - Dependency Injection Violations
|
|
165
|
-
**File**: src/services/order.ts:12
|
|
166
|
-
**Issue**: Service instantiates database directly
|
|
167
|
-
**Current**:
|
|
168
|
-
```typescript
|
|
169
|
-
private db = new Database();
|
|
170
|
-
```
|
|
171
|
-
**Fix Required**:
|
|
172
|
-
```typescript
|
|
173
|
-
constructor(private db: Database) {}
|
|
174
|
-
```
|
|
175
|
-
**Impact**: Makes testing impossible, creates tight coupling
|
|
176
|
-
|
|
177
|
-
## 🟡 HIGH - Immutability Violations
|
|
178
|
-
**File**: src/models/cart.ts:23
|
|
179
|
-
**Issue**: Mutating input parameter
|
|
180
|
-
**Current**:
|
|
181
|
-
```typescript
|
|
182
|
-
cart.items.push(newItem);
|
|
183
|
-
return cart;
|
|
184
|
-
```
|
|
185
|
-
**Fix Required**:
|
|
186
|
-
```typescript
|
|
187
|
-
return { ...cart, items: [...cart.items, newItem] };
|
|
188
|
-
```
|
|
189
|
-
**Impact**: Creates hidden side effects, breaks referential transparency
|
|
190
|
-
|
|
191
|
-
## 📊 Summary
|
|
192
|
-
- **Critical**: 5 violations
|
|
193
|
-
- **High**: 3 violations
|
|
194
|
-
- **Files affected**: 4
|
|
195
|
-
- **Estimated fix time**: 30 minutes
|
|
196
|
-
|
|
197
|
-
## 🛠️ Next Steps
|
|
198
|
-
1. Fix Result type violations first (breaks consistency)
|
|
199
|
-
2. Apply dependency injection (enables testing)
|
|
200
|
-
3. Remove mutations (prevents bugs)
|
|
201
|
-
4. Verify with pattern-check after fixes
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
## Integration with Workflow
|
|
205
|
-
|
|
206
|
-
After detecting violations:
|
|
207
|
-
|
|
208
|
-
1. **STOP implementation** - Do not proceed with current changes
|
|
209
|
-
2. **Report violations** - Use format above
|
|
210
|
-
3. **Propose fixes** - Show correct patterns
|
|
211
|
-
4. **Wait for approval** - Get explicit user confirmation
|
|
212
|
-
5. **Apply fixes** - Implement corrections systematically
|
|
213
|
-
6. **Re-validate** - Run pattern-check again
|
|
214
|
-
|
|
215
|
-
## Red Flags - Immediate Stop
|
|
216
|
-
|
|
217
|
-
Stop immediately and report if you detect:
|
|
218
|
-
- Multiple Result type violations in same file
|
|
219
|
-
- Systematic lack of dependency injection
|
|
220
|
-
- Widespread mutation patterns
|
|
221
|
-
- Business logic mixed with I/O throughout codebase
|
|
222
|
-
|
|
223
|
-
These indicate architectural issues requiring design discussion, not quick fixes.
|
|
224
|
-
|
|
225
|
-
## Success Criteria
|
|
226
|
-
|
|
227
|
-
Code passes pattern-check when:
|
|
228
|
-
- ✅ All business functions return Result types
|
|
229
|
-
- ✅ All dependencies are injected
|
|
230
|
-
- ✅ All data updates return new objects
|
|
231
|
-
- ✅ Pure functions contain no side effects
|
|
232
|
-
- ✅ Side effects isolated in wrapper functions
|
|
233
|
-
|
|
234
|
-
## Example Usage
|
|
235
|
-
|
|
236
|
-
User implements new feature → pattern-check automatically triggers → validates patterns → reports violations if any → blocks merge until fixed.
|
|
237
|
-
|
|
238
|
-
This creates automatic quality gates without requiring explicit invocation.
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: research
|
|
3
|
-
description: Auto-launch pre-implementation research when unfamiliar features, libraries, or patterns are requested. Use when implementing new functionality that requires understanding approaches, integration strategies, or best practices.
|
|
4
|
-
allowed-tools: Task
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Research Skill - Auto-Dispatcher
|
|
8
|
-
|
|
9
|
-
**Purpose**: Detect when pre-implementation research is needed and auto-launch the brainstorm agent for exploration.
|
|
10
|
-
|
|
11
|
-
## When to Activate
|
|
12
|
-
|
|
13
|
-
Auto-activates when:
|
|
14
|
-
- Unfamiliar features or technologies requested
|
|
15
|
-
- New libraries or frameworks need integration
|
|
16
|
-
- Multiple implementation approaches possible
|
|
17
|
-
- User asks "how should I implement..."
|
|
18
|
-
- Integration strategy unclear
|
|
19
|
-
- Best practices unknown for this codebase
|
|
20
|
-
|
|
21
|
-
## Lightweight Assessment
|
|
22
|
-
|
|
23
|
-
```markdown
|
|
24
|
-
Quick check (don't do heavy research):
|
|
25
|
-
1. Is this pattern already in codebase? → Show example
|
|
26
|
-
2. Is this unfamiliar/complex? → Launch brainstorm agent
|
|
27
|
-
3. Are there multiple approaches? → Launch brainstorm agent
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Decision Logic
|
|
31
|
-
|
|
32
|
-
**Show existing pattern** (known):
|
|
33
|
-
- Pattern exists in codebase
|
|
34
|
-
- Similar feature already implemented
|
|
35
|
-
- Just need to reference existing code
|
|
36
|
-
|
|
37
|
-
**Launch brainstorm agent** (unknown):
|
|
38
|
-
- Unfamiliar feature or technology
|
|
39
|
-
- New library integration
|
|
40
|
-
- Multiple possible approaches
|
|
41
|
-
- Need to study docs/examples
|
|
42
|
-
- Integration strategy unclear
|
|
43
|
-
|
|
44
|
-
## Auto-Launch Brainstorm Agent
|
|
45
|
-
|
|
46
|
-
When research is needed:
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
I've detected this requires pre-implementation research.
|
|
50
|
-
|
|
51
|
-
**Feature**: [what's being implemented]
|
|
52
|
-
**Unknowns**: [what we need to explore]
|
|
53
|
-
|
|
54
|
-
Launching brainstorm agent to explore approaches and patterns...
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Then launch the brainstorm agent using Task tool:
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
Task(
|
|
61
|
-
subagent_type="brainstorm",
|
|
62
|
-
description="Explore implementation approaches",
|
|
63
|
-
prompt="Explore implementation approaches for: [feature description].
|
|
64
|
-
|
|
65
|
-
Focus on:
|
|
66
|
-
- What approaches exist for this problem?
|
|
67
|
-
- What are the trade-offs of each approach?
|
|
68
|
-
- What patterns are already in the codebase?
|
|
69
|
-
- What libraries/frameworks could help?
|
|
70
|
-
- What are the risks and edge cases?
|
|
71
|
-
|
|
72
|
-
Context: [relevant project context]"
|
|
73
|
-
)
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Post-Agent Summary
|
|
77
|
-
|
|
78
|
-
After agent completes, summarize key findings:
|
|
79
|
-
|
|
80
|
-
```markdown
|
|
81
|
-
**Exploration Complete**
|
|
82
|
-
|
|
83
|
-
**Approaches Found**: [list of options]
|
|
84
|
-
**Codebase Patterns**: [relevant existing patterns]
|
|
85
|
-
**Recommended Direction**: [suggested approach]
|
|
86
|
-
**Trade-offs**: [key considerations]
|
|
87
|
-
**Documentation**: `.docs/brainstorm/[topic-slug]-[timestamp].md`
|
|
88
|
-
|
|
89
|
-
**Next Step**: Run `/design` to create detailed implementation plan for chosen approach.
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## Examples
|
|
93
|
-
|
|
94
|
-
**Example 1: Known Pattern - Show Inline**
|
|
95
|
-
```
|
|
96
|
-
User: "I need to add validation to this endpoint"
|
|
97
|
-
Skill: "We already use this pattern. See src/api/users.ts:45
|
|
98
|
-
[Shows existing validation pattern, no agent needed]
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Example 2: Unfamiliar - Launch Agent**
|
|
102
|
-
```
|
|
103
|
-
User: "Add OAuth authentication"
|
|
104
|
-
Skill: "OAuth integration requires exploration of approaches.
|
|
105
|
-
Launching brainstorm agent..."
|
|
106
|
-
[Launches brainstorm agent for approach exploration]
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
**Example 3: Multiple Approaches - Launch Agent**
|
|
110
|
-
```
|
|
111
|
-
User: "Add real-time updates to dashboard"
|
|
112
|
-
Skill: "Multiple approaches possible (WebSockets, SSE, polling).
|
|
113
|
-
Launching brainstorm agent to explore options..."
|
|
114
|
-
[Launches brainstorm agent]
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Quick Pattern Recognition
|
|
118
|
-
|
|
119
|
-
Before launching agent, do **minimal** codebase check:
|
|
120
|
-
|
|
121
|
-
```bash
|
|
122
|
-
# Only if very quick (< 5 seconds)
|
|
123
|
-
grep -r "similar_pattern" --include="*.ts" src/ | head -3
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
If pattern found → Show it
|
|
127
|
-
If not found → Launch brainstorm agent
|
|
128
|
-
|
|
129
|
-
## Key Points
|
|
130
|
-
|
|
131
|
-
- **Lightweight**: Skill does minimal checking
|
|
132
|
-
- **Smart dispatch**: Shows existing patterns vs explores new options
|
|
133
|
-
- **Exploration focus**: Brainstorm agent explores approaches, not detailed planning
|
|
134
|
-
- **Autonomous**: Auto-launches when research needed
|
|
135
|
-
- **Clean context**: Main session stays focused on implementation
|
|
136
|
-
- **Next step guidance**: Suggests `/design` after exploration completes
|
|
137
|
-
|
|
138
|
-
This ensures thorough exploration happens in separate context while main session remains clean. For detailed implementation planning, use `/design` after exploration.
|