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,223 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: omcodex:analysis
|
|
3
|
+
description: Analyze project and auto-configure agents, skills, rules, and guides
|
|
4
|
+
scope: harness
|
|
5
|
+
argument-hint: "[target-dir] [--interview]"
|
|
6
|
+
user-invocable: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Project Analysis Skill
|
|
10
|
+
|
|
11
|
+
Scan a project's tech stack, compare against installed agents/skills, and auto-configure missing items.
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
--dry-run Show what would be added without making changes
|
|
17
|
+
--verbose Show detailed detection reasoning
|
|
18
|
+
--interview, -i Run interactive architecture interview before file-based detection
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
### Step 0: Architecture Interview (--interview only)
|
|
24
|
+
|
|
25
|
+
When `--interview` flag is provided, conduct an interactive AI interview before file-based detection. This captures human context that file scanning cannot determine.
|
|
26
|
+
|
|
27
|
+
**Interview flow** (sequential, AI-guided):
|
|
28
|
+
|
|
29
|
+
1. **프로젝트 유형**: "이 프로젝트는 어떤 종류입니까?"
|
|
30
|
+
→ 옵션: web app, REST API, CLI tool, library, monorepo, data pipeline, mobile app
|
|
31
|
+
|
|
32
|
+
2. **아키텍처 패턴**: "어떤 아키텍처를 따르고 있습니까?"
|
|
33
|
+
→ 옵션: microservices, monolith, serverless, event-driven, layered, hexagonal
|
|
34
|
+
|
|
35
|
+
3. **주요 언어**: "주로 사용하는 프로그래밍 언어는?"
|
|
36
|
+
→ 자유 입력, 알려진 에이전트와 매칭
|
|
37
|
+
|
|
38
|
+
4. **배포 대상**: "어디에 배포합니까?"
|
|
39
|
+
→ 옵션: AWS, GCP, Azure, Vercel, on-premises, Docker/K8s, edge
|
|
40
|
+
|
|
41
|
+
5. **팀 우선순위**: "팀의 주요 관심사는?"
|
|
42
|
+
→ 옵션: performance, security, developer experience, cost, scalability
|
|
43
|
+
|
|
44
|
+
**Interview results feed into Step 1 as weighted detection hints:**
|
|
45
|
+
- File evidence + interview agreement = `confidence: high`
|
|
46
|
+
- File evidence only = `confidence: medium` (unchanged from current)
|
|
47
|
+
- Interview only (no file evidence) = `confidence: suggested`
|
|
48
|
+
|
|
49
|
+
**Integration with report:**
|
|
50
|
+
```
|
|
51
|
+
Interview Insights (--interview):
|
|
52
|
+
Project type: REST API (user-specified, confirmed by file scan)
|
|
53
|
+
Architecture: microservices (user-specified)
|
|
54
|
+
Deployment: AWS + Docker (confirmed by file scan)
|
|
55
|
+
Team focus: security → sec-codeql-expert [suggested]
|
|
56
|
+
|
|
57
|
+
Suggested (from interview, no file evidence):
|
|
58
|
+
~ sec-codeql-expert [suggested — no CodeQL config found]
|
|
59
|
+
~ de-kafka-expert [suggested — no kafka deps found]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Step 1: Project Scan
|
|
63
|
+
|
|
64
|
+
Detect tech stack by checking indicator files and dependency manifests.
|
|
65
|
+
|
|
66
|
+
| Indicator | Files to Check | Agent | Skill |
|
|
67
|
+
|-----------|---------------|-------|-------|
|
|
68
|
+
| TypeScript | tsconfig.json, *.ts, *.tsx | lang-typescript-expert | typescript-best-practices |
|
|
69
|
+
| React/Next.js | next.config.*, package.json (next dep) | fe-vercel-agent | react-best-practices |
|
|
70
|
+
| Vue.js | vue.config.*, *.vue | fe-vuejs-agent | - |
|
|
71
|
+
| Svelte | svelte.config.*, *.svelte | fe-svelte-agent | - |
|
|
72
|
+
| Flutter/Dart | pubspec.yaml, *.dart, lib/main.dart | fe-flutter-agent | - |
|
|
73
|
+
| Python | pyproject.toml, requirements.txt, *.py | lang-python-expert | python-best-practices |
|
|
74
|
+
| FastAPI | "fastapi" in imports/deps | be-fastapi-expert | fastapi-best-practices |
|
|
75
|
+
| Go | go.mod, *.go | lang-golang-expert | go-best-practices |
|
|
76
|
+
| Go Backend | go.mod + cmd/ or internal/ dirs | be-go-backend-expert | go-backend-best-practices |
|
|
77
|
+
| Rust | Cargo.toml, *.rs | lang-rust-expert | rust-best-practices |
|
|
78
|
+
| Kotlin | *.kt, build.gradle.kts | lang-kotlin-expert | kotlin-best-practices |
|
|
79
|
+
| Java | *.java, pom.xml | lang-java21-expert | - |
|
|
80
|
+
| Spring Boot | spring-boot in deps | be-springboot-expert | springboot-best-practices |
|
|
81
|
+
| Express.js | "express" in deps | be-express-expert | - |
|
|
82
|
+
| NestJS | "@nestjs" in deps | be-nestjs-expert | - |
|
|
83
|
+
| Docker | Dockerfile, compose.yml | infra-docker-expert | docker-best-practices |
|
|
84
|
+
| AWS | CDK/SAM/CloudFormation files | infra-aws-expert | aws-best-practices |
|
|
85
|
+
| PostgreSQL | *.sql, pg in deps | db-postgres-expert | postgres-best-practices |
|
|
86
|
+
| Redis | redis in deps | db-redis-expert | redis-best-practices |
|
|
87
|
+
| Supabase | supabase in deps/config | db-supabase-expert | supabase-postgres-best-practices |
|
|
88
|
+
| Airflow | dags/*.py, airflow in deps | de-airflow-expert | airflow-best-practices |
|
|
89
|
+
| dbt | dbt_project.yml | de-dbt-expert | dbt-best-practices |
|
|
90
|
+
| Kafka | kafka in deps/config | de-kafka-expert | kafka-best-practices |
|
|
91
|
+
| Spark | spark in deps/config | de-spark-expert | spark-best-practices |
|
|
92
|
+
| Snowflake | snowflake in deps/config | de-snowflake-expert | snowflake-best-practices |
|
|
93
|
+
|
|
94
|
+
**Detection logic:**
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
1. Read package.json / go.mod / Cargo.toml / pyproject.toml / pom.xml
|
|
98
|
+
2. Glob for indicator files (tsconfig.json, *.vue, Dockerfile, etc.)
|
|
99
|
+
3. Grep dependencies for framework/library names
|
|
100
|
+
4. For verbose mode: log each indicator found and confidence level
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Step 2: Gap Analysis
|
|
104
|
+
|
|
105
|
+
Compare detected stack against what is already installed.
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
1. List existing agents: ls .codex/agents/*.md
|
|
109
|
+
2. List existing skills: find .codex/skills -name "SKILL.md"
|
|
110
|
+
3. For each detected indicator:
|
|
111
|
+
a. Check if required agent file exists → mark MISSING or PRESENT
|
|
112
|
+
b. Check if required skill directory exists → mark MISSING or PRESENT
|
|
113
|
+
4. Build two lists:
|
|
114
|
+
- missing_agents[] — agents needed but not present
|
|
115
|
+
- missing_skills[] — skills needed but not present
|
|
116
|
+
5. (Optional) Build unused list for suggestions:
|
|
117
|
+
- Agents present but no indicator matched → flag for review
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Step 3: Auto-Configure
|
|
121
|
+
|
|
122
|
+
Apply changes for all missing items (skip in --dry-run mode).
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
For each missing agent:
|
|
126
|
+
- If agent exists in templates/.codex/agents/ → copy to .codex/agents/
|
|
127
|
+
- Else → delegate to mgr-creator with detected domain context
|
|
128
|
+
|
|
129
|
+
For each missing skill:
|
|
130
|
+
- If skill exists in templates/.codex/skills/ → copy to .codex/skills/
|
|
131
|
+
- Else → log as "skill not available in templates, manual setup needed"
|
|
132
|
+
|
|
133
|
+
Rules:
|
|
134
|
+
- Keep all existing rules (they are universal, never remove)
|
|
135
|
+
|
|
136
|
+
Guides:
|
|
137
|
+
- Verify templates/guides/ directory has relevant reference docs
|
|
138
|
+
- Log missing guide topics as suggestions only (no auto-copy)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Step 4: Report
|
|
142
|
+
|
|
143
|
+
Output a structured summary after the run.
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
[analysis] Project: <detected project name or path>
|
|
147
|
+
|
|
148
|
+
Tech Stack Detected:
|
|
149
|
+
- TypeScript (tsconfig.json found)
|
|
150
|
+
- React/Next.js (next in package.json deps)
|
|
151
|
+
- Docker (Dockerfile found)
|
|
152
|
+
|
|
153
|
+
Agents:
|
|
154
|
+
+ lang-typescript-expert [added]
|
|
155
|
+
+ fe-vercel-agent [added]
|
|
156
|
+
~ infra-docker-expert [already present, skipped]
|
|
157
|
+
|
|
158
|
+
Skills:
|
|
159
|
+
+ typescript-best-practices [added]
|
|
160
|
+
+ react-best-practices [added]
|
|
161
|
+
~ docker-best-practices [already present, skipped]
|
|
162
|
+
|
|
163
|
+
Rules: no changes (universal rules kept as-is)
|
|
164
|
+
|
|
165
|
+
Guides: react/ — present
|
|
166
|
+
docker/ — present
|
|
167
|
+
typescript/ — present
|
|
168
|
+
|
|
169
|
+
Suggestions:
|
|
170
|
+
- infra-aws-expert not detected (no CDK/SAM files found)
|
|
171
|
+
- de-* agents not detected (no pipeline indicators found)
|
|
172
|
+
|
|
173
|
+
Summary: 2 agents added, 2 skills added, 0 removed
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**--dry-run output** prefixes all additions with `[would add]` instead of `[added]` and makes no file changes.
|
|
177
|
+
|
|
178
|
+
**--verbose output** adds a Detection section before the report:
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
Detection Details:
|
|
182
|
+
tsconfig.json → TypeScript confirmed
|
|
183
|
+
package.json[next] → Next.js confirmed (confidence: high)
|
|
184
|
+
package.json[react] → React confirmed (confidence: high)
|
|
185
|
+
Dockerfile → Docker confirmed
|
|
186
|
+
no go.mod found → Go skipped
|
|
187
|
+
no Cargo.toml found → Rust skipped
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Step 5: Adaptive Harness Integration
|
|
191
|
+
|
|
192
|
+
After analysis completes, offer adaptive-harness optimization:
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
[Analysis Complete] Tech stack detected. Optimize harness for this project?
|
|
196
|
+
├── Yes → Run /omcodex:adaptive-harness --optimize (deactivate unused, suggest missing)
|
|
197
|
+
├── Dry-run → Run /omcodex:adaptive-harness --optimize --dry-run (show changes only)
|
|
198
|
+
└── Skip → Keep current harness configuration
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
If user selects Yes or Dry-run, invoke the adaptive-harness skill with the analysis results as context. The project profile generated by analysis feeds directly into adaptive-harness optimization.
|
|
202
|
+
|
|
203
|
+
## Integration
|
|
204
|
+
|
|
205
|
+
| Skill | Integration |
|
|
206
|
+
|-------|-------------|
|
|
207
|
+
| adaptive-harness | Called after analysis to optimize harness based on detected stack |
|
|
208
|
+
|
|
209
|
+
## Example Invocation
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
/analysis
|
|
213
|
+
/analysis --dry-run
|
|
214
|
+
/analysis --verbose
|
|
215
|
+
/analysis --dry-run --verbose
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Notes
|
|
219
|
+
|
|
220
|
+
- Always run `--dry-run` first on unfamiliar projects to preview changes
|
|
221
|
+
- Agents and skills are additive only — existing items are never removed automatically
|
|
222
|
+
- For stacks not in the detection table, delegate to `mgr-creator` for dynamic agent creation
|
|
223
|
+
- Rules are never auto-removed; they are project-universal
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: omcodex:audit-agents
|
|
3
|
+
description: Audit agent dependencies and references
|
|
4
|
+
scope: harness
|
|
5
|
+
argument-hint: "[agent-name] [--all] [--fix]"
|
|
6
|
+
user-invocable: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Audit Agents Skill
|
|
10
|
+
|
|
11
|
+
Audit agent dependencies to ensure all skill and guide references are valid and symlinks are working.
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
--all, -a Audit all agents
|
|
17
|
+
--verbose, -v Show detailed results
|
|
18
|
+
--fix Auto-fix issues (delegates to /fix-refs)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
1. Load agent configuration
|
|
25
|
+
└── Read agent .md file
|
|
26
|
+
|
|
27
|
+
2. Check skills
|
|
28
|
+
├── Skill exists in .codex/skills/
|
|
29
|
+
└── Skill path is valid
|
|
30
|
+
|
|
31
|
+
3. Check guides
|
|
32
|
+
├── Guide exists in templates/guides/
|
|
33
|
+
└── Guide path is valid
|
|
34
|
+
|
|
35
|
+
4. Report results
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Output Format
|
|
39
|
+
|
|
40
|
+
### Single Agent
|
|
41
|
+
```
|
|
42
|
+
[mgr-supplier:audit lang-golang-expert]
|
|
43
|
+
|
|
44
|
+
Auditing: lang-golang-expert
|
|
45
|
+
|
|
46
|
+
Skills:
|
|
47
|
+
✓ go-best-practices
|
|
48
|
+
Path: .codex/skills/go-best-practices/
|
|
49
|
+
Status: Valid
|
|
50
|
+
|
|
51
|
+
Guides:
|
|
52
|
+
✓ golang
|
|
53
|
+
Path: templates/guides/golang/
|
|
54
|
+
Status: Valid
|
|
55
|
+
|
|
56
|
+
Summary:
|
|
57
|
+
Skills: 1/1 valid
|
|
58
|
+
Guides: 1/1 valid
|
|
59
|
+
Status: HEALTHY
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### All Agents
|
|
63
|
+
```
|
|
64
|
+
[mgr-supplier:audit --all]
|
|
65
|
+
|
|
66
|
+
Auditing all agents...
|
|
67
|
+
|
|
68
|
+
sw-engineer:
|
|
69
|
+
✓ lang-golang-expert (2/2 deps valid)
|
|
70
|
+
✓ lang-python-expert (2/2 deps valid)
|
|
71
|
+
✓ lang-rust-expert (2/2 deps valid)
|
|
72
|
+
✗ lang-kotlin-expert (1/2 deps valid)
|
|
73
|
+
└─ Missing: kotlin guide symlink
|
|
74
|
+
|
|
75
|
+
sw-engineer/backend:
|
|
76
|
+
✓ be-fastapi-expert (2/2 deps valid)
|
|
77
|
+
✓ be-springboot-expert (2/2 deps valid)
|
|
78
|
+
✓ be-go-backend-expert (2/2 deps valid)
|
|
79
|
+
|
|
80
|
+
infra-engineer:
|
|
81
|
+
✓ infra-docker-expert (2/2 deps valid)
|
|
82
|
+
✓ infra-aws-expert (2/2 deps valid)
|
|
83
|
+
|
|
84
|
+
Summary:
|
|
85
|
+
Total agents: 15
|
|
86
|
+
Healthy: 14
|
|
87
|
+
Issues: 1
|
|
88
|
+
|
|
89
|
+
Run "mgr-supplier:fix lang-kotlin-expert" to fix issues.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Verbose Output
|
|
93
|
+
```
|
|
94
|
+
[mgr-supplier:audit lang-golang-expert --verbose]
|
|
95
|
+
|
|
96
|
+
Auditing: lang-golang-expert
|
|
97
|
+
|
|
98
|
+
Configuration:
|
|
99
|
+
Path: .codex/agents/lang-golang-expert.md
|
|
100
|
+
Type: sw-engineer
|
|
101
|
+
Source: internal
|
|
102
|
+
|
|
103
|
+
Declared Skills:
|
|
104
|
+
[1] go-best-practices
|
|
105
|
+
Path: .codex/skills/go-best-practices/
|
|
106
|
+
Exists: ✓
|
|
107
|
+
|
|
108
|
+
Declared Guides:
|
|
109
|
+
[1] golang
|
|
110
|
+
Path: templates/guides/golang/
|
|
111
|
+
Exists: ✓
|
|
112
|
+
|
|
113
|
+
Cross-references:
|
|
114
|
+
✓ go-best-practices.used_by includes lang-golang-expert
|
|
115
|
+
✓ golang.used_by includes lang-golang-expert
|
|
116
|
+
|
|
117
|
+
Status: HEALTHY (all checks passed)
|
|
118
|
+
```
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aws-best-practices
|
|
3
|
+
description: AWS patterns from Well-Architected Framework
|
|
4
|
+
scope: core
|
|
5
|
+
user-invocable: false
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Apply AWS patterns for building scalable, secure, and cost-effective cloud infrastructure.
|
|
11
|
+
|
|
12
|
+
## Well-Architected Framework Pillars
|
|
13
|
+
|
|
14
|
+
### 1. Operational Excellence
|
|
15
|
+
|
|
16
|
+
```yaml
|
|
17
|
+
principles:
|
|
18
|
+
- Perform operations as code
|
|
19
|
+
- Make frequent, small, reversible changes
|
|
20
|
+
- Refine operations procedures frequently
|
|
21
|
+
- Anticipate failure
|
|
22
|
+
- Learn from all operational failures
|
|
23
|
+
|
|
24
|
+
practices:
|
|
25
|
+
- Use CloudFormation/CDK for IaC
|
|
26
|
+
- Implement CI/CD pipelines
|
|
27
|
+
- Use CloudWatch for monitoring
|
|
28
|
+
- Set up alarms and dashboards
|
|
29
|
+
- Document runbooks
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 2. Security
|
|
33
|
+
|
|
34
|
+
```yaml
|
|
35
|
+
principles:
|
|
36
|
+
- Implement strong identity foundation
|
|
37
|
+
- Enable traceability
|
|
38
|
+
- Apply security at all layers
|
|
39
|
+
- Automate security best practices
|
|
40
|
+
- Protect data in transit and at rest
|
|
41
|
+
- Keep people away from data
|
|
42
|
+
- Prepare for security events
|
|
43
|
+
|
|
44
|
+
iam:
|
|
45
|
+
- Use least privilege principle
|
|
46
|
+
- Never use root account for daily tasks
|
|
47
|
+
- Enable MFA for all users
|
|
48
|
+
- Use IAM roles for services
|
|
49
|
+
- Rotate credentials regularly
|
|
50
|
+
|
|
51
|
+
patterns: |
|
|
52
|
+
# IAM Policy - Least Privilege
|
|
53
|
+
{
|
|
54
|
+
"Version": "2012-10-17",
|
|
55
|
+
"Statement": [{
|
|
56
|
+
"Effect": "Allow",
|
|
57
|
+
"Action": [
|
|
58
|
+
"s3:GetObject",
|
|
59
|
+
"s3:PutObject"
|
|
60
|
+
],
|
|
61
|
+
"Resource": "arn:aws:s3:::my-bucket/*",
|
|
62
|
+
"Condition": {
|
|
63
|
+
"IpAddress": {
|
|
64
|
+
"aws:SourceIp": "10.0.0.0/8"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}]
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 3. Reliability
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
principles:
|
|
75
|
+
- Automatically recover from failure
|
|
76
|
+
- Test recovery procedures
|
|
77
|
+
- Scale horizontally
|
|
78
|
+
- Stop guessing capacity
|
|
79
|
+
- Manage change through automation
|
|
80
|
+
|
|
81
|
+
practices:
|
|
82
|
+
- Multi-AZ deployments
|
|
83
|
+
- Auto Scaling groups
|
|
84
|
+
- Health checks and self-healing
|
|
85
|
+
- Backup and disaster recovery
|
|
86
|
+
- Loose coupling with queues
|
|
87
|
+
|
|
88
|
+
patterns:
|
|
89
|
+
high_availability: |
|
|
90
|
+
# Multi-AZ RDS
|
|
91
|
+
- Primary in us-east-1a
|
|
92
|
+
- Standby in us-east-1b
|
|
93
|
+
- Read replicas in us-east-1c
|
|
94
|
+
|
|
95
|
+
auto_scaling: |
|
|
96
|
+
# Target tracking scaling
|
|
97
|
+
- Metric: CPUUtilization
|
|
98
|
+
- Target: 70%
|
|
99
|
+
- Min: 2, Max: 10
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 4. Performance Efficiency
|
|
103
|
+
|
|
104
|
+
```yaml
|
|
105
|
+
principles:
|
|
106
|
+
- Democratize advanced technologies
|
|
107
|
+
- Go global in minutes
|
|
108
|
+
- Use serverless architectures
|
|
109
|
+
- Experiment more often
|
|
110
|
+
- Consider mechanical sympathy
|
|
111
|
+
|
|
112
|
+
compute:
|
|
113
|
+
- Right-size instances
|
|
114
|
+
- Use Spot for fault-tolerant workloads
|
|
115
|
+
- Consider Graviton (ARM) processors
|
|
116
|
+
- Containerize with ECS/EKS
|
|
117
|
+
|
|
118
|
+
storage:
|
|
119
|
+
- Use appropriate storage class
|
|
120
|
+
- S3 Intelligent-Tiering for variable access
|
|
121
|
+
- EBS volume types based on IOPS needs
|
|
122
|
+
|
|
123
|
+
database:
|
|
124
|
+
- Aurora for MySQL/PostgreSQL
|
|
125
|
+
- DynamoDB for key-value/document
|
|
126
|
+
- ElastiCache for caching
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 5. Cost Optimization
|
|
130
|
+
|
|
131
|
+
```yaml
|
|
132
|
+
principles:
|
|
133
|
+
- Implement cloud financial management
|
|
134
|
+
- Adopt consumption model
|
|
135
|
+
- Measure overall efficiency
|
|
136
|
+
- Stop spending on undifferentiated heavy lifting
|
|
137
|
+
- Analyze and attribute expenditure
|
|
138
|
+
|
|
139
|
+
practices:
|
|
140
|
+
- Use Reserved Instances/Savings Plans
|
|
141
|
+
- Right-size resources
|
|
142
|
+
- Delete unused resources
|
|
143
|
+
- Use Spot Instances
|
|
144
|
+
- Implement auto scaling
|
|
145
|
+
|
|
146
|
+
tools:
|
|
147
|
+
- AWS Cost Explorer
|
|
148
|
+
- AWS Budgets
|
|
149
|
+
- AWS Trusted Advisor
|
|
150
|
+
- Cost Allocation Tags
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### 6. Sustainability
|
|
154
|
+
|
|
155
|
+
```yaml
|
|
156
|
+
principles:
|
|
157
|
+
- Understand your impact
|
|
158
|
+
- Establish sustainability goals
|
|
159
|
+
- Maximize utilization
|
|
160
|
+
- Anticipate and adopt more efficient offerings
|
|
161
|
+
- Use managed services
|
|
162
|
+
- Reduce downstream impact
|
|
163
|
+
|
|
164
|
+
practices:
|
|
165
|
+
- Use efficient instance types (Graviton)
|
|
166
|
+
- Optimize storage lifecycle
|
|
167
|
+
- Use serverless where possible
|
|
168
|
+
- Select regions with lower carbon intensity
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Common Patterns
|
|
172
|
+
|
|
173
|
+
### VPC Design
|
|
174
|
+
|
|
175
|
+
```yaml
|
|
176
|
+
pattern: |
|
|
177
|
+
VPC (10.0.0.0/16)
|
|
178
|
+
├── Public Subnets
|
|
179
|
+
│ ├── us-east-1a: 10.0.1.0/24
|
|
180
|
+
│ ├── us-east-1b: 10.0.2.0/24
|
|
181
|
+
│ └── us-east-1c: 10.0.3.0/24
|
|
182
|
+
├── Private Subnets (App)
|
|
183
|
+
│ ├── us-east-1a: 10.0.11.0/24
|
|
184
|
+
│ ├── us-east-1b: 10.0.12.0/24
|
|
185
|
+
│ └── us-east-1c: 10.0.13.0/24
|
|
186
|
+
└── Private Subnets (Data)
|
|
187
|
+
├── us-east-1a: 10.0.21.0/24
|
|
188
|
+
├── us-east-1b: 10.0.22.0/24
|
|
189
|
+
└── us-east-1c: 10.0.23.0/24
|
|
190
|
+
|
|
191
|
+
components:
|
|
192
|
+
- Internet Gateway (public access)
|
|
193
|
+
- NAT Gateway (private outbound)
|
|
194
|
+
- VPC Endpoints (AWS services)
|
|
195
|
+
- Network ACLs (subnet level)
|
|
196
|
+
- Security Groups (instance level)
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Three-Tier Architecture
|
|
200
|
+
|
|
201
|
+
```yaml
|
|
202
|
+
pattern: |
|
|
203
|
+
[Internet]
|
|
204
|
+
│
|
|
205
|
+
[CloudFront]
|
|
206
|
+
│
|
|
207
|
+
[ALB] ← Public Subnet
|
|
208
|
+
│
|
|
209
|
+
[ECS/EC2] ← Private Subnet (App)
|
|
210
|
+
│
|
|
211
|
+
[RDS Multi-AZ] ← Private Subnet (Data)
|
|
212
|
+
|
|
213
|
+
components:
|
|
214
|
+
web_tier:
|
|
215
|
+
- CloudFront for CDN
|
|
216
|
+
- WAF for protection
|
|
217
|
+
- ALB for load balancing
|
|
218
|
+
|
|
219
|
+
app_tier:
|
|
220
|
+
- ECS Fargate or EC2
|
|
221
|
+
- Auto Scaling
|
|
222
|
+
- ElastiCache
|
|
223
|
+
|
|
224
|
+
data_tier:
|
|
225
|
+
- RDS Multi-AZ
|
|
226
|
+
- Read Replicas
|
|
227
|
+
- Automated backups
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Serverless Pattern
|
|
231
|
+
|
|
232
|
+
```yaml
|
|
233
|
+
pattern: |
|
|
234
|
+
[API Gateway]
|
|
235
|
+
│
|
|
236
|
+
[Lambda] → [DynamoDB]
|
|
237
|
+
│
|
|
238
|
+
[SQS] → [Lambda] → [S3]
|
|
239
|
+
|
|
240
|
+
components:
|
|
241
|
+
- API Gateway for REST/HTTP APIs
|
|
242
|
+
- Lambda for compute
|
|
243
|
+
- DynamoDB for NoSQL
|
|
244
|
+
- SQS for decoupling
|
|
245
|
+
- S3 for storage
|
|
246
|
+
- Step Functions for orchestration
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### CI/CD Pipeline
|
|
250
|
+
|
|
251
|
+
```yaml
|
|
252
|
+
pattern: |
|
|
253
|
+
[CodeCommit/GitHub]
|
|
254
|
+
│
|
|
255
|
+
[CodePipeline]
|
|
256
|
+
│
|
|
257
|
+
├── [CodeBuild] - Build & Test
|
|
258
|
+
│
|
|
259
|
+
├── [ECR] - Container Registry
|
|
260
|
+
│
|
|
261
|
+
└── [CodeDeploy/ECS] - Deploy
|
|
262
|
+
|
|
263
|
+
practices:
|
|
264
|
+
- Blue/Green deployments
|
|
265
|
+
- Canary releases
|
|
266
|
+
- Automated rollback
|
|
267
|
+
- Infrastructure as Code
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
## Application
|
|
271
|
+
|
|
272
|
+
When designing AWS architecture:
|
|
273
|
+
|
|
274
|
+
1. **Always** follow least privilege for IAM
|
|
275
|
+
2. **Always** use Multi-AZ for production
|
|
276
|
+
3. **Always** encrypt data at rest and in transit
|
|
277
|
+
4. **Prefer** managed services over self-managed
|
|
278
|
+
5. **Implement** monitoring and alerting
|
|
279
|
+
6. **Use** IaC for all infrastructure
|
|
280
|
+
7. **Design** for failure
|
|
281
|
+
8. **Optimize** costs continuously
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: claude-code-bible
|
|
3
|
+
description: Fetch Claude Code official documentation. Use when updating local reference docs or checking official spec.
|
|
4
|
+
scope: core
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
user-invocable: false
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Claude Code Bible
|
|
10
|
+
|
|
11
|
+
Official documentation reference management for Claude Code.
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Maintain up-to-date local copies of Claude Code official documentation.
|
|
16
|
+
|
|
17
|
+
## Commands
|
|
18
|
+
|
|
19
|
+
### /claude-code-bible update
|
|
20
|
+
|
|
21
|
+
Fetch the latest documentation from code.claude.com.
|
|
22
|
+
|
|
23
|
+
**What it does:**
|
|
24
|
+
- Fetches `https://code.claude.com/docs/llms.txt`
|
|
25
|
+
- Extracts all documentation URLs from the llms.txt content
|
|
26
|
+
- Downloads each documentation page and saves as markdown
|
|
27
|
+
- Writes a timestamp file for cache tracking
|
|
28
|
+
- Respects a 24-hour cache (skip if fresh, unless `--force` used)
|
|
29
|
+
|
|
30
|
+
**Usage:**
|
|
31
|
+
```bash
|
|
32
|
+
# Fetch latest docs (skip if cached < 24h)
|
|
33
|
+
node .codex/skills/claude-code-bible/scripts/fetch-docs.js
|
|
34
|
+
|
|
35
|
+
# Force update even if cache is fresh
|
|
36
|
+
node .codex/skills/claude-code-bible/scripts/fetch-docs.js --force
|
|
37
|
+
|
|
38
|
+
# Custom output directory
|
|
39
|
+
node .codex/skills/claude-code-bible/scripts/fetch-docs.js --output /path/to/output
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Default output location:**
|
|
43
|
+
```
|
|
44
|
+
~/.codex/references/claude-code/
|
|
45
|
+
├── llms.txt # Master index
|
|
46
|
+
├── last-updated.txt # ISO timestamp
|
|
47
|
+
├── <doc-name>.md # Individual doc pages
|
|
48
|
+
└── ...
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Exit codes:**
|
|
52
|
+
- `0`: Success (or cache is fresh)
|
|
53
|
+
- `1`: Fatal error
|
|
54
|
+
|
|
55
|
+
## Implementation Notes
|
|
56
|
+
|
|
57
|
+
### Fetch Script (fetch-docs.js)
|
|
58
|
+
|
|
59
|
+
**Features:**
|
|
60
|
+
- Uses only Node.js built-in modules (https, fs, path)
|
|
61
|
+
- Handles HTTP redirects (3xx responses)
|
|
62
|
+
- Respects server with 200ms delay between requests
|
|
63
|
+
- 24-hour cache to avoid unnecessary fetches
|
|
64
|
+
- Comprehensive error reporting
|
|
65
|
+
|
|
66
|
+
**Cache behavior:**
|
|
67
|
+
- Checks `last-updated.txt` timestamp
|
|
68
|
+
- Skips fetch if < 24 hours old (unless --force)
|
|
69
|
+
- Always updates timestamp on successful fetch
|
|
70
|
+
|
|
71
|
+
**Error handling:**
|
|
72
|
+
- Reports HTTP errors with status codes
|
|
73
|
+
- Continues on individual page failures
|
|
74
|
+
- Prints summary of successes and failures
|
|
75
|
+
|
|
76
|
+
## Integration with Other Skills
|
|
77
|
+
|
|
78
|
+
### update-docs
|
|
79
|
+
- Should update local docs first: `/claude-code-bible update`
|
|
80
|
+
|
|
81
|
+
### dev-review
|
|
82
|
+
- Can reference official docs for best practices
|
|
83
|
+
|
|
84
|
+
## Benefits
|
|
85
|
+
|
|
86
|
+
1. **Up-to-date**: Always have latest documentation locally
|
|
87
|
+
2. **Offline access**: Work with docs even without internet
|
|
88
|
+
3. **Learning**: Reference official patterns when creating new components
|
|
89
|
+
|
|
90
|
+
## Notes
|
|
91
|
+
|
|
92
|
+
- The fetch script is production-ready and can be used immediately
|
|
93
|
+
- Consider running `/claude-code-bible update` weekly to stay current
|