Skip to content

Commit ba5cdb8

Browse files
sjnimsclaude
andauthored
feat: improve agent consistency and documentation (#116)
## Summary - Aligns `tools` field format with official Claude Code documentation (comma-separated instead of JSON array) - Adds explicit script paths in plugin-validator.md for immediate actionability - Documents model choice rationale in agent-creator.md ## Problem Fixes #113 ## Solution Applied all three improvements identified in the issue: 1. **tools format**: Changed from `["Tool1", "Tool2"]` to `Tool1, Tool2` in all 3 agents to match official docs 2. **script paths**: Changed vague references like "Use the validate-agent.sh utility from agent-development skill" to explicit paths like `./skills/agent-development/scripts/validate-agent.sh` 3. **model rationale**: Added YAML comment explaining why agent-creator uses explicit `sonnet` instead of `inherit` ### Alternatives Considered - Inline comment for model rationale: Rejected because the validation script parsed it as part of the model value ## Changes - `plugins/plugin-dev/agents/agent-creator.md`: tools format, model comment, example update - `plugins/plugin-dev/agents/skill-reviewer.md`: tools format - `plugins/plugin-dev/agents/plugin-validator.md`: tools format, explicit script paths ## Testing - [x] All files pass markdownlint - [x] All 3 agents pass validate-agent.sh validation - [x] Changes verified via git diff --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent fb7dbd1 commit ba5cdb8

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

plugins/plugin-dev/agents/agent-creator.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ Plugin development with agent addition, trigger agent-creator.
2929
</commentary>
3030
</example>
3131

32+
# Explicit sonnet for complex agent generation reasoning
3233
model: sonnet
3334
color: magenta
34-
tools: ["Write", "Read"]
35+
tools: Write, Read
3536
---
3637

3738
You are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.
@@ -116,7 +117,7 @@ When a user describes what they want an agent to do, you will:
116117
description: [Use this agent when... Examples: <example>...</example>]
117118
model: inherit
118119
color: [chosen-color]
119-
tools: ["Tool1", "Tool2"] # Optional
120+
tools: Tool1, Tool2 # Optional
120121
---
121122
122123
[Complete system prompt]

plugins/plugin-dev/agents/plugin-validator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ assistant: "I'll use the plugin-validator agent to check the marketplace."
4343

4444
model: inherit
4545
color: yellow
46-
tools: ["Read", "Grep", "Glob", "Bash"]
46+
tools: Read, Grep, Glob, Bash
4747
---
4848

4949
You are an expert plugin and marketplace validator specializing in comprehensive validation of Claude Code plugin structure, configuration, components, and plugin marketplaces.
@@ -106,7 +106,7 @@ First, determine what type of validation is needed:
106106
5. **Validate Agents** (if `agents/` exists):
107107
- Use Glob to find `agents/**/*.md`
108108
- For each agent file:
109-
- Use the validate-agent.sh utility from agent-development skill
109+
- Use `./skills/agent-development/scripts/validate-agent.sh` utility
110110
- Or manually check:
111111
- Frontmatter with `name`, `description`, `model`, `color`
112112
- Name format (lowercase, hyphens, 3-50 chars)
@@ -125,7 +125,7 @@ First, determine what type of validation is needed:
125125
- Validate referenced files exist
126126

127127
7. **Validate Hooks** (if `hooks/hooks.json` exists):
128-
- Use the validate-hook-schema.sh utility from hook-development skill
128+
- Use `./skills/hook-development/scripts/validate-hook-schema.sh` utility
129129
- Or manually check:
130130
- Valid JSON syntax
131131
- Valid event names (PreToolUse, PostToolUse, Stop, etc.)

plugins/plugin-dev/agents/skill-reviewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Skill description modified, review for triggering effectiveness.
3232

3333
model: inherit
3434
color: cyan
35-
tools: ["Read", "Grep", "Glob"]
35+
tools: Read, Grep, Glob
3636
---
3737

3838
You are an expert skill architect specializing in reviewing and improving Claude Code skills for maximum effectiveness and reliability.

0 commit comments

Comments
 (0)