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,340 @@
|
|
|
1
|
+
# [MUST] Agent Design Rules
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R006
|
|
4
|
+
|
|
5
|
+
## Agent File Format
|
|
6
|
+
|
|
7
|
+
Location: `.codex/agents/{name}.md` (single file, kebab-case)
|
|
8
|
+
|
|
9
|
+
### Required Frontmatter
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
name: agent-name # Unique identifier (kebab-case)
|
|
13
|
+
description: Brief desc # One-line summary
|
|
14
|
+
model: sonnet # sonnet | opus | haiku | opusplan (or full ID: claude-sonnet-4-6, claude-opus-4-6[1m])
|
|
15
|
+
tools: [Read, Write, ...] # Allowed tools
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Model Aliases
|
|
19
|
+
|
|
20
|
+
| Alias | Full ID | Use Case |
|
|
21
|
+
|-------|---------|----------|
|
|
22
|
+
| `haiku` | claude-haiku-4-5 | Fast, cheap tasks (search, simple edits) |
|
|
23
|
+
| `sonnet` | claude-sonnet-4-6 | General tasks, code generation (default) |
|
|
24
|
+
| `opus` | claude-opus-4-6 | Complex reasoning, architecture |
|
|
25
|
+
| `opusplan` | claude-opus-4-6 + plan mode | Architecture planning with approval gates |
|
|
26
|
+
| `opus47` | claude-opus-4-7 | Latest Opus model, supports xhigh effort |
|
|
27
|
+
|
|
28
|
+
Extended context suffix: `[1m]` (e.g., `claude-opus-4-6[1m]`) — enables 1M token context window.
|
|
29
|
+
|
|
30
|
+
### Optional Frontmatter
|
|
31
|
+
|
|
32
|
+
```yaml
|
|
33
|
+
memory: project # user | project | local
|
|
34
|
+
effort: high # low | medium | high | xhigh | default | max
|
|
35
|
+
skills: [skill-1, ...] # Skill name references
|
|
36
|
+
source: # For external agents
|
|
37
|
+
type: external
|
|
38
|
+
origin: github | npm
|
|
39
|
+
url: https://...
|
|
40
|
+
version: 1.0.0
|
|
41
|
+
escalation: # Model escalation policy (optional)
|
|
42
|
+
enabled: true # Enable auto-escalation advisory
|
|
43
|
+
path: haiku → sonnet → opus # Escalation sequence
|
|
44
|
+
threshold: 2 # Failures before advisory
|
|
45
|
+
soul: true # Enable SOUL.md identity injection
|
|
46
|
+
isolation: worktree | sandbox # worktree = git worktree, sandbox = restricted bash
|
|
47
|
+
sandboxFailIfUnavailable: true # Exit if sandbox unavailable (v2.1.83+)
|
|
48
|
+
background: true # Run in background
|
|
49
|
+
maxTurns: 10 # Max conversation turns
|
|
50
|
+
maxTokens: 100000 # Per-turn token ceiling
|
|
51
|
+
mcpServers: [server-1] # MCP servers available
|
|
52
|
+
hooks: # Agent-specific hooks
|
|
53
|
+
PreToolUse:
|
|
54
|
+
- matcher: "Edit"
|
|
55
|
+
if: "Edit(*.md)" # Conditional filter (permission rule syntax, v2.1.85+)
|
|
56
|
+
command: "echo hook"
|
|
57
|
+
permissionMode: bypassPermissions # Permission mode
|
|
58
|
+
disallowedTools: [Bash] # Tools to disallow
|
|
59
|
+
limitations: # Negative capability declarations
|
|
60
|
+
- "cannot execute tests"
|
|
61
|
+
- "cannot modify code"
|
|
62
|
+
domain: backend # backend | frontend | data-engineering | devops | universal
|
|
63
|
+
disableSkillShellExecution: true # Disable inline shell execution in skills (v2.1.91+)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
> **Note**: When `disableSkillShellExecution` is enabled (v2.1.91+), skills that rely on inline shell execution (e.g., `codex-exec`, `gemini-exec`, `rtk-exec`) will have their shell blocks disabled. This is a security hardening option.
|
|
67
|
+
|
|
68
|
+
> **Note**: Optional frontmatter fields supported since CC v2.1.63+. Version-specific features listed in HTML comment below — access via Read tool.
|
|
69
|
+
|
|
70
|
+
<!-- DETAIL: CC Version Compatibility History
|
|
71
|
+
`isolation`, `background`, `maxTurns`, `maxTokens`, `mcpServers`, `hooks`, `permissionMode`, `disallowedTools`, `limitations` are supported in Claude Code v2.1.63+. Hook types `PostCompact`, `Elicitation`, `ElicitationResult` require v2.1.76+. `CwdChanged`, `FileChanged` hook events and `managed-settings.d/` drop-in directory require v2.1.83+. Conditional `if` field for hooks requires v2.1.85+. `PermissionDenied` hook event requires v2.1.88+. `refreshInterval` setting for status line auto-refresh interval added in v2.1.97+. Monitor tool and subprocess sandboxing (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`, `CLAUDE_CODE_SCRIPT_CAPS`) added in v2.1.98+. Settings resilience (unrecognized hook event names no longer cause settings.json to be ignored) improved in v2.1.101+. PreCompact hook block support (exit 2 / `{"decision":"block"}`) added in v2.1.105+. Skill description listing cap raised from 250 to 1,536 characters in v2.1.105+. Plugin `monitors` manifest key for background monitors added in v2.1.105+. `ENABLE_PROMPT_CACHING_1H` and `FORCE_PROMPT_CACHING_5M` env vars for prompt cache TTL control added in v2.1.108+. Skill tool can now discover and invoke built-in slash commands (`/init`, `/review`, `/security-review`) in v2.1.108+. `/recap` session context feature and `/undo` alias for `/rewind` added in v2.1.108+. `/tui` command and `tui` setting for fullscreen rendering added in v2.1.110+. PushNotification tool for mobile push notifications (Remote Control + config required) added in v2.1.110+. `autoScrollEnabled` config for fullscreen mode added in v2.1.110+. SDK/headless `TRACEPARENT`/`TRACESTATE` distributed trace linking added in v2.1.110+. Bash tool maximum timeout enforcement added in v2.1.110+. Write tool IDE diff feedback (informs model when user edits proposed content) added in v2.1.110+. `--resume`/`--continue` now resurrects unexpired scheduled tasks in v2.1.110+. `/focus` command (separated from Ctrl+O) added in v2.1.110+. `xhigh` effort level for Opus 4.7 (between `high` and `max`; other models fall back to `high`) added in v2.1.111+. `/effort` interactive slider with arrow-key navigation (when called without arguments) added in v2.1.111+. Auto mode no longer requires `--enable-auto-mode` in v2.1.111+. PowerShell tool progressive rollout (`CLAUDE_CODE_USE_POWERSHELL_TOOL` env var) added in v2.1.111+. Read-only bash commands with glob patterns (`ls *.ts`) and `cd <project-dir> &&` prefix no longer trigger permission prompt in v2.1.111+. `/less-permission-prompts` built-in skill for permission allowlist scanning added in v2.1.111+. `/ultrareview` parallel multi-agent cloud code review added in v2.1.111+. `/skills` menu sorting by estimated token count (press `t`) added in v2.1.111+. `OTEL_LOG_RAW_API_BODIES` env var for full API request/response body logging added in v2.1.111+. Plan files named after prompt content (not random words) in v2.1.111+. Plugin error handling improvements (dependency conflict errors, stale version recovery, install recovery) in v2.1.111+.
|
|
72
|
+
`sandbox.network.deniedDomains` setting for domain blocking within `allowedDomains` wildcards added in v2.1.113+. Subagent mid-stream stall detection with auto-fail after 10 minutes added in v2.1.113+. Bash `find -exec`/`-delete` no longer auto-approved under `Bash(find:*)` allow rules in v2.1.113+. Bash deny rules now match exec wrappers (`env`/`sudo`/`watch`/`ionice`/`setsid`) in v2.1.113+. Native binary spawning (per-platform optional dependency) replaces bundled JavaScript in v2.1.113+. `/loop` Esc now cancels pending wakeups in v2.1.113+.
|
|
73
|
+
-->
|
|
74
|
+
|
|
75
|
+
## Hook Event Types
|
|
76
|
+
|
|
77
|
+
27 event types documented: SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PermissionDenied, PostToolUse, PostToolUseFailure, Notification, SubagentStart, SubagentStop, TaskCreated, TaskCompleted, Stop, StopFailure, TeammateIdle, InstructionsLoaded, ConfigChange, CwdChanged, FileChanged, WorktreeCreate, WorktreeRemove, PreCompact, PostCompact, Elicitation, ElicitationResult, PostMessage, SessionEnd. 4 handler types: command, prompt, http, agent. See full reference table via Read tool.
|
|
78
|
+
|
|
79
|
+
<!-- DETAIL: Hook Event Types Full Reference
|
|
80
|
+
|
|
81
|
+
| Event | Trigger | Data Available | Handler Types | CC Version |
|
|
82
|
+
|-------|---------|---------------|---------------|------------|
|
|
83
|
+
| `PreToolUse` | Before tool execution | tool, tool_input | command, prompt | v2.1.63+ |
|
|
84
|
+
| `PermissionRequest` | Permission dialog shown | tool_name, tool_input, permission_context | command, prompt | v2.1.113+ |
|
|
85
|
+
| `PermissionDenied` | Auto-mode classifier denies tool use | tool, tool_input, denial_reason | command, prompt | v2.1.88+ |
|
|
86
|
+
| `PostToolUse` | After tool execution | tool, tool_input, tool_output | command, prompt | v2.1.63+ |
|
|
87
|
+
| `PostToolUseFailure` | After tool execution fails | tool, tool_input, error | command, prompt | v2.1.113+ |
|
|
88
|
+
| `PreCompact` | Before context compaction | — | command, prompt | v2.1.76+ |
|
|
89
|
+
| `PostCompact` | After context compaction | — | command, prompt | v2.1.76+ |
|
|
90
|
+
| `Stop` | Session ending | — | command, prompt | v2.1.63+ |
|
|
91
|
+
| `StopFailure` | Turn ends with API error | error, error_details | command, prompt | v2.1.113+ |
|
|
92
|
+
| `SessionStart` | Session begins | — | command | v2.1.63+ |
|
|
93
|
+
| `SessionEnd` | Session fully closes | — | command | v2.1.76+ |
|
|
94
|
+
| `SubagentStart` | Subagent spawned | agent_type, model, description | command | v2.1.63+ |
|
|
95
|
+
| `SubagentStop` | Subagent completed | agent_type, model, result | command, prompt | v2.1.63+ |
|
|
96
|
+
| `UserPromptSubmit` | User submits prompt | user_input | command, prompt | v2.1.76+ |
|
|
97
|
+
| `Notification` | Long-running op completes | message | command | v2.1.76+ |
|
|
98
|
+
| `InstructionsLoaded` | AGENTS/CLAUDE/rules file loaded | path, source | command | v2.1.113+ |
|
|
99
|
+
| `ConfigChange` | Config file changed during session | path, scope | command | v2.1.113+ |
|
|
100
|
+
| `CwdChanged` | Working directory changes | old_cwd, new_cwd | command | v2.1.83+ |
|
|
101
|
+
| `FileChanged` | External file modification | file_path, change_type | command | v2.1.83+ |
|
|
102
|
+
| `WorktreeCreate` | Worktree is being created | worktree_path | command | v2.1.113+ |
|
|
103
|
+
| `WorktreeRemove` | Worktree is being removed | worktree_path | command | v2.1.113+ |
|
|
104
|
+
| `Elicitation` | Agent requests user input | question | command, prompt | v2.1.76+ |
|
|
105
|
+
| `ElicitationResult` | User responds to elicitation | answer | command, prompt | v2.1.76+ |
|
|
106
|
+
| `PostMessage` | After message sent | message_type | command | v2.1.76+ |
|
|
107
|
+
| `TeammateIdle` | Agent Teams member idle | teammate_id | command | v2.1.83+ |
|
|
108
|
+
| `TaskCreated` | Task created | task_id, description | command | v2.1.83+ |
|
|
109
|
+
| `TaskCompleted` | Task completed | task_id, result | command | v2.1.83+ |
|
|
110
|
+
|
|
111
|
+
### Hook Handler Types
|
|
112
|
+
|
|
113
|
+
| Type | Behavior | Use Case |
|
|
114
|
+
|------|----------|----------|
|
|
115
|
+
| `command` | Execute shell command, stdin receives JSON context | Scripts, validation, logging |
|
|
116
|
+
| `prompt` | Inject text into model context | Rule reinforcement, advisory guidance |
|
|
117
|
+
| `http` | POST to HTTP endpoint | External integrations, webhooks |
|
|
118
|
+
| `agent` | Spawn agent to handle event | Complex event-driven workflows |
|
|
119
|
+
|
|
120
|
+
### PreToolUse Hook Return Values
|
|
121
|
+
|
|
122
|
+
| Return | Behavior | CC Version |
|
|
123
|
+
|--------|----------|------------|
|
|
124
|
+
| `exit 0` | Allow tool execution | All |
|
|
125
|
+
| `exit 1` | Block silently | All |
|
|
126
|
+
| `exit 2` + stderr | Block with message | All |
|
|
127
|
+
| `{"decision": "defer"}` | Pause execution; resume with `-p --resume` | v2.1.89+ |
|
|
128
|
+
|
|
129
|
+
The `defer` decision allows headless sessions to pause at a tool call for human review.
|
|
130
|
+
|
|
131
|
+
### PreCompact Hook Return Values
|
|
132
|
+
|
|
133
|
+
| Return | Behavior | CC Version |
|
|
134
|
+
|--------|----------|------------|
|
|
135
|
+
| `exit 0` | Allow compaction | All |
|
|
136
|
+
| `exit 2` + stderr | Block compaction with message | v2.1.105+ |
|
|
137
|
+
| `{"decision": "block"}` | Block compaction (JSON response) | v2.1.105+ |
|
|
138
|
+
|
|
139
|
+
PreCompact hooks can now prevent context compaction, useful for preserving critical context during multi-step workflows.
|
|
140
|
+
|
|
141
|
+
### Hook Matcher Syntax
|
|
142
|
+
|
|
143
|
+
```yaml
|
|
144
|
+
hooks:
|
|
145
|
+
PreToolUse:
|
|
146
|
+
- matcher: "tool == \"Edit\"" # Match specific tool
|
|
147
|
+
if: "Edit(*.md)" # Conditional filter (v2.1.85+)
|
|
148
|
+
command: "echo hook"
|
|
149
|
+
- matcher: "*" # Match all
|
|
150
|
+
command: "echo hook"
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
> **v2.1.85+**: `if` field supports permission rule syntax for conditional hook execution. **v2.1.88** extended `if` matching to support compound commands (`ls && git push`) and commands with env-var prefixes (`FOO=bar git push`).
|
|
154
|
+
-->
|
|
155
|
+
|
|
156
|
+
## Permission Mode Guidance
|
|
157
|
+
|
|
158
|
+
When spawning agents via the Agent tool, CC applies a default `mode` of `acceptEdits` if not explicitly specified. To maintain consistent permission behavior:
|
|
159
|
+
|
|
160
|
+
1. **Agent frontmatter `permissionMode`**: Declares the agent's intended permission level. CC respects this when the agent is spawned via Agent tool.
|
|
161
|
+
2. **Agent tool `mode` parameter**: Overrides frontmatter at spawn time. Routing skills should pass this explicitly.
|
|
162
|
+
3. **Recommendation**: For agents that modify files, set `permissionMode: bypassPermissions` in frontmatter if the project uses `bypassPermissions` mode.
|
|
163
|
+
|
|
164
|
+
| Mode | Behavior |
|
|
165
|
+
|------|----------|
|
|
166
|
+
| `default` | CC decides per-tool prompting |
|
|
167
|
+
| `acceptEdits` | Auto-accept file edits, prompt for others |
|
|
168
|
+
| `bypassPermissions` | Skip all permission prompts |
|
|
169
|
+
| `plan` | Require plan approval |
|
|
170
|
+
| `dontAsk` | Non-interactive, deny unapproved |
|
|
171
|
+
| `auto` | AI decides safety |
|
|
172
|
+
|
|
173
|
+
<!-- DETAIL: Isolation/Token/Limitations/Escalation details
|
|
174
|
+
### Isolation Modes
|
|
175
|
+
|
|
176
|
+
| Mode | Behavior | Use Case |
|
|
177
|
+
|------|----------|----------|
|
|
178
|
+
| `worktree` | Isolated git worktree copy | Code changes that need rollback safety |
|
|
179
|
+
| `sandbox` | Restricted Bash environment | Agents running untrusted or scan commands |
|
|
180
|
+
|
|
181
|
+
When `isolation: sandbox` is set, the agent's Bash calls run with restricted permissions. This is advisory metadata — enforcement depends on the execution environment.
|
|
182
|
+
|
|
183
|
+
### Token Ceiling
|
|
184
|
+
|
|
185
|
+
When `maxTokens` is set, it serves as advisory metadata for the orchestrator to manage agent turn budgets. The orchestrator should track output and consider escalation or task splitting when an agent approaches its ceiling.
|
|
186
|
+
|
|
187
|
+
### Negative Capabilities (Limitations)
|
|
188
|
+
|
|
189
|
+
The `limitations` field declares what an agent explicitly CANNOT or SHOULD NOT do. This enables:
|
|
190
|
+
1. **Clearer routing**: Orchestrator knows agent boundaries
|
|
191
|
+
2. **Safer delegation**: Prevents accidental capability overreach
|
|
192
|
+
3. **Better documentation**: Makes agent scope explicit
|
|
193
|
+
|
|
194
|
+
### Escalation Policy
|
|
195
|
+
|
|
196
|
+
When `escalation.enabled: true`, the model-escalation hooks will track outcomes for this agent type and advise escalation when failures exceed the threshold. This is advisory-only — the orchestrator decides whether to accept the recommendation.
|
|
197
|
+
|
|
198
|
+
| Field | Default | Description |
|
|
199
|
+
|-------|---------|-------------|
|
|
200
|
+
| `enabled` | false | Enable escalation tracking for this agent |
|
|
201
|
+
| `path` | haiku → sonnet → opus | Model upgrade sequence |
|
|
202
|
+
| `threshold` | 2 | Failure count before escalation advisory |
|
|
203
|
+
-->
|
|
204
|
+
|
|
205
|
+
## Memory Scopes
|
|
206
|
+
|
|
207
|
+
| Scope | Location | Git Tracked |
|
|
208
|
+
|-------|----------|-------------|
|
|
209
|
+
| `user` | `~/.codex/agent-memory/<name>/` | No |
|
|
210
|
+
| `project` | `.codex/agent-memory/<name>/` | Yes |
|
|
211
|
+
| `local` | `.codex/agent-memory-local/<name>/` | No |
|
|
212
|
+
|
|
213
|
+
When enabled: first 200 lines of MEMORY.md loaded into system prompt.
|
|
214
|
+
|
|
215
|
+
## Soul Identity
|
|
216
|
+
|
|
217
|
+
Optional per-agent identity layer. `soul: true` in frontmatter enables personality/style via `.codex/agents/souls/{name}.soul.md`. Behavioral memory (R011) overrides soul defaults.
|
|
218
|
+
|
|
219
|
+
<!-- DETAIL: Soul Identity full spec
|
|
220
|
+
| Aspect | Location | Purpose |
|
|
221
|
+
|--------|----------|---------|
|
|
222
|
+
| Capabilities | `.codex/agents/{name}.md` | WHAT the agent does |
|
|
223
|
+
| Identity | `.codex/agents/souls/{name}.soul.md` | HOW the agent communicates |
|
|
224
|
+
|
|
225
|
+
### Soul File Format: agent: {name}, version: 1.0.0 — Sections: Personality, Style, Anti-patterns
|
|
226
|
+
### Activation: frontmatter soul:true → routing skill reads souls/{name}.soul.md at spawn (Step 5) → prepend to prompt → missing file = graceful fallback
|
|
227
|
+
-->
|
|
228
|
+
|
|
229
|
+
## Artifact Output Convention
|
|
230
|
+
|
|
231
|
+
Skills persist output to `.codex/outputs/sessions/{YYYY-MM-DD}/{skill-name}-{HHmmss}.md`. Opt-in, git-untracked. Final subagent writes (R010).
|
|
232
|
+
|
|
233
|
+
<!-- DETAIL: Artifact Output full spec
|
|
234
|
+
**Format**: Metadata header with `skill`, `date`, `query` fields, followed by skill output content.
|
|
235
|
+
**Rules**: Opt-in per skill, final subagent writes (R010 compliance), Skills create directory (mkdir -p), .codex/outputs/ is git-untracked, no indexing required.
|
|
236
|
+
-->
|
|
237
|
+
|
|
238
|
+
## Separation of Concerns
|
|
239
|
+
|
|
240
|
+
| Location | Purpose | Contains |
|
|
241
|
+
|----------|---------|----------|
|
|
242
|
+
| `.codex/agents/` | WHAT the agent does | Role, capabilities, workflow |
|
|
243
|
+
| `.codex/skills/` | HOW to do tasks | Instructions, scripts, rules |
|
|
244
|
+
| `guides/` | Reference docs | Best practices, tutorials |
|
|
245
|
+
|
|
246
|
+
Agent body: purpose, capabilities overview, workflow. NOT detailed instructions or reference docs.
|
|
247
|
+
|
|
248
|
+
## Fast Mode
|
|
249
|
+
|
|
250
|
+
Fast Mode uses the same model with faster output. Activated via `/fast` toggle or `fastMode` setting. Does NOT switch to a different model.
|
|
251
|
+
|
|
252
|
+
| Aspect | Normal | Fast Mode |
|
|
253
|
+
|--------|--------|-----------|
|
|
254
|
+
| Model | As configured | Same model |
|
|
255
|
+
| Output speed | Standard | ~2.5x faster |
|
|
256
|
+
| Reasoning depth | Full | Reduced |
|
|
257
|
+
|
|
258
|
+
### Activation
|
|
259
|
+
|
|
260
|
+
- `/fast` — toggle in current session
|
|
261
|
+
- `fastMode: true` in settings.json
|
|
262
|
+
- `CLAUDE_CODE_DISABLE_FAST_MODE=1` — env var to disable
|
|
263
|
+
|
|
264
|
+
### Interaction with Effort
|
|
265
|
+
|
|
266
|
+
When Fast Mode is active, it reduces effective reasoning depth but does NOT override the `effort` frontmatter field. The effort field controls task complexity allocation; Fast Mode controls output generation speed.
|
|
267
|
+
|
|
268
|
+
### Default Effort Change (CC v2.1.94+)
|
|
269
|
+
|
|
270
|
+
Starting with Claude Code v2.1.94, the default effort level changed from `medium` to `high` for API-key, Bedrock/Vertex/Foundry, Team, and Enterprise users. Console (free-tier) users retain `medium` as the default.
|
|
271
|
+
|
|
272
|
+
This means agents WITHOUT an explicit `effort` field now run at `high` effort by default on paid tiers. To maintain previous behavior, set `effort: medium` explicitly in agent frontmatter.
|
|
273
|
+
|
|
274
|
+
## Skill Frontmatter
|
|
275
|
+
|
|
276
|
+
Location: `.codex/skills/{name}/SKILL.md`
|
|
277
|
+
|
|
278
|
+
### Required Fields
|
|
279
|
+
|
|
280
|
+
```yaml
|
|
281
|
+
name: skill-name # Unique identifier (kebab-case)
|
|
282
|
+
description: Brief desc # One-line summary
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Optional Fields
|
|
286
|
+
|
|
287
|
+
```yaml
|
|
288
|
+
scope: core # core | harness | package (default: core)
|
|
289
|
+
context: fork # Forked context for isolated execution
|
|
290
|
+
version: 1.0.0 # Semantic version
|
|
291
|
+
user-invocable: false # Whether user can invoke directly
|
|
292
|
+
disable-model-invocation: true # Prevent model from auto-invoking
|
|
293
|
+
effort: medium # low | medium | high | default | max — overrides model effort level when invoked
|
|
294
|
+
argument-hint: "<arg> [--flag]" # CLI-style usage hint displayed in /help and command listings
|
|
295
|
+
model: sonnet # Override spawned model when skill is invoked via Agent
|
|
296
|
+
agent: mgr-creator # Preferred agent to execute this skill
|
|
297
|
+
hooks: # Skill-specific hooks (same syntax as agent hooks)
|
|
298
|
+
PreToolUse:
|
|
299
|
+
- matcher: "Bash"
|
|
300
|
+
command: "echo hook"
|
|
301
|
+
paths: ["src/**/*.ts"] # Conditional loading — skill auto-injected when matching files are open
|
|
302
|
+
shell: "bash" # Shell for embedded script execution
|
|
303
|
+
allowed-tools: [Read, Write, Bash] # Restrict tools available during skill execution
|
|
304
|
+
keep-coding-instructions: true # Preserve coding instructions in plugin output styles (v2.1.94+)
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
When both an agent and its invoked skill specify `effort`, the skill's value takes precedence (more specific invocation-time setting).
|
|
308
|
+
|
|
309
|
+
<!-- DETAIL: Skill Effectiveness Tracking
|
|
310
|
+
Skills can optionally track effectiveness metrics via auto-populated fields:
|
|
311
|
+
effectiveness.invocations, effectiveness.success_rate (0.0-1.0), effectiveness.last_invoked (ISO-8601)
|
|
312
|
+
Read-only from skill perspective — sys-memory-keeper updates at session end via task-outcome-recorder data.
|
|
313
|
+
-->
|
|
314
|
+
|
|
315
|
+
## Skill Scope
|
|
316
|
+
|
|
317
|
+
| Scope | Purpose | Deployed via init? |
|
|
318
|
+
|-------|---------|-------------------|
|
|
319
|
+
| `core` | Universal development tools | Yes |
|
|
320
|
+
| `harness` | Agent/skill/rule maintenance | Yes |
|
|
321
|
+
| `package` | Package-specific (npm publish, etc.) | No |
|
|
322
|
+
|
|
323
|
+
Default: `core` (when field is omitted)
|
|
324
|
+
|
|
325
|
+
### Context Fork Criteria
|
|
326
|
+
|
|
327
|
+
Use `context: fork` for multi-agent orchestration skills only. Cap: **12 total**. Current: 12/12 (secretary/dev-lead/de-lead/qa-lead-routing, dag-orchestration, task-decomposition, worker-reviewer-pipeline, pipeline-guards, deep-plan, professor-triage, evaluator-optimizer, sauron-watch).
|
|
328
|
+
|
|
329
|
+
<!-- DETAIL: Context Fork decision table
|
|
330
|
+
| Use context:fork | Do NOT use context:fork |
|
|
331
|
+
| Routing skills, Workflow orchestration (DAG), Multi-agent coordination, Task decomposition | Best-practices skills, Hook/command skills, Single-agent reference, External tool integrations |
|
|
332
|
+
-->
|
|
333
|
+
|
|
334
|
+
## Naming
|
|
335
|
+
|
|
336
|
+
| Type | Pattern | Example |
|
|
337
|
+
|------|---------|---------|
|
|
338
|
+
| Agent file | `kebab-case.md` | `fe-vercel-agent.md` |
|
|
339
|
+
| Skill dir | `kebab-case/` | `react-best-practices/` |
|
|
340
|
+
| Skill file | UPPERCASE | `SKILL.md` |
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# [MUST] Agent Identification Rules
|
|
2
|
+
|
|
3
|
+
> **Priority**: MUST | **ID**: R007
|
|
4
|
+
|
|
5
|
+
## Core Rule
|
|
6
|
+
|
|
7
|
+
Every response MUST start with agent identification:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
┌─ Agent: {agent-name} ({agent-type})
|
|
11
|
+
├─ Skill: {skill-name} (if applicable)
|
|
12
|
+
└─ Task: {brief-task-description}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Default (no specific agent): `┌─ Agent: claude (default)`
|
|
16
|
+
|
|
17
|
+
## Simplified Format
|
|
18
|
+
|
|
19
|
+
For brief responses: `[mgr-creator] Creating agent structure...`
|
|
20
|
+
With skill: `[fe-vercel-agent → react-best-practices] Analyzing...`
|
|
21
|
+
|
|
22
|
+
## Routing & Skill Context
|
|
23
|
+
|
|
24
|
+
When the orchestrator uses a routing skill, identification should reflect the active context:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
┌─ Agent: claude (secretary-routing)
|
|
28
|
+
├─ Skill: secretary-routing
|
|
29
|
+
└─ Task: route agent management request
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
| Context | Identification |
|
|
33
|
+
|---------|---------------|
|
|
34
|
+
| No routing active | `claude (default)` |
|
|
35
|
+
| secretary-routing | `claude (secretary-routing)` |
|
|
36
|
+
| dev-lead-routing | `claude (dev-lead-routing)` |
|
|
37
|
+
| de-lead-routing | `claude (de-lead-routing)` |
|
|
38
|
+
| qa-lead-routing | `claude (qa-lead-routing)` |
|
|
39
|
+
| Skill invocation | `claude → {skill-name}` |
|
|
40
|
+
|
|
41
|
+
## Skill Invocation Format
|
|
42
|
+
|
|
43
|
+
When the orchestrator invokes a skill via the Skill tool, the skill name MUST be integrated into the identification block — NOT displayed as a separate tool call.
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
┌─ Agent: claude → {skill-name}
|
|
47
|
+
└─ Task: {brief-task-description}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Common Violations
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
Incorrect: Skill as separate display
|
|
54
|
+
┌─ Agent: claude (default)
|
|
55
|
+
└─ Task: research topic analysis
|
|
56
|
+
|
|
57
|
+
Skill(research) ← separate, disconnected
|
|
58
|
+
|
|
59
|
+
Correct: Skill integrated into identification
|
|
60
|
+
┌─ Agent: claude → research
|
|
61
|
+
└─ Task: research topic analysis
|
|
62
|
+
|
|
63
|
+
Correct: With sub-skill
|
|
64
|
+
┌─ Agent: claude → research
|
|
65
|
+
├─ Skill: result-aggregation
|
|
66
|
+
└─ Task: aggregate team findings
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## When to Display
|
|
70
|
+
|
|
71
|
+
| Situation | Display |
|
|
72
|
+
|-----------|---------|
|
|
73
|
+
| Agent-specific task | Full header |
|
|
74
|
+
| Using skill | Include skill name |
|
|
75
|
+
| General conversation | "claude (default)" |
|
|
76
|
+
| Long tasks | Show progress with agent context |
|
|
77
|
+
| Skill invocation | Integrated `claude → {skill-name}` format |
|