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
Copy file name to clipboardExpand all lines: .claude-plugin/marketplace.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@
6
6
},
7
7
"metadata": {
8
8
"description": "Unofficial plugin-dev plugin marketplace for plugin-dev Claude Code plugin - the plugin itself was initially created by Daisy Hollman at Anthropic.",
9
-
"version": "0.3.1"
9
+
"version": "0.3.2"
10
10
},
11
11
"plugins": [
12
12
{
13
13
"name": "plugin-dev",
14
14
"description": "Comprehensive toolkit for developing Claude Code plugins. Includes 9 expert skills covering hooks, MCP integration, LSP servers, commands, agents, marketplaces, and best practices. AI-assisted plugin creation and validation.",
Copy file name to clipboardExpand all lines: plugins/plugin-dev/.claude-plugin/plugin.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "plugin-dev",
3
-
"version": "0.3.1",
3
+
"version": "0.3.2",
4
4
"description": "Comprehensive toolkit for developing Claude Code plugins. Includes 9 expert skills covering hooks, MCP integration, LSP servers, commands, agents, marketplaces, and best practices. AI-assisted plugin creation and validation.",
Copy file name to clipboardExpand all lines: plugins/plugin-dev/skills/agent-development/SKILL.md
+33-90Lines changed: 33 additions & 90 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,17 +80,13 @@ For complete format with all options, see [Agent File Structure](#agent-file-str
80
80
- Action should not happen automatically
81
81
- Workflow requires user confirmation at each step
82
82
83
-
For command development guidance, see the `command-development` skill.
84
-
85
83
### Choose Skills When
86
84
87
85
- Providing knowledge or procedural guidance
88
86
- Extending Claude's domain expertise
89
87
- No autonomous execution needed
90
88
- Information should be available contextually on-demand
91
89
92
-
For skill development guidance, see the `skill-development` skill.
93
-
94
90
## Agent File Structure
95
91
96
92
### Complete Format
@@ -293,68 +289,41 @@ permissionMode: acceptEdits
293
289
294
290
**Security note:** Use restrictive modes (`plan`, `acceptEdits`) for untrusted agents. `bypassPermissions` should only be used for fully trusted agents.
295
291
296
-
## System Prompt Design
297
-
298
-
The markdown body becomes the agent's system prompt. Write in second person, addressing the agent directly.
299
-
300
-
### Structure
301
-
302
-
**Standard template:**
303
-
304
-
```markdown
305
-
You are [role] specializing in [domain].
306
-
307
-
**Your Core Responsibilities:**
308
-
309
-
1. [Primary responsibility]
310
-
2. [Secondary responsibility]
311
-
3. [Additional responsibilities...]
312
-
313
-
**Analysis Process:**
314
-
315
-
1. [Step one]
316
-
2. [Step two]
317
-
3. [Step three]
318
-
[...]
292
+
### Fields NOT Available for Agents
319
293
320
-
**Quality Standards:**
294
+
Some frontmatter fields are specific to skills and do not apply to agents:
321
295
322
-
- [Standard 1]
323
-
- [Standard 2]
296
+
| Skill-Only Field | Purpose | Why Not for Agents |
| `context: fork` | Run skill in separate subagent context | Agents already run as subprocesses by design |
299
+
| `agent` | Specify agent type for forked context | Only applies when `context: fork` is set |
300
+
| `user-invocable` | Control slash menu visibility | Agents aren't invoked via slash commands |
301
+
| `disable-model-invocation` | Block programmatic Skill tool usage | Agents use Task tool, not Skill tool |
302
+
| `allowed-tools` | Restrict tool access (skill syntax) | Agents use `tools` field instead (different field name) |
324
303
325
-
**Output Format:**
326
-
Provide results in this format:
304
+
**Key distinction:** Skills provide knowledge and guidance that loads into context. Agents are autonomous subprocesses that execute independently. This architectural difference explains why context-forking options don't apply to agents—they're already isolated processes.
327
305
328
-
- [What to include]
329
-
- [How to structure]
306
+
## System Prompt Design
330
307
331
-
**Edge Cases:**
332
-
Handle these situations:
308
+
The markdown body becomes the agent's system prompt. Write in second person, addressing the agent directly.
333
309
334
-
- [Edge case 1]: [How to handle]
335
-
- [Edge case 2]: [How to handle]
336
-
```
310
+
**Key elements:**
337
311
338
-
### Best Practices
312
+
- Role definition ("You are [role] specializing in [domain]")
313
+
- Core responsibilities (numbered list)
314
+
- Process steps (concrete, actionable)
315
+
- Quality standards (measurable criteria)
316
+
- Output format (specific structure)
317
+
- Edge cases (how to handle exceptions)
339
318
340
-
✅ **DO:**
319
+
**Best practices:**
341
320
342
321
- Write in second person ("You are...", "You will...")
343
-
- Be specific about responsibilities
344
-
- Provide step-by-step process
345
-
- Define output format
346
-
- Include quality standards
347
-
- Address edge cases
322
+
- Be specific, not vague
348
323
- Keep under 10,000 characters
324
+
- Include concrete steps, not generic instructions
349
325
350
-
❌ **DON'T:**
351
-
352
-
- Write in first person ("I am...", "I will...")
353
-
- Be vague or generic
354
-
- Omit process steps
355
-
- Leave output format undefined
356
-
- Skip quality guidance
357
-
- Ignore error cases
326
+
For detailed templates and patterns (Analysis, Generation, Validation, Orchestration agents), see `references/system-prompt-design.md`.
358
327
359
328
## Creating Agents
360
329
@@ -441,6 +410,16 @@ plugin-name/
441
410
442
411
All `.md` files in `agents/` are auto-discovered.
443
412
413
+
### Portable Paths
414
+
415
+
When referencing files within your plugin (scripts, references, etc.) from agent system prompts, use `${CLAUDE_PLUGIN_ROOT}` for portable paths:
416
+
417
+
```markdown
418
+
Run the validation script at `${CLAUDE_PLUGIN_ROOT}/scripts/validate.sh`
419
+
```
420
+
421
+
This variable resolves to the plugin's installation directory at runtime, ensuring paths work regardless of where the plugin is installed.
422
+
444
423
### Namespacing
445
424
446
425
Agents are namespaced automatically:
@@ -489,26 +468,6 @@ Ensure system prompt is complete:
489
468
490
469
## Quick Reference
491
470
492
-
### Minimal Agent
493
-
494
-
```markdown
495
-
---
496
-
name: simple-agent
497
-
description: Use this agent when... Examples: <example>...</example>
498
-
model: inherit
499
-
color: blue
500
-
---
501
-
502
-
You are an agent that [does X].
503
-
504
-
Process:
505
-
506
-
1.[Step 1]
507
-
2.[Step 2]
508
-
509
-
Output: [What to provide]
510
-
```
511
-
512
471
### Frontmatter Fields Summary
513
472
514
473
| Field | Required | Format | Example |
@@ -567,19 +526,3 @@ Development tools in `scripts/`:
567
526
-**`create-agent-skeleton.sh`** - Generate new agent file from template
Copy file name to clipboardExpand all lines: plugins/plugin-dev/skills/agent-development/examples/complete-agent-examples.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ assistant: "I'll use the code-reviewer agent to validate the changes."
43
43
44
44
model: inherit
45
45
color: blue
46
-
tools: ["Read", "Grep", "Glob"]
46
+
tools: Read, Grep, Glob
47
47
---
48
48
49
49
You are an expert code quality reviewer specializing in identifying issues, security vulnerabilities, and opportunities for improvement in software implementations.
@@ -152,7 +152,7 @@ Direct test generation request triggers the agent.
152
152
153
153
model: inherit
154
154
color: green
155
-
tools: ["Read", "Write", "Grep", "Bash"]
155
+
tools: Read, Write, Grep, Bash
156
156
---
157
157
158
158
You are an expert test engineer specializing in creating comprehensive, maintainable unit tests that ensure code correctness and reliability.
0 commit comments