oh-my-customcode 0.9.3 → 0.10.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.
Files changed (113) hide show
  1. package/README.md +19 -20
  2. package/dist/cli/index.js +1186 -877
  3. package/dist/index.js +281 -24
  4. package/package.json +1 -1
  5. package/templates/.claude/agents/arch-documenter.md +7 -71
  6. package/templates/.claude/agents/arch-speckit-agent.md +21 -108
  7. package/templates/.claude/agents/be-express-expert.md +8 -58
  8. package/templates/.claude/agents/be-nestjs-expert.md +6 -38
  9. package/templates/.claude/agents/be-springboot-expert.md +11 -56
  10. package/templates/.claude/agents/db-postgres-expert.md +10 -80
  11. package/templates/.claude/agents/db-redis-expert.md +10 -75
  12. package/templates/.claude/agents/db-supabase-expert.md +12 -48
  13. package/templates/.claude/agents/de-airflow-expert.md +8 -45
  14. package/templates/.claude/agents/de-dbt-expert.md +8 -46
  15. package/templates/.claude/agents/de-kafka-expert.md +10 -10
  16. package/templates/.claude/agents/de-pipeline-expert.md +9 -69
  17. package/templates/.claude/agents/de-snowflake-expert.md +9 -62
  18. package/templates/.claude/agents/de-spark-expert.md +10 -54
  19. package/templates/.claude/agents/fe-svelte-agent.md +5 -41
  20. package/templates/.claude/agents/fe-vercel-agent.md +9 -41
  21. package/templates/.claude/agents/fe-vuejs-agent.md +7 -42
  22. package/templates/.claude/agents/lang-java21-expert.md +11 -37
  23. package/templates/.claude/agents/mgr-claude-code-bible.md +22 -207
  24. package/templates/.claude/agents/mgr-creator.md +7 -88
  25. package/templates/.claude/agents/mgr-gitnerd.md +8 -76
  26. package/templates/.claude/agents/mgr-sauron.md +27 -20
  27. package/templates/.claude/agents/mgr-supplier.md +11 -96
  28. package/templates/.claude/agents/mgr-sync-checker.md +9 -70
  29. package/templates/.claude/agents/mgr-updater.md +9 -79
  30. package/templates/.claude/agents/qa-engineer.md +8 -72
  31. package/templates/.claude/agents/qa-planner.md +2 -3
  32. package/templates/.claude/agents/qa-writer.md +6 -76
  33. package/templates/.claude/agents/sys-memory-keeper.md +13 -87
  34. package/templates/.claude/agents/sys-naggy.md +9 -62
  35. package/templates/.claude/agents/tool-bun-expert.md +7 -52
  36. package/templates/.claude/agents/tool-npm-expert.md +6 -64
  37. package/templates/.claude/agents/tool-optimizer.md +7 -60
  38. package/templates/.claude/rules/MAY-optimization.md +16 -80
  39. package/templates/.claude/rules/MUST-agent-design.md +29 -134
  40. package/templates/.claude/rules/MUST-agent-identification.md +9 -88
  41. package/templates/.claude/rules/MUST-continuous-improvement.md +10 -117
  42. package/templates/.claude/rules/MUST-intent-transparency.md +14 -171
  43. package/templates/.claude/rules/MUST-language-policy.md +11 -46
  44. package/templates/.claude/rules/MUST-orchestrator-coordination.md +82 -425
  45. package/templates/.claude/rules/MUST-parallel-execution.md +33 -405
  46. package/templates/.claude/rules/MUST-permissions.md +14 -68
  47. package/templates/.claude/rules/MUST-safety.md +11 -57
  48. package/templates/.claude/rules/MUST-sync-verification.md +49 -205
  49. package/templates/.claude/rules/MUST-tool-identification.md +21 -134
  50. package/templates/.claude/rules/SHOULD-agent-teams.md +22 -166
  51. package/templates/.claude/rules/SHOULD-ecomode.md +15 -123
  52. package/templates/.claude/rules/SHOULD-error-handling.md +19 -88
  53. package/templates/.claude/rules/SHOULD-hud-statusline.md +9 -89
  54. package/templates/.claude/rules/SHOULD-interaction.md +18 -87
  55. package/templates/.claude/rules/SHOULD-memory-integration.md +25 -118
  56. package/templates/.claude/skills/dev-lead-routing/SKILL.md +70 -243
  57. package/templates/.claude/skills/springboot-best-practices/SKILL.md +180 -319
  58. package/templates/.codex/agents/arch-documenter.md +7 -71
  59. package/templates/.codex/agents/arch-speckit-agent.md +21 -108
  60. package/templates/.codex/agents/be-express-expert.md +8 -58
  61. package/templates/.codex/agents/be-nestjs-expert.md +6 -38
  62. package/templates/.codex/agents/be-springboot-expert.md +11 -56
  63. package/templates/.codex/agents/db-postgres-expert.md +10 -80
  64. package/templates/.codex/agents/db-redis-expert.md +10 -75
  65. package/templates/.codex/agents/db-supabase-expert.md +12 -48
  66. package/templates/.codex/agents/de-airflow-expert.md +8 -45
  67. package/templates/.codex/agents/de-dbt-expert.md +8 -46
  68. package/templates/.codex/agents/de-kafka-expert.md +10 -10
  69. package/templates/.codex/agents/de-pipeline-expert.md +9 -69
  70. package/templates/.codex/agents/de-snowflake-expert.md +9 -62
  71. package/templates/.codex/agents/de-spark-expert.md +10 -54
  72. package/templates/.codex/agents/fe-svelte-agent.md +5 -41
  73. package/templates/.codex/agents/fe-vercel-agent.md +9 -41
  74. package/templates/.codex/agents/fe-vuejs-agent.md +7 -42
  75. package/templates/.codex/agents/infra-aws-expert.md +1 -1
  76. package/templates/.codex/agents/infra-docker-expert.md +1 -1
  77. package/templates/.codex/agents/lang-java21-expert.md +11 -37
  78. package/templates/.codex/agents/mgr-claude-code-bible.md +25 -210
  79. package/templates/.codex/agents/mgr-creator.md +7 -88
  80. package/templates/.codex/agents/mgr-gitnerd.md +8 -76
  81. package/templates/.codex/agents/mgr-sauron.md +30 -23
  82. package/templates/.codex/agents/mgr-supplier.md +11 -96
  83. package/templates/.codex/agents/mgr-sync-checker.md +12 -73
  84. package/templates/.codex/agents/mgr-updater.md +9 -79
  85. package/templates/.codex/agents/qa-engineer.md +8 -72
  86. package/templates/.codex/agents/qa-planner.md +2 -3
  87. package/templates/.codex/agents/qa-writer.md +6 -76
  88. package/templates/.codex/agents/sys-memory-keeper.md +13 -87
  89. package/templates/.codex/agents/sys-naggy.md +9 -62
  90. package/templates/.codex/agents/tool-bun-expert.md +7 -52
  91. package/templates/.codex/agents/tool-npm-expert.md +6 -64
  92. package/templates/.codex/agents/tool-optimizer.md +7 -60
  93. package/templates/.codex/codex-native-hash.txt +1 -0
  94. package/templates/.codex/rules/MAY-optimization.md +16 -80
  95. package/templates/.codex/rules/MUST-agent-design.md +29 -134
  96. package/templates/.codex/rules/MUST-agent-identification.md +9 -88
  97. package/templates/.codex/rules/MUST-continuous-improvement.md +10 -117
  98. package/templates/.codex/rules/MUST-intent-transparency.md +14 -171
  99. package/templates/.codex/rules/MUST-language-policy.md +11 -46
  100. package/templates/.codex/rules/MUST-orchestrator-coordination.md +82 -425
  101. package/templates/.codex/rules/MUST-parallel-execution.md +33 -405
  102. package/templates/.codex/rules/MUST-permissions.md +14 -68
  103. package/templates/.codex/rules/MUST-safety.md +11 -57
  104. package/templates/.codex/rules/MUST-sync-verification.md +58 -214
  105. package/templates/.codex/rules/MUST-tool-identification.md +22 -135
  106. package/templates/.codex/rules/SHOULD-agent-teams.md +22 -166
  107. package/templates/.codex/rules/SHOULD-ecomode.md +15 -123
  108. package/templates/.codex/rules/SHOULD-error-handling.md +19 -88
  109. package/templates/.codex/rules/SHOULD-hud-statusline.md +9 -89
  110. package/templates/.codex/rules/SHOULD-interaction.md +18 -87
  111. package/templates/.codex/rules/SHOULD-memory-integration.md +25 -118
  112. package/templates/.codex/skills/dev-lead-routing/SKILL.md +70 -243
  113. package/templates/.codex/skills/springboot-best-practices/SKILL.md +180 -319
