You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e830ff6
Browse filesBrowse the repository at this point in the historyBrowse files
plugin-dev: make agent descriptions parseable YAML and validate the form
Four shipped agent files (plugin-dev agent-creator, plugin-validator,
skill-reviewer; pr-review-toolkit code-simplifier) carry a multi-line
description with unindented continuation lines and a first line ending
in "Examples:". Claude Code's YAML parser rejects that frontmatter: in
.claude/agents/ the file is ignored, and as a plugin agent it is
registered with the placeholder description "Agent from <plugin>
plugin" and no triggering examples.
- Rewrite the four descriptions as `description: |-` block scalars
(text unchanged; code-simplifier's literal "\n" become line breaks).
- Teach the same form in the agent-development skill: Complete Format,
Minimal Agent, the description syntax note, the documented examples
and references, and agent-creator's own instructions and template.
- validate-agent.sh: read the description as a YAML parser does and
reject the three shapes the parser cannot load (value ending in ':',
unindented continuation, ': ' inside a plain continuation); stop
aborting on a missing field (grep exit 1 under set -euo pipefail);
count with $((x + 1)) instead of ((x++)).
- validate-agent.test.sh: pin full-length extraction, exact length with
keys after the description, the three rejections, the two accepted
fragile shapes, warnings-only exit 0, optional tools, missing field.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copy file name to clipboardExpand all lines: plugins/plugin-dev/agents/agent-creator.md
+50-30Lines changed: 50 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,34 @@
1
1
---
2
2
name: agent-creator
3
-
description: Use this agent when the user asks to "create an agent", "generate an agent", "build a new agent", "make me an agent that...", or describes agent functionality they need. Trigger when user wants to create autonomous agents for plugins. Examples:
4
-
5
-
<example>
6
-
Context: User wants to create a code review agent
7
-
user: "Create an agent that reviews code for quality issues"
8
-
assistant: "I'll use the agent-creator agent to generate the agent configuration."
9
-
<commentary>
10
-
User requesting new agent creation, trigger agent-creator to generate it.
11
-
</commentary>
12
-
</example>
13
-
14
-
<example>
15
-
Context: User describes needed functionality
16
-
user: "I need an agent that generates unit tests for my code"
17
-
assistant: "I'll use the agent-creator agent to create a test generation agent."
18
-
<commentary>
19
-
User describes agent need, trigger agent-creator to build it.
20
-
</commentary>
21
-
</example>
22
-
23
-
<example>
24
-
Context: User wants to add agent to plugin
25
-
user: "Add an agent to my plugin that validates configurations"
26
-
assistant: "I'll use the agent-creator agent to generate a configuration validator agent."
27
-
<commentary>
28
-
Plugin development with agent addition, trigger agent-creator.
29
-
</commentary>
30
-
</example>
3
+
description: |-
4
+
Use this agent when the user asks to "create an agent", "generate an agent", "build a new agent", "make me an agent that...", or describes agent functionality they need. Trigger when user wants to create autonomous agents for plugins. Examples:
5
+
6
+
<example>
7
+
Context: User wants to create a code review agent
8
+
user: "Create an agent that reviews code for quality issues"
9
+
assistant: "I'll use the agent-creator agent to generate the agent configuration."
10
+
<commentary>
11
+
User requesting new agent creation, trigger agent-creator to generate it.
12
+
</commentary>
13
+
</example>
14
+
15
+
<example>
16
+
Context: User describes needed functionality
17
+
user: "I need an agent that generates unit tests for my code"
18
+
assistant: "I'll use the agent-creator agent to create a test generation agent."
19
+
<commentary>
20
+
User describes agent need, trigger agent-creator to build it.
21
+
</commentary>
22
+
</example>
23
+
24
+
<example>
25
+
Context: User wants to add agent to plugin
26
+
user: "Add an agent to my plugin that validates configurations"
27
+
assistant: "I'll use the agent-creator agent to generate a configuration validator agent."
28
+
<commentary>
29
+
Plugin development with agent addition, trigger agent-creator.
30
+
</commentary>
31
+
</example>
31
32
32
33
model: sonnet
33
34
color: magenta
@@ -78,7 +79,8 @@ When a user describes what they want an agent to do, you will:
78
79
79
80
2.**Design Agent Configuration**:
80
81
-**Identifier**: Create concise, descriptive name (lowercase, hyphens, 3-50 chars)
81
-
-**Description**: Write triggering conditions starting with "Use this agent when..."
82
+
-**Description**: Write triggering conditions starting with "Use this agent when...", as a
83
+
YAML block scalar (`description: |-`) with every line indented two spaces
Copy file name to clipboardExpand all lines: plugins/plugin-dev/agents/plugin-validator.md
+31-30Lines changed: 31 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,36 @@
1
1
---
2
2
name: plugin-validator
3
-
description: Use this agent when the user asks to "validate my plugin", "check plugin structure", "verify plugin is correct", "validate plugin.json", "check plugin files", or mentions plugin validation. Also trigger proactively after user creates or modifies plugin components. Examples:
4
-
5
-
<example>
6
-
Context: User finished creating a new plugin
7
-
user: "I've created my first plugin with commands and hooks"
8
-
assistant: "Great! Let me validate the plugin structure."
9
-
<commentary>
10
-
Plugin created, proactively validate to catch issues early.
11
-
</commentary>
12
-
assistant: "I'll use the plugin-validator agent to check the plugin."
13
-
</example>
14
-
15
-
<example>
16
-
Context: User explicitly requests validation
17
-
user: "Validate my plugin before I publish it"
18
-
assistant: "I'll use the plugin-validator agent to perform comprehensive validation."
19
-
<commentary>
20
-
Explicit validation request triggers the agent.
21
-
</commentary>
22
-
</example>
23
-
24
-
<example>
25
-
Context: User modified plugin.json
26
-
user: "I've updated the plugin manifest"
27
-
assistant: "Let me validate the changes."
28
-
<commentary>
29
-
Manifest modified, validate to ensure correctness.
30
-
</commentary>
31
-
assistant: "I'll use the plugin-validator agent to check the manifest."
32
-
</example>
3
+
description: |-
4
+
Use this agent when the user asks to "validate my plugin", "check plugin structure", "verify plugin is correct", "validate plugin.json", "check plugin files", or mentions plugin validation. Also trigger proactively after user creates or modifies plugin components. Examples:
5
+
6
+
<example>
7
+
Context: User finished creating a new plugin
8
+
user: "I've created my first plugin with commands and hooks"
9
+
assistant: "Great! Let me validate the plugin structure."
10
+
<commentary>
11
+
Plugin created, proactively validate to catch issues early.
12
+
</commentary>
13
+
assistant: "I'll use the plugin-validator agent to check the plugin."
14
+
</example>
15
+
16
+
<example>
17
+
Context: User explicitly requests validation
18
+
user: "Validate my plugin before I publish it"
19
+
assistant: "I'll use the plugin-validator agent to perform comprehensive validation."
20
+
<commentary>
21
+
Explicit validation request triggers the agent.
22
+
</commentary>
23
+
</example>
24
+
25
+
<example>
26
+
Context: User modified plugin.json
27
+
user: "I've updated the plugin manifest"
28
+
assistant: "Let me validate the changes."
29
+
<commentary>
30
+
Manifest modified, validate to ensure correctness.
31
+
</commentary>
32
+
assistant: "I'll use the plugin-validator agent to check the manifest."
Copy file name to clipboardExpand all lines: plugins/plugin-dev/agents/skill-reviewer.md
+30-29Lines changed: 30 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,35 @@
1
1
---
2
2
name: skill-reviewer
3
-
description: Use this agent when the user has created or modified a skill and needs quality review, asks to "review my skill", "check skill quality", "improve skill description", or wants to ensure skill follows best practices. Trigger proactively after skill creation. Examples:
4
-
5
-
<example>
6
-
Context: User just created a new skill
7
-
user: "I've created a PDF processing skill"
8
-
assistant: "Great! Let me review the skill quality."
9
-
<commentary>
10
-
Skill created, proactively trigger skill-reviewer to ensure it follows best practices.
11
-
</commentary>
12
-
assistant: "I'll use the skill-reviewer agent to review the skill."
13
-
</example>
14
-
15
-
<example>
16
-
Context: User requests skill review
17
-
user: "Review my skill and tell me how to improve it"
18
-
assistant: "I'll use the skill-reviewer agent to analyze the skill quality."
19
-
<commentary>
20
-
Explicit skill review request triggers the agent.
21
-
</commentary>
22
-
</example>
23
-
24
-
<example>
25
-
Context: User modified skill description
26
-
user: "I updated the skill description, does it look good?"
27
-
assistant: "I'll use the skill-reviewer agent to review the changes."
28
-
<commentary>
29
-
Skill description modified, review for triggering effectiveness.
30
-
</commentary>
31
-
</example>
3
+
description: |-
4
+
Use this agent when the user has created or modified a skill and needs quality review, asks to "review my skill", "check skill quality", "improve skill description", or wants to ensure skill follows best practices. Trigger proactively after skill creation. Examples:
5
+
6
+
<example>
7
+
Context: User just created a new skill
8
+
user: "I've created a PDF processing skill"
9
+
assistant: "Great! Let me review the skill quality."
10
+
<commentary>
11
+
Skill created, proactively trigger skill-reviewer to ensure it follows best practices.
12
+
</commentary>
13
+
assistant: "I'll use the skill-reviewer agent to review the skill."
14
+
</example>
15
+
16
+
<example>
17
+
Context: User requests skill review
18
+
user: "Review my skill and tell me how to improve it"
19
+
assistant: "I'll use the skill-reviewer agent to analyze the skill quality."
20
+
<commentary>
21
+
Explicit skill review request triggers the agent.
22
+
</commentary>
23
+
</example>
24
+
25
+
<example>
26
+
Context: User modified skill description
27
+
user: "I updated the skill description, does it look good?"
28
+
assistant: "I'll use the skill-reviewer agent to review the changes."
29
+
<commentary>
30
+
Skill description modified, review for triggering effectiveness.
0 commit comments