Skip to content

Commit 0c0c69b

Browse files
authored
Merge pull request #248 from mvanhorn/osc/199-fix-agent-namespace
fix(commands): use fully-qualified agent namespace in Task invocations
2 parents bc7b1db + 52e3e14 commit 0c0c69b

4 files changed

Lines changed: 21 additions & 11 deletions

File tree

AGENTS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ Add a new provider when at least one of these is true:
4848

4949
Avoid adding a provider if the target spec is unstable or undocumented.
5050

51+
## Agent References in Skills
52+
53+
When referencing agents from within skill SKILL.md files (e.g., via the `Agent` or `Task` tool), always use the **fully-qualified namespace**: `compound-engineering:<category>:<agent-name>`. Never use the short agent name alone.
54+
55+
Example:
56+
- `compound-engineering:research:learnings-researcher` (correct)
57+
- `learnings-researcher` (wrong - will fail to resolve at runtime)
58+
59+
This prevents resolution failures when the plugin is installed alongside other plugins that may define agents with the same short name.
60+
5161
## Repository Docs Convention
5262

5363
- **Plans** live in `docs/plans/` and track implementation progress.

plugins/compound-engineering/skills/ce-brainstorm/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Use **AskUserQuestion tool** to suggest: "Your requirements seem detailed enough
4141

4242
Run a quick repo scan to understand existing patterns:
4343

44-
- Task repo-research-analyst("Understand existing patterns related to: <feature_description>")
44+
- Task compound-engineering:research:repo-research-analyst("Understand existing patterns related to: <feature_description>")
4545

4646
Focus on: similar features, established patterns, CLAUDE.md guidance.
4747

plugins/compound-engineering/skills/ce-plan/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ First, I need to understand the project's conventions, existing patterns, and an
8282

8383
Run these agents **in parallel** to gather local context:
8484

85-
- Task repo-research-analyst(feature_description)
86-
- Task learnings-researcher(feature_description)
85+
- Task compound-engineering:research:repo-research-analyst(feature_description)
86+
- Task compound-engineering:research:learnings-researcher(feature_description)
8787

8888
**What to look for:**
8989
- **Repo research:** existing patterns, CLAUDE.md guidance, technology familiarity, pattern consistency
@@ -113,8 +113,8 @@ Examples:
113113

114114
Run these agents in parallel:
115115

116-
- Task best-practices-researcher(feature_description)
117-
- Task framework-docs-researcher(feature_description)
116+
- Task compound-engineering:research:best-practices-researcher(feature_description)
117+
- Task compound-engineering:research:framework-docs-researcher(feature_description)
118118

119119
### 1.6. Consolidate Research
120120

plugins/compound-engineering/skills/ce-review/SKILL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ For each agent in review_agents:
109109
```
110110

111111
Always run these last regardless of mode:
112-
- Task agent-native-reviewer(PR content) - Verify new features are agent-accessible
113-
- Task learnings-researcher(PR content) - Search docs/solutions/ for past issues related to this PR's modules and patterns
112+
- Task compound-engineering:review:agent-native-reviewer(PR content) - Verify new features are agent-accessible
113+
- Task compound-engineering:research:learnings-researcher(PR content) - Search docs/solutions/ for past issues related to this PR's modules and patterns
114114

115115
</parallel_tasks>
116116

@@ -122,9 +122,9 @@ These agents are run ONLY when the PR matches specific criteria. Check the PR fi
122122

123123
**MIGRATIONS: If PR contains database migrations, schema.rb, or data backfills:**
124124

125-
- Task schema-drift-detector(PR content) - Detects unrelated schema.rb changes by cross-referencing against included migrations (run FIRST)
126-
- Task data-migration-expert(PR content) - Validates ID mappings match production, checks for swapped values, verifies rollback safety
127-
- Task deployment-verification-agent(PR content) - Creates Go/No-Go deployment checklist with SQL verification queries
125+
- Task compound-engineering:review:schema-drift-detector(PR content) - Detects unrelated schema.rb changes by cross-referencing against included migrations (run FIRST)
126+
- Task compound-engineering:review:data-migration-expert(PR content) - Validates ID mappings match production, checks for swapped values, verifies rollback safety
127+
- Task compound-engineering:review:deployment-verification-agent(PR content) - Creates Go/No-Go deployment checklist with SQL verification queries
128128

129129
**When to run:**
130130
- PR includes files matching `db/migrate/*.rb` or `db/schema.rb`
@@ -236,7 +236,7 @@ Complete system context map with component interactions
236236

237237
### 4. Simplification and Minimalism Review
238238

239-
Run the Task code-simplicity-reviewer() to see if we can simplify the code.
239+
Run the Task compound-engineering:review:code-simplicity-reviewer() to see if we can simplify the code.
240240

241241
### 5. Findings Synthesis and Todo Creation Using file-todos Skill
242242

0 commit comments

Comments
 (0)