@@ -1,103 +1,34 @@
1
1
  # [SHOULD] Interaction Rules
2
2
 
3
- > **Priority**: SHOULD - Strongly recommended
4
- > **Exception**: Emergency or explicit user request
3
+ > **Priority**: SHOULD | **ID**: R003
5
4
 
6
5
  ## Response Principles
7
6
 
8
- ### 1. Brevity
9
- ```
10
- Key information first
11
- Skip unnecessary preamble
12
- Answer only what's asked
13
- ✗ Over-explanation
14
- ✗ Repetitive confirmation
15
- ```
16
-
17
- ### 2. Clarity
18
- ```
19
- ✓ Specific expressions
20
- ✓ Unambiguous instructions
21
- ✓ Executable code format
22
- ✗ Abstract descriptions only
23
- ✗ Overuse of "maybe", "probably"
24
- ```
25
-
26
- ### 3. Transparency
27
- ```
28
- ✓ State actions performed
29
- ✓ Report changes
30
- ✓ Acknowledge uncertainty
31
- ✗ Hide actions
32
- ✗ Present guesses as facts
33
- ```
7
+ | Principle | Do | Don't |
8
+ |-----------|-----|-------|
9
+ | Brevity | Key info first, answer only what's asked | Over-explanation, repetitive confirmation |
10
+ | Clarity | Specific expressions, executable code | Abstract descriptions, "maybe"/"probably" |
11
+ | Transparency | State actions, report changes, acknowledge uncertainty | Hide actions, present guesses as facts |
34
12
 
