oh-my-customcodex 0.1.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/LICENSE +21 -0
- package/README.md +327 -0
- package/dist/cli/index.js +32054 -0
- package/dist/index.js +5469 -0
- package/package.json +89 -0
- package/templates/.claude/agents/arch-documenter.md +38 -0
- package/templates/.claude/agents/arch-speckit-agent.md +66 -0
- package/templates/.claude/agents/be-django-expert.md +47 -0
- package/templates/.claude/agents/be-express-expert.md +31 -0
- package/templates/.claude/agents/be-fastapi-expert.md +45 -0
- package/templates/.claude/agents/be-go-backend-expert.md +45 -0
- package/templates/.claude/agents/be-nestjs-expert.md +29 -0
- package/templates/.claude/agents/be-springboot-expert.md +42 -0
- package/templates/.claude/agents/db-alembic-expert.md +73 -0
- package/templates/.claude/agents/db-postgres-expert.md +38 -0
- package/templates/.claude/agents/db-redis-expert.md +38 -0
- package/templates/.claude/agents/db-supabase-expert.md +37 -0
- package/templates/.claude/agents/de-airflow-expert.md +48 -0
- package/templates/.claude/agents/de-dbt-expert.md +36 -0
- package/templates/.claude/agents/de-kafka-expert.md +83 -0
- package/templates/.claude/agents/de-pipeline-expert.md +34 -0
- package/templates/.claude/agents/de-snowflake-expert.md +38 -0
- package/templates/.claude/agents/de-spark-expert.md +38 -0
- package/templates/.claude/agents/fe-design-expert.md +120 -0
- package/templates/.claude/agents/fe-flutter-agent.md +48 -0
- package/templates/.claude/agents/fe-svelte-agent.md +33 -0
- package/templates/.claude/agents/fe-vercel-agent.md +40 -0
- package/templates/.claude/agents/fe-vuejs-agent.md +34 -0
- package/templates/.claude/agents/infra-aws-expert.md +49 -0
- package/templates/.claude/agents/infra-docker-expert.md +49 -0
- package/templates/.claude/agents/lang-golang-expert.md +46 -0
- package/templates/.claude/agents/lang-java21-expert.md +42 -0
- package/templates/.claude/agents/lang-kotlin-expert.md +45 -0
- package/templates/.claude/agents/lang-python-expert.md +45 -0
- package/templates/.claude/agents/lang-rust-expert.md +45 -0
- package/templates/.claude/agents/lang-typescript-expert.md +45 -0
- package/templates/.claude/agents/mgr-claude-code-bible.md +62 -0
- package/templates/.claude/agents/mgr-creator.md +57 -0
- package/templates/.claude/agents/mgr-gitnerd.md +50 -0
- package/templates/.claude/agents/mgr-sauron.md +163 -0
- package/templates/.claude/agents/mgr-supplier.md +39 -0
- package/templates/.claude/agents/mgr-updater.md +40 -0
- package/templates/.claude/agents/qa-engineer.md +36 -0
- package/templates/.claude/agents/qa-planner.md +78 -0
- package/templates/.claude/agents/qa-writer.md +32 -0
- package/templates/.claude/agents/sec-codeql-expert.md +56 -0
- package/templates/.claude/agents/slack-cli-expert.md +98 -0
- package/templates/.claude/agents/souls/lang-golang-expert.soul.md +21 -0
- package/templates/.claude/agents/sys-memory-keeper.md +123 -0
- package/templates/.claude/agents/sys-naggy.md +76 -0
- package/templates/.claude/agents/tool-bun-expert.md +26 -0
- package/templates/.claude/agents/tool-npm-expert.md +31 -0
- package/templates/.claude/agents/tool-optimizer.md +37 -0
- package/templates/.claude/agents/wiki-curator.md +72 -0
- package/templates/.claude/config/required-plugins.json +30 -0
- package/templates/.claude/contexts/dev.md +20 -0
- package/templates/.claude/contexts/ecomode.md +110 -0
- package/templates/.claude/contexts/index.yaml +41 -0
- package/templates/.claude/contexts/research.md +28 -0
- package/templates/.claude/contexts/review.md +23 -0
- package/templates/.claude/hooks/hooks.json +533 -0
- package/templates/.claude/hooks/scripts/adaptive-harness-scan.sh +45 -0
- package/templates/.claude/hooks/scripts/agent-start-recorder.sh +40 -0
- package/templates/.claude/hooks/scripts/agent-teams-advisor.sh +76 -0
- package/templates/.claude/hooks/scripts/audit-log.sh +64 -0
- package/templates/.claude/hooks/scripts/auto-continue-guard.sh +33 -0
- package/templates/.claude/hooks/scripts/content-hash-validator.sh +75 -0
- package/templates/.claude/hooks/scripts/context-budget-advisor.sh +107 -0
- package/templates/.claude/hooks/scripts/cost-cap-advisor.sh +71 -0
- package/templates/.claude/hooks/scripts/cwd-change-detector.sh +36 -0
- package/templates/.claude/hooks/scripts/eval-core-batch-save.sh +46 -0
- package/templates/.claude/hooks/scripts/feedback-collector.sh +92 -0
- package/templates/.claude/hooks/scripts/file-change-validator.sh +26 -0
- package/templates/.claude/hooks/scripts/git-delegation-guard.sh +57 -0
- package/templates/.claude/hooks/scripts/model-escalation-advisor.sh +106 -0
- package/templates/.claude/hooks/scripts/omcodex-auto-update.sh +4 -0
- package/templates/.claude/hooks/scripts/omcustom-auto-update.sh +177 -0
- package/templates/.claude/hooks/scripts/rtk-intercept.sh +77 -0
- package/templates/.claude/hooks/scripts/rule-deletion-guard.sh +60 -0
- package/templates/.claude/hooks/scripts/schema-validator.sh +106 -0
- package/templates/.claude/hooks/scripts/secret-filter.sh +100 -0
- package/templates/.claude/hooks/scripts/session-autofix-prompt.sh +34 -0
- package/templates/.claude/hooks/scripts/session-autofix.sh +146 -0
- package/templates/.claude/hooks/scripts/session-env-check.sh +254 -0
- package/templates/.claude/hooks/scripts/skill-extractor-analyzer.sh +49 -0
- package/templates/.claude/hooks/scripts/stage-blocker.sh +16 -0
- package/templates/.claude/hooks/scripts/stale-todo-scanner.sh +91 -0
- package/templates/.claude/hooks/scripts/stall-detection-advisor.sh +112 -0
- package/templates/.claude/hooks/scripts/stop-console-audit.sh +46 -0
- package/templates/.claude/hooks/scripts/stuck-detector.sh +199 -0
- package/templates/.claude/hooks/scripts/task-outcome-recorder.sh +119 -0
- package/templates/.claude/hooks/scripts/task-state-precompact.sh +58 -0
- package/templates/.claude/hooks/scripts/user-prompt-preprocessor.sh +32 -0
- package/templates/.claude/hooks/skill-count-reminder.sh +34 -0
- package/templates/.claude/install-hooks.sh +100 -0
- package/templates/.claude/ontology/agents.yaml +546 -0
- package/templates/.claude/ontology/graphs/agent-skill.json +102 -0
- package/templates/.claude/ontology/graphs/full-graph.json +629 -0
- package/templates/.claude/ontology/graphs/routing.json +112 -0
- package/templates/.claude/ontology/graphs/skill-rule.json +78 -0
- package/templates/.claude/ontology/rules.yaml +251 -0
- package/templates/.claude/ontology/schema.yaml +144 -0
- package/templates/.claude/ontology/skills.yaml +575 -0
- package/templates/.claude/rules/MAY-optimization.md +42 -0
- package/templates/.claude/rules/MUST-agent-design.md +340 -0
- package/templates/.claude/rules/MUST-agent-identification.md +77 -0
- package/templates/.claude/rules/MUST-agent-teams.md +293 -0
- package/templates/.claude/rules/MUST-completion-verification.md +112 -0
- package/templates/.claude/rules/MUST-continuous-improvement.md +69 -0
- package/templates/.claude/rules/MUST-enforcement-policy.md +50 -0
- package/templates/.claude/rules/MUST-intent-transparency.md +74 -0
- package/templates/.claude/rules/MUST-language-policy.md +28 -0
- package/templates/.claude/rules/MUST-orchestrator-coordination.md +399 -0
- package/templates/.claude/rules/MUST-parallel-execution.md +184 -0
- package/templates/.claude/rules/MUST-permissions.md +32 -0
- package/templates/.claude/rules/MUST-safety.md +23 -0
- package/templates/.claude/rules/MUST-sync-verification.md +145 -0
- package/templates/.claude/rules/MUST-tool-identification.md +97 -0
- package/templates/.claude/rules/SHOULD-ecomode.md +123 -0
- package/templates/.claude/rules/SHOULD-error-handling.md +33 -0
- package/templates/.claude/rules/SHOULD-hud-statusline.md +51 -0
- package/templates/.claude/rules/SHOULD-interaction.md +77 -0
- package/templates/.claude/rules/SHOULD-memory-integration.md +371 -0
- package/templates/.claude/rules/SHOULD-ontology-rag-routing.md +49 -0
- package/templates/.claude/rules/SHOULD-wiki-sync.md +73 -0
- package/templates/.claude/rules/index.yaml +141 -0
- package/templates/.claude/schemas/tool-inputs.json +62 -0
- package/templates/.claude/skills/action-validator/SKILL.md +89 -0
- package/templates/.claude/skills/adaptive-harness/SKILL.md +335 -0
- package/templates/.claude/skills/adversarial-review/SKILL.md +80 -0
- package/templates/.claude/skills/agora/SKILL.md +194 -0
- package/templates/.claude/skills/airflow-best-practices/SKILL.md +94 -0
- package/templates/.claude/skills/alembic-best-practices/SKILL.md +295 -0
- package/templates/.claude/skills/ambiguity-gate/SKILL.md +94 -0
- package/templates/.claude/skills/analysis/SKILL.md +223 -0
- package/templates/.claude/skills/audit-agents/SKILL.md +118 -0
- package/templates/.claude/skills/aws-best-practices/SKILL.md +281 -0
- package/templates/.claude/skills/claude-code-bible/SKILL.md +93 -0
- package/templates/.claude/skills/claude-code-bible/scripts/fetch-docs.js +244 -0
- package/templates/.claude/skills/claude-native/SKILL.md +215 -0
- package/templates/.claude/skills/codex-exec/SKILL.md +206 -0
- package/templates/.claude/skills/codex-exec/scripts/codex-wrapper.cjs +430 -0
- package/templates/.claude/skills/create-agent/SKILL.md +94 -0
- package/templates/.claude/skills/cve-triage/SKILL.md +91 -0
- package/templates/.claude/skills/dag-orchestration/SKILL.md +201 -0
- package/templates/.claude/skills/dbt-best-practices/SKILL.md +55 -0
- package/templates/.claude/skills/de-lead-routing/SKILL.md +230 -0
- package/templates/.claude/skills/deep-plan/SKILL.md +344 -0
- package/templates/.claude/skills/deep-verify/SKILL.md +111 -0
- package/templates/.claude/skills/dev-lead-routing/SKILL.md +161 -0
- package/templates/.claude/skills/dev-refactor/SKILL.md +234 -0
- package/templates/.claude/skills/dev-review/SKILL.md +172 -0
- package/templates/.claude/skills/django-best-practices/SKILL.md +334 -0
- package/templates/.claude/skills/docker-best-practices/SKILL.md +276 -0
- package/templates/.claude/skills/evaluator-optimizer/SKILL.md +421 -0
- package/templates/.claude/skills/fastapi-best-practices/SKILL.md +271 -0
- package/templates/.claude/skills/fix-refs/SKILL.md +109 -0
- package/templates/.claude/skills/flutter-best-practices/SKILL.md +325 -0
- package/templates/.claude/skills/gemini-exec/SKILL.md +215 -0
- package/templates/.claude/skills/gemini-exec/scripts/gemini-wrapper.cjs +485 -0
- package/templates/.claude/skills/go-backend-best-practices/SKILL.md +135 -0
- package/templates/.claude/skills/go-best-practices/SKILL.md +204 -0
- package/templates/.claude/skills/hada-scout/SKILL.md +92 -0
- package/templates/.claude/skills/harness-eval/SKILL.md +95 -0
- package/templates/.claude/skills/harness-synthesizer/SKILL.md +145 -0
- package/templates/.claude/skills/help/SKILL.md +127 -0
- package/templates/.claude/skills/idea/SKILL.md +88 -0
- package/templates/.claude/skills/impeccable-design/SKILL.md +173 -0
- package/templates/.claude/skills/intent-detection/SKILL.md +293 -0
- package/templates/.claude/skills/intent-detection/patterns/agent-triggers.yaml +438 -0
- package/templates/.claude/skills/java21-best-practices/SKILL.md +190 -0
- package/templates/.claude/skills/jinja2-prompts/SKILL.md +86 -0
- package/templates/.claude/skills/kafka-best-practices/SKILL.md +53 -0
- package/templates/.claude/skills/kotlin-best-practices/SKILL.md +257 -0
- package/templates/.claude/skills/lists/SKILL.md +80 -0
- package/templates/.claude/skills/memory-management/SKILL.md +196 -0
- package/templates/.claude/skills/memory-recall/SKILL.md +172 -0
- package/templates/.claude/skills/memory-save/SKILL.md +128 -0
- package/templates/.claude/skills/model-escalation/SKILL.md +62 -0
- package/templates/.claude/skills/monitoring-setup/SKILL.md +215 -0
- package/templates/.claude/skills/multi-model-verification/SKILL.md +130 -0
- package/templates/.claude/skills/npm-audit/SKILL.md +74 -0
- package/templates/.claude/skills/npm-publish/SKILL.md +65 -0
- package/templates/.claude/skills/npm-version/SKILL.md +104 -0
- package/templates/.claude/skills/omcodex-auto-improve/SKILL.md +136 -0
- package/templates/.claude/skills/omcodex-feedback/SKILL.md +205 -0
- package/templates/.claude/skills/omcodex-improve-report/SKILL.md +65 -0
- package/templates/.claude/skills/omcodex-loop/SKILL.md +45 -0
- package/templates/.claude/skills/omcodex-release-notes/SKILL.md +117 -0
- package/templates/.claude/skills/omcodex-takeover/SKILL.md +115 -0
- package/templates/.claude/skills/omcodex-web/SKILL.md +95 -0
- package/templates/.claude/skills/optimize-analyze/SKILL.md +57 -0
- package/templates/.claude/skills/optimize-bundle/SKILL.md +69 -0
- package/templates/.claude/skills/optimize-report/SKILL.md +76 -0
- package/templates/.claude/skills/peer-messaging/SKILL.md +59 -0
- package/templates/.claude/skills/pipeline/SKILL.md +103 -0
- package/templates/.claude/skills/pipeline-architecture-patterns/SKILL.md +84 -0
- package/templates/.claude/skills/pipeline-guards/SKILL.md +173 -0
- package/templates/.claude/skills/post-release-followup/SKILL.md +134 -0
- package/templates/.claude/skills/postgres-best-practices/SKILL.md +67 -0
- package/templates/.claude/skills/pr-auto-improve/SKILL.md +129 -0
- package/templates/.claude/skills/professor-triage/SKILL.md +321 -0
- package/templates/.claude/skills/python-best-practices/SKILL.md +223 -0
- package/templates/.claude/skills/qa-lead-routing/SKILL.md +104 -0
- package/templates/.claude/skills/react-best-practices/SKILL.md +102 -0
- package/templates/.claude/skills/reasoning-sandwich/SKILL.md +64 -0
- package/templates/.claude/skills/redis-best-practices/SKILL.md +84 -0
- package/templates/.claude/skills/release-plan/SKILL.md +207 -0
- package/templates/.claude/skills/research/SKILL.md +493 -0
- package/templates/.claude/skills/result-aggregation/SKILL.md +165 -0
- package/templates/.claude/skills/rtk-exec/SKILL.md +199 -0
- package/templates/.claude/skills/rtk-exec/scripts/rtk-wrapper.cjs +377 -0
- package/templates/.claude/skills/rust-best-practices/SKILL.md +268 -0
- package/templates/.claude/skills/sauron-watch/SKILL.md +239 -0
- package/templates/.claude/skills/scout/SKILL.md +250 -0
- package/templates/.claude/skills/sdd/SKILL.md +24 -0
- package/templates/.claude/skills/sdd-dev/SKILL.md +257 -0
- package/templates/.claude/skills/sdd-development/SKILL.md +24 -0
- package/templates/.claude/skills/secretary-routing/SKILL.md +132 -0
- package/templates/.claude/skills/skill-extractor/SKILL.md +155 -0
- package/templates/.claude/skills/skills-sh-search/SKILL.md +210 -0
- package/templates/.claude/skills/snowflake-best-practices/SKILL.md +66 -0
- package/templates/.claude/skills/spark-best-practices/SKILL.md +53 -0
- package/templates/.claude/skills/springboot-best-practices/SKILL.md +74 -0
- package/templates/.claude/skills/springboot-best-practices/examples/config-properties-example.java +22 -0
- package/templates/.claude/skills/springboot-best-practices/examples/controller-example.java +28 -0
- package/templates/.claude/skills/springboot-best-practices/examples/controller-test-example.java +33 -0
- package/templates/.claude/skills/springboot-best-practices/examples/entity-example.java +22 -0
- package/templates/.claude/skills/springboot-best-practices/examples/exception-handler-example.java +30 -0
- package/templates/.claude/skills/springboot-best-practices/examples/repository-example.java +17 -0
- package/templates/.claude/skills/springboot-best-practices/examples/repository-test-example.java +23 -0
- package/templates/.claude/skills/springboot-best-practices/examples/security-config-example.java +27 -0
- package/templates/.claude/skills/springboot-best-practices/examples/service-example.java +33 -0
- package/templates/.claude/skills/status/SKILL.md +155 -0
- package/templates/.claude/skills/structured-dev-cycle/SKILL.md +200 -0
- package/templates/.claude/skills/stuck-recovery/SKILL.md +80 -0
- package/templates/.claude/skills/supabase-postgres-best-practices/SKILL.md +100 -0
- package/templates/.claude/skills/systematic-debugging/SKILL.md +288 -0
- package/templates/.claude/skills/systematic-debugging/condition-based-waiting-example.ts +278 -0
- package/templates/.claude/skills/systematic-debugging/condition-based-waiting.md +240 -0
- package/templates/.claude/skills/systematic-debugging/defense-in-depth.md +252 -0
- package/templates/.claude/skills/systematic-debugging/find-polluter.sh +147 -0
- package/templates/.claude/skills/systematic-debugging/root-cause-tracing.md +87 -0
- package/templates/.claude/skills/task-decomposition/SKILL.md +197 -0
- package/templates/.claude/skills/typescript-best-practices/SKILL.md +322 -0
- package/templates/.claude/skills/update-docs/SKILL.md +142 -0
- package/templates/.claude/skills/update-external/SKILL.md +169 -0
- package/templates/.claude/skills/vercel-deploy/SKILL.md +75 -0
- package/templates/.claude/skills/web-design-guidelines/SKILL.md +119 -0
- package/templates/.claude/skills/wiki/SKILL.md +426 -0
- package/templates/.claude/skills/wiki-rag/SKILL.md +154 -0
- package/templates/.claude/skills/worker-reviewer-pipeline/SKILL.md +165 -0
- package/templates/.claude/skills/writing-clearly-and-concisely/SKILL.md +66 -0
- package/templates/.claude/statusline.sh +380 -0
- package/templates/.claude/uninstall-hooks.sh +52 -0
- package/templates/.github/workflows/wiki-sync.yml +132 -0
- package/templates/AGENTS.md.en +255 -0
- package/templates/AGENTS.md.ko +255 -0
- package/templates/CLAUDE.md +263 -0
- package/templates/CLAUDE.md.en +256 -0
- package/templates/CLAUDE.md.ko +256 -0
- package/templates/deprecated-files.json +10 -0
- package/templates/guides/agents-md-quality/README.md +110 -0
- package/templates/guides/airflow/README.md +47 -0
- package/templates/guides/alembic/README.md +438 -0
- package/templates/guides/aws/common-patterns.md +169 -0
- package/templates/guides/aws/index.yaml +26 -0
- package/templates/guides/aws/well-architected.md +143 -0
- package/templates/guides/cc-token-saver/README.md +97 -0
- package/templates/guides/claude-code/01-overview.md +42 -0
- package/templates/guides/claude-code/03-tools.md +107 -0
- package/templates/guides/claude-code/04-agent-skills.md +90 -0
- package/templates/guides/claude-code/05-agent-sdk.md +129 -0
- package/templates/guides/claude-code/06-mcp.md +165 -0
- package/templates/guides/claude-code/07-prompt-engineering.md +100 -0
- package/templates/guides/claude-code/08-testing.md +56 -0
- package/templates/guides/claude-code/09-guardrails.md +78 -0
- package/templates/guides/claude-code/10-monitoring.md +87 -0
- package/templates/guides/claude-code/11-sub-agents.md +159 -0
- package/templates/guides/claude-code/12-workflow-patterns.md +182 -0
- package/templates/guides/claude-code/13-cli-flags.md +151 -0
- package/templates/guides/claude-code/index.yaml +61 -0
- package/templates/guides/dbt/README.md +32 -0
- package/templates/guides/django-best-practices/README.md +476 -0
- package/templates/guides/docker/compose-best-practices.md +284 -0
- package/templates/guides/docker/dockerfile-best-practices.md +262 -0
- package/templates/guides/docker/index.yaml +26 -0
- package/templates/guides/drizzle-orm/README.md +69 -0
- package/templates/guides/elements-of-style/elements-of-style.html +2609 -0
- package/templates/guides/fastapi/best-practices.md +232 -0
- package/templates/guides/fastapi/index.yaml +21 -0
- package/templates/guides/flutter/architecture.md +141 -0
- package/templates/guides/flutter/fundamentals.md +119 -0
- package/templates/guides/flutter/index.yaml +44 -0
- package/templates/guides/flutter/performance.md +119 -0
- package/templates/guides/flutter/security.md +120 -0
- package/templates/guides/flutter/state-management.md +144 -0
- package/templates/guides/flutter/testing.md +155 -0
- package/templates/guides/git-worktree-workflow/README.md +138 -0
- package/templates/guides/go-backend/index.yaml +26 -0
- package/templates/guides/go-backend/project-layout.md +243 -0
- package/templates/guides/go-backend/uber-style.md +212 -0
- package/templates/guides/golang/concurrency.md +282 -0
- package/templates/guides/golang/effective-go.md +309 -0
- package/templates/guides/golang/error-handling.md +250 -0
- package/templates/guides/golang/index.yaml +27 -0
- package/templates/guides/hook-data-flow/README.md +135 -0
- package/templates/guides/iceberg/README.md +49 -0
- package/templates/guides/impeccable-design/color-and-contrast.md +278 -0
- package/templates/guides/impeccable-design/index.yaml +12 -0
- package/templates/guides/impeccable-design/motion-design.md +390 -0
- package/templates/guides/impeccable-design/typography.md +386 -0
- package/templates/guides/impeccable-design/ux-writing.md +400 -0
- package/templates/guides/index.yaml +265 -0
- package/templates/guides/java21/index.yaml +29 -0
- package/templates/guides/java21/java-style-guide.md +248 -0
- package/templates/guides/java21/modern-java21.md +303 -0
- package/templates/guides/kafka/README.md +32 -0
- package/templates/guides/kotlin/coding-conventions.md +247 -0
- package/templates/guides/kotlin/idioms.md +234 -0
- package/templates/guides/kotlin/index.yaml +26 -0
- package/templates/guides/multi-model-routing/README.md +101 -0
- package/templates/guides/multi-provider-exec/README.md +83 -0
- package/templates/guides/postgres/README.md +58 -0
- package/templates/guides/python/index.yaml +26 -0
- package/templates/guides/python/pep8-style-guide.md +202 -0
- package/templates/guides/python/zen-of-python.md +79 -0
- package/templates/guides/redis/README.md +50 -0
- package/templates/guides/rust/error-handling.md +262 -0
- package/templates/guides/rust/index.yaml +26 -0
- package/templates/guides/rust/ownership.md +180 -0
- package/templates/guides/skill-bundle-design/README.md +106 -0
- package/templates/guides/slack-cli/README.md +145 -0
- package/templates/guides/snowflake/README.md +32 -0
- package/templates/guides/spark/README.md +32 -0
- package/templates/guides/springboot/best-practices.md +361 -0
- package/templates/guides/springboot/index.yaml +22 -0
- package/templates/guides/supabase-postgres/README.md +32 -0
- package/templates/guides/supabase-postgres/index.yaml +19 -0
- package/templates/guides/typescript/advanced-types.md +225 -0
- package/templates/guides/typescript/index.yaml +26 -0
- package/templates/guides/typescript/type-system.md +219 -0
- package/templates/guides/web-design/accessibility.md +66 -0
- package/templates/guides/web-design/index.yaml +20 -0
- package/templates/guides/web-design/performance.md +102 -0
- package/templates/guides/web-scraping/README.md +926 -0
- package/templates/guides/web-scraping/index.yaml +19 -0
- package/templates/guides/worktree-lifecycle/README.md +104 -0
- package/templates/index.yaml +18 -0
- package/templates/manifest.json +49 -0
- package/templates/workflows/auto-dev.yaml +46 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-plan
|
|
3
|
+
description: Research-validated planning — research → plan → verify cycle for high-confidence implementation plans
|
|
4
|
+
scope: core
|
|
5
|
+
context: fork
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
user-invocable: true
|
|
8
|
+
argument-hint: "<topic-or-issue>"
|
|
9
|
+
teams-compatible: true
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Deep Plan Skill
|
|
13
|
+
|
|
14
|
+
Research-validated planning that eliminates the gap between research assumptions and actual code. Orchestrates a 3-phase cycle: Discovery Research → Reality-Check Planning → Plan Verification.
|
|
15
|
+
|
|
16
|
+
**Teams-compatible** — works both from the main conversation (R010) and inside Agent Teams members. When used in Teams, the member directly executes the 3-phase workflow without Skill tool invocation.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
/deep-plan <topic-or-issue>
|
|
22
|
+
/deep-plan "implement caching layer for API responses"
|
|
23
|
+
/deep-plan #325 new authentication system
|
|
24
|
+
/deep-plan Rust async runtime migration
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Problem Solved
|
|
28
|
+
|
|
29
|
+
Research-only analysis (like `/research`) produces findings based on assumptions about the codebase. These assumptions often diverge from reality:
|
|
30
|
+
|
|
31
|
+
| Assumption | Reality | Impact |
|
|
32
|
+
|------------|---------|--------|
|
|
33
|
+
| "Feature X is missing" | Already implemented | Wasted effort on duplicate work |
|
|
34
|
+
| "Pattern Y is needed" | Partially exists | Over-engineering existing code |
|
|
35
|
+
| "Library Z is required" | Already a dependency | Unnecessary integration effort |
|
|
36
|
+
|
|
37
|
+
`/deep-plan` solves this by cross-referencing research findings against actual code before committing to a plan.
|
|
38
|
+
|
|
39
|
+
## Architecture — 3 Phases
|
|
40
|
+
|
|
41
|
+
### Phase 1: Discovery Research
|
|
42
|
+
|
|
43
|
+
Invoke the `/research` skill internally for comprehensive topic analysis.
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
Phase 1: Discovery Research
|
|
47
|
+
├── Skill(research, args="<topic>")
|
|
48
|
+
├── 10-team parallel analysis (3 batches × 4/4/2)
|
|
49
|
+
├── Cross-verification loop (opus + codex)
|
|
50
|
+
├── ADOPT / ADAPT / AVOID taxonomy
|
|
51
|
+
└── Output: research report (artifact)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Execution**:
|
|
55
|
+
- **Orchestrator mode**: Delegates to `/research` skill via `Skill(research, args="<topic>")`.
|
|
56
|
+
- **Teams mode**: Executes the research workflow inline (see Teams Mode section). The member spawns research teams directly as sub-agents.
|
|
57
|
+
|
|
58
|
+
The executor waits for completion before proceeding to Phase 2.
|
|
59
|
+
|
|
60
|
+
**Output**: Full research report with ADOPT/ADAPT/AVOID taxonomy.
|
|
61
|
+
|
|
62
|
+
### Phase 2: Reality-Check Planning
|
|
63
|
+
|
|
64
|
+
Ground-truth the research findings against the actual codebase.
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
Phase 2: Reality-Check Planning
|
|
68
|
+
├── EnterPlanMode
|
|
69
|
+
├── Explore agents (up to 3 parallel)
|
|
70
|
+
│ ├── Explore 1: Verify ADOPT items exist/don't exist
|
|
71
|
+
│ ├── Explore 2: Check ADAPT items for current state
|
|
72
|
+
│ └── Explore 3: Validate AVOID alternatives
|
|
73
|
+
├── Gap analysis table
|
|
74
|
+
├── Refined plan (real gaps only)
|
|
75
|
+
└── ExitPlanMode → user approval
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Steps**:
|
|
79
|
+
|
|
80
|
+
1. **Enter Plan Mode**: `EnterPlanMode` to activate planning context
|
|
81
|
+
2. **Codebase Exploration**: Spawn up to 3 Explore agents in parallel to verify research assumptions:
|
|
82
|
+
- Each ADOPT item: Does it already exist? Partially implemented?
|
|
83
|
+
- Each ADAPT item: What is the current state to adapt from?
|
|
84
|
+
- Each AVOID item: Are the alternatives already available?
|
|
85
|
+
3. **Gap Analysis**: Build a reconciliation table:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
| Research Finding | Actual Code State | Gap Type | Action |
|
|
89
|
+
|-----------------|-------------------|----------|--------|
|
|
90
|
+
| "No caching" | Redis client exists | Overestimate | Remove from plan |
|
|
91
|
+
| "Need auth middleware" | No auth layer | Real gap | Keep in plan |
|
|
92
|
+
| "Migrate to v3" | Already on v3.1 | Overestimate | Remove from plan |
|
|
93
|
+
| "Add rate limiting" | Basic limiter exists | Partial gap | Adapt existing |
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
4. **Refined Plan**: Write implementation plan containing ONLY real gaps:
|
|
97
|
+
- Remove overestimates (already implemented)
|
|
98
|
+
- Adjust partial gaps (adapt, don't rebuild)
|
|
99
|
+
- Prioritize real gaps by impact
|
|
100
|
+
5. **User Approval**: `ExitPlanMode` presents the refined plan for user review
|
|
101
|
+
|
|
102
|
+
### Phase 3: Plan Verification Research
|
|
103
|
+
|
|
104
|
+
Validate the refined plan with focused research before implementation begins.
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
Phase 3: Plan Verification Research
|
|
108
|
+
├── 3-team focused verification
|
|
109
|
+
│ ├── T1: Technical feasibility
|
|
110
|
+
│ ├── T2: Conflict/duplication check
|
|
111
|
+
│ └── T3: Test strategy & risk
|
|
112
|
+
├── Verdict: PASS or REVISE
|
|
113
|
+
├── PASS → implementation advisory
|
|
114
|
+
└── REVISE → return to Phase 2
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Teams** (3 parallel, NOT full 10-team):
|
|
118
|
+
|
|
119
|
+
| Team | Focus | Verifies |
|
|
120
|
+
|------|-------|----------|
|
|
121
|
+
| T1 | Technical feasibility | Can the plan be implemented with current stack/deps? |
|
|
122
|
+
| T2 | Conflict & duplication | Does the plan conflict with in-flight work or duplicate existing code? |
|
|
123
|
+
| T3 | Test strategy & risk | Is the plan testable? What are the failure modes? |
|
|
124
|
+
|
|
125
|
+
**Invocation**: Phase 3 teams are spawned directly as parallel agents (NOT via `Skill(research)`). The orchestrator creates 3 focused agents, each with a specific verification mandate derived from the Phase 2 plan.
|
|
126
|
+
|
|
127
|
+
**Model selection**: sonnet for teams, opus for synthesis.
|
|
128
|
+
|
|
129
|
+
**Verdict**:
|
|
130
|
+
- **PASS**: Plan is verified. Display implementation advisory.
|
|
131
|
+
- **REVISE**: Issues found. Return to Phase 2 with feedback for plan refinement.
|
|
132
|
+
- **REVISE limit**: After 2 REVISE cycles, escalate to user for manual judgment.
|
|
133
|
+
|
|
134
|
+
## Workflow Diagram
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
User: /deep-plan "topic"
|
|
138
|
+
│
|
|
139
|
+
├─ Phase 1: Discovery Research
|
|
140
|
+
│ ├─ Skill(research, args="topic")
|
|
141
|
+
│ ├─ 10-team analysis → ADOPT/ADAPT/AVOID
|
|
142
|
+
│ └─ Output: research artifact
|
|
143
|
+
│
|
|
144
|
+
├─ Phase 2: Reality-Check Planning
|
|
145
|
+
│ ├─ EnterPlanMode
|
|
146
|
+
│ ├─ Explore agents (up to 3 parallel)
|
|
147
|
+
│ ├─ Gap analysis: research vs actual code
|
|
148
|
+
│ ├─ Refined plan (real gaps only)
|
|
149
|
+
│ └─ ExitPlanMode → user approval
|
|
150
|
+
│
|
|
151
|
+
└─ Phase 3: Plan Verification
|
|
152
|
+
├─ 3-team focused research
|
|
153
|
+
├─ Verdict: PASS or REVISE
|
|
154
|
+
├─ PASS → implementation advisory
|
|
155
|
+
└─ REVISE → loop back to Phase 2 (max 2 cycles)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Differentiation
|
|
159
|
+
|
|
160
|
+
| Skill | Scope | Code Verification | Phases |
|
|
161
|
+
|-------|-------|-------------------|--------|
|
|
162
|
+
| `/research` | Analysis only | None — assumption-based | 1 |
|
|
163
|
+
| Plan mode | Planning only | Yes — code exploration | 1 |
|
|
164
|
+
| `/structured-dev-cycle` | Full implementation | Yes — stage-by-stage | 6 |
|
|
165
|
+
| **`/deep-plan`** | **Analysis + Planning + Verification** | **3-pass cross-verification** | **3** |
|
|
166
|
+
|
|
167
|
+
`/deep-plan` fills the gap between research (which lacks code grounding) and implementation (which lacks upfront analysis). It produces a **verified plan** ready for execution.
|
|
168
|
+
|
|
169
|
+
## Display Format
|
|
170
|
+
|
|
171
|
+
Before execution:
|
|
172
|
+
```
|
|
173
|
+
[Deep Plan] {topic}
|
|
174
|
+
├── Phase 1: Discovery Research (10 teams, 3 batches)
|
|
175
|
+
├── Phase 2: Reality-Check Planning (up to 3 Explore agents)
|
|
176
|
+
└── Phase 3: Plan Verification (3 focused teams)
|
|
177
|
+
|
|
178
|
+
Estimated phases: 3 | Models: sonnet → opus
|
|
179
|
+
Execute? [Y/n]
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Phase transitions:
|
|
183
|
+
```
|
|
184
|
+
[Deep Plan] Phase 1/3 — Discovery Research
|
|
185
|
+
├── Research skill active...
|
|
186
|
+
└── Awaiting 10-team results
|
|
187
|
+
|
|
188
|
+
[Deep Plan] Phase 2/3 — Reality-Check Planning
|
|
189
|
+
├── Gap analysis: 6 ADOPT items → 2 real gaps, 4 overestimates
|
|
190
|
+
└── Refined plan: 5 action items (down from 12)
|
|
191
|
+
|
|
192
|
+
[Deep Plan] Phase 3/3 — Plan Verification
|
|
193
|
+
├── T1 (feasibility): ✓ PASS
|
|
194
|
+
├── T2 (conflicts): ✓ PASS
|
|
195
|
+
├── T3 (test/risk): ✓ PASS
|
|
196
|
+
└── Verdict: PASS — ready for implementation
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Post-Completion Advisory
|
|
200
|
+
|
|
201
|
+
After PASS verdict:
|
|
202
|
+
```
|
|
203
|
+
[Advisory] Verified plan ready for implementation.
|
|
204
|
+
├── For complex implementations (10+ files): /structured-dev-cycle
|
|
205
|
+
├── For parallel task execution: superpowers:subagent-driven-development
|
|
206
|
+
└── For simple tasks (< 3 files): proceed directly
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Execution Rules
|
|
210
|
+
|
|
211
|
+
| Rule | Detail |
|
|
212
|
+
|------|--------|
|
|
213
|
+
| Phase 1 | Full `/research` skill invocation (10 teams) |
|
|
214
|
+
| Phase 2 | Max 3 parallel Explore agents (R009) |
|
|
215
|
+
| Phase 3 | Max 3 parallel verification teams (R009) |
|
|
216
|
+
| Orchestrator only | Main conversation manages all phases (R010) |
|
|
217
|
+
| Intent display | Show phase plan before execution (R015) |
|
|
218
|
+
| Ecomode | Auto-activate for team result aggregation (R013) |
|
|
219
|
+
| REVISE limit | Max 2 cycles before user escalation |
|
|
220
|
+
|
|
221
|
+
## Agent Teams (R018)
|
|
222
|
+
|
|
223
|
+
When Agent Teams is enabled, Phase 1 and Phase 3 parallel teams SHOULD use Agent Teams instead of individual Agent tool calls:
|
|
224
|
+
|
|
225
|
+
| Phase | Without Agent Teams | With Agent Teams |
|
|
226
|
+
|-------|--------------------|--------------------|
|
|
227
|
+
| Phase 1 | Delegates to `/research` (handles internally) | Delegates to `/research` (handles internally) |
|
|
228
|
+
| Phase 2 | Up to 3 Explore agents via Agent tool | Up to 3 Explore agents via Agent tool (below threshold) |
|
|
229
|
+
| Phase 3 | 3 agents via Agent tool | 3 agents — at threshold, prefer Agent Teams for coordination |
|
|
230
|
+
|
|
231
|
+
Phase 1 delegation to `/research` means Agent Teams decisions are handled by the research skill itself. Phase 3's 3-team verification is at the Agent Teams threshold (3+ agents) and benefits from peer messaging for cross-verification.
|
|
232
|
+
|
|
233
|
+
## Model Selection
|
|
234
|
+
|
|
235
|
+
| Phase | Component | Model | Rationale |
|
|
236
|
+
|-------|-----------|-------|-----------|
|
|
237
|
+
| Phase 1 | Research teams | sonnet | Delegated to /research skill |
|
|
238
|
+
| Phase 1 | Verification | opus | Delegated to /research skill |
|
|
239
|
+
| Phase 2 | Explore agents | haiku | Fast codebase search |
|
|
240
|
+
| Phase 2 | Gap analysis | opus | Complex reconciliation reasoning |
|
|
241
|
+
| Phase 3 | Verification teams | sonnet | Balanced analysis |
|
|
242
|
+
| Phase 3 | Synthesis/verdict | opus | Final judgment |
|
|
243
|
+
|
|
244
|
+
## Cost Estimate
|
|
245
|
+
|
|
246
|
+
| Phase | Approximate Cost | Driver |
|
|
247
|
+
|-------|-----------------|--------|
|
|
248
|
+
| Phase 1 | High | Full 10-team `/research` invocation |
|
|
249
|
+
| Phase 2 | Low-Medium | Up to 3 Explore agents (haiku) + 1 opus synthesis |
|
|
250
|
+
| Phase 3 | Medium | 3 sonnet verification teams + 1 opus synthesis |
|
|
251
|
+
| **Total** | **High** | Dominated by Phase 1 research cost |
|
|
252
|
+
|
|
253
|
+
`/deep-plan` is designed for high-stakes decisions where plan quality justifies the cost. For quick planning, use `EnterPlanMode` directly.
|
|
254
|
+
|
|
255
|
+
## Integration
|
|
256
|
+
|
|
257
|
+
| Component | Integration |
|
|
258
|
+
|-----------|-------------|
|
|
259
|
+
| `/research` | Phase 1 full invocation (via Skill tool or inline in Teams mode) + Phase 3 reduced invocation pattern |
|
|
260
|
+
| EnterPlanMode/ExitPlanMode | Phase 2 plan creation and user approval |
|
|
261
|
+
| Explore agents | Phase 2 codebase verification (up to 3 parallel) |
|
|
262
|
+
| R009 | Phase 1 (10 teams batched), Phase 2 (3 Explore), Phase 3 (3 teams) |
|
|
263
|
+
| R010 | Orchestrator manages all 3 phases; teams are subagents |
|
|
264
|
+
| R013 | Ecomode for team result aggregation |
|
|
265
|
+
| R015 | Phase transition intent display |
|
|
266
|
+
| result-aggregation | Phase 1 and 3 result formatting |
|
|
267
|
+
| superpowers:subagent-driven-development | Post-PASS implementation advisory (external plugin) |
|
|
268
|
+
|
|
269
|
+
## Fallback Behavior
|
|
270
|
+
|
|
271
|
+
| Scenario | Fallback |
|
|
272
|
+
|----------|----------|
|
|
273
|
+
| Phase 1 `/research` fails | Manual analysis, then proceed to Phase 2 |
|
|
274
|
+
| Phase 2 EnterPlanMode unavailable | Perform analysis without plan mode context |
|
|
275
|
+
| Phase 3 REVISE ≥ 2 times | Escalate to user for manual judgment |
|
|
276
|
+
| Explore agent failure | Reduce parallel count, retry with remaining |
|
|
277
|
+
| Partial team failure | Synthesize from available results, note gaps |
|
|
278
|
+
|
|
279
|
+
## Teams Mode
|
|
280
|
+
|
|
281
|
+
When running inside an Agent Teams member (not via Skill tool), the deep-plan workflow operates identically but with these adaptations:
|
|
282
|
+
|
|
283
|
+
### How It Works
|
|
284
|
+
|
|
285
|
+
The orchestrator reads this SKILL.md and includes the deep-plan instructions directly in the Teams member's prompt. The member then:
|
|
286
|
+
|
|
287
|
+
1. Phase 1: Executes research workflow inline (not via `Skill(research)`) — spawns 10 research teams as sub-agents
|
|
288
|
+
2. Phase 2: Uses EnterPlanMode/ExitPlanMode and Explore agents normally
|
|
289
|
+
3. Phase 3: Spawns 3 verification teams as sub-agents
|
|
290
|
+
4. Delivers final verified plan via `SendMessage` to team lead
|
|
291
|
+
|
|
292
|
+
### Prompt Embedding Pattern
|
|
293
|
+
|
|
294
|
+
```
|
|
295
|
+
# When spawning a Teams member for deep-plan:
|
|
296
|
+
Agent(
|
|
297
|
+
name: "planner-1",
|
|
298
|
+
team_name: "my-team",
|
|
299
|
+
prompt: """
|
|
300
|
+
You are a deep-plan agent. Follow the deep-plan skill workflow below:
|
|
301
|
+
{contents of deep-plan/SKILL.md}
|
|
302
|
+
|
|
303
|
+
Also follow this research workflow for Phase 1:
|
|
304
|
+
{contents of research/SKILL.md}
|
|
305
|
+
|
|
306
|
+
Topic: {user's planning topic}
|
|
307
|
+
Deliver verified plan via SendMessage to team lead when complete.
|
|
308
|
+
"""
|
|
309
|
+
)
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Differences from Orchestrator Mode
|
|
313
|
+
|
|
314
|
+
| Aspect | Orchestrator Mode | Teams Mode |
|
|
315
|
+
|--------|------------------|------------|
|
|
316
|
+
| Invocation | `Skill(deep-plan)` | Prompt embedding |
|
|
317
|
+
| Phase 1 research | `Skill(research)` | Inline execution |
|
|
318
|
+
| Result delivery | Return to main conversation | `SendMessage` to team lead |
|
|
319
|
+
| Plan approval | User via ExitPlanMode | Team lead via SendMessage |
|
|
320
|
+
| Context isolation | Previously used `context: fork` | Standard context (no fork) |
|
|
321
|
+
|
|
322
|
+
### Why No context: fork
|
|
323
|
+
|
|
324
|
+
`context: fork` was removed to enable Teams compatibility. Fork blocks sub-agent spawning, which is essential for Phase 1 (10 research teams) and Phase 3 (3 verification teams). Without fork, deep-plan operates in the standard context, which is required for both orchestrator and Teams usage.
|
|
325
|
+
|
|
326
|
+
## Artifact Persistence
|
|
327
|
+
|
|
328
|
+
Phase 1 research artifact is persisted by the `/research` skill.
|
|
329
|
+
|
|
330
|
+
Phase 3 verification report is persisted by the final synthesis agent:
|
|
331
|
+
```
|
|
332
|
+
.codex/outputs/sessions/{YYYY-MM-DD}/deep-plan-{HHmmss}.md
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
With metadata header:
|
|
336
|
+
```markdown
|
|
337
|
+
---
|
|
338
|
+
skill: deep-plan
|
|
339
|
+
date: {ISO-8601 with timezone}
|
|
340
|
+
query: "{original user query}"
|
|
341
|
+
phases_completed: 3
|
|
342
|
+
verdict: PASS|REVISE
|
|
343
|
+
---
|
|
344
|
+
```
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-verify
|
|
3
|
+
description: Multi-angle release quality verification using parallel expert review teams
|
|
4
|
+
scope: core
|
|
5
|
+
version: 1.1.0
|
|
6
|
+
user-invocable: true
|
|
7
|
+
effort: high
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# /deep-verify — Multi-Angle Release Quality Verification
|
|
11
|
+
|
|
12
|
+
## Purpose
|
|
13
|
+
|
|
14
|
+
Performs deep cross-iterative verification of code changes before release, using multiple independent review perspectives to catch issues that single-pass review misses.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
/deep-verify [branch|PR]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
If no argument, verifies current branch against its base (usually `develop`).
|
|
23
|
+
|
|
24
|
+
## Workflow
|
|
25
|
+
|
|
26
|
+
### Round 1: Baseline Assessment
|
|
27
|
+
- Gather the full diff (`git diff develop...HEAD`)
|
|
28
|
+
- Run test suite, lint, and type check
|
|
29
|
+
- Collect results as baseline
|
|
30
|
+
|
|
31
|
+
### Round 2: Parallel Expert Review (6 agents)
|
|
32
|
+
Spawn 6 parallel review agents, each with a different focus:
|
|
33
|
+
|
|
34
|
+
1. **Correctness Reviewer** — Logic errors, edge cases, off-by-one, null handling
|
|
35
|
+
2. **Security Reviewer** — Injection, auth bypass, data exposure, OWASP top 10
|
|
36
|
+
3. **Performance Reviewer** — O(n^2) loops, unbounded queries, memory leaks, missing indexes
|
|
37
|
+
4. **Integration Reviewer** — API contract breaks, migration safety, cross-module side effects
|
|
38
|
+
5. **Philosophy Reviewer** — Project concept/metaphor alignment, separation of concerns (R006), orchestrator rules (R010), advisory-first enforcement (R021), compilation metaphor integrity
|
|
39
|
+
6. **Regression & Performance Reviewer** — Feature regression risk, API contract preservation, query performance impact, index effectiveness, algorithm complexity at realistic scale
|
|
40
|
+
|
|
41
|
+
Each agent receives the full diff and returns findings as structured JSON:
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"severity": "HIGH|MEDIUM|LOW",
|
|
45
|
+
"file": "path/to/file",
|
|
46
|
+
"line": 42,
|
|
47
|
+
"finding": "description",
|
|
48
|
+
"suggestion": "fix suggestion"
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Round 3: Cross-Verification
|
|
53
|
+
- Merge all findings from Round 2
|
|
54
|
+
- Deduplicate (same file+line+similar finding = 1 entry)
|
|
55
|
+
- For each HIGH finding: spawn a verification agent to confirm or dismiss as FALSE POSITIVE
|
|
56
|
+
- Evidence-based: each confirmation must include proof (e.g., `toQuery()` output, test result)
|
|
57
|
+
|
|
58
|
+
### Round 4: FALSE POSITIVE Filter
|
|
59
|
+
- Remove confirmed false positives with evidence
|
|
60
|
+
- Remaining findings are CONFIRMED issues
|
|
61
|
+
|
|
62
|
+
### Round 5: Fix Application
|
|
63
|
+
- For each CONFIRMED HIGH/MEDIUM finding: spawn fix agent
|
|
64
|
+
- Run tests after fixes
|
|
65
|
+
- If tests fail: revert fix, report as "needs manual review"
|
|
66
|
+
|
|
67
|
+
### Round 6: Final Verification
|
|
68
|
+
- Re-run full test suite
|
|
69
|
+
- Re-run lint and type check
|
|
70
|
+
- Generate summary report
|
|
71
|
+
|
|
72
|
+
### Round 7: Philosophy & Regression Gate
|
|
73
|
+
- Verify all changes align with project's compilation metaphor (Skills=source, Agents=artifacts, Rules=spec)
|
|
74
|
+
- Check separation of concerns: no agents containing skill logic, no skills with agent definitions
|
|
75
|
+
- Verify orchestrator rules: no new file writes from orchestrator context
|
|
76
|
+
- Check advisory-first: no new hard-blocking hooks introduced
|
|
77
|
+
- Confirm no feature regressions: existing APIs preserved, test coverage maintained
|
|
78
|
+
- Performance sanity: no O(n^2) on large datasets, no missing indexes for new queries
|
|
79
|
+
- If any CONCERN or VIOLATION found: report for manual review before release
|
|
80
|
+
|
|
81
|
+
## Output Format
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
╔══════════════════════════════════════════════════════╗
|
|
85
|
+
║ Deep Verification Report ║
|
|
86
|
+
╠══════════════════════════════════════════════════════╣
|
|
87
|
+
║ Branch: {branch} ║
|
|
88
|
+
║ Commits: {count} ║
|
|
89
|
+
║ Files changed: {count} ║
|
|
90
|
+
╠══════════════════════════════════════════════════════╣
|
|
91
|
+
║ Findings: ║
|
|
92
|
+
║ HIGH: {n} ({confirmed} confirmed, {fp} FP) ║
|
|
93
|
+
║ MEDIUM: {n} ({confirmed} confirmed, {fp} FP) ║
|
|
94
|
+
║ LOW: {n} ║
|
|
95
|
+
╠══════════════════════════════════════════════════════╣
|
|
96
|
+
║ Fixes Applied: {n} ║
|
|
97
|
+
║ Tests: {pass}/{total} passing ║
|
|
98
|
+
║ Verdict: READY / NEEDS REVIEW / BLOCKED ║
|
|
99
|
+
║ Philosophy: ALIGNED / {n} CONCERNS ║
|
|
100
|
+
║ Regression: CLEAN / {n} RISKS ║
|
|
101
|
+
╚══════════════════════════════════════════════════════╝
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Notes
|
|
105
|
+
|
|
106
|
+
- Round 2 agents use `model: sonnet` for cost efficiency
|
|
107
|
+
- Round 3 verification agents use `model: opus` for reasoning depth
|
|
108
|
+
- FALSE POSITIVE filtering is critical — previous releases showed 80%+ FP rate on automated review
|
|
109
|
+
- This skill replaces ad-hoc cross-verification with a repeatable process
|
|
110
|
+
- Round 7 philosophy check references AGENTS.md architecture section and R006/R010/R021 rules
|
|
111
|
+
- Regression check compares function signatures, export lists, and test counts against develop baseline
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev-lead-routing
|
|
3
|
+
description: Routes development tasks to the correct language or framework expert agent. Use when user requests code review, implementation, refactoring, or debugging.
|
|
4
|
+
scope: core
|
|
5
|
+
user-invocable: false
|
|
6
|
+
context: fork
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Dev Lead Routing
|
|
10
|
+
|
|
11
|
+
## Engineers
|
|
12
|
+
|
|
13
|
+
| Type | Agents |
|
|
14
|
+
|------|--------|
|
|
15
|
+
| Language | lang-golang-expert, lang-python-expert, lang-rust-expert, lang-kotlin-expert, lang-typescript-expert, lang-java21-expert |
|
|
16
|
+
| Frontend | fe-vercel-agent, fe-vuejs-agent, fe-svelte-agent, fe-flutter-agent, fe-design-expert |
|
|
17
|
+
| Backend | be-fastapi-expert, be-springboot-expert, be-go-backend-expert, be-nestjs-expert, be-express-expert, be-django-expert |
|
|
18
|
+
| Tooling | tool-npm-expert, tool-optimizer, tool-bun-expert |
|
|
19
|
+
| Database | db-supabase-expert, db-postgres-expert, db-redis-expert, db-alembic-expert |
|
|
20
|
+
| Architect | arch-documenter, arch-speckit-agent |
|
|
21
|
+
| Security | sec-codeql-expert |
|
|
22
|
+
| Infra | infra-docker-expert, infra-aws-expert |
|
|
23
|
+
|
|
24
|
+
## File Extension Mapping
|
|
25
|
+
|
|
26
|
+
| Extension | Agent |
|
|
27
|
+
|-----------|-------|
|
|
28
|
+
| `.go` | lang-golang-expert |
|
|
29
|
+
| `.py` | lang-python-expert |
|
|
30
|
+
| `.rs` | lang-rust-expert |
|
|
31
|
+
| `.kt`, `.kts` | lang-kotlin-expert |
|
|
32
|
+
| `.ts`, `.tsx` | lang-typescript-expert |
|
|
33
|
+
| `.java` | lang-java21-expert |
|
|
34
|
+
| `.js/.jsx` (React) | fe-vercel-agent |
|
|
35
|
+
| `.vue` | fe-vuejs-agent |
|
|
36
|
+
| `.svelte` | fe-svelte-agent |
|
|
37
|
+
| `.dart`, `pubspec.yaml` | fe-flutter-agent |
|
|
38
|
+
| `.sql` (PG) | db-postgres-expert |
|
|
39
|
+
| `.sql` (Supabase) | db-supabase-expert |
|
|
40
|
+
| `alembic.ini`, `alembic/versions/*.py` | db-alembic-expert |
|
|
41
|
+
| `Dockerfile`, `*.dockerfile` | infra-docker-expert |
|
|
42
|
+
| `*.tf`, `*.tfvars` | infra-aws-expert |
|
|
43
|
+
| `*.yaml`, `*.yml` (CloudFormation) | infra-aws-expert |
|
|
44
|
+
|
|
45
|
+
## Keyword Mapping
|
|
46
|
+
|
|
47
|
+
| Keywords | Agent |
|
|
48
|
+
|----------|-------|
|
|
49
|
+
| go, golang | lang-golang-expert |
|
|
50
|
+
| python, py | lang-python-expert |
|
|
51
|
+
| rust | lang-rust-expert |
|
|
52
|
+
| kotlin | lang-kotlin-expert |
|
|
53
|
+
| typescript, ts | lang-typescript-expert |
|
|
54
|
+
| java | lang-java21-expert |
|
|
55
|
+
| react, next.js, vercel | fe-vercel-agent |
|
|
56
|
+
| vue | fe-vuejs-agent |
|
|
57
|
+
| svelte | fe-svelte-agent |
|
|
58
|
+
| flutter, dart, riverpod, bloc, widget | fe-flutter-agent |
|
|
59
|
+
| design, typography, color, motion, ux writing, ui design, "design system", "design review", impeccable | fe-design-expert |
|
|
60
|
+
| fastapi | be-fastapi-expert |
|
|
61
|
+
| django | be-django-expert |
|
|
62
|
+
| spring, springboot | be-springboot-expert |
|
|
63
|
+
| nestjs | be-nestjs-expert |
|
|
64
|
+
| express | be-express-expert |
|
|
65
|
+
| npm | tool-npm-expert |
|
|
66
|
+
| optimize, bundle | tool-optimizer |
|
|
67
|
+
| bun | tool-bun-expert |
|
|
68
|
+
| postgres, postgresql, psql, pg_stat | db-postgres-expert |
|
|
69
|
+
| redis, cache, pub/sub, sorted set | db-redis-expert |
|
|
70
|
+
| supabase, rls, edge function | db-supabase-expert |
|
|
71
|
+
| alembic, migration, db revision, db upgrade, db downgrade | db-alembic-expert |
|
|
72
|
+
| docker, dockerfile, container, compose | infra-docker-expert |
|
|
73
|
+
| aws, cloudformation, vpc, iam, s3, lambda, cdk, terraform | infra-aws-expert |
|
|
74
|
+
| security, codeql, cve, vulnerability, sarif, sast, security audit | sec-codeql-expert |
|
|
75
|
+
| architecture, adr, openapi, swagger, diagram | arch-documenter |
|
|
76
|
+
| spec, specification, tdd, requirements | arch-speckit-agent |
|
|
77
|
+
|
|
78
|
+
## Model Selection
|
|
79
|
+
|
|
80
|
+
| Task | Model |
|
|
81
|
+
|------|-------|
|
|
82
|
+
| Architecture analysis | opus |
|
|
83
|
+
| Code review/implementation | sonnet |
|
|
84
|
+
| Quick validation/search | haiku |
|
|
85
|
+
|
|
86
|
+
## Routing Decision (Priority Order)
|
|
87
|
+
|
|
88
|
+
Before selecting an expert agent, evaluate in this order:
|
|
89
|
+
|
|
90
|
+
### Step 1: Agent Teams Eligibility (R018)
|
|
91
|
+
Check if Agent Teams is available (`OMCODEX_AGENT_TEAMS=1` or TeamCreate/SendMessage tools present).
|
|
92
|
+
|
|
93
|
+
| Scenario | Preferred |
|
|
94
|
+
|----------|-----------|
|
|
95
|
+
| Single-language review | Task Tool |
|
|
96
|
+
| Multi-language code review (3+) | Agent Teams |
|
|
97
|
+
| Code review + fix cycle | Agent Teams |
|
|
98
|
+
| Cross-layer debugging (FE + BE + DB) | Agent Teams |
|
|
99
|
+
| Simple file search/validation | Task Tool |
|
|
100
|
+
|
|
101
|
+
### Step 2: Codex-Exec Hybrid (Implementation Tasks)
|
|
102
|
+
For **new file creation**, **boilerplate**, or **test code generation**:
|
|
103
|
+
|
|
104
|
+
1. Check `/tmp/.codex-env-status-*` for codex, gemini, and rtk availability
|
|
105
|
+
2. If codex available AND task involves new file creation → automatically delegate to `/codex-exec` for scaffolding:
|
|
106
|
+
- Display: `[Codex Hybrid] Delegating to codex-exec...`
|
|
107
|
+
- codex-exec generates initial code (strength: fast generation)
|
|
108
|
+
- Selected Claude expert reviews and refines codex output (strength: reasoning, quality)
|
|
109
|
+
3. If codex unavailable but gemini available → delegate to `/gemini-exec` for scaffolding:
|
|
110
|
+
- Display: `[Gemini Hybrid] Delegating to gemini-exec...`
|
|
111
|
+
- gemini-exec generates initial code
|
|
112
|
+
- Selected Claude expert reviews and refines output
|
|
113
|
+
4. If RTK available (`RTK=available` in env status) → optionally wrap Claude expert output through RTK to reduce token consumption by 60-90%:
|
|
114
|
+
- Display: `[RTK Proxy] Token optimization active via rtk-exec`
|
|
115
|
+
- RTK acts as a transparent proxy — no change to expert selection
|
|
116
|
+
5. If none available → display `[External CLI] Unavailable — proceeding with {expert} directly` and use Claude expert directly
|
|
117
|
+
|
|
118
|
+
**Suitable**: New file creation, boilerplate, scaffolding, test code
|
|
119
|
+
**Unsuitable**: Existing code modification, architecture decisions, bug fixes
|
|
120
|
+
|
|
121
|
+
### Step 3: Expert Agent Selection
|
|
122
|
+
Route to appropriate language/framework expert based on file extension and keyword mapping.
|
|
123
|
+
|
|
124
|
+
> **Permission Mode**: When spawning agents, pass `mode: "bypassPermissions"` in the Agent tool call if the session uses bypassPermissions. Without explicit mode, CC defaults to `acceptEdits`.
|
|
125
|
+
|
|
126
|
+
### Step 4: Ontology-RAG Enrichment (R019)
|
|
127
|
+
|
|
128
|
+
If `get_agent_for_task` MCP tool is available, call it with the original query and inject `suggested_skills` into the agent prompt. Skip silently on failure.
|
|
129
|
+
|
|
130
|
+
### Step 5: Soul Injection (R006)
|
|
131
|
+
|
|
132
|
+
If the selected agent has `soul: true` in frontmatter, read and prepend `.codex/agents/souls/{agent-name}.soul.md` content to the prompt. Skip silently if file doesn't exist.
|
|
133
|
+
|
|
134
|
+
## Routing Rules
|
|
135
|
+
|
|
136
|
+
Multi-language: detect all languages, route to parallel experts (max 4). Single-language: route to matching expert. Cross-layer (frontend + backend): multiple experts in parallel.
|
|
137
|
+
|
|
138
|
+
## No Match Fallback
|
|
139
|
+
|
|
140
|
+
When file extension or keyword doesn't match any existing agent:
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
User Input → No matching development agent
|
|
144
|
+
↓
|
|
145
|
+
Detect: File extension (.rb, .swift, .php, etc.) or language keyword
|
|
146
|
+
↓
|
|
147
|
+
Delegate to mgr-creator with context:
|
|
148
|
+
domain: detected language/framework
|
|
149
|
+
type: sw-engineer
|
|
150
|
+
keywords: extracted from user input
|
|
151
|
+
file_patterns: detected extensions
|
|
152
|
+
skills: auto-discover from .codex/skills/
|
|
153
|
+
guides: auto-discover from templates/guides/
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Examples of dynamic creation triggers:**
|
|
157
|
+
- Unrecognized file extension (e.g., `.rb` → Ruby expert, `.swift` → Swift expert)
|
|
158
|
+
- New framework keyword (e.g., "Flutter 앱 리뷰해줘", "Rails API 만들어줘")
|
|
159
|
+
- Language detected but no specialist exists
|
|
160
|
+
|
|
161
|
+
Not user-invocable. Auto-triggered on development intent.
|