claudecode-omc 5.5.2 → 5.6.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/README.md +63 -0
- package/bundled/manifest.json +3 -2
- package/bundled/upstream/ecc/.omc-source/bundle.json +23 -0
- package/bundled/upstream/ecc/.omc-source/last-plan-apply.json +439 -0
- package/bundled/upstream/ecc/.omc-source/manifests/.claude-plugin/marketplace.json +47 -0
- package/bundled/upstream/ecc/agents/a11y-architect.md +141 -0
- package/bundled/upstream/ecc/agents/architect.md +211 -0
- package/bundled/upstream/ecc/agents/build-error-resolver.md +114 -0
- package/bundled/upstream/ecc/agents/chief-of-staff.md +151 -0
- package/bundled/upstream/ecc/agents/code-architect.md +71 -0
- package/bundled/upstream/ecc/agents/code-explorer.md +69 -0
- package/bundled/upstream/ecc/agents/code-reviewer.md +237 -0
- package/bundled/upstream/ecc/agents/code-simplifier.md +47 -0
- package/bundled/upstream/ecc/agents/comment-analyzer.md +45 -0
- package/bundled/upstream/ecc/agents/conversation-analyzer.md +52 -0
- package/bundled/upstream/ecc/agents/cpp-build-resolver.md +90 -0
- package/bundled/upstream/ecc/agents/cpp-reviewer.md +72 -0
- package/bundled/upstream/ecc/agents/csharp-reviewer.md +101 -0
- package/bundled/upstream/ecc/agents/dart-build-resolver.md +201 -0
- package/bundled/upstream/ecc/agents/database-reviewer.md +91 -0
- package/bundled/upstream/ecc/agents/doc-updater.md +107 -0
- package/bundled/upstream/ecc/agents/docs-lookup.md +68 -0
- package/bundled/upstream/ecc/agents/e2e-runner.md +107 -0
- package/bundled/upstream/ecc/agents/flutter-reviewer.md +243 -0
- package/bundled/upstream/ecc/agents/gan-evaluator.md +209 -0
- package/bundled/upstream/ecc/agents/gan-generator.md +131 -0
- package/bundled/upstream/ecc/agents/gan-planner.md +99 -0
- package/bundled/upstream/ecc/agents/go-build-resolver.md +94 -0
- package/bundled/upstream/ecc/agents/go-reviewer.md +76 -0
- package/bundled/upstream/ecc/agents/harness-optimizer.md +35 -0
- package/bundled/upstream/ecc/agents/healthcare-reviewer.md +83 -0
- package/bundled/upstream/ecc/agents/java-build-resolver.md +153 -0
- package/bundled/upstream/ecc/agents/java-reviewer.md +92 -0
- package/bundled/upstream/ecc/agents/kotlin-build-resolver.md +118 -0
- package/bundled/upstream/ecc/agents/kotlin-reviewer.md +159 -0
- package/bundled/upstream/ecc/agents/loop-operator.md +36 -0
- package/bundled/upstream/ecc/agents/opensource-forker.md +198 -0
- package/bundled/upstream/ecc/agents/opensource-packager.md +249 -0
- package/bundled/upstream/ecc/agents/opensource-sanitizer.md +188 -0
- package/bundled/upstream/ecc/agents/performance-optimizer.md +446 -0
- package/bundled/upstream/ecc/agents/planner.md +212 -0
- package/bundled/upstream/ecc/agents/pr-test-analyzer.md +45 -0
- package/bundled/upstream/ecc/agents/python-reviewer.md +98 -0
- package/bundled/upstream/ecc/agents/pytorch-build-resolver.md +120 -0
- package/bundled/upstream/ecc/agents/refactor-cleaner.md +85 -0
- package/bundled/upstream/ecc/agents/rust-build-resolver.md +148 -0
- package/bundled/upstream/ecc/agents/rust-reviewer.md +94 -0
- package/bundled/upstream/ecc/agents/security-reviewer.md +108 -0
- package/bundled/upstream/ecc/agents/seo-specialist.md +62 -0
- package/bundled/upstream/ecc/agents/silent-failure-hunter.md +50 -0
- package/bundled/upstream/ecc/agents/tdd-guide.md +91 -0
- package/bundled/upstream/ecc/agents/type-design-analyzer.md +41 -0
- package/bundled/upstream/ecc/agents/typescript-reviewer.md +112 -0
- package/bundled/upstream/ecc/commands/agent-sort.md +23 -0
- package/bundled/upstream/ecc/commands/aside.md +164 -0
- package/bundled/upstream/ecc/commands/build-fix.md +62 -0
- package/bundled/upstream/ecc/commands/checkpoint.md +74 -0
- package/bundled/upstream/ecc/commands/claw.md +23 -0
- package/bundled/upstream/ecc/commands/code-review.md +289 -0
- package/bundled/upstream/ecc/commands/context-budget.md +23 -0
- package/bundled/upstream/ecc/commands/cpp-build.md +173 -0
- package/bundled/upstream/ecc/commands/cpp-review.md +132 -0
- package/bundled/upstream/ecc/commands/cpp-test.md +251 -0
- package/bundled/upstream/ecc/commands/devfleet.md +23 -0
- package/bundled/upstream/ecc/commands/docs.md +23 -0
- package/bundled/upstream/ecc/commands/e2e.md +268 -0
- package/bundled/upstream/ecc/commands/eval.md +23 -0
- package/bundled/upstream/ecc/commands/evolve.md +178 -0
- package/bundled/upstream/ecc/commands/feature-dev.md +49 -0
- package/bundled/upstream/ecc/commands/flutter-build.md +164 -0
- package/bundled/upstream/ecc/commands/flutter-review.md +116 -0
- package/bundled/upstream/ecc/commands/flutter-test.md +144 -0
- package/bundled/upstream/ecc/commands/gan-build.md +99 -0
- package/bundled/upstream/ecc/commands/gan-design.md +35 -0
- package/bundled/upstream/ecc/commands/go-build.md +183 -0
- package/bundled/upstream/ecc/commands/go-review.md +148 -0
- package/bundled/upstream/ecc/commands/go-test.md +268 -0
- package/bundled/upstream/ecc/commands/gradle-build.md +70 -0
- package/bundled/upstream/ecc/commands/harness-audit.md +73 -0
- package/bundled/upstream/ecc/commands/hookify-configure.md +14 -0
- package/bundled/upstream/ecc/commands/hookify-help.md +46 -0
- package/bundled/upstream/ecc/commands/hookify-list.md +21 -0
- package/bundled/upstream/ecc/commands/hookify.md +50 -0
- package/bundled/upstream/ecc/commands/instinct-export.md +66 -0
- package/bundled/upstream/ecc/commands/instinct-import.md +114 -0
- package/bundled/upstream/ecc/commands/instinct-status.md +59 -0
- package/bundled/upstream/ecc/commands/jira.md +106 -0
- package/bundled/upstream/ecc/commands/kotlin-build.md +174 -0
- package/bundled/upstream/ecc/commands/kotlin-review.md +140 -0
- package/bundled/upstream/ecc/commands/kotlin-test.md +312 -0
- package/bundled/upstream/ecc/commands/learn-eval.md +116 -0
- package/bundled/upstream/ecc/commands/learn.md +70 -0
- package/bundled/upstream/ecc/commands/loop-start.md +32 -0
- package/bundled/upstream/ecc/commands/loop-status.md +24 -0
- package/bundled/upstream/ecc/commands/model-route.md +26 -0
- package/bundled/upstream/ecc/commands/multi-backend.md +158 -0
- package/bundled/upstream/ecc/commands/multi-execute.md +315 -0
- package/bundled/upstream/ecc/commands/multi-frontend.md +158 -0
- package/bundled/upstream/ecc/commands/multi-plan.md +268 -0
- package/bundled/upstream/ecc/commands/multi-workflow.md +191 -0
- package/bundled/upstream/ecc/commands/orchestrate.md +135 -0
- package/bundled/upstream/ecc/commands/plan.md +117 -0
- package/bundled/upstream/ecc/commands/pm2.md +272 -0
- package/bundled/upstream/ecc/commands/projects.md +39 -0
- package/bundled/upstream/ecc/commands/promote.md +41 -0
- package/bundled/upstream/ecc/commands/prompt-optimize.md +23 -0
- package/bundled/upstream/ecc/commands/prp-commit.md +112 -0
- package/bundled/upstream/ecc/commands/prp-implement.md +385 -0
- package/bundled/upstream/ecc/commands/prp-plan.md +502 -0
- package/bundled/upstream/ecc/commands/prp-pr.md +184 -0
- package/bundled/upstream/ecc/commands/prp-prd.md +447 -0
- package/bundled/upstream/ecc/commands/prune.md +31 -0
- package/bundled/upstream/ecc/commands/python-review.md +297 -0
- package/bundled/upstream/ecc/commands/quality-gate.md +29 -0
- package/bundled/upstream/ecc/commands/refactor-clean.md +80 -0
- package/bundled/upstream/ecc/commands/resume-session.md +156 -0
- package/bundled/upstream/ecc/commands/review-pr.md +37 -0
- package/bundled/upstream/ecc/commands/rules-distill.md +20 -0
- package/bundled/upstream/ecc/commands/rust-build.md +187 -0
- package/bundled/upstream/ecc/commands/rust-review.md +142 -0
- package/bundled/upstream/ecc/commands/rust-test.md +308 -0
- package/bundled/upstream/ecc/commands/santa-loop.md +175 -0
- package/bundled/upstream/ecc/commands/save-session.md +275 -0
- package/bundled/upstream/ecc/commands/sessions.md +339 -0
- package/bundled/upstream/ecc/commands/setup-pm.md +80 -0
- package/bundled/upstream/ecc/commands/skill-create.md +174 -0
- package/bundled/upstream/ecc/commands/skill-health.md +54 -0
- package/bundled/upstream/ecc/commands/tdd.md +231 -0
- package/bundled/upstream/ecc/commands/test-coverage.md +69 -0
- package/bundled/upstream/ecc/commands/update-codemaps.md +72 -0
- package/bundled/upstream/ecc/commands/update-docs.md +84 -0
- package/bundled/upstream/ecc/commands/verify.md +23 -0
- package/bundled/upstream/ecc/hooks/README.md +237 -0
- package/bundled/upstream/ecc/hooks/hooks.json +330 -0
- package/bundled/upstream/ecc/skills/accessibility/SKILL.md +146 -0
- package/bundled/upstream/ecc/skills/agent-eval/SKILL.md +145 -0
- package/bundled/upstream/ecc/skills/agent-harness-construction/SKILL.md +73 -0
- package/bundled/upstream/ecc/skills/agent-introspection-debugging/SKILL.md +153 -0
- package/bundled/upstream/ecc/skills/agent-payment-x402/SKILL.md +178 -0
- package/bundled/upstream/ecc/skills/agent-sort/SKILL.md +215 -0
- package/bundled/upstream/ecc/skills/agentic-engineering/SKILL.md +63 -0
- package/bundled/upstream/ecc/skills/ai-first-engineering/SKILL.md +51 -0
- package/bundled/upstream/ecc/skills/ai-regression-testing/SKILL.md +385 -0
- package/bundled/upstream/ecc/skills/android-clean-architecture/SKILL.md +339 -0
- package/bundled/upstream/ecc/skills/api-connector-builder/SKILL.md +120 -0
- package/bundled/upstream/ecc/skills/api-design/SKILL.md +523 -0
- package/bundled/upstream/ecc/skills/architecture-decision-records/SKILL.md +179 -0
- package/bundled/upstream/ecc/skills/article-writing/SKILL.md +79 -0
- package/bundled/upstream/ecc/skills/automation-audit-ops/SKILL.md +142 -0
- package/bundled/upstream/ecc/skills/autonomous-agent-harness/SKILL.md +267 -0
- package/bundled/upstream/ecc/skills/autonomous-loops/SKILL.md +610 -0
- package/bundled/upstream/ecc/skills/backend-patterns/SKILL.md +598 -0
- package/bundled/upstream/ecc/skills/benchmark/SKILL.md +93 -0
- package/bundled/upstream/ecc/skills/blueprint/SKILL.md +105 -0
- package/bundled/upstream/ecc/skills/brand-voice/SKILL.md +97 -0
- package/bundled/upstream/ecc/skills/brand-voice/references/voice-profile-schema.md +55 -0
- package/bundled/upstream/ecc/skills/browser-qa/SKILL.md +87 -0
- package/bundled/upstream/ecc/skills/bun-runtime/SKILL.md +84 -0
- package/bundled/upstream/ecc/skills/canary-watch/SKILL.md +99 -0
- package/bundled/upstream/ecc/skills/carrier-relationship-management/SKILL.md +212 -0
- package/bundled/upstream/ecc/skills/ck/SKILL.md +147 -0
- package/bundled/upstream/ecc/skills/ck/commands/forget.mjs +44 -0
- package/bundled/upstream/ecc/skills/ck/commands/info.mjs +24 -0
- package/bundled/upstream/ecc/skills/ck/commands/init.mjs +143 -0
- package/bundled/upstream/ecc/skills/ck/commands/list.mjs +40 -0
- package/bundled/upstream/ecc/skills/ck/commands/migrate.mjs +202 -0
- package/bundled/upstream/ecc/skills/ck/commands/resume.mjs +36 -0
- package/bundled/upstream/ecc/skills/ck/commands/save.mjs +210 -0
- package/bundled/upstream/ecc/skills/ck/commands/shared.mjs +387 -0
- package/bundled/upstream/ecc/skills/ck/hooks/session-start.mjs +224 -0
- package/bundled/upstream/ecc/skills/claude-api/SKILL.md +337 -0
- package/bundled/upstream/ecc/skills/claude-devfleet/SKILL.md +103 -0
- package/bundled/upstream/ecc/skills/click-path-audit/SKILL.md +244 -0
- package/bundled/upstream/ecc/skills/clickhouse-io/SKILL.md +439 -0
- package/bundled/upstream/ecc/skills/code-tour/SKILL.md +236 -0
- package/bundled/upstream/ecc/skills/codebase-onboarding/SKILL.md +233 -0
- package/bundled/upstream/ecc/skills/coding-standards/SKILL.md +549 -0
- package/bundled/upstream/ecc/skills/compose-multiplatform-patterns/SKILL.md +299 -0
- package/bundled/upstream/ecc/skills/configure-ecc/SKILL.md +367 -0
- package/bundled/upstream/ecc/skills/connections-optimizer/SKILL.md +189 -0
- package/bundled/upstream/ecc/skills/content-engine/SKILL.md +131 -0
- package/bundled/upstream/ecc/skills/content-hash-cache-pattern/SKILL.md +161 -0
- package/bundled/upstream/ecc/skills/context-budget/SKILL.md +135 -0
- package/bundled/upstream/ecc/skills/continuous-agent-loop/SKILL.md +45 -0
- package/bundled/upstream/ecc/skills/continuous-learning/SKILL.md +123 -0
- package/bundled/upstream/ecc/skills/continuous-learning/config.json +18 -0
- package/bundled/upstream/ecc/skills/continuous-learning/evaluate-session.sh +69 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/SKILL.md +346 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/observer-loop.sh +282 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/observer.md +198 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/session-guardian.sh +150 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/start-observer.sh +244 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/config.json +8 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/hooks/observe.sh +460 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/detect-project.sh +243 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/instinct-cli.py +1426 -0
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/test_parse_instinct.py +984 -0
- package/bundled/upstream/ecc/skills/cost-aware-llm-pipeline/SKILL.md +183 -0
- package/bundled/upstream/ecc/skills/council/SKILL.md +203 -0
- package/bundled/upstream/ecc/skills/cpp-coding-standards/SKILL.md +723 -0
- package/bundled/upstream/ecc/skills/cpp-testing/SKILL.md +324 -0
- package/bundled/upstream/ecc/skills/crosspost/SKILL.md +111 -0
- package/bundled/upstream/ecc/skills/csharp-testing/SKILL.md +321 -0
- package/bundled/upstream/ecc/skills/customer-billing-ops/SKILL.md +140 -0
- package/bundled/upstream/ecc/skills/customs-trade-compliance/SKILL.md +263 -0
- package/bundled/upstream/ecc/skills/dart-flutter-patterns/SKILL.md +563 -0
- package/bundled/upstream/ecc/skills/dashboard-builder/SKILL.md +108 -0
- package/bundled/upstream/ecc/skills/data-scraper-agent/SKILL.md +764 -0
- package/bundled/upstream/ecc/skills/database-migrations/SKILL.md +429 -0
- package/bundled/upstream/ecc/skills/deep-research/SKILL.md +155 -0
- package/bundled/upstream/ecc/skills/defi-amm-security/SKILL.md +160 -0
- package/bundled/upstream/ecc/skills/deployment-patterns/SKILL.md +427 -0
- package/bundled/upstream/ecc/skills/design-system/SKILL.md +82 -0
- package/bundled/upstream/ecc/skills/django-patterns/SKILL.md +734 -0
- package/bundled/upstream/ecc/skills/django-security/SKILL.md +593 -0
- package/bundled/upstream/ecc/skills/django-tdd/SKILL.md +729 -0
- package/bundled/upstream/ecc/skills/django-verification/SKILL.md +469 -0
- package/bundled/upstream/ecc/skills/dmux-workflows/SKILL.md +191 -0
- package/bundled/upstream/ecc/skills/docker-patterns/SKILL.md +364 -0
- package/bundled/upstream/ecc/skills/documentation-lookup/SKILL.md +90 -0
- package/bundled/upstream/ecc/skills/dotnet-patterns/SKILL.md +321 -0
- package/bundled/upstream/ecc/skills/e2e-testing/SKILL.md +326 -0
- package/bundled/upstream/ecc/skills/ecc-tools-cost-audit/SKILL.md +160 -0
- package/bundled/upstream/ecc/skills/email-ops/SKILL.md +121 -0
- package/bundled/upstream/ecc/skills/energy-procurement/SKILL.md +228 -0
- package/bundled/upstream/ecc/skills/enterprise-agent-ops/SKILL.md +50 -0
- package/bundled/upstream/ecc/skills/eval-harness/SKILL.md +270 -0
- package/bundled/upstream/ecc/skills/evm-token-decimals/SKILL.md +130 -0
- package/bundled/upstream/ecc/skills/exa-search/SKILL.md +103 -0
- package/bundled/upstream/ecc/skills/fal-ai-media/SKILL.md +284 -0
- package/bundled/upstream/ecc/skills/finance-billing-ops/SKILL.md +127 -0
- package/bundled/upstream/ecc/skills/flutter-dart-code-review/SKILL.md +435 -0
- package/bundled/upstream/ecc/skills/foundation-models-on-device/SKILL.md +243 -0
- package/bundled/upstream/ecc/skills/frontend-design/SKILL.md +145 -0
- package/bundled/upstream/ecc/skills/frontend-patterns/SKILL.md +642 -0
- package/bundled/upstream/ecc/skills/frontend-slides/SKILL.md +184 -0
- package/bundled/upstream/ecc/skills/frontend-slides/STYLE_PRESETS.md +330 -0
- package/bundled/upstream/ecc/skills/gan-style-harness/SKILL.md +278 -0
- package/bundled/upstream/ecc/skills/gateguard/SKILL.md +121 -0
- package/bundled/upstream/ecc/skills/git-workflow/SKILL.md +715 -0
- package/bundled/upstream/ecc/skills/github-ops/SKILL.md +144 -0
- package/bundled/upstream/ecc/skills/golang-patterns/SKILL.md +674 -0
- package/bundled/upstream/ecc/skills/golang-testing/SKILL.md +720 -0
- package/bundled/upstream/ecc/skills/google-workspace-ops/SKILL.md +95 -0
- package/bundled/upstream/ecc/skills/healthcare-cdss-patterns/SKILL.md +245 -0
- package/bundled/upstream/ecc/skills/healthcare-emr-patterns/SKILL.md +159 -0
- package/bundled/upstream/ecc/skills/healthcare-eval-harness/SKILL.md +207 -0
- package/bundled/upstream/ecc/skills/healthcare-phi-compliance/SKILL.md +145 -0
- package/bundled/upstream/ecc/skills/hexagonal-architecture/SKILL.md +276 -0
- package/bundled/upstream/ecc/skills/hipaa-compliance/SKILL.md +78 -0
- package/bundled/upstream/ecc/skills/hookify-rules/SKILL.md +128 -0
- package/bundled/upstream/ecc/skills/inventory-demand-planning/SKILL.md +247 -0
- package/bundled/upstream/ecc/skills/investor-materials/SKILL.md +96 -0
- package/bundled/upstream/ecc/skills/investor-outreach/SKILL.md +91 -0
- package/bundled/upstream/ecc/skills/iterative-retrieval/SKILL.md +211 -0
- package/bundled/upstream/ecc/skills/java-coding-standards/SKILL.md +147 -0
- package/bundled/upstream/ecc/skills/jira-integration/SKILL.md +293 -0
- package/bundled/upstream/ecc/skills/jpa-patterns/SKILL.md +151 -0
- package/bundled/upstream/ecc/skills/knowledge-ops/SKILL.md +154 -0
- package/bundled/upstream/ecc/skills/kotlin-coroutines-flows/SKILL.md +284 -0
- package/bundled/upstream/ecc/skills/kotlin-exposed-patterns/SKILL.md +719 -0
- package/bundled/upstream/ecc/skills/kotlin-ktor-patterns/SKILL.md +689 -0
- package/bundled/upstream/ecc/skills/kotlin-patterns/SKILL.md +711 -0
- package/bundled/upstream/ecc/skills/kotlin-testing/SKILL.md +824 -0
- package/bundled/upstream/ecc/skills/laravel-patterns/SKILL.md +415 -0
- package/bundled/upstream/ecc/skills/laravel-plugin-discovery/SKILL.md +229 -0
- package/bundled/upstream/ecc/skills/laravel-security/SKILL.md +285 -0
- package/bundled/upstream/ecc/skills/laravel-tdd/SKILL.md +283 -0
- package/bundled/upstream/ecc/skills/laravel-verification/SKILL.md +179 -0
- package/bundled/upstream/ecc/skills/lead-intelligence/SKILL.md +321 -0
- package/bundled/upstream/ecc/skills/lead-intelligence/agents/enrichment-agent.md +85 -0
- package/bundled/upstream/ecc/skills/lead-intelligence/agents/mutual-mapper.md +75 -0
- package/bundled/upstream/ecc/skills/lead-intelligence/agents/outreach-drafter.md +98 -0
- package/bundled/upstream/ecc/skills/lead-intelligence/agents/signal-scorer.md +60 -0
- package/bundled/upstream/ecc/skills/liquid-glass-design/SKILL.md +279 -0
- package/bundled/upstream/ecc/skills/llm-trading-agent-security/SKILL.md +146 -0
- package/bundled/upstream/ecc/skills/logistics-exception-management/SKILL.md +222 -0
- package/bundled/upstream/ecc/skills/manim-video/SKILL.md +89 -0
- package/bundled/upstream/ecc/skills/manim-video/assets/network_graph_scene.py +52 -0
- package/bundled/upstream/ecc/skills/market-research/SKILL.md +75 -0
- package/bundled/upstream/ecc/skills/mcp-server-patterns/SKILL.md +69 -0
- package/bundled/upstream/ecc/skills/messages-ops/SKILL.md +104 -0
- package/bundled/upstream/ecc/skills/nanoclaw-repl/SKILL.md +33 -0
- package/bundled/upstream/ecc/skills/nestjs-patterns/SKILL.md +230 -0
- package/bundled/upstream/ecc/skills/nextjs-turbopack/SKILL.md +44 -0
- package/bundled/upstream/ecc/skills/nodejs-keccak256/SKILL.md +102 -0
- package/bundled/upstream/ecc/skills/nutrient-document-processing/SKILL.md +167 -0
- package/bundled/upstream/ecc/skills/nuxt4-patterns/SKILL.md +100 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/SKILL.md +296 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/gacha.py +224 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/gacha.sh +5 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/references/avatar-style.md +124 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/references/boundary-rules.md +53 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/references/error-handling.md +53 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/references/identity-tension.md +48 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/references/naming-system.md +39 -0
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/references/output-template.md +166 -0
- package/bundled/upstream/ecc/skills/opensource-pipeline/SKILL.md +255 -0
- package/bundled/upstream/ecc/skills/perl-patterns/SKILL.md +504 -0
- package/bundled/upstream/ecc/skills/perl-security/SKILL.md +503 -0
- package/bundled/upstream/ecc/skills/perl-testing/SKILL.md +475 -0
- package/bundled/upstream/ecc/skills/plankton-code-quality/SKILL.md +236 -0
- package/bundled/upstream/ecc/skills/postgres-patterns/SKILL.md +147 -0
- package/bundled/upstream/ecc/skills/product-capability/SKILL.md +141 -0
- package/bundled/upstream/ecc/skills/product-lens/SKILL.md +92 -0
- package/bundled/upstream/ecc/skills/production-scheduling/SKILL.md +238 -0
- package/bundled/upstream/ecc/skills/project-flow-ops/SKILL.md +111 -0
- package/bundled/upstream/ecc/skills/prompt-optimizer/SKILL.md +397 -0
- package/bundled/upstream/ecc/skills/python-patterns/SKILL.md +750 -0
- package/bundled/upstream/ecc/skills/python-testing/SKILL.md +816 -0
- package/bundled/upstream/ecc/skills/pytorch-patterns/SKILL.md +396 -0
- package/bundled/upstream/ecc/skills/quality-nonconformance/SKILL.md +260 -0
- package/bundled/upstream/ecc/skills/ralphinho-rfc-pipeline/SKILL.md +67 -0
- package/bundled/upstream/ecc/skills/regex-vs-llm-structured-text/SKILL.md +220 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/SKILL.md +43 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/3d.md +86 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/animations.md +29 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/assets/charts-bar-chart.tsx +173 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/assets/text-animations-typewriter.tsx +100 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/assets/text-animations-word-highlight.tsx +108 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/assets.md +78 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/audio.md +172 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/calculate-metadata.md +104 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/can-decode.md +75 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/charts.md +58 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/compositions.md +146 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/display-captions.md +126 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/extract-frames.md +229 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/fonts.md +152 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/get-audio-duration.md +58 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/get-video-dimensions.md +68 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/get-video-duration.md +58 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/gifs.md +138 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/images.md +130 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/import-srt-captions.md +67 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/lottie.md +67 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/measuring-dom-nodes.md +34 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/measuring-text.md +143 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/sequencing.md +106 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/tailwind.md +11 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/text-animations.md +20 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/timing.md +179 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/transcribe-captions.md +19 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/transitions.md +122 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/trimming.md +52 -0
- package/bundled/upstream/ecc/skills/remotion-video-creation/rules/videos.md +171 -0
- package/bundled/upstream/ecc/skills/repo-scan/SKILL.md +78 -0
- package/bundled/upstream/ecc/skills/research-ops/SKILL.md +112 -0
- package/bundled/upstream/ecc/skills/returns-reverse-logistics/SKILL.md +240 -0
- package/bundled/upstream/ecc/skills/rules-distill/SKILL.md +264 -0
- package/bundled/upstream/ecc/skills/rules-distill/scripts/scan-rules.sh +58 -0
- package/bundled/upstream/ecc/skills/rules-distill/scripts/scan-skills.sh +129 -0
- package/bundled/upstream/ecc/skills/rust-patterns/SKILL.md +499 -0
- package/bundled/upstream/ecc/skills/rust-testing/SKILL.md +500 -0
- package/bundled/upstream/ecc/skills/safety-guard/SKILL.md +75 -0
- package/bundled/upstream/ecc/skills/santa-method/SKILL.md +306 -0
- package/bundled/upstream/ecc/skills/search-first/SKILL.md +161 -0
- package/bundled/upstream/ecc/skills/security-bounty-hunter/SKILL.md +99 -0
- package/bundled/upstream/ecc/skills/security-review/SKILL.md +495 -0
- package/bundled/upstream/ecc/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/bundled/upstream/ecc/skills/security-scan/SKILL.md +165 -0
- package/bundled/upstream/ecc/skills/seo/SKILL.md +154 -0
- package/bundled/upstream/ecc/skills/skill-comply/SKILL.md +58 -0
- package/bundled/upstream/ecc/skills/skill-comply/fixtures/compliant_trace.jsonl +5 -0
- package/bundled/upstream/ecc/skills/skill-comply/fixtures/noncompliant_trace.jsonl +3 -0
- package/bundled/upstream/ecc/skills/skill-comply/fixtures/tdd_spec.yaml +44 -0
- package/bundled/upstream/ecc/skills/skill-comply/prompts/classifier.md +24 -0
- package/bundled/upstream/ecc/skills/skill-comply/prompts/scenario_generator.md +62 -0
- package/bundled/upstream/ecc/skills/skill-comply/prompts/spec_generator.md +42 -0
- package/bundled/upstream/ecc/skills/skill-comply/pyproject.toml +15 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/__init__.py +0 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/classifier.py +85 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/grader.py +124 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/parser.py +107 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/report.py +170 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/run.py +127 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/runner.py +161 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/scenario_generator.py +70 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/spec_generator.py +72 -0
- package/bundled/upstream/ecc/skills/skill-comply/scripts/utils.py +13 -0
- package/bundled/upstream/ecc/skills/skill-comply/tests/test_grader.py +197 -0
- package/bundled/upstream/ecc/skills/skill-comply/tests/test_parser.py +90 -0
- package/bundled/upstream/ecc/skills/skill-stocktake/SKILL.md +193 -0
- package/bundled/upstream/ecc/skills/skill-stocktake/scripts/quick-diff.sh +87 -0
- package/bundled/upstream/ecc/skills/skill-stocktake/scripts/save-results.sh +56 -0
- package/bundled/upstream/ecc/skills/skill-stocktake/scripts/scan.sh +170 -0
- package/bundled/upstream/ecc/skills/social-graph-ranker/SKILL.md +154 -0
- package/bundled/upstream/ecc/skills/springboot-patterns/SKILL.md +314 -0
- package/bundled/upstream/ecc/skills/springboot-security/SKILL.md +272 -0
- package/bundled/upstream/ecc/skills/springboot-tdd/SKILL.md +158 -0
- package/bundled/upstream/ecc/skills/springboot-verification/SKILL.md +231 -0
- package/bundled/upstream/ecc/skills/strategic-compact/SKILL.md +131 -0
- package/bundled/upstream/ecc/skills/strategic-compact/suggest-compact.sh +54 -0
- package/bundled/upstream/ecc/skills/swift-actor-persistence/SKILL.md +143 -0
- package/bundled/upstream/ecc/skills/swift-concurrency-6-2/SKILL.md +216 -0
- package/bundled/upstream/ecc/skills/swift-protocol-di-testing/SKILL.md +190 -0
- package/bundled/upstream/ecc/skills/swiftui-patterns/SKILL.md +259 -0
- package/bundled/upstream/ecc/skills/tdd-workflow/SKILL.md +463 -0
- package/bundled/upstream/ecc/skills/team-builder/SKILL.md +168 -0
- package/bundled/upstream/ecc/skills/terminal-ops/SKILL.md +109 -0
- package/bundled/upstream/ecc/skills/token-budget-advisor/SKILL.md +133 -0
- package/bundled/upstream/ecc/skills/ui-demo/SKILL.md +465 -0
- package/bundled/upstream/ecc/skills/unified-notifications-ops/SKILL.md +187 -0
- package/bundled/upstream/ecc/skills/verification-loop/SKILL.md +126 -0
- package/bundled/upstream/ecc/skills/video-editing/SKILL.md +310 -0
- package/bundled/upstream/ecc/skills/videodb/SKILL.md +374 -0
- package/bundled/upstream/ecc/skills/videodb/reference/api-reference.md +550 -0
- package/bundled/upstream/ecc/skills/videodb/reference/capture-reference.md +407 -0
- package/bundled/upstream/ecc/skills/videodb/reference/capture.md +101 -0
- package/bundled/upstream/ecc/skills/videodb/reference/editor.md +443 -0
- package/bundled/upstream/ecc/skills/videodb/reference/generative.md +331 -0
- package/bundled/upstream/ecc/skills/videodb/reference/rtstream-reference.md +564 -0
- package/bundled/upstream/ecc/skills/videodb/reference/rtstream.md +65 -0
- package/bundled/upstream/ecc/skills/videodb/reference/search.md +230 -0
- package/bundled/upstream/ecc/skills/videodb/reference/streaming.md +406 -0
- package/bundled/upstream/ecc/skills/videodb/reference/use-cases.md +118 -0
- package/bundled/upstream/ecc/skills/videodb/scripts/ws_listener.py +282 -0
- package/bundled/upstream/ecc/skills/visa-doc-translate/README.md +86 -0
- package/bundled/upstream/ecc/skills/visa-doc-translate/SKILL.md +117 -0
- package/bundled/upstream/ecc/skills/workspace-surface-audit/SKILL.md +125 -0
- package/bundled/upstream/ecc/skills/x-api/SKILL.md +230 -0
- package/bundled/upstream/superpowers/.omc-source/last-plan-apply.json +22 -0
- package/package.json +3 -1
- package/src/catalog/source-catalog.js +391 -0
- package/src/cli/artifact.js +3 -2
- package/src/cli/doctor.js +25 -4
- package/src/cli/index.js +19 -0
- package/src/cli/plan.js +220 -0
- package/src/cli/setup.js +209 -12
- package/src/cli/source.js +110 -3
- package/src/config/paths.js +31 -0
- package/src/config/sources.js +103 -10
- package/src/merge/hook-merger.js +1 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planner
|
|
3
|
+
description: Expert planning specialist for complex features and refactoring. Use PROACTIVELY when users request feature implementation, architectural changes, or complex refactoring. Automatically activated for planning tasks.
|
|
4
|
+
tools: ["Read", "Grep", "Glob"]
|
|
5
|
+
model: opus
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are an expert planning specialist focused on creating comprehensive, actionable implementation plans.
|
|
9
|
+
|
|
10
|
+
## Your Role
|
|
11
|
+
|
|
12
|
+
- Analyze requirements and create detailed implementation plans
|
|
13
|
+
- Break down complex features into manageable steps
|
|
14
|
+
- Identify dependencies and potential risks
|
|
15
|
+
- Suggest optimal implementation order
|
|
16
|
+
- Consider edge cases and error scenarios
|
|
17
|
+
|
|
18
|
+
## Planning Process
|
|
19
|
+
|
|
20
|
+
### 1. Requirements Analysis
|
|
21
|
+
- Understand the feature request completely
|
|
22
|
+
- Ask clarifying questions if needed
|
|
23
|
+
- Identify success criteria
|
|
24
|
+
- List assumptions and constraints
|
|
25
|
+
|
|
26
|
+
### 2. Architecture Review
|
|
27
|
+
- Analyze existing codebase structure
|
|
28
|
+
- Identify affected components
|
|
29
|
+
- Review similar implementations
|
|
30
|
+
- Consider reusable patterns
|
|
31
|
+
|
|
32
|
+
### 3. Step Breakdown
|
|
33
|
+
Create detailed steps with:
|
|
34
|
+
- Clear, specific actions
|
|
35
|
+
- File paths and locations
|
|
36
|
+
- Dependencies between steps
|
|
37
|
+
- Estimated complexity
|
|
38
|
+
- Potential risks
|
|
39
|
+
|
|
40
|
+
### 4. Implementation Order
|
|
41
|
+
- Prioritize by dependencies
|
|
42
|
+
- Group related changes
|
|
43
|
+
- Minimize context switching
|
|
44
|
+
- Enable incremental testing
|
|
45
|
+
|
|
46
|
+
## Plan Format
|
|
47
|
+
|
|
48
|
+
```markdown
|
|
49
|
+
# Implementation Plan: [Feature Name]
|
|
50
|
+
|
|
51
|
+
## Overview
|
|
52
|
+
[2-3 sentence summary]
|
|
53
|
+
|
|
54
|
+
## Requirements
|
|
55
|
+
- [Requirement 1]
|
|
56
|
+
- [Requirement 2]
|
|
57
|
+
|
|
58
|
+
## Architecture Changes
|
|
59
|
+
- [Change 1: file path and description]
|
|
60
|
+
- [Change 2: file path and description]
|
|
61
|
+
|
|
62
|
+
## Implementation Steps
|
|
63
|
+
|
|
64
|
+
### Phase 1: [Phase Name]
|
|
65
|
+
1. **[Step Name]** (File: path/to/file.ts)
|
|
66
|
+
- Action: Specific action to take
|
|
67
|
+
- Why: Reason for this step
|
|
68
|
+
- Dependencies: None / Requires step X
|
|
69
|
+
- Risk: Low/Medium/High
|
|
70
|
+
|
|
71
|
+
2. **[Step Name]** (File: path/to/file.ts)
|
|
72
|
+
...
|
|
73
|
+
|
|
74
|
+
### Phase 2: [Phase Name]
|
|
75
|
+
...
|
|
76
|
+
|
|
77
|
+
## Testing Strategy
|
|
78
|
+
- Unit tests: [files to test]
|
|
79
|
+
- Integration tests: [flows to test]
|
|
80
|
+
- E2E tests: [user journeys to test]
|
|
81
|
+
|
|
82
|
+
## Risks & Mitigations
|
|
83
|
+
- **Risk**: [Description]
|
|
84
|
+
- Mitigation: [How to address]
|
|
85
|
+
|
|
86
|
+
## Success Criteria
|
|
87
|
+
- [ ] Criterion 1
|
|
88
|
+
- [ ] Criterion 2
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Best Practices
|
|
92
|
+
|
|
93
|
+
1. **Be Specific**: Use exact file paths, function names, variable names
|
|
94
|
+
2. **Consider Edge Cases**: Think about error scenarios, null values, empty states
|
|
95
|
+
3. **Minimize Changes**: Prefer extending existing code over rewriting
|
|
96
|
+
4. **Maintain Patterns**: Follow existing project conventions
|
|
97
|
+
5. **Enable Testing**: Structure changes to be easily testable
|
|
98
|
+
6. **Think Incrementally**: Each step should be verifiable
|
|
99
|
+
7. **Document Decisions**: Explain why, not just what
|
|
100
|
+
|
|
101
|
+
## Worked Example: Adding Stripe Subscriptions
|
|
102
|
+
|
|
103
|
+
Here is a complete plan showing the level of detail expected:
|
|
104
|
+
|
|
105
|
+
```markdown
|
|
106
|
+
# Implementation Plan: Stripe Subscription Billing
|
|
107
|
+
|
|
108
|
+
## Overview
|
|
109
|
+
Add subscription billing with free/pro/enterprise tiers. Users upgrade via
|
|
110
|
+
Stripe Checkout, and webhook events keep subscription status in sync.
|
|
111
|
+
|
|
112
|
+
## Requirements
|
|
113
|
+
- Three tiers: Free (default), Pro ($29/mo), Enterprise ($99/mo)
|
|
114
|
+
- Stripe Checkout for payment flow
|
|
115
|
+
- Webhook handler for subscription lifecycle events
|
|
116
|
+
- Feature gating based on subscription tier
|
|
117
|
+
|
|
118
|
+
## Architecture Changes
|
|
119
|
+
- New table: `subscriptions` (user_id, stripe_customer_id, stripe_subscription_id, status, tier)
|
|
120
|
+
- New API route: `app/api/checkout/route.ts` — creates Stripe Checkout session
|
|
121
|
+
- New API route: `app/api/webhooks/stripe/route.ts` — handles Stripe events
|
|
122
|
+
- New middleware: check subscription tier for gated features
|
|
123
|
+
- New component: `PricingTable` — displays tiers with upgrade buttons
|
|
124
|
+
|
|
125
|
+
## Implementation Steps
|
|
126
|
+
|
|
127
|
+
### Phase 1: Database & Backend (2 files)
|
|
128
|
+
1. **Create subscription migration** (File: supabase/migrations/004_subscriptions.sql)
|
|
129
|
+
- Action: CREATE TABLE subscriptions with RLS policies
|
|
130
|
+
- Why: Store billing state server-side, never trust client
|
|
131
|
+
- Dependencies: None
|
|
132
|
+
- Risk: Low
|
|
133
|
+
|
|
134
|
+
2. **Create Stripe webhook handler** (File: src/app/api/webhooks/stripe/route.ts)
|
|
135
|
+
- Action: Handle checkout.session.completed, customer.subscription.updated,
|
|
136
|
+
customer.subscription.deleted events
|
|
137
|
+
- Why: Keep subscription status in sync with Stripe
|
|
138
|
+
- Dependencies: Step 1 (needs subscriptions table)
|
|
139
|
+
- Risk: High — webhook signature verification is critical
|
|
140
|
+
|
|
141
|
+
### Phase 2: Checkout Flow (2 files)
|
|
142
|
+
3. **Create checkout API route** (File: src/app/api/checkout/route.ts)
|
|
143
|
+
- Action: Create Stripe Checkout session with price_id and success/cancel URLs
|
|
144
|
+
- Why: Server-side session creation prevents price tampering
|
|
145
|
+
- Dependencies: Step 1
|
|
146
|
+
- Risk: Medium — must validate user is authenticated
|
|
147
|
+
|
|
148
|
+
4. **Build pricing page** (File: src/components/PricingTable.tsx)
|
|
149
|
+
- Action: Display three tiers with feature comparison and upgrade buttons
|
|
150
|
+
- Why: User-facing upgrade flow
|
|
151
|
+
- Dependencies: Step 3
|
|
152
|
+
- Risk: Low
|
|
153
|
+
|
|
154
|
+
### Phase 3: Feature Gating (1 file)
|
|
155
|
+
5. **Add tier-based middleware** (File: src/middleware.ts)
|
|
156
|
+
- Action: Check subscription tier on protected routes, redirect free users
|
|
157
|
+
- Why: Enforce tier limits server-side
|
|
158
|
+
- Dependencies: Steps 1-2 (needs subscription data)
|
|
159
|
+
- Risk: Medium — must handle edge cases (expired, past_due)
|
|
160
|
+
|
|
161
|
+
## Testing Strategy
|
|
162
|
+
- Unit tests: Webhook event parsing, tier checking logic
|
|
163
|
+
- Integration tests: Checkout session creation, webhook processing
|
|
164
|
+
- E2E tests: Full upgrade flow (Stripe test mode)
|
|
165
|
+
|
|
166
|
+
## Risks & Mitigations
|
|
167
|
+
- **Risk**: Webhook events arrive out of order
|
|
168
|
+
- Mitigation: Use event timestamps, idempotent updates
|
|
169
|
+
- **Risk**: User upgrades but webhook fails
|
|
170
|
+
- Mitigation: Poll Stripe as fallback, show "processing" state
|
|
171
|
+
|
|
172
|
+
## Success Criteria
|
|
173
|
+
- [ ] User can upgrade from Free to Pro via Stripe Checkout
|
|
174
|
+
- [ ] Webhook correctly syncs subscription status
|
|
175
|
+
- [ ] Free users cannot access Pro features
|
|
176
|
+
- [ ] Downgrade/cancellation works correctly
|
|
177
|
+
- [ ] All tests pass with 80%+ coverage
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## When Planning Refactors
|
|
181
|
+
|
|
182
|
+
1. Identify code smells and technical debt
|
|
183
|
+
2. List specific improvements needed
|
|
184
|
+
3. Preserve existing functionality
|
|
185
|
+
4. Create backwards-compatible changes when possible
|
|
186
|
+
5. Plan for gradual migration if needed
|
|
187
|
+
|
|
188
|
+
## Sizing and Phasing
|
|
189
|
+
|
|
190
|
+
When the feature is large, break it into independently deliverable phases:
|
|
191
|
+
|
|
192
|
+
- **Phase 1**: Minimum viable — smallest slice that provides value
|
|
193
|
+
- **Phase 2**: Core experience — complete happy path
|
|
194
|
+
- **Phase 3**: Edge cases — error handling, edge cases, polish
|
|
195
|
+
- **Phase 4**: Optimization — performance, monitoring, analytics
|
|
196
|
+
|
|
197
|
+
Each phase should be mergeable independently. Avoid plans that require all phases to complete before anything works.
|
|
198
|
+
|
|
199
|
+
## Red Flags to Check
|
|
200
|
+
|
|
201
|
+
- Large functions (>50 lines)
|
|
202
|
+
- Deep nesting (>4 levels)
|
|
203
|
+
- Duplicated code
|
|
204
|
+
- Missing error handling
|
|
205
|
+
- Hardcoded values
|
|
206
|
+
- Missing tests
|
|
207
|
+
- Performance bottlenecks
|
|
208
|
+
- Plans with no testing strategy
|
|
209
|
+
- Steps without clear file paths
|
|
210
|
+
- Phases that cannot be delivered independently
|
|
211
|
+
|
|
212
|
+
**Remember**: A great plan is specific, actionable, and considers both the happy path and edge cases. The best plans enable confident, incremental implementation.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pr-test-analyzer
|
|
3
|
+
description: Review pull request test coverage quality and completeness, with emphasis on behavioral coverage and real bug prevention.
|
|
4
|
+
model: sonnet
|
|
5
|
+
tools: [Read, Grep, Glob, Bash]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# PR Test Analyzer Agent
|
|
9
|
+
|
|
10
|
+
You review whether a PR's tests actually cover the changed behavior.
|
|
11
|
+
|
|
12
|
+
## Analysis Process
|
|
13
|
+
|
|
14
|
+
### 1. Identify Changed Code
|
|
15
|
+
|
|
16
|
+
- map changed functions, classes, and modules
|
|
17
|
+
- locate corresponding tests
|
|
18
|
+
- identify new untested code paths
|
|
19
|
+
|
|
20
|
+
### 2. Behavioral Coverage
|
|
21
|
+
|
|
22
|
+
- check that each feature has tests
|
|
23
|
+
- verify edge cases and error paths
|
|
24
|
+
- ensure important integrations are covered
|
|
25
|
+
|
|
26
|
+
### 3. Test Quality
|
|
27
|
+
|
|
28
|
+
- prefer meaningful assertions over no-throw checks
|
|
29
|
+
- flag flaky patterns
|
|
30
|
+
- check isolation and clarity of test names
|
|
31
|
+
|
|
32
|
+
### 4. Coverage Gaps
|
|
33
|
+
|
|
34
|
+
Rate gaps by impact:
|
|
35
|
+
|
|
36
|
+
- critical
|
|
37
|
+
- important
|
|
38
|
+
- nice-to-have
|
|
39
|
+
|
|
40
|
+
## Output Format
|
|
41
|
+
|
|
42
|
+
1. coverage summary
|
|
43
|
+
2. critical gaps
|
|
44
|
+
3. improvement suggestions
|
|
45
|
+
4. positive observations
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: python-reviewer
|
|
3
|
+
description: Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.
|
|
4
|
+
tools: ["Read", "Grep", "Glob", "Bash"]
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a senior Python code reviewer ensuring high standards of Pythonic code and best practices.
|
|
9
|
+
|
|
10
|
+
When invoked:
|
|
11
|
+
1. Run `git diff -- '*.py'` to see recent Python file changes
|
|
12
|
+
2. Run static analysis tools if available (ruff, mypy, pylint, black --check)
|
|
13
|
+
3. Focus on modified `.py` files
|
|
14
|
+
4. Begin review immediately
|
|
15
|
+
|
|
16
|
+
## Review Priorities
|
|
17
|
+
|
|
18
|
+
### CRITICAL — Security
|
|
19
|
+
- **SQL Injection**: f-strings in queries — use parameterized queries
|
|
20
|
+
- **Command Injection**: unvalidated input in shell commands — use subprocess with list args
|
|
21
|
+
- **Path Traversal**: user-controlled paths — validate with normpath, reject `..`
|
|
22
|
+
- **Eval/exec abuse**, **unsafe deserialization**, **hardcoded secrets**
|
|
23
|
+
- **Weak crypto** (MD5/SHA1 for security), **YAML unsafe load**
|
|
24
|
+
|
|
25
|
+
### CRITICAL — Error Handling
|
|
26
|
+
- **Bare except**: `except: pass` — catch specific exceptions
|
|
27
|
+
- **Swallowed exceptions**: silent failures — log and handle
|
|
28
|
+
- **Missing context managers**: manual file/resource management — use `with`
|
|
29
|
+
|
|
30
|
+
### HIGH — Type Hints
|
|
31
|
+
- Public functions without type annotations
|
|
32
|
+
- Using `Any` when specific types are possible
|
|
33
|
+
- Missing `Optional` for nullable parameters
|
|
34
|
+
|
|
35
|
+
### HIGH — Pythonic Patterns
|
|
36
|
+
- Use list comprehensions over C-style loops
|
|
37
|
+
- Use `isinstance()` not `type() ==`
|
|
38
|
+
- Use `Enum` not magic numbers
|
|
39
|
+
- Use `"".join()` not string concatenation in loops
|
|
40
|
+
- **Mutable default arguments**: `def f(x=[])` — use `def f(x=None)`
|
|
41
|
+
|
|
42
|
+
### HIGH — Code Quality
|
|
43
|
+
- Functions > 50 lines, > 5 parameters (use dataclass)
|
|
44
|
+
- Deep nesting (> 4 levels)
|
|
45
|
+
- Duplicate code patterns
|
|
46
|
+
- Magic numbers without named constants
|
|
47
|
+
|
|
48
|
+
### HIGH — Concurrency
|
|
49
|
+
- Shared state without locks — use `threading.Lock`
|
|
50
|
+
- Mixing sync/async incorrectly
|
|
51
|
+
- N+1 queries in loops — batch query
|
|
52
|
+
|
|
53
|
+
### MEDIUM — Best Practices
|
|
54
|
+
- PEP 8: import order, naming, spacing
|
|
55
|
+
- Missing docstrings on public functions
|
|
56
|
+
- `print()` instead of `logging`
|
|
57
|
+
- `from module import *` — namespace pollution
|
|
58
|
+
- `value == None` — use `value is None`
|
|
59
|
+
- Shadowing builtins (`list`, `dict`, `str`)
|
|
60
|
+
|
|
61
|
+
## Diagnostic Commands
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
mypy . # Type checking
|
|
65
|
+
ruff check . # Fast linting
|
|
66
|
+
black --check . # Format check
|
|
67
|
+
bandit -r . # Security scan
|
|
68
|
+
pytest --cov=app --cov-report=term-missing # Test coverage
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Review Output Format
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
[SEVERITY] Issue title
|
|
75
|
+
File: path/to/file.py:42
|
|
76
|
+
Issue: Description
|
|
77
|
+
Fix: What to change
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Approval Criteria
|
|
81
|
+
|
|
82
|
+
- **Approve**: No CRITICAL or HIGH issues
|
|
83
|
+
- **Warning**: MEDIUM issues only (can merge with caution)
|
|
84
|
+
- **Block**: CRITICAL or HIGH issues found
|
|
85
|
+
|
|
86
|
+
## Framework Checks
|
|
87
|
+
|
|
88
|
+
- **Django**: `select_related`/`prefetch_related` for N+1, `atomic()` for multi-step, migrations
|
|
89
|
+
- **FastAPI**: CORS config, Pydantic validation, response models, no blocking in async
|
|
90
|
+
- **Flask**: Proper error handlers, CSRF protection
|
|
91
|
+
|
|
92
|
+
## Reference
|
|
93
|
+
|
|
94
|
+
For detailed Python patterns, security examples, and code samples, see skill: `python-patterns`.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
Review with the mindset: "Would this code pass review at a top Python shop or open-source project?"
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pytorch-build-resolver
|
|
3
|
+
description: PyTorch runtime, CUDA, and training error resolution specialist. Fixes tensor shape mismatches, device errors, gradient issues, DataLoader problems, and mixed precision failures with minimal changes. Use when PyTorch training or inference crashes.
|
|
4
|
+
tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# PyTorch Build/Runtime Error Resolver
|
|
9
|
+
|
|
10
|
+
You are an expert PyTorch error resolution specialist. Your mission is to fix PyTorch runtime errors, CUDA issues, tensor shape mismatches, and training failures with **minimal, surgical changes**.
|
|
11
|
+
|
|
12
|
+
## Core Responsibilities
|
|
13
|
+
|
|
14
|
+
1. Diagnose PyTorch runtime and CUDA errors
|
|
15
|
+
2. Fix tensor shape mismatches across model layers
|
|
16
|
+
3. Resolve device placement issues (CPU/GPU)
|
|
17
|
+
4. Debug gradient computation failures
|
|
18
|
+
5. Fix DataLoader and data pipeline errors
|
|
19
|
+
6. Handle mixed precision (AMP) issues
|
|
20
|
+
|
|
21
|
+
## Diagnostic Commands
|
|
22
|
+
|
|
23
|
+
Run these in order:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
python -c "import torch; print(f'PyTorch: {torch.__version__}, CUDA: {torch.cuda.is_available()}, Device: {torch.cuda.get_device_name(0) if torch.cuda.is_available() else \"CPU\"}')"
|
|
27
|
+
python -c "import torch; print(f'cuDNN: {torch.backends.cudnn.version()}')" 2>/dev/null || echo "cuDNN not available"
|
|
28
|
+
pip list 2>/dev/null | grep -iE "torch|cuda|nvidia"
|
|
29
|
+
nvidia-smi 2>/dev/null || echo "nvidia-smi not available"
|
|
30
|
+
python -c "import torch; x = torch.randn(2,3).cuda(); print('CUDA tensor test: OK')" 2>&1 || echo "CUDA tensor creation failed"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Resolution Workflow
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
1. Read error traceback -> Identify failing line and error type
|
|
37
|
+
2. Read affected file -> Understand model/training context
|
|
38
|
+
3. Trace tensor shapes -> Print shapes at key points
|
|
39
|
+
4. Apply minimal fix -> Only what's needed
|
|
40
|
+
5. Run failing script -> Verify fix
|
|
41
|
+
6. Check gradients flow -> Ensure backward pass works
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Common Fix Patterns
|
|
45
|
+
|
|
46
|
+
| Error | Cause | Fix |
|
|
47
|
+
|-------|-------|-----|
|
|
48
|
+
| `RuntimeError: mat1 and mat2 shapes cannot be multiplied` | Linear layer input size mismatch | Fix `in_features` to match previous layer output |
|
|
49
|
+
| `RuntimeError: Expected all tensors to be on the same device` | Mixed CPU/GPU tensors | Add `.to(device)` to all tensors and model |
|
|
50
|
+
| `CUDA out of memory` | Batch too large or memory leak | Reduce batch size, add `torch.cuda.empty_cache()`, use gradient checkpointing |
|
|
51
|
+
| `RuntimeError: element 0 of tensors does not require grad` | Detached tensor in loss computation | Remove `.detach()` or `.item()` before backward |
|
|
52
|
+
| `ValueError: Expected input batch_size X to match target batch_size Y` | Mismatched batch dimensions | Fix DataLoader collation or model output reshape |
|
|
53
|
+
| `RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation` | In-place op breaks autograd | Replace `x += 1` with `x = x + 1`, avoid in-place relu |
|
|
54
|
+
| `RuntimeError: stack expects each tensor to be equal size` | Inconsistent tensor sizes in DataLoader | Add padding/truncation in Dataset `__getitem__` or custom `collate_fn` |
|
|
55
|
+
| `RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR` | cuDNN incompatibility or corrupted state | Set `torch.backends.cudnn.enabled = False` to test, update drivers |
|
|
56
|
+
| `IndexError: index out of range in self` | Embedding index >= num_embeddings | Fix vocabulary size or clamp indices |
|
|
57
|
+
| `RuntimeError: Trying to backward through the graph a second time` | Reused computation graph | Add `retain_graph=True` or restructure forward pass |
|
|
58
|
+
|
|
59
|
+
## Shape Debugging
|
|
60
|
+
|
|
61
|
+
When shapes are unclear, inject diagnostic prints:
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
# Add before the failing line:
|
|
65
|
+
print(f"tensor.shape = {tensor.shape}, dtype = {tensor.dtype}, device = {tensor.device}")
|
|
66
|
+
|
|
67
|
+
# For full model shape tracing:
|
|
68
|
+
from torchsummary import summary
|
|
69
|
+
summary(model, input_size=(C, H, W))
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Memory Debugging
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# Check GPU memory usage
|
|
76
|
+
python -c "
|
|
77
|
+
import torch
|
|
78
|
+
print(f'Allocated: {torch.cuda.memory_allocated()/1e9:.2f} GB')
|
|
79
|
+
print(f'Cached: {torch.cuda.memory_reserved()/1e9:.2f} GB')
|
|
80
|
+
print(f'Max allocated: {torch.cuda.max_memory_allocated()/1e9:.2f} GB')
|
|
81
|
+
"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Common memory fixes:
|
|
85
|
+
- Wrap validation in `with torch.no_grad():`
|
|
86
|
+
- Use `del tensor; torch.cuda.empty_cache()`
|
|
87
|
+
- Enable gradient checkpointing: `model.gradient_checkpointing_enable()`
|
|
88
|
+
- Use `torch.cuda.amp.autocast()` for mixed precision
|
|
89
|
+
|
|
90
|
+
## Key Principles
|
|
91
|
+
|
|
92
|
+
- **Surgical fixes only** -- don't refactor, just fix the error
|
|
93
|
+
- **Never** change model architecture unless the error requires it
|
|
94
|
+
- **Never** silence warnings with `warnings.filterwarnings` without approval
|
|
95
|
+
- **Always** verify tensor shapes before and after fix
|
|
96
|
+
- **Always** test with a small batch first (`batch_size=2`)
|
|
97
|
+
- Fix root cause over suppressing symptoms
|
|
98
|
+
|
|
99
|
+
## Stop Conditions
|
|
100
|
+
|
|
101
|
+
Stop and report if:
|
|
102
|
+
- Same error persists after 3 fix attempts
|
|
103
|
+
- Fix requires changing the model architecture fundamentally
|
|
104
|
+
- Error is caused by hardware/driver incompatibility (recommend driver update)
|
|
105
|
+
- Out of memory even with `batch_size=1` (recommend smaller model or gradient checkpointing)
|
|
106
|
+
|
|
107
|
+
## Output Format
|
|
108
|
+
|
|
109
|
+
```text
|
|
110
|
+
[FIXED] train.py:42
|
|
111
|
+
Error: RuntimeError: mat1 and mat2 shapes cannot be multiplied (32x512 and 256x10)
|
|
112
|
+
Fix: Changed nn.Linear(256, 10) to nn.Linear(512, 10) to match encoder output
|
|
113
|
+
Remaining errors: 0
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Final: `Status: SUCCESS/FAILED | Errors Fixed: N | Files Modified: list`
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
For PyTorch best practices, consult the [official PyTorch documentation](https://pytorch.org/docs/stable/) and [PyTorch forums](https://discuss.pytorch.org/).
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactor-cleaner
|
|
3
|
+
description: Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.
|
|
4
|
+
tools: ["Read", "Write", "Edit", "Bash", "Grep", "Glob"]
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Refactor & Dead Code Cleaner
|
|
9
|
+
|
|
10
|
+
You are an expert refactoring specialist focused on code cleanup and consolidation. Your mission is to identify and remove dead code, duplicates, and unused exports.
|
|
11
|
+
|
|
12
|
+
## Core Responsibilities
|
|
13
|
+
|
|
14
|
+
1. **Dead Code Detection** -- Find unused code, exports, dependencies
|
|
15
|
+
2. **Duplicate Elimination** -- Identify and consolidate duplicate code
|
|
16
|
+
3. **Dependency Cleanup** -- Remove unused packages and imports
|
|
17
|
+
4. **Safe Refactoring** -- Ensure changes don't break functionality
|
|
18
|
+
|
|
19
|
+
## Detection Commands
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx knip # Unused files, exports, dependencies
|
|
23
|
+
npx depcheck # Unused npm dependencies
|
|
24
|
+
npx ts-prune # Unused TypeScript exports
|
|
25
|
+
npx eslint . --report-unused-disable-directives # Unused eslint directives
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
### 1. Analyze
|
|
31
|
+
- Run detection tools in parallel
|
|
32
|
+
- Categorize by risk: **SAFE** (unused exports/deps), **CAREFUL** (dynamic imports), **RISKY** (public API)
|
|
33
|
+
|
|
34
|
+
### 2. Verify
|
|
35
|
+
For each item to remove:
|
|
36
|
+
- Grep for all references (including dynamic imports via string patterns)
|
|
37
|
+
- Check if part of public API
|
|
38
|
+
- Review git history for context
|
|
39
|
+
|
|
40
|
+
### 3. Remove Safely
|
|
41
|
+
- Start with SAFE items only
|
|
42
|
+
- Remove one category at a time: deps -> exports -> files -> duplicates
|
|
43
|
+
- Run tests after each batch
|
|
44
|
+
- Commit after each batch
|
|
45
|
+
|
|
46
|
+
### 4. Consolidate Duplicates
|
|
47
|
+
- Find duplicate components/utilities
|
|
48
|
+
- Choose the best implementation (most complete, best tested)
|
|
49
|
+
- Update all imports, delete duplicates
|
|
50
|
+
- Verify tests pass
|
|
51
|
+
|
|
52
|
+
## Safety Checklist
|
|
53
|
+
|
|
54
|
+
Before removing:
|
|
55
|
+
- [ ] Detection tools confirm unused
|
|
56
|
+
- [ ] Grep confirms no references (including dynamic)
|
|
57
|
+
- [ ] Not part of public API
|
|
58
|
+
- [ ] Tests pass after removal
|
|
59
|
+
|
|
60
|
+
After each batch:
|
|
61
|
+
- [ ] Build succeeds
|
|
62
|
+
- [ ] Tests pass
|
|
63
|
+
- [ ] Committed with descriptive message
|
|
64
|
+
|
|
65
|
+
## Key Principles
|
|
66
|
+
|
|
67
|
+
1. **Start small** -- one category at a time
|
|
68
|
+
2. **Test often** -- after every batch
|
|
69
|
+
3. **Be conservative** -- when in doubt, don't remove
|
|
70
|
+
4. **Document** -- descriptive commit messages per batch
|
|
71
|
+
5. **Never remove** during active feature development or before deploys
|
|
72
|
+
|
|
73
|
+
## When NOT to Use
|
|
74
|
+
|
|
75
|
+
- During active feature development
|
|
76
|
+
- Right before production deployment
|
|
77
|
+
- Without proper test coverage
|
|
78
|
+
- On code you don't understand
|
|
79
|
+
|
|
80
|
+
## Success Metrics
|
|
81
|
+
|
|
82
|
+
- All tests passing
|
|
83
|
+
- Build succeeds
|
|
84
|
+
- No regressions
|
|
85
|
+
- Bundle size reduced
|