35
- ## Status Report Format
13
+ ## Status Format
36
14
 
37
- ### Start
38
15
  ```
39
16
  [Start] {task name}
40
- ```
41
-
42
- ### In Progress
43
- ```
44
17
  [Progress] {current step} ({n}/{total})
18
+ [Done] {task name} — Result: {summary}
19
+ [Failed] {task name} — Cause: {reason} — Alternative: {solutions}
45
20
  ```
46
21
 
47
- ### Complete
48
- ```
49
- [Done] {task name}
50
- Result: {summary}
51
- ```
52
-
53
- ### Failed
54
- ```
55
- [Failed] {task name}
56
- Cause: {reason}
57
- Alternative: {possible solutions}
58
- ```
59
-
60
- ## Handling Requests
61
-
62
- ### Clear Request
63
- → Execute immediately
64
-
65
- ### Ambiguous Request
66
- ```
67
- [Confirm]
68
- Understood "{request}" as {interpretation}.
69
-
70
- Proceed?
71
- ```
72
-
73
- ### Risky Request
74
- ```
75
- [Warning]
76
- This action has {risk factor}.
22
+ ## Request Handling
77
23
 
78
- Continue?
79
- - Yes: {action to perform}
80
- - No: Cancel
81
- ```
24
+ | Type | Action |
25
+ |------|--------|
26
+ | Clear | Execute immediately |
27
+ | Ambiguous | `[Confirm] Understood "{request}" as {interpretation}. Proceed?` |
28
+ | Risky | `[Warning] This action has {risk}. Continue? Yes: {action} / No: Cancel` |
82
29
 
83
30
  ## Multiple Tasks
84
31
 
85
- ### Order
86
- 1. Dependent tasks: Sequential
87
- 2. Independent tasks: Parallel allowed
88
-
89
- ### Report
90
- ```
91
- [Task 1/3] Done - {result}
92
- [Task 2/3] In progress...
93
- [Task 3/3] Pending
94
- ```
95
-
96
- ## Long-running Tasks
97
-
98
- ```
99
- [In Progress] {task name}
100
- Elapsed: {time}
101
- Current: {step}
102
- Remaining: {work left}
103
- ```
32
+ - Dependent: Sequential
33
+ - Independent: Parallel allowed
34
+ - Report: `[Task 1/3] Done` / `[Task 2/3] In progress...` / `[Task 3/3] Pending`
@@ -1,132 +1,39 @@
1
1
  # [SHOULD] Memory Integration Rules
