Creating plugins
Agents vs Skills
Section titled “Agents vs Skills”| Agents | Skills | |
|---|---|---|
| Context | Isolated | Shared |
| Scope | Multi-step domain | Single capability |
| Use | Specialized tasks | Knowledge patterns |
| Invoke | @plugin:agent |
Auto by context |
- Use agent when: Complex task, needs isolation, multi-step workflow
- Use skill when: Reference knowledge, patterns, coding standards
Agents
Section titled “Agents”Isolated AI assistants with custom prompts, tools, models. Claude auto-routes based on description.
Create Agents
Section titled “Create Agents”There are two ways to create an agent for your plugin:
1 - Use the @MetaAgent
Section titled “1 - Use the @MetaAgent”Inside Claude Code, run:
@awl-general:MetaAgent create an agent for Docker deploymentsThis generates a complete agent config from description.
2 - Create the file manually
Section titled “2 - Create the file manually”<details> <summary>See how
Structure
Section titled “Structure”The agent config is a Markdown file with frontmatter and instructions:
File: `plugins/[plugin]/agents/[name].md`
```yaml---name: code-auditordescription: Security and performance code review. Use for PRs, vulnerabilities, optimization.tools: Read, Grep, Glob, Bashmodel: sonnet---
# PurposeReview code for security and performance.
## Instructions1. Check OWASP Top 102. Find performance bottlenecks3. Verify error handling
## Output Format- Critical (security/perf)- Warnings- SuggestionsConfig Options
Section titled “Config Options”| Field | Purpose | Values |
|---|---|---|
name |
Identifier | code-monkey |
description |
Auto-routing trigger | Specific use cases |
tools |
Available tools | Read, Write, Bash, Grep or omit for all |
model |
Model | sonnet, opus, haiku, inherit |
Skills
Section titled “Skills”Reusable knowledge patterns. Claude activates automatically based on context.
Create Skill
Section titled “Create Skill”Structure:
plugins/[plugin]/skills/[name]/├── SKILL.md # Required└── references/ # Optional supporting docsFile: SKILL.md
---name: django-queriesdescription: Django ORM optimization. Use for N+1 problems, select_related, prefetch_related.---
# Query Optimization
## Patterns- Use select_related for FK- Use prefetch_related for M2M- Avoid queries in loops
## Examples[code examples]Combining Agents & Skills
Section titled “Combining Agents & Skills”Mention skills in agent context to specialize:
---name: kotlin-developerdescription: Kotlin/Android development specialisttools: Read, Write, Edit, Bash---# Kotlin DeveloperUse the kotlin-testing and android-architecture skills for best practices.The agent loads those skills’ knowledge automatically when invoked.

