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,293 @@
|
|
|
1
|
+
# [MUST] Agent Teams Rules (Conditional)
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R018
|
|
4
|
+
> **Condition**: Agent Teams enabled (`OMCODEX_AGENT_TEAMS=1`)
|
|
5
|
+
> **Fallback**: When disabled, R009/R010 apply
|
|
6
|
+
|
|
7
|
+
## Detection
|
|
8
|
+
|
|
9
|
+
Available when `OMCODEX_AGENT_TEAMS=1` or TeamCreate/SendMessage tools present.
|
|
10
|
+
|
|
11
|
+
## Decision Matrix
|
|
12
|
+
|
|
13
|
+
| Scenario | Preferred | Reason |
|
|
14
|
+
|----------|-----------|--------|
|
|
15
|
+
| Simple independent subtasks | Agent Tool | Lower cost, no coordination overhead |
|
|
16
|
+
| Sequential-dependency init/scaffolding | Agent Tool | Blocked agents waste tokens polling; single agent faster |
|
|
17
|
+
| Multi-step with shared state | **Agent Teams** | Shared task list, peer messaging |
|
|
18
|
+
| Research requiring discussion | **Agent Teams** | Iterative discovery, synthesis |
|
|
19
|
+
| Cost-sensitive batch ops | Agent Tool | Minimal token overhead |
|
|
20
|
+
| Complex debugging across modules | **Agent Teams** | Cross-module state sharing |
|
|
21
|
+
| Code review + fix cycle | **Agent Teams** | Review → fix → re-review loop |
|
|
22
|
+
| Single file operations | Agent Tool | Overkill for simple tasks |
|
|
23
|
+
| Dynamic agent creation + usage | **Agent Teams** | Create → test → iterate cycle |
|
|
24
|
+
| Multi-issue release batch | **Agent Teams** | Shared task tracking, coordinated release |
|
|
25
|
+
|
|
26
|
+
**When Agent Teams is enabled and criteria are met, usage is required.**
|
|
27
|
+
|
|
28
|
+
### Scope: Intra-Session vs Cross-Session
|
|
29
|
+
|
|
30
|
+
| Scope | Tool | Protocol | Use Case |
|
|
31
|
+
|-------|------|----------|----------|
|
|
32
|
+
| Intra-session | `SendMessage` (Agent Teams) | Peer-to-peer within team | Multi-agent collaboration in one session |
|
|
33
|
+
| Cross-session | `send_message` (claude-peers-mcp) | Broker-mediated | Multi-terminal/project coordination |
|
|
34
|
+
|
|
35
|
+
These are distinct mechanisms. Agent Teams `SendMessage` requires `TeamCreate` and operates within a single Claude Code session. claude-peers-mcp `send_message` operates across separate Claude Code processes via a localhost broker.
|
|
36
|
+
|
|
37
|
+
## Self-Check (Before Agent Tool)
|
|
38
|
+
|
|
39
|
+
Before using Agent tool for 2+ agent tasks, complete this check:
|
|
40
|
+
Quick rule: 3+ agents OR review cycle → use Agent Teams. Sequential deps / scaffolding → Agent Tool. 2+ issues in same batch → prefer Agent Teams.
|
|
41
|
+
|
|
42
|
+
<!-- DETAIL: Self-Check (Before Agent Tool)
|
|
43
|
+
╔══════════════════════════════════════════════════════════════════╗
|
|
44
|
+
║ BEFORE USING Agent TOOL FOR 2+ AGENTS: ║
|
|
45
|
+
║ ║
|
|
46
|
+
║ 1. Is Agent Teams available? ║
|
|
47
|
+
║ YES → check criteria #2-#4 ║
|
|
48
|
+
║ NO → Proceed with Agent tool ║
|
|
49
|
+
║ ║
|
|
50
|
+
║ 2. Will 3+ agents be involved? ║
|
|
51
|
+
║ YES → use Agent Teams ║
|
|
52
|
+
║ NO → Check #3 ║
|
|
53
|
+
║ ║
|
|
54
|
+
║ 3. Is there a review → fix → re-review cycle? ║
|
|
55
|
+
║ YES → use Agent Teams ║
|
|
56
|
+
║ NO → Check #4 ║
|
|
57
|
+
║ ║
|
|
58
|
+
║ 4. Are 2+ issues being fixed in the same release batch? ║
|
|
59
|
+
║ YES → prefer Agent Teams (coordination benefit) ║
|
|
60
|
+
║ NO → Check #5 ║
|
|
61
|
+
║ ║
|
|
62
|
+
║ 5. Are tasks sequentially dependent (init/scaffold)? ║
|
|
63
|
+
║ YES → prefer Agent Tool (single agent, no coordination) ║
|
|
64
|
+
║ NO → Continue with Agent Teams ║
|
|
65
|
+
║ ║
|
|
66
|
+
║ Simple rule: 3+ agents OR review cycle → use Agent Teams ║
|
|
67
|
+
║ Sequential deps / scaffolding → Agent Tool (single agent) ║
|
|
68
|
+
║ 2+ issues in same batch → prefer Agent Teams ║
|
|
69
|
+
║ Everything else → Agent tool ║
|
|
70
|
+
╚══════════════════════════════════════════════════════════════════╝
|
|
71
|
+
-->
|
|
72
|
+
|
|
73
|
+
### Spawn Completeness Check
|
|
74
|
+
|
|
75
|
+
All members must be spawned in a single message. Partial spawning needs correction per R018 and R009.
|
|
76
|
+
|
|
77
|
+
<!-- DETAIL: Self-Check (Spawn Completeness)
|
|
78
|
+
╔══════════════════════════════════════════════════════════════════╗
|
|
79
|
+
║ BEFORE SPAWNING TEAM MEMBERS: ║
|
|
80
|
+
║ ║
|
|
81
|
+
║ 1. How many members does this team need? N = ___ ║
|
|
82
|
+
║ 2. Am I spawning ALL N members in THIS message? ║
|
|
83
|
+
║ YES → Good. Continue. ║
|
|
84
|
+
║ NO → Spawn all N members in this message before proceeding. ║
|
|
85
|
+
║ ║
|
|
86
|
+
║ Partial spawn (e.g., 1/3) = needs correction ║
|
|
87
|
+
║ Sequential spawn (one per message) = needs correction ║
|
|
88
|
+
║ All at once in single message = correct ║
|
|
89
|
+
╚══════════════════════════════════════════════════════════════════╝
|
|
90
|
+
-->
|
|
91
|
+
|
|
92
|
+
<!-- DETAIL: External Skill Conflict Resolution
|
|
93
|
+
When an external skill instructs using Agent tool but R018 criteria are met:
|
|
94
|
+
|
|
95
|
+
| Skill says | R018 requires | Resolution |
|
|
96
|
+
|------------|--------------|------------|
|
|
97
|
+
| "Use Agent tool for N tasks" | 3+ agents → Teams | Use Agent Teams, follow skill logic |
|
|
98
|
+
| "Sequential agent spawning" | Independent tasks → parallel | Parallelize per R009 |
|
|
99
|
+
| "Skip coordination" | Shared state → Teams | Use Teams for coordination |
|
|
100
|
+
|
|
101
|
+
Rule: External skills define the WORKFLOW. R018 defines the EXECUTION METHOD.
|
|
102
|
+
The skill's steps are followed, but agent spawning uses Teams when criteria are met.
|
|
103
|
+
-->
|
|
104
|
+
|
|
105
|
+
## Common Violations
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
❌ WRONG: 3+ tasks using Agent tool instead of Agent Teams
|
|
109
|
+
Agent(Explore):haiku → Analysis 1
|
|
110
|
+
Agent(Explore):haiku → Analysis 2
|
|
111
|
+
Agent(Explore):haiku → Analysis 3
|
|
112
|
+
|
|
113
|
+
✓ CORRECT: TeamCreate → spawn researchers → coordinate via shared task list
|
|
114
|
+
TeamCreate("research-team") + Agent(researcher-1/2/3) + SendMessage(coordinate)
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
<!-- DETAIL: Common Violations (full examples)
|
|
118
|
+
❌ WRONG: Agent Teams enabled, 3+ research tasks using Agent tool
|
|
119
|
+
Agent(Explore):haiku → Analysis 1
|
|
120
|
+
Agent(Explore):haiku → Analysis 2
|
|
121
|
+
Agent(Explore):haiku → Analysis 3
|
|
122
|
+
|
|
123
|
+
✓ CORRECT: TeamCreate → spawn researchers → coordinate via shared task list
|
|
124
|
+
TeamCreate("research-team")
|
|
125
|
+
Agent(researcher-1) → Analysis 1 ┐
|
|
126
|
+
Agent(researcher-2) → Analysis 2 ├─ Spawned as team members
|
|
127
|
+
Agent(researcher-3) → Analysis 3 ┘
|
|
128
|
+
SendMessage(coordinate)
|
|
129
|
+
|
|
130
|
+
❌ WRONG: Code review + fix as independent Agents
|
|
131
|
+
Agent(reviewer) → "Review code"
|
|
132
|
+
(receive result)
|
|
133
|
+
Agent(implementer) → "Fix issues"
|
|
134
|
+
(receive result)
|
|
135
|
+
Agent(reviewer) → "Re-review"
|
|
136
|
+
|
|
137
|
+
✓ CORRECT: Agent Teams for review-fix cycle
|
|
138
|
+
TeamCreate("review-fix")
|
|
139
|
+
Agent(reviewer) + Agent(implementer) → team members
|
|
140
|
+
reviewer → SendMessage(implementer, "issues found")
|
|
141
|
+
implementer → fixes → SendMessage(reviewer, "fixed")
|
|
142
|
+
reviewer → re-reviews → done
|
|
143
|
+
|
|
144
|
+
❌ WRONG: Spawning team members one at a time
|
|
145
|
+
TeamCreate("research-team")
|
|
146
|
+
Message 1: Agent(researcher-1) → Analysis 1 (only 1/3 spawned)
|
|
147
|
+
Message 2: Agent(researcher-2) → Analysis 2 (late spawn)
|
|
148
|
+
Message 3: Agent(researcher-3) → Analysis 3 (late spawn)
|
|
149
|
+
|
|
150
|
+
✓ CORRECT: All members in a single message
|
|
151
|
+
TeamCreate("research-team")
|
|
152
|
+
Single message:
|
|
153
|
+
Agent(researcher-1) → Analysis 1 ┐
|
|
154
|
+
Agent(researcher-2) → Analysis 2 ├─ ALL spawned together
|
|
155
|
+
Agent(researcher-3) → Analysis 3 ┘
|
|
156
|
+
|
|
157
|
+
❌ WRONG: Completed member modifies other member's files
|
|
158
|
+
svelte-projects completes task → browses TaskList → edits agent-teams-advisor.sh (hook-fixer's scope)
|
|
159
|
+
|
|
160
|
+
✓ CORRECT: Completed member reports and waits
|
|
161
|
+
svelte-projects completes task → SendMessage("Task complete") → waits silently
|
|
162
|
+
-->
|
|
163
|
+
|
|
164
|
+
## Cost Guidelines
|
|
165
|
+
|
|
166
|
+
| Criteria | Agent Tool | Agent Teams |
|
|
167
|
+
|----------|-----------|-------------|
|
|
168
|
+
| Agent count | 1-2 | 3+ |
|
|
169
|
+
| Inter-task dependency | None | Present |
|
|
170
|
+
| Iteration cycles | None | Present (review→fix→re-review) |
|
|
171
|
+
| Estimated duration | < 3 min | > 3 min |
|
|
172
|
+
| Shared state needed | No | Yes |
|
|
173
|
+
|
|
174
|
+
## Team Patterns
|
|
175
|
+
|
|
176
|
+
Standard: Research (researcher-1 + researcher-2 + synthesizer), Development (implementer + reviewer + tester), Debug (investigator-1 + investigator-2 + fixer).
|
|
177
|
+
Hybrid: Review+Fix, Create+Validate, Multi-Expert, Dynamic Creation, Codex Hybrid.
|
|
178
|
+
|
|
179
|
+
<!-- DETAIL: Team Patterns
|
|
180
|
+
### Standard Patterns
|
|
181
|
+
- Research: researcher-1 + researcher-2 + synthesizer
|
|
182
|
+
- Development: implementer + reviewer + tester
|
|
183
|
+
- Debug: investigator-1 + investigator-2 + fixer
|
|
184
|
+
|
|
185
|
+
### Hybrid Patterns
|
|
186
|
+
- Review+Fix: reviewer + implementer (reviewer finds issues → implementer fixes → reviewer re-checks)
|
|
187
|
+
- Create+Validate: mgr-creator + qa-engineer (create agent → validate → iterate)
|
|
188
|
+
- Multi-Expert: expert-1 + expert-2 + coordinator (cross-domain tasks requiring multiple specialties)
|
|
189
|
+
|
|
190
|
+
### Dynamic Patterns
|
|
191
|
+
- Dynamic Creation: mgr-creator + domain-expert (create new agent → immediately use for pending task)
|
|
192
|
+
- Codex Hybrid: codex-exec-agent + claude-reviewer (Codex generates → Claude reviews/refines)
|
|
193
|
+
|
|
194
|
+
### Codex-Exec Integration
|
|
195
|
+
When both Agent Teams and codex-exec are available:
|
|
196
|
+
1. Claude agent analyzes requirements
|
|
197
|
+
2. codex-exec generates implementation (Codex strength: code generation)
|
|
198
|
+
3. Claude agent reviews and refines (Claude strength: reasoning, quality)
|
|
199
|
+
4. Iterate via team messaging until quality meets standards
|
|
200
|
+
|
|
201
|
+
| Step | Agent | Model |
|
|
202
|
+
|------|-------|-------|
|
|
203
|
+
| Analysis | Claude team member | sonnet/opus |
|
|
204
|
+
| Generation | codex-exec | (Codex default) |
|
|
205
|
+
| Review | Claude team member | sonnet |
|
|
206
|
+
| Refinement | Appropriate expert | sonnet |
|
|
207
|
+
|
|
208
|
+
### Dynamic Agent Creation in Teams
|
|
209
|
+
When Agent Teams creates a new agent via mgr-creator:
|
|
210
|
+
1. Team lead identifies missing expertise
|
|
211
|
+
2. Spawns mgr-creator as team member
|
|
212
|
+
3. mgr-creator creates agent with auto-discovered skills
|
|
213
|
+
4. New agent joins team immediately
|
|
214
|
+
5. Team continues with expanded capabilities
|
|
215
|
+
-->
|
|
216
|
+
|
|
217
|
+
## Blocked Agent Behavior
|
|
218
|
+
|
|
219
|
+
When a team member is blocked: prefer Deferred spawn (no wasted tokens) > Silent wait (short waits) > Reassign (blocked >2 min).
|
|
220
|
+
Post-completion: report via SendMessage, wait silently. Do NOT browse TaskList or modify files outside scope.
|
|
221
|
+
|
|
222
|
+
<!-- DETAIL: Blocked Agent Behavior
|
|
223
|
+
| Strategy | When | Benefit |
|
|
224
|
+
|----------|------|---------|
|
|
225
|
+
| Deferred spawn | Dependency chain is clear | No wasted tokens; spawn after blocker completes |
|
|
226
|
+
| Silent wait | Agent already spawned, short wait expected | Minimal overhead |
|
|
227
|
+
| Reassign | Agent blocked >2 min with no progress | Reuse agent for unblocked work |
|
|
228
|
+
|
|
229
|
+
### Prompt Guidelines for Team Members
|
|
230
|
+
When spawning agents that may be blocked:
|
|
231
|
+
1. Include explicit instruction: "If your task is blocked, wait silently. Do NOT send periodic status messages."
|
|
232
|
+
2. Set check interval: "Check TaskList once per minute, not continuously."
|
|
233
|
+
3. Prefer deferred spawn when the dependency resolution time is unpredictable.
|
|
234
|
+
4. Post-completion instruction: "After completing your task, report via SendMessage and wait. Do NOT explore or modify files outside your scope."
|
|
235
|
+
5. Explicit scope boundary: "Your scope is limited to: {file list or directory}. Do NOT modify files outside this scope."
|
|
236
|
+
|
|
237
|
+
### Anti-Pattern: Idle Polling
|
|
238
|
+
❌ WRONG: Blocked agent sends repeated status messages
|
|
239
|
+
docker-dev: "Task #1 still pending..." (×5 messages, wasting tokens)
|
|
240
|
+
|
|
241
|
+
✓ CORRECT: Deferred spawn after dependency resolves
|
|
242
|
+
(Task #1 completes) → then spawn docker-dev for Task #3
|
|
243
|
+
|
|
244
|
+
✓ ALSO CORRECT: Silent wait with infrequent checks
|
|
245
|
+
docker-dev spawned with: "Wait silently if blocked. Check TaskList once per minute."
|
|
246
|
+
|
|
247
|
+
### Post-Completion Scope Constraint
|
|
248
|
+
| Behavior | Correct | Wrong |
|
|
249
|
+
|----------|---------|-------|
|
|
250
|
+
| Task completed | Report completion via SendMessage, wait silently | Browse TaskList for other work |
|
|
251
|
+
| No more tasks | Exit or wait for team shutdown | Explore/modify files outside original scope |
|
|
252
|
+
| See unfinished work | Report to team lead, do NOT self-assign | Edit files that belong to other members |
|
|
253
|
+
|
|
254
|
+
### Self-Check (After Task Completion)
|
|
255
|
+
╔══════════════════════════════════════════════════════════════════╗
|
|
256
|
+
║ AFTER COMPLETING YOUR ASSIGNED TASK: ║
|
|
257
|
+
║ ║
|
|
258
|
+
║ 1. Did I complete ONLY my assigned task? ║
|
|
259
|
+
║ YES → Report completion ║
|
|
260
|
+
║ NO → Revert scope-violation changes ║
|
|
261
|
+
║ ║
|
|
262
|
+
║ 2. Are there files modified outside my task scope? ║
|
|
263
|
+
║ YES → This is a violation — revert ║
|
|
264
|
+
║ NO → Good ║
|
|
265
|
+
║ ║
|
|
266
|
+
║ 3. Am I about to explore/modify files for "other tasks"? ║
|
|
267
|
+
║ YES → STOP. Report to team lead instead ║
|
|
268
|
+
║ NO → Good. Wait silently or exit ║
|
|
269
|
+
╚══════════════════════════════════════════════════════════════════╝
|
|
270
|
+
-->
|
|
271
|
+
|
|
272
|
+
## Lifecycle
|
|
273
|
+
|
|
274
|
+
```
|
|
275
|
+
TeamCreate → TaskCreate → Agent(spawn members) → SendMessage(coordinate)
|
|
276
|
+
→ TaskUpdate(progress) → ... → shutdown members → TeamDelete
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
## Fallback
|
|
280
|
+
|
|
281
|
+
When Agent Teams unavailable: use Agent tool with R009/R010 rules.
|
|
282
|
+
When Agent Teams available: actively prefer it for qualifying tasks.
|
|
283
|
+
|
|
284
|
+
## Cost Awareness
|
|
285
|
+
|
|
286
|
+
Agent Teams actively preferred for qualifying collaborative tasks. Use Agent tool only when:
|
|
287
|
+
- 1-2 agents with no inter-dependency
|
|
288
|
+
- No review → fix cycles
|
|
289
|
+
- Simple independent subtasks
|
|
290
|
+
|
|
291
|
+
Do NOT avoid Agent Teams solely for cost reasons when criteria are met.
|
|
292
|
+
|
|
293
|
+
**Active preference rule**: When Agent Teams is available, default to using it for any multi-step or multi-issue work. Only fall back to Agent tool for truly simple, single-issue tasks with no verification needs.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# [MUST] Completion Verification Rules
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R020
|
|
4
|
+
|
|
5
|
+
## Core Rule
|
|
6
|
+
|
|
7
|
+
Before declaring any task `[Done]`, verify completion against task-type-specific criteria. False completion declarations erode trust and cause downstream failures.
|
|
8
|
+
|
|
9
|
+
## Task-Type Completion Matrix
|
|
10
|
+
|
|
11
|
+
| Task Type | REQUIRED Verification Before [Done] |
|
|
12
|
+
|-----------|-------------------------------------|
|
|
13
|
+
| Release | All issues closed, version bumped, PR merged, GitHub Release created; **External automation verified**: `.github/workflows/` listed AND `gh run list --limit 10` checked for auto-publish workflows |
|
|
14
|
+
| Implementation | Code compiles/passes lint, tests pass (if exist), no TODO markers left |
|
|
15
|
+
| Documentation | Links valid, counts accurate, cross-references updated |
|
|
16
|
+
| Git Operations | Operation succeeded (check exit code), working tree clean |
|
|
17
|
+
| Code Review | All findings addressed or explicitly deferred with justification |
|
|
18
|
+
| Agent/Skill Creation | Frontmatter valid, referenced skills exist, routing updated |
|
|
19
|
+
|
|
20
|
+
## Self-Check (Before Declaring Done)
|
|
21
|
+
|
|
22
|
+
Before [Done]: (1) Verify ACTUAL outcome not just attempt — "ran command" ≠ "succeeded". (2) Check task-type criteria above. (3) No unchecked items. (4) Would bet $100 it's complete.
|
|
23
|
+
|
|
24
|
+
<!-- DETAIL: Self-Check box
|
|
25
|
+
1. Did I verify ACTUAL outcome? "I ran the command" ≠ "the command succeeded" → YES: Continue / NO: Verify first
|
|
26
|
+
2. Does task type have specific criteria? YES: Check each / NO: Apply general verification
|
|
27
|
+
3. Any unchecked items? YES: Complete or defer with reason / NO: Proceed to [Done]
|
|
28
|
+
4. Would I bet $100 this is truly complete? YES: Declare [Done] / NO: Identify uncertain and verify
|
|
29
|
+
-->
|
|
30
|
+
|
|
31
|
+
## Subagent Self-Report Verification — Verify "pre-existing" claims against base branch before acceptance. See details via Read tool.
|
|
32
|
+
|
|
33
|
+
<!-- DETAIL: Subagent Self-Report Verification
|
|
34
|
+
|
|
35
|
+
Subagents often report failures as "pre-existing", "baseline", or "unchanged". These claims MUST be verified against the base branch before acceptance.
|
|
36
|
+
|
|
37
|
+
| Subagent Claim | Required Verification |
|
|
38
|
+
|----------------|----------------------|
|
|
39
|
+
| "X test already failing on base" | `git stash && git checkout {base} && run test X && compare` |
|
|
40
|
+
| "This warning is pre-existing" | `git log -S "warning-text" {base}` or run on clean checkout |
|
|
41
|
+
| "File was unchanged" | `git diff {base}..HEAD -- {file}` |
|
|
42
|
+
| "Dependency issue not from this PR" | `git show {base}:package.json` compare |
|
|
43
|
+
|
|
44
|
+
Never accept "pre-existing" without direct base-branch evidence. A false "pre-existing" claim can mask a regression introduced by the current change.
|
|
45
|
+
-->
|
|
46
|
+
|
|
47
|
+
## Common False Completion Patterns — 7 anti-patterns including "Command executed" without exit code check, "Waiting for manual publish" when CI auto-publishes. See full table via Read tool.
|
|
48
|
+
|
|
49
|
+
<!-- DETAIL: Common False Completion Patterns
|
|
50
|
+
|
|
51
|
+
| Pattern | Reality | Fix |
|
|
52
|
+
|---------|---------|-----|
|
|
53
|
+
| "Command executed" | Exit code not checked | Check `$?` or tool output |
|
|
54
|
+
| "File created" | Content not verified | Read file back, verify content |
|
|
55
|
+
| "PR created" | CI not checked | Wait for CI, verify green |
|
|
56
|
+
| "Issue closed" | Related issues not updated | Check parent epic, cross-refs |
|
|
57
|
+
| "Tests pass" | Only ran subset | Run full test suite |
|
|
58
|
+
| "Waiting for manual publish" | External CI/CD auto-publishes on merge | Check `.github/workflows/` BEFORE assuming manual step |
|
|
59
|
+
| "Subagent said pre-existing" | Claim not verified against base branch | Run test on base branch, compare directly |
|
|
60
|
+
-->
|
|
61
|
+
|
|
62
|
+
## Completion Contract Format — [Contract] + [Done] with criterion/evidence pairs. See template via Read tool.
|
|
63
|
+
|
|
64
|
+
<!-- DETAIL: Completion Contract Format
|
|
65
|
+
|
|
66
|
+
For complex tasks, declare completion contract upfront:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
[Contract] Task: {name}
|
|
70
|
+
├── Criterion 1: {specific, verifiable condition}
|
|
71
|
+
├── Criterion 2: {specific, verifiable condition}
|
|
72
|
+
└── Criterion N: {specific, verifiable condition}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Then at completion:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
[Done] Task: {name}
|
|
79
|
+
├── ✓ Criterion 1: {evidence}
|
|
80
|
+
├── ✓ Criterion 2: {evidence}
|
|
81
|
+
└── ✓ Criterion N: {evidence}
|
|
82
|
+
```
|
|
83
|
+
-->
|
|
84
|
+
|
|
85
|
+
## Autonomous Mode Entry Checklist — 5-step inventory (workflows, runs, publish targets, manual points, cross-reference). See full checklist via Read tool.
|
|
86
|
+
|
|
87
|
+
<!-- DETAIL: Autonomous Mode Entry Checklist
|
|
88
|
+
|
|
89
|
+
When entering autonomous mode (user grants extended execution without per-step confirmation), perform this inventory BEFORE first action:
|
|
90
|
+
|
|
91
|
+
1. **Workflow inventory**: `ls .github/workflows/` — identify auto-publish, auto-tag, release, docs-sync, CI workflows
|
|
92
|
+
2. **Recent runs**: `gh run list --limit 10` — check success/failure patterns of automated workflows
|
|
93
|
+
3. **External publish targets**: Check if npm/PyPI/Docker Hub/GitHub Releases are auto-triggered on merge
|
|
94
|
+
4. **Manual intervention points**: Identify which steps require human approval vs. fully automated
|
|
95
|
+
5. **Cross-reference with task**: Which workflows will the planned work trigger?
|
|
96
|
+
|
|
97
|
+
Record findings in session context. Failure to inventory automation is a R020 violation (unknown external state = unverifiable completion).
|
|
98
|
+
|
|
99
|
+
### Cross-reference
|
|
100
|
+
|
|
101
|
+
Related memory records:
|
|
102
|
+
- `feedback_github_workflows_inventory.md` — original incident (v0.87.2~v0.88.0 session)
|
|
103
|
+
- `feedback_subagent_pre_existing_claims.md` — subagent false-positive pattern
|
|
104
|
+
-->
|
|
105
|
+
|
|
106
|
+
## Integration
|
|
107
|
+
|
|
108
|
+
| Rule | Interaction |
|
|
109
|
+
|------|-------------|
|
|
110
|
+
| R003 | [Done] status format now requires verification evidence |
|
|
111
|
+
| R010 | Orchestrator verifies subagent completion claims |
|
|
112
|
+
| R017 | Structural changes require sauron verification before [Done] |
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# [MUST] Continuous Improvement Rules
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R016 | **Trigger**: User points out rule violation
|
|
4
|
+
|
|
5
|
+
## Core Rule
|
|
6
|
+
|
|
7
|
+
When user points out a violation: update the relevant rule → commit → then continue original task.
|
|
8
|
+
|
|
9
|
+
Update the relevant rule rather than just acknowledging the violation.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. Acknowledge violation
|
|
14
|
+
2. Identify root cause (which rule was weak/unclear?)
|
|
15
|
+
3. Update the rule (add clarity, examples, self-checks)
|
|
16
|
+
4. Commit the change
|
|
17
|
+
5. Continue original task following updated rules
|
|
18
|
+
|
|
19
|
+
## Integration
|
|
20
|
+
|
|
21
|
+
| Situation | Action |
|
|
22
|
+
|-----------|--------|
|
|
23
|
+
| User points out violation | Update rule → Continue |
|
|
24
|
+
| Self-detected violation | Fix immediately, consider rule update |
|
|
25
|
+
| Ambiguous situation | Ask user, then update if needed |
|
|
26
|
+
|
|
27
|
+
## Defect Response Matrix
|
|
28
|
+
|
|
29
|
+
| Defect Type | Rule Update | Memory | Issue |
|
|
30
|
+
|-------------|:-----------:|:------:|:-----:|
|
|
31
|
+
| Rule violation (agent behavior) | ✅ | — | — |
|
|
32
|
+
| CI/infra defect | — | ✅ | ✅ |
|
|
33
|
+
| Process gap (workflow hole) | ✅ | ✅ | ✅ |
|
|
34
|
+
| Repeatable system bug | — | ✅ | ✅ |
|
|
35
|
+
| Agent selection failure (wrong agent routed) | — | ✅ | — |
|
|
36
|
+
|
|
37
|
+
When CI failure, process gap, or repeatable system defect is found:
|
|
38
|
+
1. Record feedback memory (defend current session)
|
|
39
|
+
2. Register GitHub issue (trackable improvement item)
|
|
40
|
+
3. Both required — memory alone is NOT sufficient for system-level defects
|
|
41
|
+
|
|
42
|
+
### Adaptive Harness Integration
|
|
43
|
+
|
|
44
|
+
When repeating agent failures or suboptimal routing is detected:
|
|
45
|
+
1. Record as feedback memory (immediate session defense)
|
|
46
|
+
2. Run `/omcodex:adaptive-harness --learn` to update project profile with failure patterns
|
|
47
|
+
3. Profile updates improve future agent selection and harness optimization
|
|
48
|
+
|
|
49
|
+
This connects R016's continuous improvement loop with the adaptive-harness skill's learning capability.
|
|
50
|
+
|
|
51
|
+
## Anti-Patterns — 4 patterns: "I'll update later", "one-time exception", "doesn't cover this", "finish task first". See table via Read tool.
|
|
52
|
+
|
|
53
|
+
<!-- DETAIL: Anti-Patterns
|
|
54
|
+
| Anti-Pattern | Why It's Wrong | Correct Action |
|
|
55
|
+
|-------------|----------------|----------------|
|
|
56
|
+
| "I'll update the rule later" | Deferred fixes are forgotten | Update rule NOW, before continuing |
|
|
57
|
+
| "This is a one-time exception" | Exceptions become patterns | If the rule is wrong, fix it; if it's right, follow it |
|
|
58
|
+
| "The rule doesn't cover this case" | Missing coverage = rule gap | Add the case to the rule immediately |
|
|
59
|
+
| "Let me finish the task first" | Rule violations compound | Fix rule first (5 min), then continue (prevents N future violations) |
|
|
60
|
+
-->
|
|
61
|
+
|
|
62
|
+
## Timing — Rule updates MUST happen before continuing original task, in the same session.
|
|
63
|
+
|
|
64
|
+
<!-- DETAIL: Timing
|
|
65
|
+
Rule updates MUST happen:
|
|
66
|
+
- **Before** continuing the original task
|
|
67
|
+
- **In the same session** as the violation
|
|
68
|
+
- **Not** as a separate TODO or follow-up issue
|
|
69
|
+
-->
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# [MUST] Enforcement Policy
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R021
|
|
4
|
+
|
|
5
|
+
## Core Policy
|
|
6
|
+
|
|
7
|
+
oh-my-customcodex uses an **advisory-first enforcement model**. Most rules are enforced through prompt engineering (AGENTS.md, rules/, PostCompact hook) rather than hard-blocking hooks. This is intentional — it preserves agent flexibility while maintaining behavioral standards.
|
|
8
|
+
|
|
9
|
+
## Enforcement Tiers
|
|
10
|
+
|
|
11
|
+
| Tier | Mechanism | Rules | Behavior |
|
|
12
|
+
|------|-----------|-------|----------|
|
|
13
|
+
| Hard Block | PreToolUse hook, exit 2 | stage-blocker, dev-server tmux, rule-deletion-guard | Prevents tool execution |
|
|
14
|
+
| Soft Block | Stop hook prompt | R011 session-end saves | Auto-performs then approves |
|
|
15
|
+
| Advisory | PostToolUse hooks | R007, R008, R009, R010, R018 | Warns via stderr, never blocks |
|
|
16
|
+
| Prompt-based | AGENTS.md + rules/ + PostCompact | All MUST rules | Behavioral guidance in context |
|
|
17
|
+
|
|
18
|
+
## Why Advisory-First
|
|
19
|
+
|
|
20
|
+
1. **Agent flexibility**: Hard blocks can trap agents in unrecoverable states
|
|
21
|
+
2. **Graceful degradation**: Missing dependencies (jq, etc.) don't break the session
|
|
22
|
+
3. **Composability**: External skills and internal rules can coexist without deadlocks
|
|
23
|
+
4. **PostCompact reinforcement**: R007/R008/R009/R010/R018 are re-injected after context compaction
|
|
24
|
+
|
|
25
|
+
## Hard Enforcement Candidates — R010 git-delegation-guard (conditional), R007/R008 (conditional). Promoted: rule-deletion-guard.sh (2026-04-08). See details via Read tool.
|
|
26
|
+
|
|
27
|
+
<!-- DETAIL: Hard Enforcement Candidates (Future)
|
|
28
|
+
If advisory enforcement proves insufficient for specific rules, these are candidates for promotion to hard-block:
|
|
29
|
+
|
|
30
|
+
| Rule | Candidate Hook | Condition for Promotion |
|
|
31
|
+
|------|---------------|------------------------|
|
|
32
|
+
| R010 | git-delegation-guard.sh | If orchestrator-direct-write violations exceed 3/session |
|
|
33
|
+
| R007/R008 | (new hook) | If identification omission rate exceeds 20% |
|
|
34
|
+
|
|
35
|
+
Promotion requires: (1) measured violation rate data, (2) user approval, (3) rollback plan.
|
|
36
|
+
|
|
37
|
+
### Promoted to Hard Block
|
|
38
|
+
|
|
39
|
+
| Hook | Date | Justification |
|
|
40
|
+
|------|------|---------------|
|
|
41
|
+
| `rule-deletion-guard.sh` | 2026-04-08 | User-requested: rule files must require individual confirmation before deletion. Prevents accidental bulk deletion of project rules. |
|
|
42
|
+
-->
|
|
43
|
+
|
|
44
|
+
## Integration
|
|
45
|
+
|
|
46
|
+
| Rule | Interaction |
|
|
47
|
+
|------|-------------|
|
|
48
|
+
| R010 | git-delegation-guard.sh is advisory; could promote to blocking |
|
|
49
|
+
| R016 | Violations trigger rule updates, not enforcement changes |
|
|
50
|
+
| PostCompact | Re-injects critical rules to combat context compaction amnesia |
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# [MUST] Intent Transparency Rules
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R015
|
|
4
|
+
|
|
5
|
+
## Core Rule
|
|
6
|
+
|
|
7
|
+
Display reasoning when routing to agents. Users must always know which agent was selected, why, and how to override.
|
|
8
|
+
|
|
9
|
+
## Display Format
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
[Intent Detected]
|
|
13
|
+
├── Input: "{user input}"
|
|
14
|
+
├── Agent: {detected-agent}
|
|
15
|
+
├── Confidence: {percentage}%
|
|
16
|
+
└── Reason: {explanation}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Confidence Thresholds
|
|
20
|
+
|
|
21
|
+
| Confidence | Action |
|
|
22
|
+
|------------|--------|
|
|
23
|
+
| >= 90% | Auto-execute with display |
|
|
24
|
+
| 70-89% | Request confirmation, show alternatives |
|
|
25
|
+
| < 70% | List options for user to choose |
|
|
26
|
+
|
|
27
|
+
## Detection Factors — Weights: Keywords 40%, File patterns 30%, Action verbs 20%, Context 10%. See table via Read tool.
|
|
28
|
+
|
|
29
|
+
<!-- DETAIL: Detection Factors
|
|
30
|
+
| Factor | Weight | Examples |
|
|
31
|
+
|--------|--------|---------|
|
|
32
|
+
| Keywords | 40% | "Go", "Python", "리뷰" |
|
|
33
|
+
| File patterns | 30% | "*.go", "main.py" |
|
|
34
|
+
| Action verbs | 20% | "review", "create", "fix" |
|
|
35
|
+
| Context | 10% | Previous agent, working directory |
|
|
36
|
+
-->
|
|
37
|
+
|
|
38
|
+
## Override
|
|
39
|
+
|
|
40
|
+
Users can specify agent directly with `@{agent-name} {command}`. Override bypasses detection.
|
|
41
|
+
|
|
42
|
+
## User Directive Persistence — Named tool/skill/workflow preferences persist entire session. Anti-pattern: treating autonomous mode as clean slate. See full spec via Read tool.
|
|
43
|
+
|
|
44
|
+
<!-- DETAIL: User Directive Persistence
|
|
45
|
+
When a user explicitly names a tool, skill, or workflow (e.g., "use /pipeline auto-dev", "always run tests with bun test"), this preference persists for the entire session — including after autonomous mode transitions.
|
|
46
|
+
|
|
47
|
+
### Persistence Triggers
|
|
48
|
+
|
|
49
|
+
| User Statement Pattern | Persistence Scope |
|
|
50
|
+
|------------------------|-------------------|
|
|
51
|
+
| "use X for development" | Entire session |
|
|
52
|
+
| "always / every time" | Entire session |
|
|
53
|
+
| "from now on" | Entire session + memory save candidate |
|
|
54
|
+
| "for this task" | Current task only |
|
|
55
|
+
| Named slash command | Subsequent similar invocations |
|
|
56
|
+
|
|
57
|
+
### Cycle Start Self-Check
|
|
58
|
+
|
|
59
|
+
At the start of every work cycle (issue, task, release, or autonomous sub-loop):
|
|
60
|
+
1. Review recent user messages in the conversation
|
|
61
|
+
2. Identify any named tool/skill/workflow directives
|
|
62
|
+
3. Apply those directives unless explicitly rescinded
|
|
63
|
+
4. If unsure whether a directive applies, default to the stated preference
|
|
64
|
+
|
|
65
|
+
**Anti-pattern**: Treating autonomous mode as a clean slate that discards earlier user preferences. Autonomous mode means "continue without per-step confirmation" — NOT "reset user directives".
|
|
66
|
+
|
|
67
|
+
### Cross-reference
|
|
68
|
+
|
|
69
|
+
- Related memory: session v0.87.2~v0.88.0 (issue #869) — `/pipeline auto-dev` preference was lost after autonomous mode transition
|
|
70
|
+
-->
|
|
71
|
+
|
|
72
|
+
## Agent Triggers
|
|
73
|
+
|
|
74
|
+
Defined in `.codex/skills/intent-detection/patterns/agent-triggers.yaml`. Each agent has keywords, file patterns, actions, and base confidence.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# [MUST] Language & Delegation Policy
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R000
|
|
4
|
+
|
|
5
|
+
## Output Language
|
|
6
|
+
|
|
7
|
+
| Context | Language |
|
|
8
|
+
|---------|----------|
|
|
9
|
+
| User communication | Korean |
|
|
10
|
+
| Code, file contents, commits | English |
|
|
11
|
+
| Error messages to user | Korean |
|
|
12
|
+
| PR title/body, GitHub issues | Korean (default, overridable in project AGENTS.md) |
|
|
13
|
+
|
|
14
|
+
## Delegation Model
|
|
15
|
+
|
|
16
|
+
User delegates ALL file operations to AI agent. User does NOT directly edit files.
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
User -> (Korean prompt) -> Agent -> (file operations in English)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## File Naming
|
|
23
|
+
|
|
24
|
+
| Type | Convention | Example |
|
|
25
|
+
|------|------------|---------|
|
|
26
|
+
| Rules | `{PRIORITY}-{name}.md` | `MUST-safety.md` |
|
|
27
|
+
| Agents | `{name}.md` (kebab-case) | `lang-golang-expert.md` |
|
|
28
|
+
| Skills | `SKILL.md` | - |
|