2
2
 
3
- > **Priority**: SHOULD - Recommended for context persistence
4
- > **ID**: R011
3
+ > **Priority**: SHOULD | **ID**: R011
5
4
 
6
- ## Purpose
5
+ ## Architecture
7
6
 
8
- Provide persistent memory for agents using Claude Code's native auto memory system.
7
+ **Primary**: Native auto memory (`memory` field in agent frontmatter). No external dependencies.
8
+ **Supplementary**: claude-mem MCP (optional, for cross-session search and temporal queries).
9
9
 
10
- ## Architecture: Native First
11
-
12
- ```
13
- Primary: Native Auto Memory (memory field in agent frontmatter)
14
- - Agent-specific persistent knowledge
15
- - Automatic system prompt injection (MEMORY.md)
16
- - No external dependencies
17
-
18
- Supplementary: claude-mem MCP (optional)
19
- - Session-level temporal observations
20
- - Cross-agent semantic search
21
- - Only if installed and configured
22
-
23
- RULE: If native auto memory can handle the task,
24
- DO NOT use claude-mem.
25
- ```
10
+ Rule: If native auto memory can handle it, do NOT use claude-mem.
26
11
 
27
12
  ## Native Auto Memory
28
13
 
29
- ### How It Works
30
-
31
- 1. Agent frontmatter includes `memory` field:
32
- ```yaml
33
- memory: project # or user, local
34
- ```
35
-
36
- 2. System automatically:
37
- - Creates memory directory for the agent
38
- - Loads first 200 lines of MEMORY.md into system prompt
39
- - Enables Read/Write/Edit tools for memory directory
40
- - Agent learns and records patterns across conversations
41
-
42
- ### Memory Scopes
43
-
44
- | Scope | Location | Use Case | Git Tracked |
45
- |-------|----------|----------|-------------|
46
- | `user` | `~/.codex/agent-memory/<name>/` | Cross-project patterns | No |
47
- | `project` | `.codex/agent-memory/<name>/` | Project-specific patterns | Yes |
48
- | `local` | `.codex/agent-memory-local/<name>/` | Local-only knowledge | No |
49
-
50
- ### Current Agent Memory Map
51
-
52
- | Scope | Agents | Count |
53
- |-------|--------|-------|
54
- | `project` | lang-*, be-*, fe-*, arch-*, tool-*, qa-*, mgr-creator, mgr-updater, mgr-gitnerd, mgr-sauron, mgr-claude-code-bible, sys-memory-keeper | 28 |
55
- | `user` | infra-docker-expert, infra-aws-expert, db-supabase-expert | 3 |
56
- | `local` | mgr-supplier, mgr-sync-checker, sys-naggy | 3 |
57
-
58
- ### Memory Best Practices
59
-
60
- ```yaml
61
- do:
62
- - Let agents consult memory before starting work
63
- - Update memory after discovering patterns or conventions
64
- - Keep MEMORY.md under 200 lines (auto-curate if exceeded)
65
- - Use separate topic files for detailed notes
14
+ Agent frontmatter `memory: project|user|local` enables persistent memory:
15
+ - System creates memory directory, loads first 200 lines of MEMORY.md into prompt
16
+ - Read/Write/Edit tools auto-enabled for memory directory
66
17
 
67
- dont:
68
- - Store sensitive data (API keys, credentials)
69
- - Duplicate information already in AGENTS.md
70
- - Use memory for temporary session state
71
- ```
18
+ | Scope | Location | Git Tracked |
19
+ |-------|----------|-------------|
20
+ | `user` | `~/.claude/agent-memory/<name>/` | No |
21
+ | `project` | `.claude/agent-memory/<name>/` | Yes |
22
+ | `local` | `.claude/agent-memory-local/<name>/` | No |
72
23
 
73
- ## Claude-mem (Optional Supplement)
24
+ ## When to Use claude-mem
74
25
 
