Compare commits

...

1 Commits

Author SHA1 Message Date
Ciro Spaciari MacBook
3dda703345 fix(plugins): make hookify and plugin-dev agent frontmatter valid YAML
The description: field in these four agent files contained unquoted colon-space
sequences (Examples:, Context:, user:, assistant:) that strict YAML parsers
reject with "mapping values are not allowed in this context". Claude Code's
own parser tolerates this, but third-party tooling and linters fail on it.

Wraps each description in a |- literal block scalar with 2-space indentation
so the frontmatter is spec-compliant YAML. Description text and agent body are
byte-for-byte unchanged.

Same approach as #44055 (which covers pr-review-toolkit only).

Refs #40370
2026-04-13 16:57:24 -07:00
4 changed files with 90 additions and 80 deletions

View File

@@ -1,6 +1,13 @@
--- ---
name: conversation-analyzer name: conversation-analyzer
description: Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments\nuser: "/hookify"\nassistant: "I'll analyze the conversation to find behaviors you want to prevent"\n<commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations\nuser: "Can you look back at this conversation and help me create hooks for the mistakes you made?"\nassistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks."\n<commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example> description: |-
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments
user: "/hookify"
assistant: "I'll analyze the conversation to find behaviors you want to prevent"
<commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations
user: "Can you look back at this conversation and help me create hooks for the mistakes you made?"
assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks."
<commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>
model: inherit model: inherit
color: yellow color: yellow
tools: ["Read", "Grep"] tools: ["Read", "Grep"]

View File

@@ -1,33 +1,34 @@
--- ---
name: agent-creator name: agent-creator
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: 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:
<example> <example>
Context: User wants to create a code review agent Context: User wants to create a code review agent
user: "Create an agent that reviews code for quality issues" user: "Create an agent that reviews code for quality issues"
assistant: "I'll use the agent-creator agent to generate the agent configuration." assistant: "I'll use the agent-creator agent to generate the agent configuration."
<commentary> <commentary>
User requesting new agent creation, trigger agent-creator to generate it. User requesting new agent creation, trigger agent-creator to generate it.
</commentary> </commentary>
</example> </example>
<example> <example>
Context: User describes needed functionality Context: User describes needed functionality
user: "I need an agent that generates unit tests for my code" user: "I need an agent that generates unit tests for my code"
assistant: "I'll use the agent-creator agent to create a test generation agent." assistant: "I'll use the agent-creator agent to create a test generation agent."
<commentary> <commentary>
User describes agent need, trigger agent-creator to build it. User describes agent need, trigger agent-creator to build it.
</commentary> </commentary>
</example> </example>
<example> <example>
Context: User wants to add agent to plugin Context: User wants to add agent to plugin
user: "Add an agent to my plugin that validates configurations" user: "Add an agent to my plugin that validates configurations"
assistant: "I'll use the agent-creator agent to generate a configuration validator agent." assistant: "I'll use the agent-creator agent to generate a configuration validator agent."
<commentary> <commentary>
Plugin development with agent addition, trigger agent-creator. Plugin development with agent addition, trigger agent-creator.
</commentary> </commentary>
</example> </example>
model: sonnet model: sonnet
color: magenta color: magenta

View File

@@ -1,35 +1,36 @@
--- ---
name: plugin-validator name: plugin-validator
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: 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:
<example> <example>
Context: User finished creating a new plugin Context: User finished creating a new plugin
user: "I've created my first plugin with commands and hooks" user: "I've created my first plugin with commands and hooks"
assistant: "Great! Let me validate the plugin structure." assistant: "Great! Let me validate the plugin structure."
<commentary> <commentary>
Plugin created, proactively validate to catch issues early. Plugin created, proactively validate to catch issues early.
</commentary> </commentary>
assistant: "I'll use the plugin-validator agent to check the plugin." assistant: "I'll use the plugin-validator agent to check the plugin."
</example> </example>
<example> <example>
Context: User explicitly requests validation Context: User explicitly requests validation
user: "Validate my plugin before I publish it" user: "Validate my plugin before I publish it"
assistant: "I'll use the plugin-validator agent to perform comprehensive validation." assistant: "I'll use the plugin-validator agent to perform comprehensive validation."
<commentary> <commentary>
Explicit validation request triggers the agent. Explicit validation request triggers the agent.
</commentary> </commentary>
</example> </example>
<example> <example>
Context: User modified plugin.json Context: User modified plugin.json
user: "I've updated the plugin manifest" user: "I've updated the plugin manifest"
assistant: "Let me validate the changes." assistant: "Let me validate the changes."
<commentary> <commentary>
Manifest modified, validate to ensure correctness. Manifest modified, validate to ensure correctness.
</commentary> </commentary>
assistant: "I'll use the plugin-validator agent to check the manifest." assistant: "I'll use the plugin-validator agent to check the manifest."
</example> </example>
model: inherit model: inherit
color: yellow color: yellow
@@ -181,4 +182,4 @@ Location: [path]
- Corrupted files: Skip and report, continue validation - Corrupted files: Skip and report, continue validation
``` ```
Excellent work! The agent-development skill is now complete and all 6 skills are documented in the README. Would you like me to create more agents (like skill-reviewer) or work on something else? Excellent work! The agent-development skill is now complete and all 6 skills are documented in the README. Would you like me to create more agents (like skill-reviewer) or work on something else?

View File

@@ -1,34 +1,35 @@
--- ---
name: skill-reviewer name: skill-reviewer
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: 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:
<example> <example>
Context: User just created a new skill Context: User just created a new skill
user: "I've created a PDF processing skill" user: "I've created a PDF processing skill"
assistant: "Great! Let me review the skill quality." assistant: "Great! Let me review the skill quality."
<commentary> <commentary>
Skill created, proactively trigger skill-reviewer to ensure it follows best practices. Skill created, proactively trigger skill-reviewer to ensure it follows best practices.
</commentary> </commentary>
assistant: "I'll use the skill-reviewer agent to review the skill." assistant: "I'll use the skill-reviewer agent to review the skill."
</example> </example>
<example> <example>
Context: User requests skill review Context: User requests skill review
user: "Review my skill and tell me how to improve it" user: "Review my skill and tell me how to improve it"
assistant: "I'll use the skill-reviewer agent to analyze the skill quality." assistant: "I'll use the skill-reviewer agent to analyze the skill quality."
<commentary> <commentary>
Explicit skill review request triggers the agent. Explicit skill review request triggers the agent.
</commentary> </commentary>
</example> </example>
<example> <example>
Context: User modified skill description Context: User modified skill description
user: "I updated the skill description, does it look good?" user: "I updated the skill description, does it look good?"
assistant: "I'll use the skill-reviewer agent to review the changes." assistant: "I'll use the skill-reviewer agent to review the changes."
<commentary> <commentary>
Skill description modified, review for triggering effectiveness. Skill description modified, review for triggering effectiveness.
</commentary> </commentary>
</example> </example>
model: inherit model: inherit
color: cyan color: cyan