devflow-kit 1.8.3 → 2.0.1
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 +182 -7
- package/LICENSE +1 -1
- package/README.md +139 -219
- package/dist/cli/agents-view/index.js +9 -0
- package/dist/cli/agents-view/render.js +310 -0
- package/dist/cli/agents-view/state.js +423 -0
- package/dist/cli/agents-view/terminal.js +179 -0
- package/dist/cli/commands/agents.js +585 -0
- package/dist/cli/commands/ambient.js +231 -0
- package/dist/cli/commands/capture.js +133 -0
- package/dist/cli/commands/compliance-prompts.js +174 -0
- package/dist/cli/commands/compliance.js +337 -0
- package/dist/cli/commands/context.js +66 -0
- package/dist/cli/commands/debug.js +122 -0
- package/dist/cli/commands/flags.js +119 -0
- package/dist/cli/commands/hud.js +229 -0
- package/dist/cli/commands/init-seed.js +226 -0
- package/dist/cli/commands/init.js +1786 -0
- package/dist/cli/commands/knowledge/index.js +25 -0
- package/dist/cli/commands/knowledge/list.js +115 -0
- package/dist/cli/commands/knowledge/toggle.js +84 -0
- package/dist/cli/commands/learning.js +311 -0
- package/dist/cli/commands/legacy-hooks.js +40 -0
- package/dist/cli/commands/memory.js +349 -0
- package/dist/cli/commands/proxy.js +1435 -0
- package/dist/cli/commands/rules.js +334 -0
- package/dist/cli/commands/safe-delete.js +140 -0
- package/dist/cli/commands/security.js +179 -0
- package/dist/cli/commands/skills.js +140 -0
- package/dist/cli/commands/uninstall.js +1214 -0
- package/dist/cli.js +35 -10
- package/dist/commands/bug-analysis.md +400 -0
- package/dist/commands/code-review.md +403 -0
- package/dist/commands/debug.md +282 -0
- package/dist/commands/dynamic-build.md +972 -0
- package/dist/commands/dynamic-plan.md +383 -0
- package/dist/commands/dynamic-profile.md +206 -0
- package/dist/commands/dynamic-tickets.md +583 -0
- package/dist/commands/explore.md +208 -0
- package/dist/commands/implement.md +590 -0
- package/dist/commands/plan.md +570 -0
- package/dist/commands/release.md +206 -0
- package/dist/commands/research.md +212 -0
- package/dist/commands/resolve.md +731 -0
- package/dist/commands/self-review.md +251 -0
- package/dist/core/agent-frontmatter.js +209 -0
- package/dist/core/agent-models.js +556 -0
- package/dist/core/agent-state.js +44 -0
- package/dist/core/assets.js +39 -0
- package/dist/core/cache.js +205 -0
- package/dist/core/codex-auth-inspect.js +128 -0
- package/dist/core/compliance-compose.js +458 -0
- package/dist/core/compliance.js +165 -0
- package/dist/core/external-models.js +76 -0
- package/dist/core/feature-config.js +125 -0
- package/dist/core/flags.js +309 -0
- package/dist/core/fs-atomic.js +74 -0
- package/dist/core/git.js +61 -0
- package/dist/core/learning-queue-cleanup.js +92 -0
- package/dist/core/learning-tuning-config.js +78 -0
- package/dist/core/manifest.js +171 -0
- package/dist/core/migrations.js +330 -0
- package/dist/core/model-discovery.js +655 -0
- package/dist/core/observation-io.js +50 -0
- package/dist/core/observations.js +109 -0
- package/dist/core/orphan-sweep.js +92 -0
- package/dist/core/paths.js +48 -0
- package/dist/core/plugins.js +525 -0
- package/dist/core/project-paths.js +159 -0
- package/dist/core/proxy-log.js +165 -0
- package/dist/core/proxy-state.js +305 -0
- package/dist/core/safe-delete-install.js +191 -0
- package/dist/core/teammate-mode-cleanup.js +33 -0
- package/dist/hud/colors.js +13 -2
- package/dist/hud/components/config-counts.js +2 -2
- package/dist/hud/components/context-usage.js +2 -2
- package/dist/hud/components/learning-counts.js +92 -0
- package/dist/hud/components/session-cost.js +10 -2
- package/dist/hud/components/usage-quota.js +43 -8
- package/dist/hud/components/version-badge.js +14 -4
- package/dist/hud/config.js +4 -2
- package/dist/hud/cost-history.js +281 -0
- package/dist/hud/git.js +112 -71
- package/dist/hud/index.js +47 -4
- package/dist/hud/render.js +8 -20
- package/dist/hud/transcript.js +5 -6
- package/dist/targets/claude-code/claude-paths.js +106 -0
- package/dist/targets/claude-code/compliance-install.js +305 -0
- package/dist/targets/claude-code/hooks.js +9 -0
- package/dist/targets/claude-code/installer.js +458 -0
- package/dist/targets/claude-code/legacy.js +239 -0
- package/dist/targets/claude-code/post-install.js +971 -0
- package/package.json +23 -17
- package/src/assets/agents/code.md +244 -0
- package/src/assets/agents/design.md +113 -0
- package/src/assets/agents/diagnose.md +210 -0
- package/src/assets/agents/evaluate.md +117 -0
- package/src/assets/agents/git.md +938 -0
- package/src/assets/agents/knowledge.md +89 -0
- package/src/assets/agents/learning.md +203 -0
- package/src/assets/agents/research.md +134 -0
- package/src/assets/agents/review.md +220 -0
- package/src/assets/agents/scrutinize.md +95 -0
- package/src/assets/agents/simplify.md +108 -0
- package/src/assets/agents/skim.md +136 -0
- package/src/assets/agents/synthesize.md +402 -0
- package/src/assets/agents/test.md +155 -0
- package/src/assets/agents/triage.md +141 -0
- package/src/assets/agents/validate.md +103 -0
- package/src/assets/commands/_partials/_compliance.mds +5 -0
- package/src/assets/commands/_partials/_decisions.mds +20 -0
- package/src/assets/commands/_partials/_engine.mds +244 -0
- package/src/assets/commands/_partials/_factory.mds +216 -0
- package/src/assets/commands/_partials/_knowledge.mds +95 -0
- package/src/assets/commands/_partials/_plan_contract.mds +51 -0
- package/src/assets/commands/_partials/_preamble.mds +82 -0
- package/src/assets/commands/_partials/_publication.mds +7 -0
- package/src/assets/commands/_partials/_roster.mds +31 -0
- package/src/assets/commands/_partials/_ticket_template.mds +59 -0
- package/src/assets/commands/_partials/_wave.mds +123 -0
- package/src/assets/commands/bug-analysis.mds +353 -0
- package/src/assets/commands/code-review.mds +355 -0
- package/src/assets/commands/debug.mds +224 -0
- package/src/assets/commands/dynamic-build.mds +534 -0
- package/src/assets/commands/dynamic-plan.mds +244 -0
- package/src/assets/commands/dynamic-profile.mds +132 -0
- package/src/assets/commands/dynamic-tickets.mds +226 -0
- package/src/assets/commands/explore.mds +150 -0
- package/src/assets/commands/implement.mds +496 -0
- package/src/assets/commands/plan.mds +523 -0
- package/src/assets/commands/release.md +206 -0
- package/src/assets/commands/research.mds +164 -0
- package/src/assets/commands/resolve.mds +636 -0
- package/src/assets/commands/self-review.mds +156 -0
- package/src/assets/rules/accessibility.md +11 -0
- package/src/assets/rules/compliance.md +15 -0
- package/src/assets/rules/engineering.md +13 -0
- package/src/assets/rules/go.md +12 -0
- package/src/assets/rules/java.md +12 -0
- package/src/assets/rules/python.md +12 -0
- package/src/assets/rules/quality.md +14 -0
- package/src/assets/rules/react.md +11 -0
- package/src/assets/rules/reliability.md +12 -0
- package/src/assets/rules/rust.md +12 -0
- package/src/assets/rules/security.md +12 -0
- package/src/assets/rules/typescript.md +12 -0
- package/src/assets/rules/ui-design.md +11 -0
- package/src/assets/scripts/hooks/assets/orchestrator-charter.md +21 -0
- package/src/assets/scripts/hooks/background-memory-update +460 -0
- package/src/assets/scripts/hooks/capture-prompt +87 -0
- package/src/assets/scripts/hooks/capture-question +153 -0
- package/src/assets/scripts/hooks/capture-turn +105 -0
- package/src/assets/scripts/hooks/debug-trace +75 -0
- package/src/assets/scripts/hooks/decisions-usage-scan.cjs +131 -0
- package/src/assets/scripts/hooks/ensure-devflow-init +39 -0
- package/src/assets/scripts/hooks/ensure-proxy +294 -0
- package/src/assets/scripts/hooks/ensure-root-gitignore +116 -0
- package/src/assets/scripts/hooks/get-mtime +23 -0
- package/src/assets/scripts/hooks/git-marker +16 -0
- package/src/assets/scripts/hooks/hook-bootstrap +25 -0
- package/src/assets/scripts/hooks/hook-log-init +41 -0
- package/src/assets/scripts/hooks/json-helper.cjs +725 -0
- package/src/assets/scripts/hooks/json-parse +243 -0
- package/src/assets/scripts/hooks/learning-lock +44 -0
- package/src/assets/scripts/hooks/lib/decisions-format.cjs +301 -0
- package/src/assets/scripts/hooks/lib/mkdir-lock.cjs +106 -0
- package/src/assets/scripts/hooks/lib/project-paths.cjs +230 -0
- package/src/assets/scripts/hooks/lib/render-decisions.cjs +398 -0
- package/src/assets/scripts/hooks/lib/safe-path.cjs +29 -0
- package/src/assets/scripts/hooks/log-paths +24 -0
- package/src/assets/scripts/hooks/memory-worker +101 -0
- package/src/assets/scripts/hooks/pre-compact-memory +126 -0
- package/src/assets/scripts/hooks/preamble +77 -0
- package/src/assets/scripts/hooks/queue-append +120 -0
- package/src/assets/scripts/hooks/resolve-project-root +37 -0
- package/src/assets/scripts/hooks/run-hook +31 -0
- package/src/assets/scripts/hooks/session-start-context +180 -0
- package/src/assets/scripts/hooks/session-start-memory +318 -0
- package/src/assets/scripts/hooks/session-start-orchestrator +54 -0
- package/src/assets/scripts/hud.sh +5 -0
- package/src/assets/scripts/redact-secrets.cjs +410 -0
- package/src/assets/skills/accessibility/SKILL.md +145 -0
- package/src/assets/skills/accessibility/references/patterns.md +398 -0
- package/src/assets/skills/accessibility/references/sources.md +26 -0
- package/src/assets/skills/accessibility/references/violations.md +358 -0
- package/src/assets/skills/apply-decisions/SKILL.md +100 -0
- package/src/assets/skills/apply-feature-knowledge/SKILL.md +69 -0
- package/src/assets/skills/architecture/SKILL.md +138 -0
- package/src/assets/skills/architecture/references/patterns.md +378 -0
- package/src/assets/skills/architecture/references/sources.md +41 -0
- package/src/assets/skills/architecture/references/violations.md +314 -0
- package/src/assets/skills/boundary-validation/SKILL.md +119 -0
- package/src/assets/skills/boundary-validation/references/detection.md +283 -0
- package/src/assets/skills/boundary-validation/references/patterns.md +283 -0
- package/src/assets/skills/boundary-validation/references/sources.md +41 -0
- package/src/assets/skills/boundary-validation/references/violations.md +211 -0
- package/src/assets/skills/complexity/SKILL.md +150 -0
- package/src/assets/skills/compliance/SKILL.md +121 -0
- package/src/assets/skills/compliance/frameworks/gdpr/fragment.md +11 -0
- package/src/assets/skills/compliance/frameworks/gdpr/reference.md +50 -0
- package/src/assets/skills/compliance/frameworks/hipaa/fragment.md +11 -0
- package/src/assets/skills/compliance/frameworks/hipaa/reference.md +44 -0
- package/src/assets/skills/compliance/frameworks/iso-27001/fragment.md +10 -0
- package/src/assets/skills/compliance/frameworks/iso-27001/reference.md +45 -0
- package/src/assets/skills/compliance/frameworks/pci-dss/fragment.md +11 -0
- package/src/assets/skills/compliance/frameworks/pci-dss/reference.md +55 -0
- package/src/assets/skills/compliance/frameworks/soc2/fragment.md +10 -0
- package/src/assets/skills/compliance/frameworks/soc2/reference.md +53 -0
- package/src/assets/skills/compliance/frameworks/sox/fragment.md +10 -0
- package/src/assets/skills/compliance/frameworks/sox/reference.md +67 -0
- package/src/assets/skills/compliance/references/detection.md +108 -0
- package/src/assets/skills/compliance/references/sources.md +28 -0
- package/src/assets/skills/consistency/SKILL.md +140 -0
- package/src/assets/skills/database/SKILL.md +134 -0
- package/src/assets/skills/dependencies/SKILL.md +141 -0
- package/src/assets/skills/dependency-research/SKILL.md +133 -0
- package/src/assets/skills/dependency-research/references/evaluation-criteria.md +101 -0
- package/src/assets/skills/design-review/SKILL.md +155 -0
- package/src/assets/skills/design-review/references/anti-patterns.md +207 -0
- package/src/assets/skills/docs-framework/SKILL.md +190 -0
- package/src/assets/skills/docs-framework/references/patterns.md +381 -0
- package/src/assets/skills/docs-framework/references/violations.md +221 -0
- package/src/assets/skills/documentation/SKILL.md +126 -0
- package/src/assets/skills/feature-knowledge/SKILL.md +341 -0
- package/src/assets/skills/gap-analysis/SKILL.md +151 -0
- package/src/assets/skills/gap-analysis/references/check-layers.md +125 -0
- package/src/assets/skills/git/SKILL.md +287 -0
- package/src/assets/skills/git/references/github-api.md +666 -0
- package/src/assets/skills/git/references/patterns.md +324 -0
- package/src/assets/skills/git/references/sources.md +16 -0
- package/src/assets/skills/git/references/violations.md +128 -0
- package/src/assets/skills/go/SKILL.md +147 -0
- package/src/assets/skills/go/references/concurrency.md +335 -0
- package/src/assets/skills/go/references/patterns.md +278 -0
- package/src/assets/skills/go/references/sources.md +41 -0
- package/src/assets/skills/go/references/violations.md +262 -0
- package/src/assets/skills/java/SKILL.md +148 -0
- package/src/assets/skills/java/references/modern-java.md +335 -0
- package/src/assets/skills/java/references/patterns.md +311 -0
- package/src/assets/skills/java/references/sources.md +44 -0
- package/src/assets/skills/java/references/violations.md +257 -0
- package/src/assets/skills/patterns/SKILL.md +162 -0
- package/src/assets/skills/performance/SKILL.md +135 -0
- package/src/assets/skills/performance/references/patterns.md +516 -0
- package/src/assets/skills/performance/references/sources.md +41 -0
- package/src/assets/skills/performance/references/violations.md +417 -0
- package/src/assets/skills/python/SKILL.md +156 -0
- package/src/assets/skills/python/references/async.md +255 -0
- package/src/assets/skills/python/references/patterns.md +280 -0
- package/src/assets/skills/python/references/sources.md +41 -0
- package/src/assets/skills/python/references/violations.md +272 -0
- package/src/assets/skills/qa/SKILL.md +136 -0
- package/src/assets/skills/qa/references/browser-testing.md +97 -0
- package/src/assets/skills/qa/references/patterns.md +118 -0
- package/src/assets/skills/qa/references/scenario-templates.md +102 -0
- package/src/assets/skills/qa/references/sources.md +30 -0
- package/src/assets/skills/qa/references/violations.md +98 -0
- package/src/assets/skills/quality-gates/SKILL.md +152 -0
- package/src/assets/skills/quality-gates/references/stub-detection.md +135 -0
- package/src/assets/skills/react/SKILL.md +143 -0
- package/src/assets/skills/react/references/error-handling.md +179 -0
- package/src/assets/skills/react/references/forms.md +214 -0
- package/src/assets/skills/react/references/hooks.md +193 -0
- package/src/assets/skills/react/references/patterns.md +1336 -0
- package/src/assets/skills/react/references/sources.md +35 -0
- package/src/assets/skills/react/references/violations.md +570 -0
- package/src/assets/skills/regression/SKILL.md +146 -0
- package/src/assets/skills/reliability/SKILL.md +153 -0
- package/src/assets/skills/reliability/references/detection.md +66 -0
- package/src/assets/skills/reliability/references/patterns.md +151 -0
- package/src/assets/skills/reliability/references/sources.md +27 -0
- package/src/assets/skills/reliability/references/violations.md +125 -0
- package/src/assets/skills/research-codebase/SKILL.md +135 -0
- package/src/assets/skills/research-competitor/SKILL.md +145 -0
- package/src/assets/skills/research-external/SKILL.md +141 -0
- package/src/assets/skills/research-market/SKILL.md +145 -0
- package/src/assets/skills/research-technology/SKILL.md +180 -0
- package/src/assets/skills/review-methodology/SKILL.md +121 -0
- package/src/assets/skills/review-methodology/references/patterns.md +186 -0
- package/src/assets/skills/review-methodology/references/report-template.md +142 -0
- package/src/assets/skills/review-methodology/references/violations.md +125 -0
- package/src/assets/skills/rust/SKILL.md +148 -0
- package/src/assets/skills/rust/references/ownership.md +278 -0
- package/src/assets/skills/rust/references/patterns.md +247 -0
- package/src/assets/skills/rust/references/sources.md +46 -0
- package/src/assets/skills/rust/references/violations.md +252 -0
- package/src/assets/skills/security/SKILL.md +121 -0
- package/src/assets/skills/security/references/patterns.md +271 -0
- package/src/assets/skills/security/references/sources.md +41 -0
- package/src/assets/skills/security/references/violations.md +241 -0
- package/src/assets/skills/software-design/SKILL.md +143 -0
- package/src/assets/skills/software-design/references/checklist.md +259 -0
- package/src/assets/skills/software-design/references/code-smell-violations.md +189 -0
- package/src/assets/skills/software-design/references/patterns.md +359 -0
- package/src/assets/skills/software-design/references/sources.md +41 -0
- package/src/assets/skills/software-design/references/violations.md +341 -0
- package/src/assets/skills/test-driven-development/SKILL.md +197 -0
- package/src/assets/skills/testing/SKILL.md +139 -0
- package/src/assets/skills/testing/references/patterns.md +346 -0
- package/src/assets/skills/testing/references/sources.md +53 -0
- package/src/assets/skills/testing/references/violations.md +322 -0
- package/src/assets/skills/typescript/SKILL.md +150 -0
- package/src/assets/skills/typescript/references/async.md +333 -0
- package/src/assets/skills/typescript/references/patterns.md +440 -0
- package/src/assets/skills/typescript/references/sources.md +41 -0
- package/src/assets/skills/typescript/references/type-guards.md +333 -0
- package/src/assets/skills/typescript/references/utility-types.md +255 -0
- package/src/assets/skills/typescript/references/violations.md +285 -0
- package/src/assets/skills/ui-design/SKILL.md +144 -0
- package/src/assets/skills/ui-design/references/patterns.md +341 -0
- package/src/assets/skills/ui-design/references/sources.md +41 -0
- package/src/assets/skills/ui-design/references/violations.md +312 -0
- package/src/assets/skills/worktree-support/SKILL.md +92 -0
- package/src/targets/claude-code/templates/claudeignore.template +188 -0
- package/src/targets/claude-code/templates/settings.json +86 -0
- package/dist/cli.d.ts +0 -3
- package/dist/commands/ambient.d.ts +0 -18
- package/dist/commands/ambient.js +0 -137
- package/dist/commands/hud.d.ts +0 -22
- package/dist/commands/hud.js +0 -180
- package/dist/commands/init.d.ts +0 -16
- package/dist/commands/init.js +0 -738
- package/dist/commands/list.d.ts +0 -24
- package/dist/commands/list.js +0 -89
- package/dist/commands/memory.d.ts +0 -22
- package/dist/commands/memory.js +0 -175
- package/dist/commands/skills.d.ts +0 -11
- package/dist/commands/skills.js +0 -116
- package/dist/commands/uninstall.d.ts +0 -22
- package/dist/commands/uninstall.js +0 -558
- package/dist/hud/cache.d.ts +0 -14
- package/dist/hud/cache.js +0 -54
- package/dist/hud/colors.d.ts +0 -23
- package/dist/hud/components/config-counts.d.ts +0 -8
- package/dist/hud/components/context-usage.d.ts +0 -8
- package/dist/hud/components/diff-stats.d.ts +0 -3
- package/dist/hud/components/directory.d.ts +0 -3
- package/dist/hud/components/git-ahead-behind.d.ts +0 -3
- package/dist/hud/components/git-branch.d.ts +0 -3
- package/dist/hud/components/model.d.ts +0 -3
- package/dist/hud/components/release-info.d.ts +0 -3
- package/dist/hud/components/session-cost.d.ts +0 -3
- package/dist/hud/components/session-duration.d.ts +0 -3
- package/dist/hud/components/todo-progress.d.ts +0 -3
- package/dist/hud/components/usage-quota.d.ts +0 -3
- package/dist/hud/components/version-badge.d.ts +0 -3
- package/dist/hud/components/worktree-count.d.ts +0 -3
- package/dist/hud/config.d.ts +0 -10
- package/dist/hud/credentials.d.ts +0 -17
- package/dist/hud/credentials.js +0 -99
- package/dist/hud/git.d.ts +0 -7
- package/dist/hud/index.d.ts +0 -2
- package/dist/hud/render.d.ts +0 -7
- package/dist/hud/stdin.d.ts +0 -6
- package/dist/hud/transcript.d.ts +0 -7
- package/dist/hud/types.d.ts +0 -116
- package/dist/hud/usage-api.d.ts +0 -7
- package/dist/hud/usage-api.js +0 -84
- package/dist/plugins.d.ts +0 -46
- package/dist/plugins.js +0 -233
- package/dist/utils/cli.d.ts +0 -5
- package/dist/utils/cli.js +0 -14
- package/dist/utils/git.d.ts +0 -11
- package/dist/utils/git.js +0 -36
- package/dist/utils/installer.d.ts +0 -41
- package/dist/utils/installer.js +0 -195
- package/dist/utils/manifest.d.ts +0 -46
- package/dist/utils/manifest.js +0 -100
- package/dist/utils/paths.d.ts +0 -42
- package/dist/utils/paths.js +0 -106
- package/dist/utils/post-install.d.ts +0 -87
- package/dist/utils/post-install.js +0 -546
- package/dist/utils/safe-delete-install.d.ts +0 -29
- package/dist/utils/safe-delete-install.js +0 -191
- package/dist/utils/safe-delete.d.ts +0 -12
- package/plugins/devflow-accessibility/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-accessibility/skills/accessibility/SKILL.md +0 -229
- package/plugins/devflow-accessibility/skills/accessibility/references/patterns.md +0 -670
- package/plugins/devflow-accessibility/skills/accessibility/references/violations.md +0 -419
- package/plugins/devflow-ambient/.claude-plugin/plugin.json +0 -33
- package/plugins/devflow-ambient/README.md +0 -68
- package/plugins/devflow-ambient/agents/coder.md +0 -135
- package/plugins/devflow-ambient/agents/reviewer.md +0 -165
- package/plugins/devflow-ambient/agents/scrutinizer.md +0 -82
- package/plugins/devflow-ambient/agents/shepherd.md +0 -108
- package/plugins/devflow-ambient/agents/simplifier.md +0 -102
- package/plugins/devflow-ambient/agents/skimmer.md +0 -143
- package/plugins/devflow-ambient/agents/validator.md +0 -86
- package/plugins/devflow-ambient/skills/ambient-router/SKILL.md +0 -145
- package/plugins/devflow-ambient/skills/ambient-router/references/skill-catalog.md +0 -74
- package/plugins/devflow-ambient/skills/debug-orchestration/SKILL.md +0 -69
- package/plugins/devflow-ambient/skills/implementation-orchestration/SKILL.md +0 -92
- package/plugins/devflow-ambient/skills/plan-orchestration/SKILL.md +0 -71
- package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +0 -19
- package/plugins/devflow-audit-claude/README.md +0 -46
- package/plugins/devflow-audit-claude/agents/claude-md-auditor.md +0 -134
- package/plugins/devflow-audit-claude/commands/audit-claude.md +0 -89
- package/plugins/devflow-code-review/.claude-plugin/plugin.json +0 -38
- package/plugins/devflow-code-review/README.md +0 -73
- package/plugins/devflow-code-review/agents/git.md +0 -277
- package/plugins/devflow-code-review/agents/reviewer.md +0 -165
- package/plugins/devflow-code-review/agents/synthesizer.md +0 -211
- package/plugins/devflow-code-review/commands/code-review-teams.md +0 -285
- package/plugins/devflow-code-review/commands/code-review.md +0 -163
- package/plugins/devflow-code-review/skills/agent-teams/SKILL.md +0 -124
- package/plugins/devflow-code-review/skills/agent-teams/references/cleanup.md +0 -104
- package/plugins/devflow-code-review/skills/agent-teams/references/communication.md +0 -122
- package/plugins/devflow-code-review/skills/agent-teams/references/team-patterns.md +0 -217
- package/plugins/devflow-code-review/skills/architecture-patterns/SKILL.md +0 -153
- package/plugins/devflow-code-review/skills/architecture-patterns/references/patterns.md +0 -873
- package/plugins/devflow-code-review/skills/architecture-patterns/references/violations.md +0 -575
- package/plugins/devflow-code-review/skills/complexity-patterns/SKILL.md +0 -143
- package/plugins/devflow-code-review/skills/consistency-patterns/SKILL.md +0 -140
- package/plugins/devflow-code-review/skills/database-patterns/SKILL.md +0 -134
- package/plugins/devflow-code-review/skills/dependencies-patterns/SKILL.md +0 -141
- package/plugins/devflow-code-review/skills/documentation-patterns/SKILL.md +0 -125
- package/plugins/devflow-code-review/skills/knowledge-persistence/SKILL.md +0 -128
- package/plugins/devflow-code-review/skills/knowledge-persistence/references/examples.md +0 -44
- package/plugins/devflow-code-review/skills/performance-patterns/SKILL.md +0 -154
- package/plugins/devflow-code-review/skills/performance-patterns/references/patterns.md +0 -503
- package/plugins/devflow-code-review/skills/performance-patterns/references/violations.md +0 -354
- package/plugins/devflow-code-review/skills/regression-patterns/SKILL.md +0 -146
- package/plugins/devflow-code-review/skills/review-methodology/SKILL.md +0 -119
- package/plugins/devflow-code-review/skills/review-methodology/references/patterns.md +0 -186
- package/plugins/devflow-code-review/skills/review-methodology/references/report-template.md +0 -142
- package/plugins/devflow-code-review/skills/review-methodology/references/violations.md +0 -125
- package/plugins/devflow-code-review/skills/security-patterns/SKILL.md +0 -156
- package/plugins/devflow-code-review/skills/security-patterns/references/patterns.md +0 -507
- package/plugins/devflow-code-review/skills/security-patterns/references/violations.md +0 -237
- package/plugins/devflow-code-review/skills/test-patterns/SKILL.md +0 -183
- package/plugins/devflow-code-review/skills/test-patterns/references/patterns.md +0 -220
- package/plugins/devflow-code-review/skills/test-patterns/references/violations.md +0 -221
- package/plugins/devflow-core-skills/.claude-plugin/plugin.json +0 -31
- package/plugins/devflow-core-skills/README.md +0 -50
- package/plugins/devflow-core-skills/skills/core-patterns/SKILL.md +0 -162
- package/plugins/devflow-core-skills/skills/core-patterns/references/checklist.md +0 -276
- package/plugins/devflow-core-skills/skills/core-patterns/references/code-smell-violations.md +0 -144
- package/plugins/devflow-core-skills/skills/core-patterns/references/patterns.md +0 -576
- package/plugins/devflow-core-skills/skills/core-patterns/references/violations.md +0 -369
- package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +0 -143
- package/plugins/devflow-core-skills/skills/docs-framework/references/patterns.md +0 -346
- package/plugins/devflow-core-skills/skills/docs-framework/references/violations.md +0 -221
- package/plugins/devflow-core-skills/skills/git-safety/SKILL.md +0 -122
- package/plugins/devflow-core-skills/skills/git-safety/references/patterns.md +0 -289
- package/plugins/devflow-core-skills/skills/git-safety/references/violations.md +0 -18
- package/plugins/devflow-core-skills/skills/git-workflow/SKILL.md +0 -158
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-patterns.md +0 -115
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-violations.md +0 -77
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-patterns.md +0 -127
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-violations.md +0 -96
- package/plugins/devflow-core-skills/skills/github-patterns/SKILL.md +0 -153
- package/plugins/devflow-core-skills/skills/github-patterns/references/patterns.md +0 -572
- package/plugins/devflow-core-skills/skills/github-patterns/references/violations.md +0 -298
- package/plugins/devflow-core-skills/skills/input-validation/SKILL.md +0 -148
- package/plugins/devflow-core-skills/skills/input-validation/references/detection.md +0 -283
- package/plugins/devflow-core-skills/skills/input-validation/references/patterns.md +0 -361
- package/plugins/devflow-core-skills/skills/input-validation/references/violations.md +0 -224
- package/plugins/devflow-core-skills/skills/search-first/SKILL.md +0 -133
- package/plugins/devflow-core-skills/skills/search-first/references/evaluation-criteria.md +0 -101
- package/plugins/devflow-core-skills/skills/test-driven-development/SKILL.md +0 -137
- package/plugins/devflow-core-skills/skills/test-patterns/SKILL.md +0 -183
- package/plugins/devflow-core-skills/skills/test-patterns/references/detection.md +0 -149
- package/plugins/devflow-core-skills/skills/test-patterns/references/patterns.md +0 -220
- package/plugins/devflow-core-skills/skills/test-patterns/references/report-template.md +0 -108
- package/plugins/devflow-core-skills/skills/test-patterns/references/violations.md +0 -221
- package/plugins/devflow-debug/.claude-plugin/plugin.json +0 -26
- package/plugins/devflow-debug/README.md +0 -65
- package/plugins/devflow-debug/agents/git.md +0 -277
- package/plugins/devflow-debug/agents/synthesizer.md +0 -211
- package/plugins/devflow-debug/commands/debug-teams.md +0 -245
- package/plugins/devflow-debug/commands/debug.md +0 -174
- package/plugins/devflow-debug/skills/agent-teams/SKILL.md +0 -124
- package/plugins/devflow-debug/skills/agent-teams/references/cleanup.md +0 -104
- package/plugins/devflow-debug/skills/agent-teams/references/communication.md +0 -122
- package/plugins/devflow-debug/skills/agent-teams/references/team-patterns.md +0 -217
- package/plugins/devflow-debug/skills/git-safety/SKILL.md +0 -122
- package/plugins/devflow-debug/skills/git-safety/references/detection.md +0 -290
- package/plugins/devflow-debug/skills/git-safety/references/patterns.md +0 -289
- package/plugins/devflow-debug/skills/git-safety/references/violations.md +0 -18
- package/plugins/devflow-debug/skills/knowledge-persistence/SKILL.md +0 -128
- package/plugins/devflow-debug/skills/knowledge-persistence/references/examples.md +0 -44
- package/plugins/devflow-frontend-design/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-frontend-design/skills/frontend-design/SKILL.md +0 -254
- package/plugins/devflow-frontend-design/skills/frontend-design/references/patterns.md +0 -511
- package/plugins/devflow-frontend-design/skills/frontend-design/references/violations.md +0 -453
- package/plugins/devflow-go/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-go/skills/go/SKILL.md +0 -187
- package/plugins/devflow-go/skills/go/references/concurrency.md +0 -312
- package/plugins/devflow-go/skills/go/references/patterns.md +0 -232
- package/plugins/devflow-go/skills/go/references/violations.md +0 -205
- package/plugins/devflow-implement/.claude-plugin/plugin.json +0 -35
- package/plugins/devflow-implement/README.md +0 -71
- package/plugins/devflow-implement/agents/coder.md +0 -135
- package/plugins/devflow-implement/agents/git.md +0 -277
- package/plugins/devflow-implement/agents/scrutinizer.md +0 -82
- package/plugins/devflow-implement/agents/shepherd.md +0 -108
- package/plugins/devflow-implement/agents/simplifier.md +0 -102
- package/plugins/devflow-implement/agents/skimmer.md +0 -143
- package/plugins/devflow-implement/agents/synthesizer.md +0 -211
- package/plugins/devflow-implement/agents/validator.md +0 -86
- package/plugins/devflow-implement/commands/implement-teams.md +0 -620
- package/plugins/devflow-implement/commands/implement.md +0 -430
- package/plugins/devflow-implement/skills/agent-teams/SKILL.md +0 -124
- package/plugins/devflow-implement/skills/agent-teams/references/cleanup.md +0 -104
- package/plugins/devflow-implement/skills/agent-teams/references/communication.md +0 -122
- package/plugins/devflow-implement/skills/agent-teams/references/team-patterns.md +0 -217
- package/plugins/devflow-implement/skills/implementation-patterns/SKILL.md +0 -162
- package/plugins/devflow-implement/skills/knowledge-persistence/SKILL.md +0 -128
- package/plugins/devflow-implement/skills/knowledge-persistence/references/examples.md +0 -44
- package/plugins/devflow-implement/skills/self-review/SKILL.md +0 -149
- package/plugins/devflow-implement/skills/self-review/references/stub-detection.md +0 -135
- package/plugins/devflow-java/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-java/skills/java/SKILL.md +0 -183
- package/plugins/devflow-java/skills/java/references/modern-java.md +0 -270
- package/plugins/devflow-java/skills/java/references/patterns.md +0 -235
- package/plugins/devflow-java/skills/java/references/violations.md +0 -213
- package/plugins/devflow-python/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-python/skills/python/SKILL.md +0 -188
- package/plugins/devflow-python/skills/python/references/async.md +0 -220
- package/plugins/devflow-python/skills/python/references/patterns.md +0 -226
- package/plugins/devflow-python/skills/python/references/violations.md +0 -204
- package/plugins/devflow-react/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-react/skills/react/SKILL.md +0 -276
- package/plugins/devflow-react/skills/react/references/patterns.md +0 -1331
- package/plugins/devflow-react/skills/react/references/violations.md +0 -565
- package/plugins/devflow-resolve/.claude-plugin/plugin.json +0 -29
- package/plugins/devflow-resolve/README.md +0 -65
- package/plugins/devflow-resolve/agents/git.md +0 -277
- package/plugins/devflow-resolve/agents/resolver.md +0 -131
- package/plugins/devflow-resolve/agents/simplifier.md +0 -102
- package/plugins/devflow-resolve/commands/resolve-teams.md +0 -307
- package/plugins/devflow-resolve/commands/resolve.md +0 -246
- package/plugins/devflow-resolve/skills/agent-teams/SKILL.md +0 -124
- package/plugins/devflow-resolve/skills/agent-teams/references/cleanup.md +0 -104
- package/plugins/devflow-resolve/skills/agent-teams/references/communication.md +0 -122
- package/plugins/devflow-resolve/skills/agent-teams/references/team-patterns.md +0 -217
- package/plugins/devflow-resolve/skills/implementation-patterns/SKILL.md +0 -162
- package/plugins/devflow-resolve/skills/implementation-patterns/references/patterns.md +0 -1063
- package/plugins/devflow-resolve/skills/implementation-patterns/references/violations.md +0 -483
- package/plugins/devflow-resolve/skills/knowledge-persistence/SKILL.md +0 -128
- package/plugins/devflow-resolve/skills/knowledge-persistence/references/examples.md +0 -44
- package/plugins/devflow-resolve/skills/security-patterns/SKILL.md +0 -156
- package/plugins/devflow-resolve/skills/security-patterns/references/detection.md +0 -287
- package/plugins/devflow-resolve/skills/security-patterns/references/patterns.md +0 -507
- package/plugins/devflow-resolve/skills/security-patterns/references/violations.md +0 -237
- package/plugins/devflow-rust/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-rust/skills/rust/SKILL.md +0 -193
- package/plugins/devflow-rust/skills/rust/references/ownership.md +0 -242
- package/plugins/devflow-rust/skills/rust/references/patterns.md +0 -210
- package/plugins/devflow-rust/skills/rust/references/violations.md +0 -191
- package/plugins/devflow-self-review/.claude-plugin/plugin.json +0 -26
- package/plugins/devflow-self-review/README.md +0 -38
- package/plugins/devflow-self-review/agents/scrutinizer.md +0 -82
- package/plugins/devflow-self-review/agents/simplifier.md +0 -102
- package/plugins/devflow-self-review/agents/validator.md +0 -86
- package/plugins/devflow-self-review/commands/self-review.md +0 -132
- package/plugins/devflow-self-review/skills/core-patterns/SKILL.md +0 -162
- package/plugins/devflow-self-review/skills/core-patterns/references/checklist.md +0 -276
- package/plugins/devflow-self-review/skills/core-patterns/references/code-smell-violations.md +0 -144
- package/plugins/devflow-self-review/skills/core-patterns/references/detection.md +0 -303
- package/plugins/devflow-self-review/skills/core-patterns/references/patterns.md +0 -576
- package/plugins/devflow-self-review/skills/core-patterns/references/violations.md +0 -369
- package/plugins/devflow-self-review/skills/self-review/SKILL.md +0 -149
- package/plugins/devflow-self-review/skills/self-review/references/patterns.md +0 -405
- package/plugins/devflow-self-review/skills/self-review/references/report-template.md +0 -253
- package/plugins/devflow-self-review/skills/self-review/references/stub-detection.md +0 -135
- package/plugins/devflow-self-review/skills/self-review/references/violations.md +0 -308
- package/plugins/devflow-specify/.claude-plugin/plugin.json +0 -25
- package/plugins/devflow-specify/README.md +0 -46
- package/plugins/devflow-specify/agents/skimmer.md +0 -143
- package/plugins/devflow-specify/agents/synthesizer.md +0 -211
- package/plugins/devflow-specify/commands/specify-teams.md +0 -321
- package/plugins/devflow-specify/commands/specify.md +0 -186
- package/plugins/devflow-specify/skills/agent-teams/SKILL.md +0 -124
- package/plugins/devflow-specify/skills/agent-teams/references/cleanup.md +0 -104
- package/plugins/devflow-specify/skills/agent-teams/references/communication.md +0 -122
- package/plugins/devflow-specify/skills/agent-teams/references/team-patterns.md +0 -217
- package/plugins/devflow-typescript/.claude-plugin/plugin.json +0 -21
- package/plugins/devflow-typescript/skills/typescript/SKILL.md +0 -176
- package/plugins/devflow-typescript/skills/typescript/references/patterns.md +0 -1105
- package/plugins/devflow-typescript/skills/typescript/references/violations.md +0 -433
- package/scripts/hooks/ambient-prompt +0 -50
- package/scripts/hooks/background-memory-update +0 -257
- package/scripts/hooks/ensure-memory-gitignore +0 -17
- package/scripts/hooks/pre-compact-memory +0 -87
- package/scripts/hooks/run-hook +0 -23
- package/scripts/hooks/session-start-memory +0 -165
- package/scripts/hooks/stop-update-memory +0 -85
- package/scripts/hud/cache.d.ts +0 -14
- package/scripts/hud/cache.d.ts.map +0 -1
- package/scripts/hud/cache.js +0 -54
- package/scripts/hud/cache.js.map +0 -1
- package/scripts/hud/colors.d.ts +0 -23
- package/scripts/hud/colors.d.ts.map +0 -1
- package/scripts/hud/colors.js +0 -62
- package/scripts/hud/colors.js.map +0 -1
- package/scripts/hud/components/config-counts.d.ts +0 -8
- package/scripts/hud/components/config-counts.d.ts.map +0 -1
- package/scripts/hud/components/config-counts.js +0 -91
- package/scripts/hud/components/config-counts.js.map +0 -1
- package/scripts/hud/components/context-usage.d.ts +0 -8
- package/scripts/hud/components/context-usage.d.ts.map +0 -1
- package/scripts/hud/components/context-usage.js +0 -49
- package/scripts/hud/components/context-usage.js.map +0 -1
- package/scripts/hud/components/diff-stats.d.ts +0 -3
- package/scripts/hud/components/diff-stats.d.ts.map +0 -1
- package/scripts/hud/components/diff-stats.js +0 -36
- package/scripts/hud/components/diff-stats.js.map +0 -1
- package/scripts/hud/components/directory.d.ts +0 -3
- package/scripts/hud/components/directory.d.ts.map +0 -1
- package/scripts/hud/components/directory.js +0 -10
- package/scripts/hud/components/directory.js.map +0 -1
- package/scripts/hud/components/git-ahead-behind.d.ts +0 -3
- package/scripts/hud/components/git-ahead-behind.d.ts.map +0 -1
- package/scripts/hud/components/git-ahead-behind.js +0 -16
- package/scripts/hud/components/git-ahead-behind.js.map +0 -1
- package/scripts/hud/components/git-branch.d.ts +0 -3
- package/scripts/hud/components/git-branch.d.ts.map +0 -1
- package/scripts/hud/components/git-branch.js +0 -14
- package/scripts/hud/components/git-branch.js.map +0 -1
- package/scripts/hud/components/model.d.ts +0 -3
- package/scripts/hud/components/model.d.ts.map +0 -1
- package/scripts/hud/components/model.js +0 -21
- package/scripts/hud/components/model.js.map +0 -1
- package/scripts/hud/components/release-info.d.ts +0 -3
- package/scripts/hud/components/release-info.d.ts.map +0 -1
- package/scripts/hud/components/release-info.js +0 -9
- package/scripts/hud/components/release-info.js.map +0 -1
- package/scripts/hud/components/session-cost.d.ts +0 -3
- package/scripts/hud/components/session-cost.d.ts.map +0 -1
- package/scripts/hud/components/session-cost.js +0 -9
- package/scripts/hud/components/session-cost.js.map +0 -1
- package/scripts/hud/components/session-duration.d.ts +0 -3
- package/scripts/hud/components/session-duration.d.ts.map +0 -1
- package/scripts/hud/components/session-duration.js +0 -18
- package/scripts/hud/components/session-duration.js.map +0 -1
- package/scripts/hud/components/todo-progress.d.ts +0 -3
- package/scripts/hud/components/todo-progress.d.ts.map +0 -1
- package/scripts/hud/components/todo-progress.js +0 -11
- package/scripts/hud/components/todo-progress.js.map +0 -1
- package/scripts/hud/components/usage-quota.d.ts +0 -3
- package/scripts/hud/components/usage-quota.d.ts.map +0 -1
- package/scripts/hud/components/usage-quota.js +0 -45
- package/scripts/hud/components/usage-quota.js.map +0 -1
- package/scripts/hud/components/version-badge.d.ts +0 -3
- package/scripts/hud/components/version-badge.d.ts.map +0 -1
- package/scripts/hud/components/version-badge.js +0 -80
- package/scripts/hud/components/version-badge.js.map +0 -1
- package/scripts/hud/components/worktree-count.d.ts +0 -3
- package/scripts/hud/components/worktree-count.d.ts.map +0 -1
- package/scripts/hud/components/worktree-count.js +0 -8
- package/scripts/hud/components/worktree-count.js.map +0 -1
- package/scripts/hud/config.d.ts +0 -10
- package/scripts/hud/config.d.ts.map +0 -1
- package/scripts/hud/config.js +0 -55
- package/scripts/hud/config.js.map +0 -1
- package/scripts/hud/credentials.d.ts +0 -17
- package/scripts/hud/credentials.d.ts.map +0 -1
- package/scripts/hud/credentials.js +0 -99
- package/scripts/hud/credentials.js.map +0 -1
- package/scripts/hud/git.d.ts +0 -7
- package/scripts/hud/git.d.ts.map +0 -1
- package/scripts/hud/git.js +0 -153
- package/scripts/hud/git.js.map +0 -1
- package/scripts/hud/index.d.ts +0 -2
- package/scripts/hud/index.d.ts.map +0 -1
- package/scripts/hud/index.js +0 -81
- package/scripts/hud/index.js.map +0 -1
- package/scripts/hud/render.d.ts +0 -7
- package/scripts/hud/render.d.ts.map +0 -1
- package/scripts/hud/render.js +0 -111
- package/scripts/hud/render.js.map +0 -1
- package/scripts/hud/stdin.d.ts +0 -6
- package/scripts/hud/stdin.d.ts.map +0 -1
- package/scripts/hud/stdin.js +0 -25
- package/scripts/hud/stdin.js.map +0 -1
- package/scripts/hud/transcript.d.ts +0 -7
- package/scripts/hud/transcript.d.ts.map +0 -1
- package/scripts/hud/transcript.js +0 -130
- package/scripts/hud/transcript.js.map +0 -1
- package/scripts/hud/types.d.ts +0 -116
- package/scripts/hud/types.d.ts.map +0 -1
- package/scripts/hud/types.js +0 -2
- package/scripts/hud/types.js.map +0 -1
- package/scripts/hud/usage-api.d.ts +0 -7
- package/scripts/hud/usage-api.d.ts.map +0 -1
- package/scripts/hud/usage-api.js +0 -84
- package/scripts/hud/usage-api.js.map +0 -1
- package/scripts/hud.sh +0 -5
- package/shared/agents/coder.md +0 -135
- package/shared/agents/git.md +0 -277
- package/shared/agents/resolver.md +0 -131
- package/shared/agents/reviewer.md +0 -165
- package/shared/agents/scrutinizer.md +0 -82
- package/shared/agents/shepherd.md +0 -108
- package/shared/agents/simplifier.md +0 -102
- package/shared/agents/skimmer.md +0 -143
- package/shared/agents/synthesizer.md +0 -211
- package/shared/agents/validator.md +0 -86
- package/shared/skills/accessibility/SKILL.md +0 -229
- package/shared/skills/accessibility/references/detection.md +0 -171
- package/shared/skills/accessibility/references/patterns.md +0 -670
- package/shared/skills/accessibility/references/violations.md +0 -419
- package/shared/skills/agent-teams/SKILL.md +0 -124
- package/shared/skills/agent-teams/references/cleanup.md +0 -104
- package/shared/skills/agent-teams/references/communication.md +0 -122
- package/shared/skills/agent-teams/references/team-patterns.md +0 -217
- package/shared/skills/ambient-router/SKILL.md +0 -145
- package/shared/skills/ambient-router/references/skill-catalog.md +0 -74
- package/shared/skills/architecture-patterns/SKILL.md +0 -153
- package/shared/skills/architecture-patterns/references/detection.md +0 -337
- package/shared/skills/architecture-patterns/references/patterns.md +0 -873
- package/shared/skills/architecture-patterns/references/violations.md +0 -575
- package/shared/skills/complexity-patterns/SKILL.md +0 -143
- package/shared/skills/complexity-patterns/references/detection.md +0 -264
- package/shared/skills/complexity-patterns/references/patterns.md +0 -487
- package/shared/skills/complexity-patterns/references/violations.md +0 -361
- package/shared/skills/consistency-patterns/SKILL.md +0 -140
- package/shared/skills/consistency-patterns/references/detection.md +0 -207
- package/shared/skills/consistency-patterns/references/patterns.md +0 -202
- package/shared/skills/consistency-patterns/references/violations.md +0 -213
- package/shared/skills/core-patterns/SKILL.md +0 -162
- package/shared/skills/core-patterns/references/checklist.md +0 -276
- package/shared/skills/core-patterns/references/code-smell-violations.md +0 -144
- package/shared/skills/core-patterns/references/detection.md +0 -303
- package/shared/skills/core-patterns/references/patterns.md +0 -576
- package/shared/skills/core-patterns/references/violations.md +0 -369
- package/shared/skills/database-patterns/SKILL.md +0 -134
- package/shared/skills/database-patterns/references/detection.md +0 -208
- package/shared/skills/database-patterns/references/patterns.md +0 -394
- package/shared/skills/database-patterns/references/violations.md +0 -332
- package/shared/skills/debug-orchestration/SKILL.md +0 -69
- package/shared/skills/dependencies-patterns/SKILL.md +0 -141
- package/shared/skills/dependencies-patterns/references/detection.md +0 -181
- package/shared/skills/dependencies-patterns/references/patterns.md +0 -225
- package/shared/skills/dependencies-patterns/references/violations.md +0 -247
- package/shared/skills/docs-framework/SKILL.md +0 -143
- package/shared/skills/docs-framework/references/patterns.md +0 -346
- package/shared/skills/docs-framework/references/violations.md +0 -221
- package/shared/skills/documentation-patterns/SKILL.md +0 -125
- package/shared/skills/documentation-patterns/references/detection.md +0 -190
- package/shared/skills/documentation-patterns/references/patterns.md +0 -189
- package/shared/skills/documentation-patterns/references/violations.md +0 -163
- package/shared/skills/frontend-design/SKILL.md +0 -254
- package/shared/skills/frontend-design/references/detection.md +0 -184
- package/shared/skills/frontend-design/references/patterns.md +0 -511
- package/shared/skills/frontend-design/references/violations.md +0 -453
- package/shared/skills/git-safety/SKILL.md +0 -122
- package/shared/skills/git-safety/references/detection.md +0 -290
- package/shared/skills/git-safety/references/patterns.md +0 -289
- package/shared/skills/git-safety/references/violations.md +0 -18
- package/shared/skills/git-workflow/SKILL.md +0 -158
- package/shared/skills/git-workflow/references/commit-patterns.md +0 -115
- package/shared/skills/git-workflow/references/commit-violations.md +0 -77
- package/shared/skills/git-workflow/references/pr-patterns.md +0 -127
- package/shared/skills/git-workflow/references/pr-violations.md +0 -96
- package/shared/skills/github-patterns/SKILL.md +0 -153
- package/shared/skills/github-patterns/references/patterns.md +0 -572
- package/shared/skills/github-patterns/references/violations.md +0 -298
- package/shared/skills/go/SKILL.md +0 -187
- package/shared/skills/go/references/concurrency.md +0 -312
- package/shared/skills/go/references/detection.md +0 -129
- package/shared/skills/go/references/patterns.md +0 -232
- package/shared/skills/go/references/violations.md +0 -205
- package/shared/skills/implementation-orchestration/SKILL.md +0 -92
- package/shared/skills/implementation-patterns/SKILL.md +0 -162
- package/shared/skills/implementation-patterns/references/patterns.md +0 -1063
- package/shared/skills/implementation-patterns/references/violations.md +0 -483
- package/shared/skills/input-validation/SKILL.md +0 -148
- package/shared/skills/input-validation/references/detection.md +0 -283
- package/shared/skills/input-validation/references/patterns.md +0 -361
- package/shared/skills/input-validation/references/violations.md +0 -224
- package/shared/skills/java/SKILL.md +0 -183
- package/shared/skills/java/references/detection.md +0 -120
- package/shared/skills/java/references/modern-java.md +0 -270
- package/shared/skills/java/references/patterns.md +0 -235
- package/shared/skills/java/references/violations.md +0 -213
- package/shared/skills/knowledge-persistence/SKILL.md +0 -128
- package/shared/skills/knowledge-persistence/references/examples.md +0 -44
- package/shared/skills/performance-patterns/SKILL.md +0 -154
- package/shared/skills/performance-patterns/references/detection.md +0 -351
- package/shared/skills/performance-patterns/references/patterns.md +0 -503
- package/shared/skills/performance-patterns/references/violations.md +0 -354
- package/shared/skills/plan-orchestration/SKILL.md +0 -71
- package/shared/skills/python/SKILL.md +0 -188
- package/shared/skills/python/references/async.md +0 -220
- package/shared/skills/python/references/detection.md +0 -128
- package/shared/skills/python/references/patterns.md +0 -226
- package/shared/skills/python/references/violations.md +0 -204
- package/shared/skills/react/SKILL.md +0 -276
- package/shared/skills/react/references/patterns.md +0 -1331
- package/shared/skills/react/references/violations.md +0 -565
- package/shared/skills/regression-patterns/SKILL.md +0 -146
- package/shared/skills/regression-patterns/references/detection.md +0 -237
- package/shared/skills/regression-patterns/references/patterns.md +0 -226
- package/shared/skills/regression-patterns/references/violations.md +0 -225
- package/shared/skills/review-methodology/SKILL.md +0 -119
- package/shared/skills/review-methodology/references/patterns.md +0 -186
- package/shared/skills/review-methodology/references/report-template.md +0 -142
- package/shared/skills/review-methodology/references/violations.md +0 -125
- package/shared/skills/rust/SKILL.md +0 -193
- package/shared/skills/rust/references/detection.md +0 -131
- package/shared/skills/rust/references/ownership.md +0 -242
- package/shared/skills/rust/references/patterns.md +0 -210
- package/shared/skills/rust/references/violations.md +0 -191
- package/shared/skills/search-first/SKILL.md +0 -133
- package/shared/skills/search-first/references/evaluation-criteria.md +0 -101
- package/shared/skills/security-patterns/SKILL.md +0 -156
- package/shared/skills/security-patterns/references/detection.md +0 -287
- package/shared/skills/security-patterns/references/patterns.md +0 -507
- package/shared/skills/security-patterns/references/violations.md +0 -237
- package/shared/skills/self-review/SKILL.md +0 -149
- package/shared/skills/self-review/references/patterns.md +0 -405
- package/shared/skills/self-review/references/report-template.md +0 -253
- package/shared/skills/self-review/references/stub-detection.md +0 -135
- package/shared/skills/self-review/references/violations.md +0 -308
- package/shared/skills/test-driven-development/SKILL.md +0 -137
- package/shared/skills/test-driven-development/references/rationalization-prevention.md +0 -111
- package/shared/skills/test-patterns/SKILL.md +0 -183
- package/shared/skills/test-patterns/references/detection.md +0 -149
- package/shared/skills/test-patterns/references/patterns.md +0 -220
- package/shared/skills/test-patterns/references/report-template.md +0 -108
- package/shared/skills/test-patterns/references/violations.md +0 -221
- package/shared/skills/typescript/SKILL.md +0 -176
- package/shared/skills/typescript/references/patterns.md +0 -1105
- package/shared/skills/typescript/references/violations.md +0 -433
- package/src/templates/claudeignore.template +0 -188
- package/src/templates/settings.json +0 -59
- /package/dist/{utils → core}/safe-delete.js +0 -0
- /package/{plugins/devflow-accessibility → src/assets}/skills/accessibility/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/architecture-patterns → src/assets/skills/architecture}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/complexity-patterns → src/assets/skills/complexity}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/complexity-patterns → src/assets/skills/complexity}/references/patterns.md +0 -0
- /package/{plugins/devflow-code-review/skills/complexity-patterns → src/assets/skills/complexity}/references/violations.md +0 -0
- /package/{plugins/devflow-code-review/skills/consistency-patterns → src/assets/skills/consistency}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/consistency-patterns → src/assets/skills/consistency}/references/patterns.md +0 -0
- /package/{plugins/devflow-code-review/skills/consistency-patterns → src/assets/skills/consistency}/references/violations.md +0 -0
- /package/{plugins/devflow-code-review/skills/database-patterns → src/assets/skills/database}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/database-patterns → src/assets/skills/database}/references/patterns.md +0 -0
- /package/{plugins/devflow-code-review/skills/database-patterns → src/assets/skills/database}/references/violations.md +0 -0
- /package/{plugins/devflow-code-review/skills/dependencies-patterns → src/assets/skills/dependencies}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/dependencies-patterns → src/assets/skills/dependencies}/references/patterns.md +0 -0
- /package/{plugins/devflow-code-review/skills/dependencies-patterns → src/assets/skills/dependencies}/references/violations.md +0 -0
- /package/{plugins/devflow-code-review/skills/documentation-patterns → src/assets/skills/documentation}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/documentation-patterns → src/assets/skills/documentation}/references/patterns.md +0 -0
- /package/{plugins/devflow-code-review/skills/documentation-patterns → src/assets/skills/documentation}/references/violations.md +0 -0
- /package/{plugins/devflow-core-skills/skills/git-safety → src/assets/skills/git}/references/detection.md +0 -0
- /package/{plugins/devflow-go → src/assets}/skills/go/references/detection.md +0 -0
- /package/{plugins/devflow-java → src/assets}/skills/java/references/detection.md +0 -0
- /package/{plugins/devflow-implement/skills/implementation-patterns → src/assets/skills/patterns}/references/patterns.md +0 -0
- /package/{plugins/devflow-implement/skills/implementation-patterns → src/assets/skills/patterns}/references/violations.md +0 -0
- /package/{plugins/devflow-code-review/skills/performance-patterns → src/assets/skills/performance}/references/detection.md +0 -0
- /package/{plugins/devflow-python → src/assets}/skills/python/references/detection.md +0 -0
- /package/{plugins/devflow-implement/skills/self-review → src/assets/skills/quality-gates}/references/patterns.md +0 -0
- /package/{plugins/devflow-implement/skills/self-review → src/assets/skills/quality-gates}/references/report-template.md +0 -0
- /package/{plugins/devflow-implement/skills/self-review → src/assets/skills/quality-gates}/references/violations.md +0 -0
- /package/{plugins/devflow-code-review/skills/regression-patterns → src/assets/skills/regression}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/regression-patterns → src/assets/skills/regression}/references/patterns.md +0 -0
- /package/{plugins/devflow-code-review/skills/regression-patterns → src/assets/skills/regression}/references/violations.md +0 -0
- /package/{plugins/devflow-rust → src/assets}/skills/rust/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/security-patterns → src/assets/skills/security}/references/detection.md +0 -0
- /package/{plugins/devflow-core-skills/skills/core-patterns → src/assets/skills/software-design}/references/detection.md +0 -0
- /package/{plugins/devflow-core-skills → src/assets}/skills/test-driven-development/references/rationalization-prevention.md +0 -0
- /package/{plugins/devflow-code-review/skills/test-patterns → src/assets/skills/testing}/references/detection.md +0 -0
- /package/{plugins/devflow-code-review/skills/test-patterns → src/assets/skills/testing}/references/report-template.md +0 -0
- /package/{plugins/devflow-frontend-design/skills/frontend-design → src/assets/skills/ui-design}/references/detection.md +0 -0
- /package/src/{templates → targets/claude-code/templates}/managed-settings.json +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: documentation
|
|
3
|
+
description: This skill should be used when reviewing for documentation drift, missing API docs, or stale comments.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
allowed-tools: Read, Grep, Glob
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Documentation Patterns
|
|
9
|
+
|
|
10
|
+
Domain expertise for documentation quality and alignment. Use alongside `devflow:review-methodology` for complete documentation reviews.
|
|
11
|
+
|
|
12
|
+
## Iron Law
|
|
13
|
+
|
|
14
|
+
> **DOCUMENTATION MUST MATCH REALITY**
|
|
15
|
+
>
|
|
16
|
+
> Outdated documentation is worse than no documentation. It actively misleads. Every code
|
|
17
|
+
> change that affects behavior requires a documentation check. Comments that explain "what"
|
|
18
|
+
> instead of "why" are noise. The best documentation is code that doesn't need documentation.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Documentation Categories
|
|
23
|
+
|
|
24
|
+
### 1. Code Documentation Issues
|
|
25
|
+
|
|
26
|
+
| Issue | Problem | Fix |
|
|
27
|
+
|-------|---------|-----|
|
|
28
|
+
| Missing docstrings | Complex functions without explanation | Add JSDoc with params, returns, throws |
|
|
29
|
+
| Outdated comments | Comments that contradict code | Update or remove |
|
|
30
|
+
| "What" comments | `// Loop through users` | Explain "why" instead |
|
|
31
|
+
| Magic algorithms | Complex logic without explanation | Document algorithm and rationale |
|
|
32
|
+
| Transition residue | "We no longer do X" notes, in-file changelogs, or refs to removed code/sections | Remove — git holds the history |
|
|
33
|
+
|
|
34
|
+
**Brief Example - Missing vs. Complete:**
|
|
35
|
+
```typescript
|
|
36
|
+
// BAD: No documentation on complex function
|
|
37
|
+
export function calculateProratedAmount(plan: Plan, startDate: Date, endDate: Date): number;
|
|
38
|
+
|
|
39
|
+
// GOOD: Purpose, params, returns, edge cases documented
|
|
40
|
+
/**
|
|
41
|
+
* Calculates prorated billing amount when switching plans mid-cycle.
|
|
42
|
+
* @param plan - The new plan to prorate to
|
|
43
|
+
* @returns Prorated amount in cents (can be negative for downgrades)
|
|
44
|
+
*/
|
|
45
|
+
export function calculateProratedAmount(plan: Plan, startDate: Date, endDate: Date): number;
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 2. API Documentation Issues
|
|
49
|
+
|
|
50
|
+
| Issue | Problem | Fix |
|
|
51
|
+
|-------|---------|-----|
|
|
52
|
+
| Missing params | Callers don't know valid values | Document all params with types and constraints |
|
|
53
|
+
| Missing returns | Return shape unknown | Describe return structure and units |
|
|
54
|
+
| Missing errors | Callers don't know what to catch | List all thrown error types |
|
|
55
|
+
|
|
56
|
+
**Brief Example - Incomplete vs. Complete:**
|
|
57
|
+
```typescript
|
|
58
|
+
// BAD: No params, no errors documented
|
|
59
|
+
/** Creates a subscription. */
|
|
60
|
+
async function createSubscription(userId: string, planId: string): Promise<Subscription>;
|
|
61
|
+
|
|
62
|
+
// GOOD: Full contract documented
|
|
63
|
+
/**
|
|
64
|
+
* @param userId - User's unique identifier
|
|
65
|
+
* @param planId - Plan ID from /plans endpoint
|
|
66
|
+
* @throws {UserNotFoundError} If userId doesn't exist
|
|
67
|
+
* @throws {PlanNotFoundError} If planId doesn't exist
|
|
68
|
+
*/
|
|
69
|
+
async function createSubscription(userId: string, planId: string): Promise<Subscription>;
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 3. Alignment Issues
|
|
73
|
+
|
|
74
|
+
| Issue | Problem | Fix |
|
|
75
|
+
|-------|---------|-----|
|
|
76
|
+
| Code-comment drift | Comment says 3 retries, code does 5 | Update comment or use constant |
|
|
77
|
+
| Stale README | Examples use removed functions | Keep README in sync with code |
|
|
78
|
+
| Missing changelog | Breaking changes undocumented | Document all notable changes |
|
|
79
|
+
|
|
80
|
+
**Brief Example - Drift vs. Aligned:**
|
|
81
|
+
```typescript
|
|
82
|
+
// BAD: Comment doesn't match code
|
|
83
|
+
// Retries up to 3 times
|
|
84
|
+
for (let i = 0; i < 5; i++) { /* ... */ }
|
|
85
|
+
|
|
86
|
+
// GOOD: Use constant to keep aligned
|
|
87
|
+
const MAX_RETRIES = 5;
|
|
88
|
+
for (let i = 0; i < MAX_RETRIES; i++) { /* ... */ }
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Extended References
|
|
94
|
+
|
|
95
|
+
For extended examples and detection commands:
|
|
96
|
+
|
|
97
|
+
- **[references/violations.md](references/violations.md)** - Extended violation examples with explanations
|
|
98
|
+
- **[references/patterns.md](references/patterns.md)** - Complete correct pattern examples
|
|
99
|
+
- **[references/detection.md](references/detection.md)** - Bash commands for finding issues
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Severity Guidelines
|
|
104
|
+
|
|
105
|
+
| Severity | Description | Examples |
|
|
106
|
+
|----------|-------------|----------|
|
|
107
|
+
| **CRITICAL** | Actively misleading | Comments contradict code; API docs with wrong types; README with broken steps; Changelog missing breaking changes |
|
|
108
|
+
| **HIGH** | Significant gaps | Public APIs undocumented; Complex algorithms unexplained; Errors not documented; Migration guides missing |
|
|
109
|
+
| **MEDIUM** | Moderate issues | Some params undocumented; Examples could be clearer; "What" comments instead of "why" |
|
|
110
|
+
| **LOW** | Minor improvements | Could add more examples; Formatting inconsistencies; Typos |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Documentation Checklist
|
|
115
|
+
|
|
116
|
+
Before approving changes:
|
|
117
|
+
|
|
118
|
+
- [ ] All public APIs have JSDoc/docstrings
|
|
119
|
+
- [ ] Parameters and return values documented
|
|
120
|
+
- [ ] Error conditions documented
|
|
121
|
+
- [ ] Complex algorithms explained
|
|
122
|
+
- [ ] Comments explain "why", not "what"
|
|
123
|
+
- [ ] README reflects current state
|
|
124
|
+
- [ ] CHANGELOG updated for notable changes
|
|
125
|
+
- [ ] No TODO comments for completed work
|
|
126
|
+
- [ ] Examples work with current API
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature-knowledge
|
|
3
|
+
description: Structures codebase exploration into a feature knowledge base
|
|
4
|
+
user-invocable: false
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Grep
|
|
8
|
+
- Glob
|
|
9
|
+
- Write
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Feature Knowledge Base Creation
|
|
13
|
+
|
|
14
|
+
## Iron Law
|
|
15
|
+
|
|
16
|
+
> **Capture the institutional knowledge that lives in developers' heads — the things
|
|
17
|
+
> obvious to them but invisible to newcomers.**
|
|
18
|
+
>
|
|
19
|
+
> A feature knowledge entry exists to save the NEXT agent from rediscovering patterns that span multiple files,
|
|
20
|
+
> modules, or layers. If it's obvious from a single file read, don't capture it.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## The Four Phases
|
|
25
|
+
|
|
26
|
+
Follow these four phases in order. Do not skip ahead.
|
|
27
|
+
|
|
28
|
+
### Phase 1: Scan
|
|
29
|
+
|
|
30
|
+
Map the landscape. Get a high-level understanding before going deep.
|
|
31
|
+
|
|
32
|
+
- Use `Glob` to discover directory structure and file organization
|
|
33
|
+
- Identify language(s), framework(s), and major dependencies
|
|
34
|
+
- Locate key entry points, configuration files, and existing documentation
|
|
35
|
+
- Note how the code is organized — monorepo, modules, layers, etc.
|
|
36
|
+
|
|
37
|
+
**Goal**: Answer "Where does the code related to this area live, and how is it structured?"
|
|
38
|
+
|
|
39
|
+
### Phase 2: Extract
|
|
40
|
+
|
|
41
|
+
Go deep. Read the actual code and pull out the real patterns.
|
|
42
|
+
|
|
43
|
+
- Read key files using `Read`
|
|
44
|
+
- Use `Grep` to find recurring patterns across the codebase
|
|
45
|
+
- Trace data flow: how does information move through the system?
|
|
46
|
+
- Identify naming conventions, structural patterns, error handling approaches
|
|
47
|
+
- Look for implicit rules — things the team clearly follows but never wrote down
|
|
48
|
+
- Pay attention to what's consistent (conventions) vs. what varies (knowledge gaps)
|
|
49
|
+
- Look at how similar things are implemented — find ALL instances and see what they share
|
|
50
|
+
|
|
51
|
+
**For complex domains, go further:**
|
|
52
|
+
- Map core entities and their relationships
|
|
53
|
+
- Identify decision points — where does business logic branch?
|
|
54
|
+
- Extract implicit knowledge — what's obvious to current developers but invisible to newcomers?
|
|
55
|
+
- Document state transitions, business rules, and edge case handling
|
|
56
|
+
|
|
57
|
+
**Self-check before moving on:**
|
|
58
|
+
- "Am I understanding the full scope of what's being requested?"
|
|
59
|
+
- "What connections am I seeing that weren't obvious initially?"
|
|
60
|
+
- "Are there patterns I'm missing because I'm too focused on one area?"
|
|
61
|
+
|
|
62
|
+
### Phase 3: Distill
|
|
63
|
+
|
|
64
|
+
Organize and validate findings. Raw observations become structured knowledge.
|
|
65
|
+
|
|
66
|
+
**Choose a knowledge category:**
|
|
67
|
+
|
|
68
|
+
| The knowledge is about... | Category | Language Style |
|
|
69
|
+
|---|---|---|
|
|
70
|
+
| How the overall system is designed | `architecture` | Descriptive — explains what systems are and why they exist |
|
|
71
|
+
| Patterns followed across the whole project | `conventions` | Prescriptive — "Do this," "Avoid that" |
|
|
72
|
+
| How a specific type of component works | `component-patterns` | Prescriptive — enforces conventions |
|
|
73
|
+
| A specific business domain or module | `domain-knowledge` | Descriptive — builds mental models |
|
|
74
|
+
| Hard-won lessons from incidents or edge cases | `lessons-learned` | Narrative — tells the story of discovery |
|
|
75
|
+
|
|
76
|
+
**Validate each finding:**
|
|
77
|
+
- Is this specific to THIS codebase, or generic advice? (only keep specific)
|
|
78
|
+
- Does this reflect what the code actually does NOW, or is it speculative? (only keep current)
|
|
79
|
+
- Would a developer actually use this to build something? (only keep actionable)
|
|
80
|
+
- Is this obvious from reading one file, or does it require cross-cutting knowledge? (prefer cross-cutting)
|
|
81
|
+
|
|
82
|
+
### Phase 4: Forge
|
|
83
|
+
|
|
84
|
+
Write the knowledge file. Follow the output format exactly.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Output Format
|
|
89
|
+
|
|
90
|
+
### KNOWLEDGE.md Structure
|
|
91
|
+
|
|
92
|
+
```markdown
|
|
93
|
+
---
|
|
94
|
+
feature: {slug}
|
|
95
|
+
name: {human-readable name}
|
|
96
|
+
description: "Use when [specific scenarios]. Keywords: [relevant terms]."
|
|
97
|
+
category: [architecture | conventions | component-patterns | domain-knowledge | lessons-learned]
|
|
98
|
+
directories: [{dir prefixes}]
|
|
99
|
+
created: {ISO date}
|
|
100
|
+
updated: {ISO date}
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
# {Feature Area Name}
|
|
104
|
+
|
|
105
|
+
## Overview
|
|
106
|
+
[1-2 paragraphs: what this knowledge covers and why it matters for this codebase]
|
|
107
|
+
|
|
108
|
+
## [Main Sections — vary by category, see Category Templates below]
|
|
109
|
+
|
|
110
|
+
## Anti-Patterns
|
|
111
|
+
[What to avoid and why — with explanation of consequences]
|
|
112
|
+
|
|
113
|
+
## Gotchas
|
|
114
|
+
[Non-obvious behaviors, edge cases, things that break silently]
|
|
115
|
+
|
|
116
|
+
## Key Files
|
|
117
|
+
[Most important files with one-line descriptions]
|
|
118
|
+
|
|
119
|
+
## Related
|
|
120
|
+
[Links to ADR/PF entries, other feature knowledge entries, key source files]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Category Templates
|
|
124
|
+
|
|
125
|
+
Use the matching template as your main sections. Anti-Patterns, Gotchas, Key Files, and Related are shared across all categories.
|
|
126
|
+
|
|
127
|
+
**Architecture:**
|
|
128
|
+
- System Context (purpose, role in larger system, external dependencies)
|
|
129
|
+
- Component Architecture (major building blocks, data stores, APIs)
|
|
130
|
+
- Component Interactions (how pieces communicate, data flow)
|
|
131
|
+
- Integration Patterns (how this connects to external systems)
|
|
132
|
+
- Constraints (security boundaries, performance considerations, scaling limits)
|
|
133
|
+
|
|
134
|
+
**Conventions:**
|
|
135
|
+
- Code Organization Principles (principle with rationale)
|
|
136
|
+
- Standard Patterns (pattern with annotated code example)
|
|
137
|
+
- Error Handling Standards (approach with code example)
|
|
138
|
+
|
|
139
|
+
**Component Patterns:**
|
|
140
|
+
- Core Responsibilities (what this component should/should NOT do)
|
|
141
|
+
- Standard Structure (complete annotated code example)
|
|
142
|
+
- Dependency Patterns (how dependencies are managed)
|
|
143
|
+
- Error Handling (component-specific error patterns)
|
|
144
|
+
- Integration Guidelines (how to interact with other component types)
|
|
145
|
+
|
|
146
|
+
**Domain Knowledge:**
|
|
147
|
+
- Business Context (purpose, business value, compliance constraints)
|
|
148
|
+
- Core Business Rules (rules with examples and edge cases)
|
|
149
|
+
- State Transitions (workflow states and triggers)
|
|
150
|
+
- Technical Implementation Patterns (code patterns specific to this domain)
|
|
151
|
+
- Error Handling and Recovery (domain-specific failure modes)
|
|
152
|
+
|
|
153
|
+
**Lessons Learned:**
|
|
154
|
+
- Per lesson: Incident Context → Root Cause → Impact → Code showing problem and solution → Prevention Strategy
|
|
155
|
+
|
|
156
|
+
### Description Field Rules
|
|
157
|
+
|
|
158
|
+
The `description` field is how this feature knowledge entry gets discovered. It must:
|
|
159
|
+
- Start with "Use when"
|
|
160
|
+
- Name specific scenarios where this knowledge applies
|
|
161
|
+
- Include keywords a developer would search for
|
|
162
|
+
|
|
163
|
+
Good: `"Use when adding a new vendor integration, implementing API clients, or connecting to external services. Keywords: integration, vendor, API client, webhook."`
|
|
164
|
+
Bad: `"Integration stuff"`
|
|
165
|
+
|
|
166
|
+
### Cross-References
|
|
167
|
+
|
|
168
|
+
Knowledge files must not exist in isolation. The **Related** section must link to:
|
|
169
|
+
- Other feature knowledge entries that cover related topics
|
|
170
|
+
- ADR/PF entries from DECISIONS_CONTEXT (if provided)
|
|
171
|
+
- Key source files referenced in the knowledge
|
|
172
|
+
|
|
173
|
+
References should be bidirectional — when creating a new feature knowledge entry that relates to an existing one, note the connection.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Rules for Code Examples
|
|
178
|
+
|
|
179
|
+
Every code example must have three parts:
|
|
180
|
+
1. **Description before**: what it demonstrates and why
|
|
181
|
+
2. **Inline comments**: explaining the important lines
|
|
182
|
+
3. **Takeaways after**: key points
|
|
183
|
+
|
|
184
|
+
Before including an example, verify it adds **significant unique value** beyond what descriptive text alone provides. If the pattern can be fully explained in a sentence, skip the code block. Only show codebase-specific patterns — never generic language features.
|
|
185
|
+
|
|
186
|
+
Never include bare code snippets without context.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## What to Avoid
|
|
191
|
+
|
|
192
|
+
- **Generic advice**: "Use dependency injection" without showing how THIS project does it
|
|
193
|
+
- **Speculation**: "We might want to add caching later" — only document what exists
|
|
194
|
+
- **Bare examples**: Code without explanation of what it shows and why it matters
|
|
195
|
+
- **Low-value examples**: Code that restates generic language features. If it doesn't show something unique to THIS project, cut it.
|
|
196
|
+
- **Everything-bagel files**: Covering too many topics in one file — stay focused
|
|
197
|
+
- **Obvious things**: If reading one file makes it clear, it doesn't need a feature knowledge entry
|
|
198
|
+
- **Testing knowledge**: Don't include test patterns unless explicitly requested
|
|
199
|
+
- **Isolated knowledge islands**: Every feature knowledge entry must reference related files and source code
|
|
200
|
+
|
|
201
|
+
| Red Flag | What It Indicates |
|
|
202
|
+
|----------|-------------------|
|
|
203
|
+
| "Always follow best practices" | Generic, not codebase-specific |
|
|
204
|
+
| No code examples at all | Insufficient actionable guidance |
|
|
205
|
+
| Examples without inline comments | Missing required context |
|
|
206
|
+
| "In the future, we might..." | Speculative — remove it |
|
|
207
|
+
| 500+ lines in a single file | Should be split into focused files |
|
|
208
|
+
| No cross-references in Related | Isolated knowledge island |
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Quality Self-Checks
|
|
213
|
+
|
|
214
|
+
Run through this before writing. If any check fails, go back and fix it.
|
|
215
|
+
|
|
216
|
+
**Content:**
|
|
217
|
+
- [ ] Knowledge provides codebase-specific insights (not generic guidance)
|
|
218
|
+
- [ ] All content reflects current patterns (no speculation)
|
|
219
|
+
- [ ] Business context and domain constraints captured where relevant
|
|
220
|
+
- [ ] Every claim is verifiable in actual code
|
|
221
|
+
|
|
222
|
+
**Examples:**
|
|
223
|
+
- [ ] Every code example has description before, inline comments, and takeaways after
|
|
224
|
+
- [ ] Each example adds significant unique value beyond descriptive text alone
|
|
225
|
+
- [ ] Anti-patterns documented with explanation of consequences
|
|
226
|
+
|
|
227
|
+
**Structure:**
|
|
228
|
+
- [ ] Category is correct and main sections follow the matching template
|
|
229
|
+
- [ ] Description field starts with "Use when" and includes keywords
|
|
230
|
+
- [ ] File stays under 500 lines (split if necessary)
|
|
231
|
+
|
|
232
|
+
**Connections:**
|
|
233
|
+
- [ ] Cross-references to related feature knowledge entries and ADR/PF entries in Related section
|
|
234
|
+
- [ ] No isolated knowledge islands — file connects to the broader knowledge network
|
|
235
|
+
- [ ] Key source files listed in Key Files section
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## Index Registration
|
|
240
|
+
|
|
241
|
+
After writing KNOWLEDGE.md, update the index cache directly:
|
|
242
|
+
|
|
243
|
+
**File**: `{worktree}/.devflow/features/index.md`
|
|
244
|
+
**Operation**: Read-modify-write — replace the existing line for this slug if present, or append.
|
|
245
|
+
|
|
246
|
+
**Line format**:
|
|
247
|
+
```
|
|
248
|
+
- **{slug}** — {areas} — {Use-when description}
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
Where:
|
|
252
|
+
- `{slug}` matches the `feature:` frontmatter field
|
|
253
|
+
- `{areas}` is a comma-separated summary of the `directories:` frontmatter field
|
|
254
|
+
- `{Use-when description}` is the `description:` frontmatter field value (the full "Use when..." sentence)
|
|
255
|
+
|
|
256
|
+
If `index.md` does not exist, create it with just this line. If the file already has an entry for this slug, replace that line in-place. This is the discoverable cache read by `knowledge_load()` — the KNOWLEDGE.md frontmatter is always authoritative.
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Worked Example
|
|
261
|
+
|
|
262
|
+
This is what a complete, well-structured feature knowledge entry looks like. Use it as a reference for quality and format.
|
|
263
|
+
|
|
264
|
+
````markdown
|
|
265
|
+
---
|
|
266
|
+
feature: integrations
|
|
267
|
+
name: Third-Party Integrations
|
|
268
|
+
description: "Use when adding a new vendor integration, implementing API clients, or connecting to external services. Keywords: integration, vendor, API client, webhook, spawn, config."
|
|
269
|
+
category: component-patterns
|
|
270
|
+
directories: [src/lib/]
|
|
271
|
+
created: 2026-04-30
|
|
272
|
+
updated: 2026-04-30
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
# Third-Party Integrations
|
|
276
|
+
|
|
277
|
+
## Overview
|
|
278
|
+
|
|
279
|
+
This project integrates with external systems in three ways: spawning CLI processes, fetching files from remote registries, and writing to directories that AI editors watch. Each integration lives in its own module under `src/lib/` and is wired into a command in `src/commands/`. All external constants are centralized in `src/lib/config.ts`.
|
|
280
|
+
|
|
281
|
+
The key cross-cutting pattern is the separation between lib modules (which integrate) and commands (which orchestrate). Violating this creates coupling that breaks the error handling model.
|
|
282
|
+
|
|
283
|
+
## Core Responsibilities
|
|
284
|
+
|
|
285
|
+
- Lib modules: integrate with external systems, export async functions, throw on failure
|
|
286
|
+
- Commands: orchestrate lib modules, catch errors, route to UI via `showError()`
|
|
287
|
+
- Config: centralize all external constants, expose env var overrides
|
|
288
|
+
|
|
289
|
+
## Standard Structure
|
|
290
|
+
|
|
291
|
+
Every integration follows the same file organization. This example shows the pattern that all three existing integrations (Claude CLI, GitHub, AI editors) follow:
|
|
292
|
+
|
|
293
|
+
```
|
|
294
|
+
src/lib/
|
|
295
|
+
claude.ts # Claude Code CLI (spawn + stream JSON)
|
|
296
|
+
skill-installer.ts # GitHub (git clone, sparse checkout)
|
|
297
|
+
deploy.ts # AI editors (.claude/, .cursor/ dirs)
|
|
298
|
+
config.ts # All constants for the above
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
A new integration means a new file here. The module exports async functions, imports from `config.ts`, and never imports from `src/ui/` or `src/commands/`.
|
|
302
|
+
|
|
303
|
+
### Config Centralization
|
|
304
|
+
|
|
305
|
+
URLs, subpaths, install directories — these change together. One file to update when an upstream moves:
|
|
306
|
+
|
|
307
|
+
All constants use `SCREAMING_SNAKE_CASE` with a descriptive prefix. If a value can be overridden by the user, expose an env var with a sensible default.
|
|
308
|
+
|
|
309
|
+
## Anti-Patterns
|
|
310
|
+
|
|
311
|
+
- **Putting fetch logic in a command file** — breaks the lib/command separation and makes the integration untestable in isolation.
|
|
312
|
+
- **Hardcoding URLs in lib modules** — always use `config.ts`. Scattered strings become stale and hard to find.
|
|
313
|
+
- **Calling `showError()` from a lib module** — lib modules throw; commands catch and display.
|
|
314
|
+
|
|
315
|
+
## Gotchas
|
|
316
|
+
|
|
317
|
+
- `spawn` requires the binary on PATH. If integrating a tool that may not be globally installed, detect `ENOENT` and provide an install URL.
|
|
318
|
+
- Temp files use `Date.now()`. If two processes run simultaneously, add a random suffix to avoid collisions.
|
|
319
|
+
|
|
320
|
+
## Key Files
|
|
321
|
+
|
|
322
|
+
- `src/lib/config.ts` — add constants here before writing integration code
|
|
323
|
+
- `src/lib/claude.ts` — reference implementation for spawn-and-stream pattern
|
|
324
|
+
- `src/lib/skill-installer.ts` — reference implementation for fetch-from-remote pattern
|
|
325
|
+
|
|
326
|
+
## Related
|
|
327
|
+
|
|
328
|
+
- ADR-003: Lib/command separation principle
|
|
329
|
+
- PF-001: Config drift when constants are scattered
|
|
330
|
+
````
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## Scope and Limitations
|
|
335
|
+
|
|
336
|
+
Only document what you can verify in the codebase. When you encounter:
|
|
337
|
+
- Knowledge outside the provided codebase
|
|
338
|
+
- External systems without accessible documentation
|
|
339
|
+
- Information that requires context you don't have
|
|
340
|
+
|
|
341
|
+
Acknowledge the limitation clearly and focus on what IS extractable. Never fill gaps with generic knowledge or speculation.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gap-analysis
|
|
3
|
+
description: This skill should be used when analyzing design documents, specifications, or plans for completeness gaps, architectural issues, security concerns, and performance implications. Provides focus-specific detection patterns for the Design agent.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
allowed-tools: Read, Grep, Glob
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Gap Analysis
|
|
9
|
+
|
|
10
|
+
Domain expertise for detecting gaps in design documents, specifications, and plans before implementation begins.
|
|
11
|
+
|
|
12
|
+
## Iron Law
|
|
13
|
+
|
|
14
|
+
> **GAPS IN DESIGN BECOME BUGS IN PRODUCTION**
|
|
15
|
+
>
|
|
16
|
+
> Every undefined error state, vague requirement, and missing integration point is a bug
|
|
17
|
+
> waiting to be written. Catch gaps in the plan so the implementation reflects reality,
|
|
18
|
+
> not assumption. Evidence-required: every gap must cite specific text from the artifact.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Focus Areas
|
|
23
|
+
|
|
24
|
+
### 1. Completeness
|
|
25
|
+
|
|
26
|
+
Detect missing pieces that will block or break implementation.
|
|
27
|
+
|
|
28
|
+
**Detection patterns:**
|
|
29
|
+
- Missing acceptance criteria — requirements without testable success conditions
|
|
30
|
+
- Undefined error states — happy path described, failure paths absent
|
|
31
|
+
- Vague requirements — "fast", "secure", "user-friendly" without measurable thresholds
|
|
32
|
+
- Ambiguous user journeys — "user submits form" without specifying what happens next
|
|
33
|
+
- Missing rollback specification — no recovery path if operation partially fails
|
|
34
|
+
- Unspecified data constraints — fields mentioned without type, size, or validation rules
|
|
35
|
+
|
|
36
|
+
**Evidence trigger:** Any requirement phrase that cannot be directly translated into a test case.
|
|
37
|
+
|
|
38
|
+
### 2. Architecture
|
|
39
|
+
|
|
40
|
+
Detect design decisions that conflict with existing patterns or create structural problems.
|
|
41
|
+
|
|
42
|
+
**Detection patterns:**
|
|
43
|
+
- Implied patterns violating existing conventions — new module structure that contradicts codebase layout
|
|
44
|
+
- Missing integration points — feature touches shared state but integration method unspecified
|
|
45
|
+
- Layering issues — business logic pushed to wrong layer (e.g., validation in presentation layer)
|
|
46
|
+
- Undeclared dependencies — feature needs data/service not mentioned in scope
|
|
47
|
+
- Missing schema changes — new data structure implied but migration not mentioned
|
|
48
|
+
- Shared resource contention — multiple features/requests accessing same resource without concurrency plan
|
|
49
|
+
|
|
50
|
+
**Evidence trigger:** Any design element that references an existing system component without specifying the integration contract.
|
|
51
|
+
|
|
52
|
+
### 3. Security
|
|
53
|
+
|
|
54
|
+
Detect authentication, authorization, and data protection gaps.
|
|
55
|
+
|
|
56
|
+
**Detection patterns:**
|
|
57
|
+
- Auth gaps — feature creates new endpoints or data access without specifying auth requirements
|
|
58
|
+
- Input validation missing — user-provided data consumed without specifying sanitization
|
|
59
|
+
- Secret handling — credentials, tokens, or keys mentioned without specifying storage/transmission
|
|
60
|
+
- OWASP implications — mass assignment, IDOR, SSRF risks implied by the design
|
|
61
|
+
- Privilege escalation paths — role or permission changes without specifying boundary checks
|
|
62
|
+
- Audit trail missing — sensitive operations without logging or change tracking
|
|
63
|
+
|
|
64
|
+
**Evidence trigger:** Any data flow that crosses a trust boundary without specifying the security control.
|
|
65
|
+
|
|
66
|
+
### 4. Performance
|
|
67
|
+
|
|
68
|
+
Detect design decisions that will cause performance problems at scale.
|
|
69
|
+
|
|
70
|
+
**Detection patterns:**
|
|
71
|
+
- N+1 patterns implied — loop-based data fetching without batch operation specified
|
|
72
|
+
- Missing caching strategy — repeated expensive operations (DB queries, API calls) without cache layer
|
|
73
|
+
- Concurrency concerns — shared mutable state accessed without locking or isolation strategy
|
|
74
|
+
- Query patterns — filtering/sorting on unindexed fields implied by the feature
|
|
75
|
+
- Unbounded result sets — list operations without pagination or size limits
|
|
76
|
+
- Synchronous blocking — long-running operations blocking request threads without async design
|
|
77
|
+
|
|
78
|
+
**Evidence trigger:** Any data access pattern that scales linearly with user count or data volume without a mitigation strategy.
|
|
79
|
+
|
|
80
|
+
### 5. Consistency (multi-issue only)
|
|
81
|
+
|
|
82
|
+
Detect contradictions and duplications across multiple issue specifications.
|
|
83
|
+
|
|
84
|
+
**Detection patterns:**
|
|
85
|
+
- Cross-issue contradictions — Issue A says feature X works one way, Issue B implies another
|
|
86
|
+
- Duplicate requirements — same functionality specified in multiple issues without coordination
|
|
87
|
+
- Conflicting scope — one issue's in-scope is another issue's out-of-scope
|
|
88
|
+
- Naming conflicts — same entity called different names across issues
|
|
89
|
+
- Interface mismatches — Issue A produces output that Issue B consumes, but shapes differ
|
|
90
|
+
|
|
91
|
+
**Evidence trigger:** Any requirement in one issue that cannot coexist with a requirement in another issue.
|
|
92
|
+
|
|
93
|
+
### 6. Dependencies (multi-issue only)
|
|
94
|
+
|
|
95
|
+
Detect ordering constraints and shared resource conflicts across issues.
|
|
96
|
+
|
|
97
|
+
**Detection patterns:**
|
|
98
|
+
- Inter-issue ordering — Issue B depends on data/schema/interface created by Issue A
|
|
99
|
+
- Shared resources — multiple issues modify the same file, table, or API without coordination
|
|
100
|
+
- Breaking change propagation — one issue changes a contract that other issues assume stable
|
|
101
|
+
- Circular dependencies — two issues each require the other to be implemented first
|
|
102
|
+
- Implicit sequencing — implementation order not specified but technically required
|
|
103
|
+
|
|
104
|
+
**Evidence trigger:** Any issue that references state, contracts, or resources that may be in flux due to another issue in the batch.
|
|
105
|
+
|
|
106
|
+
### 7. Compliance (when compliance skill installed)
|
|
107
|
+
|
|
108
|
+
Detect regulatory gaps that security doesn't cover. Active frameworks = the `references/{id}.md` files present in the installed skill. Load `devflow:compliance` before analyzing.
|
|
109
|
+
|
|
110
|
+
**Detection patterns:**
|
|
111
|
+
- Missing audit trails on regulated mutations — writes to financial records, PHI, PCI-scoped data without durable logging
|
|
112
|
+
- PII flows without retention/erasure specification — data collected but deletion/expiry policy absent
|
|
113
|
+
- Missing encryption requirements — regulated data at rest or in transit without specified encryption control
|
|
114
|
+
- Sensitive data in observability — PII or credentials leaking into logs, traces, or metrics
|
|
115
|
+
- IaC exposure — infrastructure definitions without required security controls (open ports, unencrypted storage, missing IAM boundaries)
|
|
116
|
+
- Self-approval flows — change requires segregation of duties (SOX/SOC 2 CC8.1) but single-actor path exists in the design
|
|
117
|
+
|
|
118
|
+
**Explicit scope note:** Do NOT duplicate §3 Security's checks (secrets, injection, authZ). Compliance focus is on regulatory control requirements — retention periods, erasure rights, audit completeness, and segregation of duties — not general application security.
|
|
119
|
+
|
|
120
|
+
**Evidence trigger:** Any regulated-data flow or infrastructure element in the design that does not specify a required control (retention policy, encryption spec, audit log destination, approval workflow).
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Extended References
|
|
125
|
+
|
|
126
|
+
| Reference | Content |
|
|
127
|
+
|-----------|---------|
|
|
128
|
+
| `references/check-layers.md` | Detailed detection checklists per focus area |
|
|
129
|
+
|
|
130
|
+
## Severity Guidelines
|
|
131
|
+
|
|
132
|
+
| Level | Criteria | Examples |
|
|
133
|
+
|-------|----------|----------|
|
|
134
|
+
| **CRITICAL** | Gap that will cause data loss, security breach, or system failure | Missing auth on sensitive endpoint, undefined error recovery for financial transaction |
|
|
135
|
+
| **HIGH** | Gap that will cause incorrect behavior or significant technical debt | Missing pagination on unbounded list, undefined race condition in concurrent update |
|
|
136
|
+
| **MEDIUM** | Gap that will require rework if unaddressed | Vague acceptance criteria, missing caching strategy for frequently-read data |
|
|
137
|
+
| **LOW** | Gap that is an improvement opportunity | Naming inconsistency, minor UX ambiguity with obvious resolution |
|
|
138
|
+
|
|
139
|
+
## Confidence Calibration
|
|
140
|
+
|
|
141
|
+
- **Report at 80%+**: Gap is clearly present, evidence directly cited
|
|
142
|
+
- **Suggest at 60-79%**: Plausible gap, depends on context not visible in artifact
|
|
143
|
+
- **Drop below 60%**: Speculation without textual evidence
|
|
144
|
+
|
|
145
|
+
Output format per gap:
|
|
146
|
+
```
|
|
147
|
+
**[FOCUS] Gap: {title}** — Severity: {CRITICAL/HIGH/MEDIUM/LOW} | Confidence: {n}%
|
|
148
|
+
Evidence: "{quoted text from artifact}"
|
|
149
|
+
Issue: {what is missing or contradictory}
|
|
150
|
+
Resolution: {concrete action to address the gap}
|
|
151
|
+
```
|