75
- claude-mem MCP provides session-level observations and semantic search.
76
- It is NOT required for basic memory functionality.
77
-
78
- ### When to Use claude-mem
79
-
80
- | Scenario | Use Native Memory | Use claude-mem |
81
- |----------|------------------|---------------|
26
+ | Scenario | Native | claude-mem |
27
+ |----------|--------|------------|
82
28
  | Agent learns project patterns | Yes | |
83
- | Record debugging insights | Yes | |
84
- | Search across multiple sessions | | Yes |
85
- | Temporal queries (date-based) | | Yes |
86
- | Cross-agent knowledge sharing | | Yes |
87
- | Basic context persistence | Yes | |
88
-
89
- ### claude-mem Integration (if installed)
90
-
91
- ```yaml
92
- provider: claude-mem
93
- collection: claude_memories
94
- project_tag: my-project
95
- status: optional
96
- ```
97
-
98
- ## Context Compaction
99
-
100
- ### Compaction Controls
101
-
102
- ```yaml
103
- # Targeted compaction - preserve specific context
104
- /compact focus on {topic}
105
-
106
- # Examples
107
- /compact focus on agent routing decisions
108
- /compact focus on authentication implementation
109
- /compact focus on test failures and fixes
110
- ```
111
-
112
- ### Best Practices
113
-
114
- ```
115
- do:
116
- - Use /compact focus when nearing context limits
117
- - Focus on the most relevant topic for current work
118
- - Let auto-compaction handle routine cleanup
119
-
120
- dont:
121
- - Manually compact when not near limits
122
- - Lose important decision context by unfocused compaction
123
- ```
29
+ | Search across sessions | | Yes |
30
+ | Temporal queries | | Yes |
31
+ | Cross-agent sharing | | Yes |
124
32
 
125
- ## Error Handling
33
+ ## Best Practices
126
34
 
127
- ```yaml
128
- on_memory_write_failure:
129
- - Log error
130
- - Continue without blocking main task
131
- - Memory is enhancement, not requirement
132
- ```
35
+ - Consult memory before starting work
36
+ - Update after discovering patterns
37
+ - Keep MEMORY.md under 200 lines
38
+ - Do not store sensitive data or duplicate CLAUDE.md content
39
+ - Memory write failures should not block main task
@@ -4,250 +4,77 @@ description: Routes development tasks to the correct language or framework exper
4
4
  user-invocable: false
5
5
  ---
6
6
 
