claude-code-pilot 2.0.0 → 3.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/bin/install.js +267 -250
- package/manifest.json +5 -18
- package/package.json +5 -7
- package/src/agents/build-error-resolver.md +114 -0
- package/src/agents/ccp-advisor-researcher.md +104 -0
- package/src/agents/ccp-assumptions-analyzer.md +105 -0
- package/{gsd/agents/gsd-codebase-mapper.md → src/agents/ccp-codebase-mapper.md} +7 -7
- package/{gsd/agents/gsd-debugger.md → src/agents/ccp-debugger.md} +125 -8
- package/{gsd/agents/gsd-executor.md → src/agents/ccp-executor.md} +31 -20
- package/{gsd/agents/gsd-integration-checker.md → src/agents/ccp-integration-checker.md} +2 -2
- package/{gsd/agents/gsd-nyquist-auditor.md → src/agents/ccp-nyquist-auditor.md} +3 -3
- package/{gsd/agents/gsd-phase-researcher.md → src/agents/ccp-phase-researcher.md} +127 -13
- package/{gsd/agents/gsd-plan-checker.md → src/agents/ccp-plan-checker.md} +57 -21
- package/{gsd/agents/gsd-planner.md → src/agents/ccp-planner.md} +61 -23
- package/{gsd/agents/gsd-project-researcher.md → src/agents/ccp-project-researcher.md} +33 -6
- package/{gsd/agents/gsd-research-synthesizer.md → src/agents/ccp-research-synthesizer.md} +11 -11
- package/{gsd/agents/gsd-roadmapper.md → src/agents/ccp-roadmapper.md} +39 -10
- package/src/agents/ccp-ui-auditor.md +439 -0
- package/src/agents/ccp-ui-checker.md +300 -0
- package/src/agents/ccp-ui-researcher.md +357 -0
- package/{gsd/agents/gsd-verifier.md → src/agents/ccp-verifier.md} +81 -15
- package/src/agents/cpp-build-resolver.md +90 -0
- package/src/agents/cpp-reviewer.md +72 -0
- package/src/agents/database-reviewer.md +91 -0
- package/src/agents/docs-lookup.md +68 -0
- package/src/agents/flutter-reviewer.md +243 -0
- package/src/agents/go-build-resolver.md +94 -0
- package/src/agents/go-reviewer.md +76 -0
- package/src/agents/java-build-resolver.md +153 -0
- package/src/agents/java-reviewer.md +92 -0
- package/src/agents/kotlin-build-resolver.md +118 -0
- package/src/agents/kotlin-reviewer.md +159 -0
- package/src/agents/planner.md +212 -0
- package/src/agents/python-reviewer.md +98 -0
- package/src/agents/pytorch-build-resolver.md +120 -0
- package/src/agents/refactor-cleaner.md +85 -0
- package/src/agents/rust-build-resolver.md +148 -0
- package/src/agents/rust-reviewer.md +94 -0
- package/src/agents/typescript-reviewer.md +112 -0
- package/src/available-rules/README.md +80 -0
- package/src/available-rules/cpp/coding-style.md +44 -0
- package/src/available-rules/cpp/hooks.md +39 -0
- package/src/available-rules/cpp/patterns.md +51 -0
- package/src/available-rules/cpp/security.md +51 -0
- package/src/available-rules/cpp/testing.md +44 -0
- package/src/available-rules/csharp/coding-style.md +72 -0
- package/src/available-rules/csharp/hooks.md +25 -0
- package/src/available-rules/csharp/patterns.md +50 -0
- package/src/available-rules/csharp/security.md +58 -0
- package/src/available-rules/csharp/testing.md +46 -0
- package/src/available-rules/java/coding-style.md +114 -0
- package/src/available-rules/java/hooks.md +18 -0
- package/src/available-rules/java/patterns.md +146 -0
- package/src/available-rules/java/security.md +100 -0
- package/src/available-rules/java/testing.md +131 -0
- package/src/available-rules/kotlin/hooks.md +17 -0
- package/src/available-rules/rust/coding-style.md +151 -0
- package/src/available-rules/rust/hooks.md +16 -0
- package/src/available-rules/rust/patterns.md +168 -0
- package/src/available-rules/rust/security.md +141 -0
- package/src/available-rules/rust/testing.md +154 -0
- package/src/commands/aside.md +164 -0
- package/src/commands/build-fix.md +62 -0
- package/src/commands/ccp/add-backlog.md +76 -0
- package/{gsd/commands-gsd → src/commands/ccp}/add-phase.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/add-tests.md +5 -5
- package/{gsd/commands-gsd → src/commands/ccp}/add-todo.md +4 -4
- package/{gsd/commands-gsd → src/commands/ccp}/audit-milestone.md +3 -3
- package/src/commands/ccp/audit-uat.md +24 -0
- package/src/commands/ccp/autonomous.md +41 -0
- package/{gsd/commands-gsd → src/commands/ccp}/check-todos.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/cleanup.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/complete-milestone.md +9 -9
- package/{gsd/commands-gsd → src/commands/ccp}/debug.md +14 -9
- package/src/commands/ccp/discuss-phase.md +64 -0
- package/src/commands/ccp/do.md +30 -0
- package/src/commands/ccp/execute-phase.md +59 -0
- package/src/commands/ccp/fast.md +30 -0
- package/src/commands/ccp/forensics.md +56 -0
- package/{gsd/commands-gsd → src/commands/ccp}/health.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/help.md +5 -5
- package/{gsd/commands-gsd → src/commands/ccp}/insert-phase.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/list-phase-assumptions.md +2 -2
- package/src/commands/ccp/manager.md +39 -0
- package/{gsd/commands-gsd → src/commands/ccp}/map-codebase.md +7 -7
- package/src/commands/ccp/milestone-summary.md +51 -0
- package/{gsd/commands-gsd → src/commands/ccp}/new-milestone.md +8 -8
- package/{gsd/commands-gsd → src/commands/ccp}/new-project.md +8 -8
- package/src/commands/ccp/next.md +24 -0
- package/src/commands/ccp/note.md +34 -0
- package/{gsd/commands-gsd → src/commands/ccp}/pause-work.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/plan-milestone-gaps.md +5 -5
- package/{gsd/commands-gsd → src/commands/ccp}/plan-phase.md +9 -7
- package/src/commands/ccp/plant-seed.md +28 -0
- package/src/commands/ccp/pr-branch.md +25 -0
- package/{gsd/commands-gsd → src/commands/ccp}/progress.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/quick.md +10 -8
- package/{gsd/commands-gsd → src/commands/ccp}/remove-phase.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/research-phase.md +17 -12
- package/{gsd/commands-gsd → src/commands/ccp}/resume-work.md +3 -3
- package/src/commands/ccp/review-backlog.md +61 -0
- package/src/commands/ccp/session-report.md +19 -0
- package/src/commands/ccp/set-profile.md +12 -0
- package/{gsd/commands-gsd → src/commands/ccp}/settings.md +5 -5
- package/src/commands/ccp/ship.md +23 -0
- package/src/commands/ccp/stats.md +18 -0
- package/src/commands/ccp/thread.md +127 -0
- package/src/commands/ccp/ui-phase.md +34 -0
- package/src/commands/ccp/ui-review.md +32 -0
- package/{gsd/commands-gsd → src/commands/ccp}/update.md +5 -5
- package/{gsd/commands-gsd → src/commands/ccp}/validate-phase.md +3 -3
- package/{gsd/commands-gsd → src/commands/ccp}/verify-work.md +5 -5
- package/src/commands/code-review.md +40 -0
- package/src/commands/context-budget.md +29 -0
- package/src/commands/cpp-build.md +173 -0
- package/src/commands/cpp-review.md +132 -0
- package/src/commands/cpp-test.md +251 -0
- package/src/commands/docs.md +31 -0
- package/src/commands/e2e.md +364 -0
- package/src/commands/eval.md +120 -0
- package/{ecc → src}/commands/evolve.md +2 -2
- package/src/commands/go-build.md +183 -0
- package/src/commands/go-review.md +148 -0
- package/src/commands/go-test.md +268 -0
- package/src/commands/gradle-build.md +70 -0
- package/src/commands/harness-audit.md +71 -0
- package/src/commands/kotlin-build.md +174 -0
- package/src/commands/kotlin-review.md +140 -0
- package/src/commands/kotlin-test.md +312 -0
- package/src/commands/orchestrate.md +231 -0
- package/src/commands/plan.md +114 -0
- package/src/commands/prompt-optimize.md +38 -0
- package/src/commands/prune.md +25 -0
- package/src/commands/python-review.md +297 -0
- package/{ecc → src}/commands/quality-gate.md +1 -1
- package/src/commands/refactor-clean.md +80 -0
- package/src/commands/rules-distill.md +11 -0
- package/src/commands/rust-build.md +187 -0
- package/src/commands/rust-review.md +142 -0
- package/src/commands/rust-test.md +308 -0
- package/{ecc → src}/commands/sessions.md +10 -10
- package/src/commands/setup-pm.md +80 -0
- package/{kit → src}/commands/setup.md +45 -19
- package/src/commands/skill-create.md +172 -0
- package/src/commands/skill-health.md +51 -0
- package/src/commands/tdd.md +328 -0
- package/src/commands/test-coverage.md +69 -0
- package/src/commands/update-codemaps.md +72 -0
- package/src/commands/update-docs.md +84 -0
- package/{gsd/hooks/gsd-context-monitor.js → src/hooks/ccp-context-monitor.js} +3 -3
- package/src/hooks/ccp-prompt-guard.js +96 -0
- package/{gsd/hooks/gsd-statusline.js → src/hooks/ccp-statusline.js} +7 -7
- package/src/hooks/ccp-workflow-guard.js +94 -0
- package/src/hooks/config-protection.js +141 -0
- package/{kit → src}/hooks/kit-check-update.js +7 -4
- package/src/hooks/mcp-health-check.js +620 -0
- package/{ecc/scripts → src}/hooks/run-with-flags-shell.sh +1 -1
- package/{ecc/scripts → src}/hooks/run-with-flags.js +74 -13
- package/src/hooks/session-end-marker.js +29 -0
- package/{ecc/scripts → src}/hooks/session-end.js +83 -40
- package/{ecc/scripts → src}/hooks/session-start.js +75 -9
- package/{ecc/scripts → src}/lib/hook-flags.js +8 -4
- package/{ecc/scripts → src}/lib/project-detect.js +2 -1
- package/{ecc/scripts → src}/lib/session-manager.d.ts +5 -1
- package/{ecc/scripts → src}/lib/session-manager.js +202 -92
- package/{ecc/scripts → src}/lib/utils.d.ts +23 -1
- package/{ecc/scripts → src}/lib/utils.js +91 -3
- package/{gsd/get-shit-done/bin/gsd-tools.cjs → src/pilot/bin/ccp-tools.cjs} +257 -86
- package/{gsd/get-shit-done → src/pilot}/bin/lib/commands.cjs +1 -1
- package/src/pilot/bin/lib/config.cjs +444 -0
- package/src/pilot/bin/lib/core.cjs +1190 -0
- package/src/pilot/bin/lib/init.cjs +1281 -0
- package/src/pilot/bin/lib/model-profiles.cjs +67 -0
- package/{gsd/get-shit-done → src/pilot}/bin/lib/phase.cjs +2 -2
- package/src/pilot/bin/lib/security.cjs +382 -0
- package/{gsd/get-shit-done → src/pilot}/bin/lib/state.cjs +1 -1
- package/src/pilot/bin/lib/uat.cjs +282 -0
- package/{gsd/get-shit-done → src/pilot}/bin/lib/verify.cjs +10 -10
- package/{gsd/get-shit-done → src/pilot}/references/continuation-format.md +16 -16
- package/{gsd/get-shit-done → src/pilot}/references/decimal-phase-calculation.md +5 -5
- package/{gsd/get-shit-done → src/pilot}/references/git-integration.md +5 -5
- package/{gsd/get-shit-done → src/pilot}/references/git-planning-commit.md +4 -4
- package/src/pilot/references/mcp-servers.json +153 -0
- package/{gsd/get-shit-done → src/pilot}/references/model-profile-resolution.md +2 -2
- package/{gsd/get-shit-done → src/pilot}/references/model-profiles.md +20 -20
- package/{gsd/get-shit-done → src/pilot}/references/phase-argument-parsing.md +4 -4
- package/{gsd/get-shit-done → src/pilot}/references/planning-config.md +15 -15
- package/{gsd/get-shit-done → src/pilot}/references/ui-brand.md +5 -5
- package/{gsd/get-shit-done → src/pilot}/references/verification-patterns.md +1 -1
- package/{gsd/get-shit-done → src/pilot}/templates/DEBUG.md +1 -1
- package/{gsd/get-shit-done → src/pilot}/templates/UAT.md +3 -3
- package/src/pilot/templates/UI-SPEC.md +100 -0
- package/{gsd/get-shit-done → src/pilot}/templates/VALIDATION.md +1 -1
- package/src/pilot/templates/claude-md.md +122 -0
- package/{gsd/get-shit-done → src/pilot}/templates/codebase/architecture.md +2 -2
- package/{gsd/get-shit-done → src/pilot}/templates/codebase/structure.md +13 -13
- package/{gsd/get-shit-done → src/pilot}/templates/context.md +4 -4
- package/src/pilot/templates/copilot-instructions.md +7 -0
- package/{gsd/get-shit-done → src/pilot}/templates/debug-subagent-prompt.md +4 -4
- package/src/pilot/templates/dev-preferences.md +21 -0
- package/{gsd/get-shit-done → src/pilot}/templates/discovery.md +2 -2
- package/src/pilot/templates/discussion-log.md +63 -0
- package/{gsd/get-shit-done → src/pilot}/templates/phase-prompt.md +12 -12
- package/{gsd/get-shit-done → src/pilot}/templates/planner-subagent-prompt.md +7 -7
- package/{gsd/get-shit-done → src/pilot}/templates/project.md +1 -1
- package/{gsd/get-shit-done → src/pilot}/templates/research.md +2 -2
- package/{gsd/get-shit-done → src/pilot}/templates/state.md +2 -2
- package/{gsd/get-shit-done → src/pilot}/templates/summary-complex.md +1 -1
- package/{gsd/get-shit-done → src/pilot}/workflows/add-phase.md +11 -11
- package/{gsd/get-shit-done → src/pilot}/workflows/add-tests.md +15 -15
- package/{gsd/get-shit-done → src/pilot}/workflows/add-todo.md +7 -7
- package/{gsd/get-shit-done → src/pilot}/workflows/audit-milestone.md +24 -16
- package/src/pilot/workflows/audit-uat.md +109 -0
- package/src/pilot/workflows/autonomous.md +891 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/check-todos.md +10 -10
- package/{gsd/get-shit-done → src/pilot}/workflows/cleanup.md +3 -3
- package/{gsd/get-shit-done → src/pilot}/workflows/complete-milestone.md +19 -16
- package/{gsd/get-shit-done → src/pilot}/workflows/diagnose-issues.md +9 -4
- package/{gsd/get-shit-done → src/pilot}/workflows/discovery-phase.md +8 -8
- package/src/pilot/workflows/discuss-phase-assumptions.md +653 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/discuss-phase.md +407 -49
- package/src/pilot/workflows/do.md +104 -0
- package/src/pilot/workflows/execute-phase.md +821 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/execute-plan.md +79 -28
- package/src/pilot/workflows/fast.md +105 -0
- package/src/pilot/workflows/forensics.md +265 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/health.md +34 -11
- package/src/pilot/workflows/help.md +775 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/insert-phase.md +10 -10
- package/{gsd/get-shit-done → src/pilot}/workflows/list-phase-assumptions.md +4 -4
- package/src/pilot/workflows/manager.md +362 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/map-codebase.md +27 -17
- package/src/pilot/workflows/milestone-summary.md +223 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/new-milestone.md +135 -33
- package/{gsd/get-shit-done → src/pilot}/workflows/new-project.md +152 -79
- package/src/pilot/workflows/next.md +97 -0
- package/src/pilot/workflows/node-repair.md +92 -0
- package/src/pilot/workflows/note.md +156 -0
- package/src/pilot/workflows/pause-work.md +177 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/plan-milestone-gaps.md +10 -11
- package/src/pilot/workflows/plan-phase.md +859 -0
- package/src/pilot/workflows/plant-seed.md +169 -0
- package/src/pilot/workflows/pr-branch.md +129 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/progress.md +95 -34
- package/{gsd/get-shit-done → src/pilot}/workflows/quick.md +33 -21
- package/{gsd/get-shit-done → src/pilot}/workflows/remove-phase.md +14 -14
- package/{gsd/get-shit-done → src/pilot}/workflows/research-phase.md +18 -10
- package/{gsd/get-shit-done → src/pilot}/workflows/resume-project.md +37 -18
- package/src/pilot/workflows/session-report.md +146 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/set-profile.md +7 -7
- package/{gsd/get-shit-done → src/pilot}/workflows/settings.md +75 -22
- package/src/pilot/workflows/ship.md +228 -0
- package/src/pilot/workflows/stats.md +60 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/transition.md +57 -17
- package/src/pilot/workflows/ui-phase.md +302 -0
- package/src/pilot/workflows/ui-review.md +165 -0
- package/{gsd/get-shit-done → src/pilot}/workflows/update.md +88 -58
- package/{gsd/get-shit-done → src/pilot}/workflows/validate-phase.md +24 -17
- package/{gsd/get-shit-done → src/pilot}/workflows/verify-phase.md +26 -15
- package/{gsd/get-shit-done → src/pilot}/workflows/verify-work.md +89 -37
- package/{ecc → src}/rules/common/agents.md +1 -0
- package/{ecc → src}/rules/common/coding-style.md +21 -0
- package/src/skills/agentic-engineering/SKILL.md +63 -0
- package/src/skills/ai-first-engineering/SKILL.md +51 -0
- package/src/skills/ai-regression-testing/SKILL.md +385 -0
- package/src/skills/api-design/SKILL.md +523 -0
- package/src/skills/architecture-decision-records/SKILL.md +179 -0
- package/src/skills/backend-patterns/SKILL.md +598 -0
- package/src/skills/benchmark/SKILL.md +87 -0
- package/src/skills/blueprint/SKILL.md +90 -0
- package/src/skills/browser-qa/SKILL.md +81 -0
- package/src/skills/claude-api/SKILL.md +337 -0
- package/src/skills/codebase-onboarding/SKILL.md +233 -0
- package/src/skills/coding-standards/SKILL.md +530 -0
- package/src/skills/context-budget/SKILL.md +135 -0
- package/{ecc → src}/skills/continuous-learning-v2/SKILL.md +2 -2
- package/{ecc → src}/skills/continuous-learning-v2/agents/observer-loop.sh +1 -1
- package/src/skills/cpp-coding-standards/SKILL.md +723 -0
- package/src/skills/cpp-testing/SKILL.md +324 -0
- package/src/skills/database-migrations/SKILL.md +429 -0
- package/src/skills/deep-research/SKILL.md +155 -0
- package/src/skills/deployment-patterns/SKILL.md +427 -0
- package/src/skills/django-patterns/SKILL.md +734 -0
- package/src/skills/django-security/SKILL.md +593 -0
- package/src/skills/django-tdd/SKILL.md +729 -0
- package/src/skills/django-verification/SKILL.md +469 -0
- package/src/skills/docker-patterns/SKILL.md +364 -0
- package/src/skills/documentation-lookup/SKILL.md +90 -0
- package/src/skills/e2e-testing/SKILL.md +326 -0
- package/src/skills/exa-search/SKILL.md +103 -0
- package/src/skills/frontend-patterns/SKILL.md +642 -0
- package/src/skills/golang-patterns/SKILL.md +674 -0
- package/src/skills/golang-testing/SKILL.md +720 -0
- package/src/skills/java-coding-standards/SKILL.md +147 -0
- package/src/skills/jpa-patterns/SKILL.md +151 -0
- package/src/skills/kotlin-coroutines-flows/SKILL.md +284 -0
- package/src/skills/kotlin-exposed-patterns/SKILL.md +719 -0
- package/src/skills/kotlin-ktor-patterns/SKILL.md +689 -0
- package/src/skills/kotlin-patterns/SKILL.md +711 -0
- package/src/skills/kotlin-testing/SKILL.md +824 -0
- package/src/skills/laravel-patterns/SKILL.md +415 -0
- package/src/skills/laravel-security/SKILL.md +285 -0
- package/src/skills/laravel-tdd/SKILL.md +283 -0
- package/src/skills/laravel-verification/SKILL.md +179 -0
- package/src/skills/mcp-server-patterns/SKILL.md +67 -0
- package/src/skills/perl-patterns/SKILL.md +504 -0
- package/src/skills/perl-testing/SKILL.md +475 -0
- package/src/skills/postgres-patterns/SKILL.md +147 -0
- package/src/skills/prompt-optimizer/SKILL.md +397 -0
- package/src/skills/python-patterns/SKILL.md +750 -0
- package/src/skills/python-testing/SKILL.md +816 -0
- package/src/skills/rust-patterns/SKILL.md +499 -0
- package/src/skills/rust-testing/SKILL.md +500 -0
- package/src/skills/safety-guard/SKILL.md +69 -0
- package/src/skills/search-first/SKILL.md +161 -0
- package/src/skills/security-review/SKILL.md +495 -0
- package/src/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/src/skills/security-scan/SKILL.md +165 -0
- package/src/skills/springboot-patterns/SKILL.md +314 -0
- package/src/skills/springboot-security/SKILL.md +272 -0
- package/src/skills/springboot-tdd/SKILL.md +158 -0
- package/src/skills/springboot-verification/SKILL.md +231 -0
- package/src/skills/tdd-workflow/SKILL.md +410 -0
- package/ecc/scripts/hooks/session-end-marker.js +0 -15
- package/gsd/LICENSE +0 -21
- package/gsd/commands-gsd/discuss-phase.md +0 -90
- package/gsd/commands-gsd/execute-phase.md +0 -41
- package/gsd/commands-gsd/join-discord.md +0 -18
- package/gsd/commands-gsd/reapply-patches.md +0 -123
- package/gsd/commands-gsd/set-profile.md +0 -34
- package/gsd/get-shit-done/bin/lib/config.cjs +0 -169
- package/gsd/get-shit-done/bin/lib/core.cjs +0 -492
- package/gsd/get-shit-done/bin/lib/init.cjs +0 -710
- package/gsd/get-shit-done/workflows/execute-phase.md +0 -459
- package/gsd/get-shit-done/workflows/help.md +0 -489
- package/gsd/get-shit-done/workflows/pause-work.md +0 -122
- package/gsd/get-shit-done/workflows/plan-phase.md +0 -560
- package/gsd/hooks/gsd-check-update.js +0 -81
- package/kit/CLAUDE.md +0 -43
- package/kit/commands/kit/update.md +0 -46
- package/kit/mcp.json +0 -10
- package/kit/rules/code-style.md +0 -24
- /package/{ecc → src}/agents/architect.md +0 -0
- /package/{ecc → src}/agents/code-reviewer.md +0 -0
- /package/{ecc → src}/agents/doc-updater.md +0 -0
- /package/{ecc → src}/agents/e2e-runner.md +0 -0
- /package/{ecc → src}/agents/security-reviewer.md +0 -0
- /package/{ecc → src}/agents/tdd-guide.md +0 -0
- /package/{ecc/rules → src/available-rules}/golang/coding-style.md +0 -0
- /package/{ecc/rules → src/available-rules}/golang/hooks.md +0 -0
- /package/{ecc/rules → src/available-rules}/golang/patterns.md +0 -0
- /package/{ecc/rules → src/available-rules}/golang/security.md +0 -0
- /package/{ecc/rules → src/available-rules}/golang/testing.md +0 -0
- /package/{ecc/rules → src/available-rules}/kotlin/coding-style.md +0 -0
- /package/{ecc/rules → src/available-rules}/kotlin/patterns.md +0 -0
- /package/{ecc/rules → src/available-rules}/kotlin/security.md +0 -0
- /package/{ecc/rules → src/available-rules}/kotlin/testing.md +0 -0
- /package/{ecc/rules → src/available-rules}/perl/coding-style.md +0 -0
- /package/{ecc/rules → src/available-rules}/perl/hooks.md +0 -0
- /package/{ecc/rules → src/available-rules}/perl/patterns.md +0 -0
- /package/{ecc/rules → src/available-rules}/perl/security.md +0 -0
- /package/{ecc/rules → src/available-rules}/perl/testing.md +0 -0
- /package/{ecc/rules → src/available-rules}/php/coding-style.md +0 -0
- /package/{ecc/rules → src/available-rules}/php/hooks.md +0 -0
- /package/{ecc/rules → src/available-rules}/php/patterns.md +0 -0
- /package/{ecc/rules → src/available-rules}/php/security.md +0 -0
- /package/{ecc/rules → src/available-rules}/php/testing.md +0 -0
- /package/{ecc/rules → src/available-rules}/python/coding-style.md +0 -0
- /package/{ecc/rules → src/available-rules}/python/hooks.md +0 -0
- /package/{ecc/rules → src/available-rules}/python/patterns.md +0 -0
- /package/{ecc/rules → src/available-rules}/python/security.md +0 -0
- /package/{ecc/rules → src/available-rules}/python/testing.md +0 -0
- /package/{ecc/rules → src/available-rules}/swift/coding-style.md +0 -0
- /package/{ecc/rules → src/available-rules}/swift/hooks.md +0 -0
- /package/{ecc/rules → src/available-rules}/swift/patterns.md +0 -0
- /package/{ecc/rules → src/available-rules}/swift/security.md +0 -0
- /package/{ecc/rules → src/available-rules}/swift/testing.md +0 -0
- /package/{ecc/rules → src/available-rules}/typescript/coding-style.md +0 -0
- /package/{ecc/rules → src/available-rules}/typescript/hooks.md +0 -0
- /package/{ecc/rules → src/available-rules}/typescript/patterns.md +0 -0
- /package/{ecc/rules → src/available-rules}/typescript/security.md +0 -0
- /package/{ecc/rules → src/available-rules}/typescript/testing.md +0 -0
- /package/{ecc → src}/commands/checkpoint.md +0 -0
- /package/{ecc → src}/commands/learn.md +0 -0
- /package/{ecc → src}/commands/model-route.md +0 -0
- /package/{ecc → src}/commands/resume-session.md +0 -0
- /package/{ecc → src}/commands/save-session.md +0 -0
- /package/{kit → src}/commands/setup-refresh.md +0 -0
- /package/{kit → src}/commands/tool-guide.md +0 -0
- /package/{ecc → src}/commands/verify.md +0 -0
- /package/{ecc → src}/contexts/dev.md +0 -0
- /package/{ecc → src}/contexts/research.md +0 -0
- /package/{ecc → src}/contexts/review.md +0 -0
- /package/{ecc → src}/examples/CLAUDE.md +0 -0
- /package/{ecc → src}/examples/django-api-CLAUDE.md +0 -0
- /package/{ecc → src}/examples/go-microservice-CLAUDE.md +0 -0
- /package/{ecc → src}/examples/rust-api-CLAUDE.md +0 -0
- /package/{ecc → src}/examples/saas-nextjs-CLAUDE.md +0 -0
- /package/{ecc → src}/examples/user-CLAUDE.md +0 -0
- /package/{ecc/scripts → src}/hooks/check-hook-enabled.js +0 -0
- /package/{ecc/scripts → src}/hooks/evaluate-session.js +0 -0
- /package/{ecc/scripts → src}/hooks/pre-compact.js +0 -0
- /package/{ecc/scripts → src}/hooks/suggest-compact.js +0 -0
- /package/{ecc/scripts → src}/lib/package-manager.d.ts +0 -0
- /package/{ecc/scripts → src}/lib/package-manager.js +0 -0
- /package/{ecc/scripts → src}/lib/resolve-formatter.js +0 -0
- /package/{ecc/scripts → src}/lib/session-aliases.d.ts +0 -0
- /package/{ecc/scripts → src}/lib/session-aliases.js +0 -0
- /package/{ecc/scripts → src}/lib/shell-split.js +0 -0
- /package/{gsd/get-shit-done → src/pilot}/bin/lib/frontmatter.cjs +0 -0
- /package/{gsd/get-shit-done → src/pilot}/bin/lib/milestone.cjs +0 -0
- /package/{gsd/get-shit-done → src/pilot}/bin/lib/roadmap.cjs +0 -0
- /package/{gsd/get-shit-done → src/pilot}/bin/lib/template.cjs +0 -0
- /package/{gsd/get-shit-done → src/pilot}/references/checkpoints.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/references/questioning.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/references/tdd.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/codebase/concerns.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/codebase/conventions.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/codebase/integrations.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/codebase/stack.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/codebase/testing.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/config.json +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/continue-here.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/milestone-archive.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/milestone.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/requirements.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/research-project/ARCHITECTURE.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/research-project/FEATURES.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/research-project/PITFALLS.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/research-project/STACK.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/research-project/SUMMARY.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/retrospective.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/roadmap.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/summary-minimal.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/summary-standard.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/summary.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/user-setup.md +0 -0
- /package/{gsd/get-shit-done → src/pilot}/templates/verification-report.md +0 -0
- /package/{ecc → src}/rules/common/development-workflow.md +0 -0
- /package/{ecc → src}/rules/common/git-workflow.md +0 -0
- /package/{ecc → src}/rules/common/hooks.md +0 -0
- /package/{ecc → src}/rules/common/patterns.md +0 -0
- /package/{ecc → src}/rules/common/performance.md +0 -0
- /package/{ecc → src}/rules/common/security.md +0 -0
- /package/{ecc → src}/rules/common/testing.md +0 -0
- /package/{ecc → src}/skills/continuous-learning-v2/agents/observer.md +0 -0
- /package/{ecc → src}/skills/continuous-learning-v2/agents/start-observer.sh +0 -0
- /package/{ecc → src}/skills/continuous-learning-v2/config.json +0 -0
- /package/{ecc → src}/skills/continuous-learning-v2/hooks/observe.sh +0 -0
- /package/{ecc → src}/skills/continuous-learning-v2/scripts/detect-project.sh +0 -0
- /package/{ecc → src}/skills/continuous-learning-v2/scripts/instinct-cli.py +0 -0
- /package/{ecc → src}/skills/continuous-learning-v2/scripts/test_parse_instinct.py +0 -0
- /package/{ecc → src}/skills/strategic-compact/SKILL.md +0 -0
- /package/{ecc → src}/skills/strategic-compact/suggest-compact.sh +0 -0
- /package/{ecc/skills/verification-loop-SKILL.md → src/skills/verification-loop/SKILL.md} +0 -0
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate and run end-to-end tests with Playwright. Creates test journeys, runs tests, captures screenshots/videos/traces, and uploads artifacts.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# E2E Command
|
|
6
|
+
|
|
7
|
+
This command invokes the **e2e-runner** agent to generate, maintain, and execute end-to-end tests using Playwright.
|
|
8
|
+
|
|
9
|
+
## What This Command Does
|
|
10
|
+
|
|
11
|
+
1. **Generate Test Journeys** - Create Playwright tests for user flows
|
|
12
|
+
2. **Run E2E Tests** - Execute tests across browsers
|
|
13
|
+
3. **Capture Artifacts** - Screenshots, videos, traces on failures
|
|
14
|
+
4. **Upload Results** - HTML reports and JUnit XML
|
|
15
|
+
5. **Identify Flaky Tests** - Quarantine unstable tests
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
Use `/e2e` when:
|
|
20
|
+
- Testing critical user journeys (login, trading, payments)
|
|
21
|
+
- Verifying multi-step flows work end-to-end
|
|
22
|
+
- Testing UI interactions and navigation
|
|
23
|
+
- Validating integration between frontend and backend
|
|
24
|
+
- Preparing for production deployment
|
|
25
|
+
|
|
26
|
+
## How It Works
|
|
27
|
+
|
|
28
|
+
The e2e-runner agent will:
|
|
29
|
+
|
|
30
|
+
1. **Analyze user flow** and identify test scenarios
|
|
31
|
+
2. **Generate Playwright test** using Page Object Model pattern
|
|
32
|
+
3. **Run tests** across multiple browsers (Chrome, Firefox, Safari)
|
|
33
|
+
4. **Capture failures** with screenshots, videos, and traces
|
|
34
|
+
5. **Generate report** with results and artifacts
|
|
35
|
+
6. **Identify flaky tests** and recommend fixes
|
|
36
|
+
|
|
37
|
+
## Example Usage
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
User: /e2e Test the market search and view flow
|
|
41
|
+
|
|
42
|
+
Agent (e2e-runner):
|
|
43
|
+
# E2E Test Generation: Market Search and View Flow
|
|
44
|
+
|
|
45
|
+
## Test Scenario Identified
|
|
46
|
+
|
|
47
|
+
**User Journey:** Market Search → View Results → Click Market → View Details
|
|
48
|
+
|
|
49
|
+
**Test Coverage:**
|
|
50
|
+
1. Navigate to markets page
|
|
51
|
+
2. Perform semantic search
|
|
52
|
+
3. Verify search results
|
|
53
|
+
4. Click on first result
|
|
54
|
+
5. Verify market details page loads
|
|
55
|
+
6. Verify chart renders
|
|
56
|
+
|
|
57
|
+
## Generated Test Code
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
// tests/e2e/markets/search-and-view.spec.ts
|
|
61
|
+
import { test, expect } from '@playwright/test'
|
|
62
|
+
import { MarketsPage } from '../../pages/MarketsPage'
|
|
63
|
+
import { MarketDetailsPage } from '../../pages/MarketDetailsPage'
|
|
64
|
+
|
|
65
|
+
test.describe('Market Search and View Flow', () => {
|
|
66
|
+
test('user can search markets and view details', async ({ page }) => {
|
|
67
|
+
// 1. Navigate to markets page
|
|
68
|
+
const marketsPage = new MarketsPage(page)
|
|
69
|
+
await marketsPage.goto()
|
|
70
|
+
|
|
71
|
+
// Verify page loaded
|
|
72
|
+
await expect(page).toHaveTitle(/Markets/)
|
|
73
|
+
await expect(page.locator('h1')).toContainText('Markets')
|
|
74
|
+
|
|
75
|
+
// 2. Perform semantic search
|
|
76
|
+
await marketsPage.searchMarkets('election')
|
|
77
|
+
|
|
78
|
+
// Wait for API response
|
|
79
|
+
await page.waitForResponse(resp =>
|
|
80
|
+
resp.url().includes('/api/markets/search') && resp.status() === 200
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
// 3. Verify search results
|
|
84
|
+
const marketCards = marketsPage.marketCards
|
|
85
|
+
await expect(marketCards.first()).toBeVisible()
|
|
86
|
+
const resultCount = await marketCards.count()
|
|
87
|
+
expect(resultCount).toBeGreaterThan(0)
|
|
88
|
+
|
|
89
|
+
// Take screenshot of search results
|
|
90
|
+
await page.screenshot({ path: 'artifacts/search-results.png' })
|
|
91
|
+
|
|
92
|
+
// 4. Click on first result
|
|
93
|
+
const firstMarketTitle = await marketCards.first().textContent()
|
|
94
|
+
await marketCards.first().click()
|
|
95
|
+
|
|
96
|
+
// 5. Verify market details page loads
|
|
97
|
+
await expect(page).toHaveURL(/\/markets\/[a-z0-9-]+/)
|
|
98
|
+
|
|
99
|
+
const detailsPage = new MarketDetailsPage(page)
|
|
100
|
+
await expect(detailsPage.marketName).toBeVisible()
|
|
101
|
+
await expect(detailsPage.marketDescription).toBeVisible()
|
|
102
|
+
|
|
103
|
+
// 6. Verify chart renders
|
|
104
|
+
await expect(detailsPage.priceChart).toBeVisible()
|
|
105
|
+
|
|
106
|
+
// Verify market name matches
|
|
107
|
+
const detailsTitle = await detailsPage.marketName.textContent()
|
|
108
|
+
expect(detailsTitle?.toLowerCase()).toContain(
|
|
109
|
+
firstMarketTitle?.toLowerCase().substring(0, 20) || ''
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
// Take screenshot of market details
|
|
113
|
+
await page.screenshot({ path: 'artifacts/market-details.png' })
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
test('search with no results shows empty state', async ({ page }) => {
|
|
117
|
+
const marketsPage = new MarketsPage(page)
|
|
118
|
+
await marketsPage.goto()
|
|
119
|
+
|
|
120
|
+
// Search for non-existent market
|
|
121
|
+
await marketsPage.searchMarkets('xyznonexistentmarket123456')
|
|
122
|
+
|
|
123
|
+
// Verify empty state
|
|
124
|
+
await expect(page.locator('[data-testid="no-results"]')).toBeVisible()
|
|
125
|
+
await expect(page.locator('[data-testid="no-results"]')).toContainText(
|
|
126
|
+
/no.*results|no.*markets/i
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
const marketCount = await marketsPage.marketCards.count()
|
|
130
|
+
expect(marketCount).toBe(0)
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
test('can clear search and see all markets again', async ({ page }) => {
|
|
134
|
+
const marketsPage = new MarketsPage(page)
|
|
135
|
+
await marketsPage.goto()
|
|
136
|
+
|
|
137
|
+
// Initial market count
|
|
138
|
+
const initialCount = await marketsPage.marketCards.count()
|
|
139
|
+
|
|
140
|
+
// Perform search
|
|
141
|
+
await marketsPage.searchMarkets('trump')
|
|
142
|
+
await page.waitForLoadState('networkidle')
|
|
143
|
+
|
|
144
|
+
// Verify filtered results
|
|
145
|
+
const filteredCount = await marketsPage.marketCards.count()
|
|
146
|
+
expect(filteredCount).toBeLessThan(initialCount)
|
|
147
|
+
|
|
148
|
+
// Clear search
|
|
149
|
+
await marketsPage.searchInput.clear()
|
|
150
|
+
await page.waitForLoadState('networkidle')
|
|
151
|
+
|
|
152
|
+
// Verify all markets shown again
|
|
153
|
+
const finalCount = await marketsPage.marketCards.count()
|
|
154
|
+
expect(finalCount).toBe(initialCount)
|
|
155
|
+
})
|
|
156
|
+
})
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Running Tests
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
# Run the generated test
|
|
163
|
+
npx playwright test tests/e2e/markets/search-and-view.spec.ts
|
|
164
|
+
|
|
165
|
+
Running 3 tests using 3 workers
|
|
166
|
+
|
|
167
|
+
✓ [chromium] › search-and-view.spec.ts:5:3 › user can search markets and view details (4.2s)
|
|
168
|
+
✓ [chromium] › search-and-view.spec.ts:52:3 › search with no results shows empty state (1.8s)
|
|
169
|
+
✓ [chromium] › search-and-view.spec.ts:67:3 › can clear search and see all markets again (2.9s)
|
|
170
|
+
|
|
171
|
+
3 passed (9.1s)
|
|
172
|
+
|
|
173
|
+
Artifacts generated:
|
|
174
|
+
- artifacts/search-results.png
|
|
175
|
+
- artifacts/market-details.png
|
|
176
|
+
- playwright-report/index.html
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Test Report
|
|
180
|
+
|
|
181
|
+
```
|
|
182
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
183
|
+
║ E2E Test Results ║
|
|
184
|
+
╠══════════════════════════════════════════════════════════════╣
|
|
185
|
+
║ Status: ✅ ALL TESTS PASSED ║
|
|
186
|
+
║ Total: 3 tests ║
|
|
187
|
+
║ Passed: 3 (100%) ║
|
|
188
|
+
║ Failed: 0 ║
|
|
189
|
+
║ Flaky: 0 ║
|
|
190
|
+
║ Duration: 9.1s ║
|
|
191
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
192
|
+
|
|
193
|
+
Artifacts:
|
|
194
|
+
📸 Screenshots: 2 files
|
|
195
|
+
📹 Videos: 0 files (only on failure)
|
|
196
|
+
🔍 Traces: 0 files (only on failure)
|
|
197
|
+
📊 HTML Report: playwright-report/index.html
|
|
198
|
+
|
|
199
|
+
View report: npx playwright show-report
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
✅ E2E test suite ready for CI/CD integration!
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## Test Artifacts
|
|
206
|
+
|
|
207
|
+
When tests run, the following artifacts are captured:
|
|
208
|
+
|
|
209
|
+
**On All Tests:**
|
|
210
|
+
- HTML Report with timeline and results
|
|
211
|
+
- JUnit XML for CI integration
|
|
212
|
+
|
|
213
|
+
**On Failure Only:**
|
|
214
|
+
- Screenshot of the failing state
|
|
215
|
+
- Video recording of the test
|
|
216
|
+
- Trace file for debugging (step-by-step replay)
|
|
217
|
+
- Network logs
|
|
218
|
+
- Console logs
|
|
219
|
+
|
|
220
|
+
## Viewing Artifacts
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
# View HTML report in browser
|
|
224
|
+
npx playwright show-report
|
|
225
|
+
|
|
226
|
+
# View specific trace file
|
|
227
|
+
npx playwright show-trace artifacts/trace-abc123.zip
|
|
228
|
+
|
|
229
|
+
# Screenshots are saved in artifacts/ directory
|
|
230
|
+
open artifacts/search-results.png
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Flaky Test Detection
|
|
234
|
+
|
|
235
|
+
If a test fails intermittently:
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
⚠️ FLAKY TEST DETECTED: tests/e2e/markets/trade.spec.ts
|
|
239
|
+
|
|
240
|
+
Test passed 7/10 runs (70% pass rate)
|
|
241
|
+
|
|
242
|
+
Common failure:
|
|
243
|
+
"Timeout waiting for element '[data-testid="confirm-btn"]'"
|
|
244
|
+
|
|
245
|
+
Recommended fixes:
|
|
246
|
+
1. Add explicit wait: await page.waitForSelector('[data-testid="confirm-btn"]')
|
|
247
|
+
2. Increase timeout: { timeout: 10000 }
|
|
248
|
+
3. Check for race conditions in component
|
|
249
|
+
4. Verify element is not hidden by animation
|
|
250
|
+
|
|
251
|
+
Quarantine recommendation: Mark as test.fixme() until fixed
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## Browser Configuration
|
|
255
|
+
|
|
256
|
+
Tests run on multiple browsers by default:
|
|
257
|
+
- ✅ Chromium (Desktop Chrome)
|
|
258
|
+
- ✅ Firefox (Desktop)
|
|
259
|
+
- ✅ WebKit (Desktop Safari)
|
|
260
|
+
- ✅ Mobile Chrome (optional)
|
|
261
|
+
|
|
262
|
+
Configure in `playwright.config.ts` to adjust browsers.
|
|
263
|
+
|
|
264
|
+
## CI/CD Integration
|
|
265
|
+
|
|
266
|
+
Add to your CI pipeline:
|
|
267
|
+
|
|
268
|
+
```yaml
|
|
269
|
+
# .github/workflows/e2e.yml
|
|
270
|
+
- name: Install Playwright
|
|
271
|
+
run: npx playwright install --with-deps
|
|
272
|
+
|
|
273
|
+
- name: Run E2E tests
|
|
274
|
+
run: npx playwright test
|
|
275
|
+
|
|
276
|
+
- name: Upload artifacts
|
|
277
|
+
if: always()
|
|
278
|
+
uses: actions/upload-artifact@v3
|
|
279
|
+
with:
|
|
280
|
+
name: playwright-report
|
|
281
|
+
path: playwright-report/
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## PMX-Specific Critical Flows
|
|
285
|
+
|
|
286
|
+
For PMX, prioritize these E2E tests:
|
|
287
|
+
|
|
288
|
+
**🔴 CRITICAL (Must Always Pass):**
|
|
289
|
+
1. User can connect wallet
|
|
290
|
+
2. User can browse markets
|
|
291
|
+
3. User can search markets (semantic search)
|
|
292
|
+
4. User can view market details
|
|
293
|
+
5. User can place trade (with test funds)
|
|
294
|
+
6. Market resolves correctly
|
|
295
|
+
7. User can withdraw funds
|
|
296
|
+
|
|
297
|
+
**🟡 IMPORTANT:**
|
|
298
|
+
1. Market creation flow
|
|
299
|
+
2. User profile updates
|
|
300
|
+
3. Real-time price updates
|
|
301
|
+
4. Chart rendering
|
|
302
|
+
5. Filter and sort markets
|
|
303
|
+
6. Mobile responsive layout
|
|
304
|
+
|
|
305
|
+
## Best Practices
|
|
306
|
+
|
|
307
|
+
**DO:**
|
|
308
|
+
- ✅ Use Page Object Model for maintainability
|
|
309
|
+
- ✅ Use data-testid attributes for selectors
|
|
310
|
+
- ✅ Wait for API responses, not arbitrary timeouts
|
|
311
|
+
- ✅ Test critical user journeys end-to-end
|
|
312
|
+
- ✅ Run tests before merging to main
|
|
313
|
+
- ✅ Review artifacts when tests fail
|
|
314
|
+
|
|
315
|
+
**DON'T:**
|
|
316
|
+
- ❌ Use brittle selectors (CSS classes can change)
|
|
317
|
+
- ❌ Test implementation details
|
|
318
|
+
- ❌ Run tests against production
|
|
319
|
+
- ❌ Ignore flaky tests
|
|
320
|
+
- ❌ Skip artifact review on failures
|
|
321
|
+
- ❌ Test every edge case with E2E (use unit tests)
|
|
322
|
+
|
|
323
|
+
## Important Notes
|
|
324
|
+
|
|
325
|
+
**CRITICAL for PMX:**
|
|
326
|
+
- E2E tests involving real money MUST run on testnet/staging only
|
|
327
|
+
- Never run trading tests against production
|
|
328
|
+
- Set `test.skip(process.env.NODE_ENV === 'production')` for financial tests
|
|
329
|
+
- Use test wallets with small test funds only
|
|
330
|
+
|
|
331
|
+
## Integration with Other Commands
|
|
332
|
+
|
|
333
|
+
- Use `/plan` to identify critical journeys to test
|
|
334
|
+
- Use `/tdd` for unit tests (faster, more granular)
|
|
335
|
+
- Use `/e2e` for integration and user journey tests
|
|
336
|
+
- Use `/code-review` to verify test quality
|
|
337
|
+
|
|
338
|
+
## Related Agents
|
|
339
|
+
|
|
340
|
+
This command invokes the `e2e-runner` agent.
|
|
341
|
+
|
|
342
|
+
Source file: `~/.claude/agents/e2e-runner.md`
|
|
343
|
+
|
|
344
|
+
## Quick Commands
|
|
345
|
+
|
|
346
|
+
```bash
|
|
347
|
+
# Run all E2E tests
|
|
348
|
+
npx playwright test
|
|
349
|
+
|
|
350
|
+
# Run specific test file
|
|
351
|
+
npx playwright test tests/e2e/markets/search.spec.ts
|
|
352
|
+
|
|
353
|
+
# Run in headed mode (see browser)
|
|
354
|
+
npx playwright test --headed
|
|
355
|
+
|
|
356
|
+
# Debug test
|
|
357
|
+
npx playwright test --debug
|
|
358
|
+
|
|
359
|
+
# Generate test code
|
|
360
|
+
npx playwright codegen http://localhost:3000
|
|
361
|
+
|
|
362
|
+
# View report
|
|
363
|
+
npx playwright show-report
|
|
364
|
+
```
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Eval Command
|
|
2
|
+
|
|
3
|
+
Manage eval-driven development workflow.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
`/eval [define|check|report|list] [feature-name]`
|
|
8
|
+
|
|
9
|
+
## Define Evals
|
|
10
|
+
|
|
11
|
+
`/eval define feature-name`
|
|
12
|
+
|
|
13
|
+
Create a new eval definition:
|
|
14
|
+
|
|
15
|
+
1. Create `.claude/evals/feature-name.md` with template:
|
|
16
|
+
|
|
17
|
+
```markdown
|
|
18
|
+
## EVAL: feature-name
|
|
19
|
+
Created: $(date)
|
|
20
|
+
|
|
21
|
+
### Capability Evals
|
|
22
|
+
- [ ] [Description of capability 1]
|
|
23
|
+
- [ ] [Description of capability 2]
|
|
24
|
+
|
|
25
|
+
### Regression Evals
|
|
26
|
+
- [ ] [Existing behavior 1 still works]
|
|
27
|
+
- [ ] [Existing behavior 2 still works]
|
|
28
|
+
|
|
29
|
+
### Success Criteria
|
|
30
|
+
- pass@3 > 90% for capability evals
|
|
31
|
+
- pass^3 = 100% for regression evals
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
2. Prompt user to fill in specific criteria
|
|
35
|
+
|
|
36
|
+
## Check Evals
|
|
37
|
+
|
|
38
|
+
`/eval check feature-name`
|
|
39
|
+
|
|
40
|
+
Run evals for a feature:
|
|
41
|
+
|
|
42
|
+
1. Read eval definition from `.claude/evals/feature-name.md`
|
|
43
|
+
2. For each capability eval:
|
|
44
|
+
- Attempt to verify criterion
|
|
45
|
+
- Record PASS/FAIL
|
|
46
|
+
- Log attempt in `.claude/evals/feature-name.log`
|
|
47
|
+
3. For each regression eval:
|
|
48
|
+
- Run relevant tests
|
|
49
|
+
- Compare against baseline
|
|
50
|
+
- Record PASS/FAIL
|
|
51
|
+
4. Report current status:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
EVAL CHECK: feature-name
|
|
55
|
+
========================
|
|
56
|
+
Capability: X/Y passing
|
|
57
|
+
Regression: X/Y passing
|
|
58
|
+
Status: IN PROGRESS / READY
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Report Evals
|
|
62
|
+
|
|
63
|
+
`/eval report feature-name`
|
|
64
|
+
|
|
65
|
+
Generate comprehensive eval report:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
EVAL REPORT: feature-name
|
|
69
|
+
=========================
|
|
70
|
+
Generated: $(date)
|
|
71
|
+
|
|
72
|
+
CAPABILITY EVALS
|
|
73
|
+
----------------
|
|
74
|
+
[eval-1]: PASS (pass@1)
|
|
75
|
+
[eval-2]: PASS (pass@2) - required retry
|
|
76
|
+
[eval-3]: FAIL - see notes
|
|
77
|
+
|
|
78
|
+
REGRESSION EVALS
|
|
79
|
+
----------------
|
|
80
|
+
[test-1]: PASS
|
|
81
|
+
[test-2]: PASS
|
|
82
|
+
[test-3]: PASS
|
|
83
|
+
|
|
84
|
+
METRICS
|
|
85
|
+
-------
|
|
86
|
+
Capability pass@1: 67%
|
|
87
|
+
Capability pass@3: 100%
|
|
88
|
+
Regression pass^3: 100%
|
|
89
|
+
|
|
90
|
+
NOTES
|
|
91
|
+
-----
|
|
92
|
+
[Any issues, edge cases, or observations]
|
|
93
|
+
|
|
94
|
+
RECOMMENDATION
|
|
95
|
+
--------------
|
|
96
|
+
[SHIP / NEEDS WORK / BLOCKED]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## List Evals
|
|
100
|
+
|
|
101
|
+
`/eval list`
|
|
102
|
+
|
|
103
|
+
Show all eval definitions:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
EVAL DEFINITIONS
|
|
107
|
+
================
|
|
108
|
+
feature-auth [3/5 passing] IN PROGRESS
|
|
109
|
+
feature-search [5/5 passing] READY
|
|
110
|
+
feature-export [0/4 passing] NOT STARTED
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Arguments
|
|
114
|
+
|
|
115
|
+
$ARGUMENTS:
|
|
116
|
+
- `define <name>` - Create new eval definition
|
|
117
|
+
- `check <name>` - Run and check evals
|
|
118
|
+
- `report <name>` - Generate full report
|
|
119
|
+
- `list` - Show all evals
|
|
120
|
+
- `clean` - Remove old eval logs (keeps last 10 runs)
|
|
@@ -11,10 +11,10 @@ command: true
|
|
|
11
11
|
Run the instinct CLI using the plugin root path:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
python3 "$
|
|
14
|
+
python3 "$(getClaudeDir)/skills/continuous-learning-v2/scripts/instinct-cli.py" evolve [--generate]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Or if `
|
|
17
|
+
Or if `CCP_CLAUDE_DIR` is not set (manual installation):
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py evolve [--generate]
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Fix Go build errors, go vet warnings, and linter issues incrementally. Invokes the go-build-resolver agent for minimal, surgical fixes.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Go Build and Fix
|
|
6
|
+
|
|
7
|
+
This command invokes the **go-build-resolver** agent to incrementally fix Go build errors with minimal changes.
|
|
8
|
+
|
|
9
|
+
## What This Command Does
|
|
10
|
+
|
|
11
|
+
1. **Run Diagnostics**: Execute `go build`, `go vet`, `staticcheck`
|
|
12
|
+
2. **Parse Errors**: Group by file and sort by severity
|
|
13
|
+
3. **Fix Incrementally**: One error at a time
|
|
14
|
+
4. **Verify Each Fix**: Re-run build after each change
|
|
15
|
+
5. **Report Summary**: Show what was fixed and what remains
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
Use `/go-build` when:
|
|
20
|
+
- `go build ./...` fails with errors
|
|
21
|
+
- `go vet ./...` reports issues
|
|
22
|
+
- `golangci-lint run` shows warnings
|
|
23
|
+
- Module dependencies are broken
|
|
24
|
+
- After pulling changes that break the build
|
|
25
|
+
|
|
26
|
+
## Diagnostic Commands Run
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Primary build check
|
|
30
|
+
go build ./...
|
|
31
|
+
|
|
32
|
+
# Static analysis
|
|
33
|
+
go vet ./...
|
|
34
|
+
|
|
35
|
+
# Extended linting (if available)
|
|
36
|
+
staticcheck ./...
|
|
37
|
+
golangci-lint run
|
|
38
|
+
|
|
39
|
+
# Module issues
|
|
40
|
+
go mod verify
|
|
41
|
+
go mod tidy -v
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Example Session
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
User: /go-build
|
|
48
|
+
|
|
49
|
+
Agent:
|
|
50
|
+
# Go Build Resolution
|
|
51
|
+
|
|
52
|
+
## Initial Diagnostics
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
$ go build ./...
|
|
56
|
+
internal/service/user.go:25:15: undefined: UserRepository
|
|
57
|
+
internal/handler/api.go:42:9: cannot use x (type string) as type int
|
|
58
|
+
internal/handler/api.go:58:2: missing return at end of function
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Errors found: 3
|
|
62
|
+
|
|
63
|
+
## Fix 1: Undefined Identifier
|
|
64
|
+
|
|
65
|
+
File: internal/service/user.go:25
|
|
66
|
+
Error: undefined: UserRepository
|
|
67
|
+
Cause: Missing import
|
|
68
|
+
|
|
69
|
+
```go
|
|
70
|
+
// Added import
|
|
71
|
+
import "project/internal/repository"
|
|
72
|
+
|
|
73
|
+
// Changed
|
|
74
|
+
var repo UserRepository
|
|
75
|
+
// To
|
|
76
|
+
var repo repository.UserRepository
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
$ go build ./...
|
|
81
|
+
# 2 errors remaining
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Fix 2: Type Mismatch
|
|
85
|
+
|
|
86
|
+
File: internal/handler/api.go:42
|
|
87
|
+
Error: cannot use x (type string) as type int
|
|
88
|
+
|
|
89
|
+
```go
|
|
90
|
+
// Changed
|
|
91
|
+
count := params.Get("count")
|
|
92
|
+
// To
|
|
93
|
+
countStr := params.Get("count")
|
|
94
|
+
count, _ := strconv.Atoi(countStr)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
$ go build ./...
|
|
99
|
+
# 1 error remaining
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Fix 3: Missing Return
|
|
103
|
+
|
|
104
|
+
File: internal/handler/api.go:58
|
|
105
|
+
Error: missing return at end of function
|
|
106
|
+
|
|
107
|
+
```go
|
|
108
|
+
func GetUser(id string) (*User, error) {
|
|
109
|
+
if id == "" {
|
|
110
|
+
return nil, ErrInvalidID
|
|
111
|
+
}
|
|
112
|
+
user := findUser(id)
|
|
113
|
+
// Added missing return
|
|
114
|
+
return user, nil
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
$ go build ./...
|
|
120
|
+
# Build successful!
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Final Verification
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
$ go vet ./...
|
|
127
|
+
# No issues
|
|
128
|
+
|
|
129
|
+
$ go test ./...
|
|
130
|
+
ok project/internal/service 0.015s
|
|
131
|
+
ok project/internal/handler 0.023s
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Summary
|
|
135
|
+
|
|
136
|
+
| Metric | Count |
|
|
137
|
+
|--------|-------|
|
|
138
|
+
| Build errors fixed | 3 |
|
|
139
|
+
| Vet warnings fixed | 0 |
|
|
140
|
+
| Files modified | 2 |
|
|
141
|
+
| Remaining issues | 0 |
|
|
142
|
+
|
|
143
|
+
Build Status: ✅ SUCCESS
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Common Errors Fixed
|
|
147
|
+
|
|
148
|
+
| Error | Typical Fix |
|
|
149
|
+
|-------|-------------|
|
|
150
|
+
| `undefined: X` | Add import or fix typo |
|
|
151
|
+
| `cannot use X as Y` | Type conversion or fix assignment |
|
|
152
|
+
| `missing return` | Add return statement |
|
|
153
|
+
| `X does not implement Y` | Add missing method |
|
|
154
|
+
| `import cycle` | Restructure packages |
|
|
155
|
+
| `declared but not used` | Remove or use variable |
|
|
156
|
+
| `cannot find package` | `go get` or `go mod tidy` |
|
|
157
|
+
|
|
158
|
+
## Fix Strategy
|
|
159
|
+
|
|
160
|
+
1. **Build errors first** - Code must compile
|
|
161
|
+
2. **Vet warnings second** - Fix suspicious constructs
|
|
162
|
+
3. **Lint warnings third** - Style and best practices
|
|
163
|
+
4. **One fix at a time** - Verify each change
|
|
164
|
+
5. **Minimal changes** - Don't refactor, just fix
|
|
165
|
+
|
|
166
|
+
## Stop Conditions
|
|
167
|
+
|
|
168
|
+
The agent will stop and report if:
|
|
169
|
+
- Same error persists after 3 attempts
|
|
170
|
+
- Fix introduces more errors
|
|
171
|
+
- Requires architectural changes
|
|
172
|
+
- Missing external dependencies
|
|
173
|
+
|
|
174
|
+
## Related Commands
|
|
175
|
+
|
|
176
|
+
- `/go-test` - Run tests after build succeeds
|
|
177
|
+
- `/go-review` - Review code quality
|
|
178
|
+
- `/verify` - Full verification loop
|
|
179
|
+
|
|
180
|
+
## Related
|
|
181
|
+
|
|
182
|
+
- Agent: `agents/go-build-resolver.md`
|
|
183
|
+
- Skill: `skills/golang-patterns/`
|