7
- # Dev Lead Routing Skill
8
-
9
- ## Purpose
10
-
11
- Routes development tasks to appropriate language and framework expert agents. This skill contains the coordination logic for orchestrating sw-engineer agents across language, frontend, backend, and tooling specializations.
12
-
13
- ## Engineers Under Management
14
-
15
- | Type | Agents | Purpose |
16
- |------|--------|---------|
17
- | sw-engineer/language | lang-golang-expert, lang-python-expert, lang-rust-expert, lang-kotlin-expert, lang-typescript-expert, lang-java21-expert | Language expertise |
18
- | sw-engineer/frontend | fe-vercel-agent, fe-vuejs-agent, fe-svelte-agent | Frontend frameworks |
19
- | sw-engineer/backend | be-fastapi-expert, be-springboot-expert, be-go-backend-expert, be-nestjs-expert, be-express-expert | Backend frameworks |
20
- | sw-engineer/tooling | tool-npm-expert, tool-optimizer, tool-bun-expert | Build tools and optimization |
21
- | sw-engineer/database | db-supabase-expert, db-postgres-expert, db-redis-expert | Database design and optimization |
22
- | sw-architect | arch-documenter, arch-speckit-agent | Architecture documentation and spec-driven development |
23
- | infra-engineer | infra-docker-expert, infra-aws-expert | Container and cloud infrastructure |
24
-
25
- ## Language/Framework Detection
26
-
27
- ### File Extension Mapping
28
-
29
- | Extension | Agent | Language/Framework |
30
- |-----------|-------|-------------------|
31
- | `.go` | lang-golang-expert | Go |
32
- | `.py` | lang-python-expert | Python |
33
- | `.rs` | lang-rust-expert | Rust |
34
- | `.kt`, `.kts` | lang-kotlin-expert | Kotlin |
35
- | `.ts`, `.tsx` | lang-typescript-expert | TypeScript |
36
- | `.java` | lang-java21-expert | Java |
37
- | `.js`, `.jsx` (React) | fe-vercel-agent | React/Next.js |
38
- | `.vue` | fe-vuejs-agent | Vue.js |
39
- | `.svelte` | fe-svelte-agent | Svelte |
40
- | `.sql` (PostgreSQL) | db-postgres-expert | PostgreSQL |
41
- | `.sql` (Supabase) | db-supabase-expert | Supabase PostgreSQL |
42
- | `Dockerfile`, `*.dockerfile` | infra-docker-expert | Docker |
43
- | `*.tf`, `*.tfvars` | infra-aws-expert | Terraform/IaC |
44
- | `*.yaml`, `*.yml` (CloudFormation) | infra-aws-expert | AWS CloudFormation |
45
-
46
- ### Keyword Mapping
47
-
48
- | Keyword | Agent |
49
- |---------|-------|
50
- | "go", "golang" | lang-golang-expert |
51
- | "python", "py" | lang-python-expert |
52
- | "rust" | lang-rust-expert |
53
- | "kotlin" | lang-kotlin-expert |
54
- | "typescript", "ts" | lang-typescript-expert |
55
- | "java" | lang-java21-expert |
56
- | "react", "next.js", "vercel" | fe-vercel-agent |
57
- | "vue" | fe-vuejs-agent |
58
- | "svelte" | fe-svelte-agent |
59
- | "fastapi" | be-fastapi-expert |
60
- | "spring", "springboot" | be-springboot-expert |
61
- | "nestjs" | be-nestjs-expert |
62
- | "express" | be-express-expert |
63
- | "npm" | tool-npm-expert |
64
- | "optimize", "bundle" | tool-optimizer |
65
- | "bun" | tool-bun-expert |
66
- | "postgres", "postgresql", "pg_stat", "psql" | db-postgres-expert |
67
- | "redis", "cache", "pub/sub", "sorted set" | db-redis-expert |
68
- | "supabase", "rls", "edge function" | db-supabase-expert |
69
- | "docker", "dockerfile", "container", "compose" | infra-docker-expert |
70
- | "aws", "cloudformation", "cdk", "terraform", "vpc", "iam", "s3", "lambda" | infra-aws-expert |
71
- | "architecture", "adr", "openapi", "swagger", "diagram" | arch-documenter |
72
- | "spec", "specification", "tdd", "requirements" | arch-speckit-agent |
73
-
74
- ## Command Routing
75
-
76
- ```
77
- Development Request → Detection → Expert Agent
78
-
79
- Go code → lang-golang-expert
80
- Python code → lang-python-expert
81
- TypeScript → lang-typescript-expert
82
- FastAPI → be-fastapi-expert
83
- Multi-lang → Multiple experts (parallel)
84
- ```
7
+ # Dev Lead Routing
8
+
9
+ ## Engineers
10
+
11
+ | Type | Agents |
12
+ |------|--------|
13
+ | Language | lang-golang-expert, lang-python-expert, lang-rust-expert, lang-kotlin-expert, lang-typescript-expert, lang-java21-expert |
14
+ | Frontend | fe-vercel-agent, fe-vuejs-agent, fe-svelte-agent |
15
+ | Backend | be-fastapi-expert, be-springboot-expert, be-go-backend-expert, be-nestjs-expert, be-express-expert |
16
+ | Tooling | tool-npm-expert, tool-optimizer, tool-bun-expert |
17
+ | Database | db-supabase-expert, db-postgres-expert, db-redis-expert |
18
+ | Architect | arch-documenter, arch-speckit-agent |
19
+ | Infra | infra-docker-expert, infra-aws-expert |
20
+
21
+ ## File Extension Mapping
22
+
23
+ | Extension | Agent |
24
+ |-----------|-------|
25
+ | `.go` | lang-golang-expert |
26
+ | `.py` | lang-python-expert |
27
+ | `.rs` | lang-rust-expert |
28
+ | `.kt`, `.kts` | lang-kotlin-expert |
29
+ | `.ts`, `.tsx` | lang-typescript-expert |
30
+ | `.java` | lang-java21-expert |
31
+ | `.js/.jsx` (React) | fe-vercel-agent |
32
+ | `.vue` | fe-vuejs-agent |
33
+ | `.svelte` | fe-svelte-agent |
34
+ | `.sql` (PG) | db-postgres-expert |
35
+ | `.sql` (Supabase) | db-supabase-expert |
36
+ | `Dockerfile`, `*.dockerfile` | infra-docker-expert |
37
+ | `*.tf`, `*.tfvars` | infra-aws-expert |
38
+ | `*.yaml`, `*.yml` (CloudFormation) | infra-aws-expert |
39
+
40
+ ## Keyword Mapping
41
+
42
+ | Keywords | Agent |
43
+ |----------|-------|
44
+ | go, golang | lang-golang-expert |
45
+ | python, py | lang-python-expert |
46
+ | rust | lang-rust-expert |
47
+ | kotlin | lang-kotlin-expert |
48
+ | typescript, ts | lang-typescript-expert |
49
+ | java | lang-java21-expert |
50
+ | react, next.js, vercel | fe-vercel-agent |
51
+ | vue | fe-vuejs-agent |
52
+ | svelte | fe-svelte-agent |
53
+ | fastapi | be-fastapi-expert |
54
+ | spring, springboot | be-springboot-expert |
55
+ | nestjs | be-nestjs-expert |
56
+ | express | be-express-expert |
57
+ | npm | tool-npm-expert |
58
+ | optimize, bundle | tool-optimizer |
59
+ | bun | tool-bun-expert |
60
+ | postgres, postgresql, psql, pg_stat | db-postgres-expert |
61
+ | redis, cache, pub/sub, sorted set | db-redis-expert |
62
+ | supabase, rls, edge function | db-supabase-expert |
63
+ | docker, dockerfile, container, compose | infra-docker-expert |
64
+ | aws, cloudformation, vpc, iam, s3, lambda, cdk, terraform | infra-aws-expert |
65
+ | architecture, adr, openapi, swagger, diagram | arch-documenter |
66
+ | spec, specification, tdd, requirements | arch-speckit-agent |
67
+
68
+ ## Model Selection
69
+
70
+ | Task | Model |
71
+ |------|-------|
72
+ | Architecture analysis | opus |
73
+ | Code review/implementation | sonnet |
74
+ | Quick validation/search | haiku |
85
75
 
86
76
  ## Routing Rules
87
77
 
88
- ### 1. Code Review Workflow
89
-
90
- ```
91
- 1. Receive review request
92
- 2. Identify file types and languages:
93
- - Use Glob to find files
94
- - Parse file extensions
95
- - Detect framework (package.json, go.mod, etc.)
96
- 3. Select appropriate experts
97
- 4. Distribute files to experts (parallel if 2+ languages)
98
- 5. Aggregate review findings
99
- 6. Present unified report
100
- ```
101
-
102
- Example:
103
- ```
104
- User: "Review src/*.go src/*.py src/*.ts"
105
-
106
- Detection:
107
- - src/*.go → lang-golang-expert
108
- - src/*.py → lang-python-expert
109
- - src/*.ts → lang-typescript-expert
110
-
111
- Route (parallel):
112
- Task(lang-golang-expert role → review src/*.go, model: "sonnet")
113
- Task(lang-python-expert role → review src/*.py, model: "sonnet")
114
- Task(lang-typescript-expert role → review src/*.ts, model: "sonnet")
115
-
116
- Aggregate:
117
- Go: 2 issues found
118
- Python: Clean
119
- TypeScript: 5 suggestions
120
- ```
121
-
122
- ### 2. Feature Implementation Workflow
123
-
124
- ```
125
- 1. Analyze feature requirements
126
- 2. Identify affected components:
127
- - Backend API → backend expert
128
- - Frontend UI → frontend expert
129
- - Multiple layers → multiple experts
130
- 3. Select required experts
131
- 4. Coordinate implementation (sequential if dependent, parallel if independent)
132
- 5. Ensure consistency across languages
133
- 6. Report completion status
134
- ```
135
-
136
- ### 3. Multi-Language Projects
137
-
138
- For projects with multiple languages:
139
-
140
- ```
141
- 1. Detect all languages in project
142
- 2. Identify primary language (most files)
143
- 3. Route to appropriate experts:
144
- - If task spans multiple languages → parallel experts
145
- - If task is language-specific → single expert
146
- 4. Coordinate cross-language consistency
147
- ```
148
-
149
- ## Sub-agent Model Selection
150
-
151
- ### Model Mapping by Task Type
152
-
153
- | Task Type | Recommended Model | Reason |
154
- |-----------|-------------------|--------|
155
- | Architecture analysis | `opus` | Deep reasoning required |
156
- | Code review | `sonnet` | Balanced quality judgment |
157
- | Code implementation | `sonnet` | Standard code generation |
158
- | Refactoring | `sonnet` | Balanced transformation |
159
- | Quick validation | `haiku` | Fast response |
160
- | File search | `haiku` | Simple operation |
161
-
162
- ### Model Mapping by Agent
163
-
164
- | Agent Type | Default Model | Alternative |
165
- |------------|---------------|-------------|
166
- | Language experts | `sonnet` | `opus` for architecture |
167
- | Frontend experts | `sonnet` | `haiku` for quick checks |
168
- | Backend experts | `sonnet` | `opus` for API design |
169
- | Tooling experts | `haiku` | `sonnet` for complex configs |
170
-
171
- ### Task Call Examples
172
-
173
- ```
174
- # Complex architecture analysis
175
- Task(
176
- subagent_type: "general-purpose",
177
- prompt: "Analyze module dependencies and suggest improvements for src/",
178
- model: "opus"
179
- )
180
-
181
- # Standard code review
182
- Task(
183
- subagent_type: "general-purpose",
184
- prompt: "Review Go code in src/handlers/ following lang-golang-expert guidelines",
185
- model: "sonnet"
186
- )
187
-
188
- # Quick file search
189
- Task(
190
- subagent_type: "Explore",
191
- prompt: "Find all files importing auth package",
192
- model: "haiku"
193
- )
194
- ```
195
-
196
- ## Parallel Execution
197
-
198
- Following R009:
199
- - Maximum 4 parallel instances
200
- - Only worker agents (sw-engineer/*)
201
- - Independent file/module reviews
202
- - Coordinate cross-expert consistency
203
-
204
- Example:
205
- ```
206
- User: "Review all backend APIs"
207
-
208
- Detection:
209
- - src/api/go/ → lang-golang-expert
210
- - src/api/python/ → lang-python-expert
211
- - src/api/kotlin/ → lang-kotlin-expert
212
-
213
- Route (parallel):
214
- Task(lang-golang-expert role → review src/api/go/, model: "sonnet")
215
- Task(lang-python-expert role → review src/api/python/, model: "sonnet")
216
- Task(lang-kotlin-expert role → review src/api/kotlin/, model: "sonnet")
217
- ```
218
-
219
- ## Display Format
220
-
221
- ```
222
- [Analyzing] Detected: Go, Python, TypeScript
223
-
224
- [Delegating] lang-golang-expert:sonnet → 5 Go files
225
- [Delegating] lang-python-expert:sonnet → 3 Python files
226
- [Delegating] lang-typescript-expert:sonnet → 8 TypeScript files
227
-
228
- [Progress] ███████████░ 2/3 experts completed
229
-
230
- [Summary]
231
- Go: 2 issues found
232
- Python: Clean
233
- TypeScript: 5 suggestions
234
-
235
- Review completed.
236
- ```
237
-
238
- ## Integration with Other Agents
239
-
240
- - Receives requirements from arch-speckit-agent (sw-architect)
241
- - Reports to qa-lead for quality assurance
242
- - Coordinates with tooling experts (tool-npm-expert, tool-optimizer) for build/deploy
243
-
244
- ## Usage
245
-
246
- This skill is NOT user-invocable. It should be automatically triggered when the main conversation detects development intent.
78
+ Multi-language: detect all languages, route to parallel experts (max 4). Single-language: route to matching expert. Cross-layer (frontend + backend): multiple experts in parallel.
247
79
 
248
- Detection criteria:
249
- - User requests code review
250
- - User mentions language/framework name
251
- - User provides file paths for review
252
- - User requests refactoring/implementation
253
- - User uses dev:* commands
80
+ Not user-invocable. Auto-triggered on development intent.