Create Cowork Plugin
AnthropicOfficialPublished by Anthropic
- Skill
- Workflow
- Agent tooling
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured, conversational approach to creating plugins for the Cowork desktop app. It guides users through the entire lifecycle of plugin development, from initial discovery and component planning to design, implementation, and final packaging. By following this workflow, users can create modular, well-structured plugins that include skills, MCP server integrations, and agents, ultimately resulting in a ready-to-install .plugin file.
What it does
- Facilitates a five-phase development process: discovery, planning, design, implementation, and review.
- Helps define and structure plugin components like skills, agents, and MCP servers.
- Ensures adherence to required directory layouts and manifest file standards.
- Provides guidance on writing effective skill descriptions and imperative-style instructions.
- Automates the final packaging step by creating a validated .plugin file.
- Supports the creation of portable, tool-agnostic plugins using placeholder patterns.
When to use it
- When you need to build a new plugin from scratch for the Cowork environment.
- When you want to scaffold a plugin with specific skills, agents, or external tool integrations.
- When you are unsure about the required directory structure or manifest requirements for a plugin.
- When you need to package your developed components into a distributable .plugin file.
Advantages
- Ensures consistent plugin architecture and adherence to best practices.
- Reduces complexity by breaking down development into manageable, guided phases.
- Promotes the use of progressive disclosure for skill documentation.
- Simplifies the packaging process with automated validation and compression.
- Encourages modular design by helping users plan only the necessary components.
Usage examples
- “I want to create a new plugin to help me manage my project tasks.”
- The agent initiates the discovery phase, asking about the plugin's purpose, target users, and any necessary external tool integrations.
- “Can you help me build a plugin that integrates with my database?”
- The agent guides you through planning the MCP server component and defining the necessary skills to interact with the database.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/anthropics/create-cowork-plugin/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip create-cowork-plugin.zip -d .agents/skills
Documentation by Anthropic
Create Cowork Plugin
Build a new plugin from scratch through guided conversation. Walk the user through discovery, planning, design, implementation, and packaging — delivering a ready-to-install .plugin file at the end.
Overview
A plugin is a self-contained directory that extends Claude's capabilities with skills, agents, hooks, and MCP server integrations. This skill encodes the full plugin architecture and a five-phase workflow for creating one conversationally.
The process:
Discovery — understand what the user wants to build
Component Planning — determine which component types are needed
Design & Clarifying Questions — specify each component in detail
Implementation — create all plugin files
Review & Package — deliver the
.pluginfile
Nontechnical output: Keep all user-facing conversation in plain language. Do not expose implementation details like file paths, directory structures, or schema fields unless the user asks. Frame everything in terms of what the plugin will do.
Plugin Architecture
Directory Structure
Every plugin follows this layout:
plugin-name/
├── .claude-plugin/
│ └── plugin.json # Required: plugin manifest
├── skills/ # Skills (subdirectories with SKILL.md)
│ └── skill-name/
│ ├── SKILL.md
│ └── references/
├── agents/ # Subagent definitions (.md files)
├── .mcp.json # MCP server definitions
└── README.md # Plugin documentationLegacy
commands/format: Older plugins may include acommands/directory with single-file.mdslash commands. This format still works, but new plugins should useskills/*/SKILL.mdinstead — the Cowork UI presents both as a single "Skills" concept, and the skills format supports progressive disclosure viareferences/.
Rules:
.claude-plugin/plugin.jsonis always requiredComponent directories (
skills/,agents/) go at the plugin root, not inside.claude-plugin/Only create directories for components the plugin actually uses
Use kebab-case for all directory and file names
plugin.json Manifest
Located at .claude-plugin/plugin.json. Minimal required field is name.
{
"name": "plugin-name",
"version": "0.1.0",
"description": "Brief explanation of plugin purpose",
"author": {
"name": "Author Name"
}
}Name rules: kebab-case, lowercase with hyphens, no spaces or special characters.
Version: semver format (MAJOR.MINOR.PATCH). Start at 0.1.0.
Optional fields: homepage, repository, license, keywords.
Custom component paths can be specified (supplements, does not replace, auto-discovery):
{
"commands": "./custom-commands",
"agents": ["./agents", "./specialized-agents"],
"hooks": "./config/hooks.json",
"mcpServers": "./.mcp.json"
}Component Schemas
Detailed schemas for each component type are in references/component-schemas.md. Summary:
| Component | Location | Format |
|---|---|---|
| Skills | skills/*/SKILL.md | Markdown + YAML frontmatter |
| MCP Servers | .mcp.json | JSON |
| Agents (uncommonly used in Cowork) | agents/*.md | Markdown + YAML frontmatter |
| Hooks (rarely used in Cowork) | hooks/hooks.json | JSON |
| Commands (legacy) | commands/*.md | Markdown + YAML frontmatter |
This schema is shared with Claude Code's plugin system, but you're creating a plugin for Claude Cowork, a desktop app for doing knowledge work.
Cowork users will usually find skills the most useful. Scaffold new plugins with skills/*/SKILL.md — do not create commands/ unless the user explicitly needs the legacy single-file format.
Customizable plugins with ~~ placeholders
Do not use or ask about this pattern by default. Only introduce
~~placeholders if the user explicitly says they want people outside their organization to use the plugin. You can mention this is an option if it seems like the user wants to distribute the plugin externally, but do not proactively ask about this with AskUserQuestion.
When a plugin is intended to be shared with others outside their company, it might have parts that need to be adapted to individual users.
You might need to reference external tools by category rather than specific product (e.g., "project tracker" instead of "Jira").
When sharing is needed, use generic language and mark these as requiring customization with two tilde characters such as create an issue in ~~project tracker.
If used any tool categories, write a CONNECTORS.md file at the plugin root to explain:
# Connectors
## How tool references work
Plugin files use `~~category` as a placeholder for whatever tool the user
connects in that category. Plugins are tool-agnostic — they describe
workflows in terms of categories rather than specific products.
## Connectors for this plugin
| Category | Placeholder | Options |
| --------------- | ------------------- | ------------------------------- |
| Chat | `~~chat` | Slack, Microsoft Teams, Discord |
| Project tracker | `~~project tracker` | Linear, Asana, Jira |${CLAUDE_PLUGIN_ROOT} Variable
Use ${CLAUDE_PLUGIN_ROOT} for all intra-plugin path references in hooks and MCP configs. Never hardcode absolute paths.
Guided Workflow
When you ask the user something, use AskUserQuestion. Don't assume "industry standard" defaults are correct. Note: AskUserQuestion always includes a Skip button and a free-text input box for custom answers, so do not include None or Other as options.
Phase 1: Discovery
Goal: Understand what the user wants to build and why.
Ask (only what is unclear — skip questions if the user's initial request already answers them):
What should this plugin do? What problem does it solve?
Who will use it and in what context?
Does it integrate with any external tools or services?
Is there a similar plugin or workflow to reference?
Summarize understanding and confirm before proceeding.
Output: Clear statement of plugin purpose and scope.
Phase 2: Component Planning
Goal: Determine which component types the plugin needs.
Based on the discovery answers, determine:
Skills — Does it need specialized knowledge that Claude should load on-demand, or user-initiated actions? (domain expertise, reference schemas, workflow guides, deploy/configure/analyze/review actions)
MCP Servers — Does it need external service integration? (databases, APIs, SaaS tools)
Agents (uncommon) — Are there autonomous multi-step tasks? (validation, generation, analysis)
Hooks (rare) — Should something happen automatically on certain events? (enforce policies, load context, validate operations)
Present a component plan table, including component types you decided not to create:
| Component | Count | Purpose |
|-----------|-------|---------|
| Skills | 3 | Domain knowledge for X, /do-thing, /check-thing |
| Agents | 0 | Not needed |
| Hooks | 1 | Validate writes |
| MCP | 1 | Connect to service Y |Get user confirmation or adjustments before proceeding.
Output: Confirmed list of components to create.
Phase 3: Design & Clarifying Questions
Goal: Specify each component in detail. Resolve all ambiguities before implementation.
For each component type in the plan, ask targeted design questions. Present questions grouped by component type. Wait for answers before proceeding.
Skills:
What user queries should trigger this skill?
What knowledge domains does it cover?
Should it include reference files for detailed content?
If the skill represents a user-initiated action: what arguments does it accept, and what tools does it need? (Read, Write, Bash, Grep, etc.)
Agents:
Should each agent trigger proactively or only when requested?
What tools does it need?
What should the output format be?
Hooks:
Which events? (PreToolUse, PostToolUse, Stop, SessionStart, etc.)
What behavior — validate, block, modify, add context?
Prompt-based (LLM-driven) or command-based (deterministic script)?
MCP Servers:
What server type? (stdio for local, SSE for hosted with OAuth, HTTP for REST APIs)
What authentication method?
What tools should be exposed?
If the user says "whatever you think is best," provide specific recommendations and get explicit confirmation.
Output: Detailed specification for every component.
Phase 4: Implementation
Goal: Create all plugin files following best practices.
Order of operations:
Create the plugin directory structure
Create
plugin.jsonmanifestCreate each component (see
references/component-schemas.mdfor exact formats)Create
README.mddocumenting the plugin
Implementation guidelines:
Skills use progressive disclosure: lean SKILL.md body (under 3,000 words), detailed content in
references/. Frontmatter description must be third-person with specific trigger phrases. Skill bodies are instructions FOR Claude, not messages to the user — write them as directives about what to do.Agents need a description with
<example>blocks showing triggering conditions, plus a system prompt in the markdown body.Hooks config goes in
hooks/hooks.json. Use${CLAUDE_PLUGIN_ROOT}for script paths. Prefer prompt-based hooks for complex logic.MCP configs go in
.mcp.jsonat plugin root. Use${CLAUDE_PLUGIN_ROOT}for local server paths. Document required env vars in README.
Phase 5: Review & Package
Goal: Deliver the finished plugin.
Summarize what was created — list each component and its purpose
Ask if the user wants any adjustments
Run
claude plugin validate <path-to-plugin-json>to check the plugin structure. If this command is unavailable (e.g., when running inside Cowork), verify the structure manually:.claude-plugin/plugin.jsonexists and contains valid JSON with at least anamefieldThe
namefield is kebab-case (lowercase letters, numbers, and hyphens only)Any component directories referenced by the plugin (
commands/,skills/,agents/,hooks/) actually exist and contain files in the expected formats —.mdfor commands/skills/agents,.jsonfor hooksEach skill subdirectory contains a
SKILL.mdReport what passed and what didn't, the same way the CLI validator would
Fix any errors before proceeding.
Package as a
.pluginfile:
cd /path/to/plugin-dir && zip -r /tmp/plugin-name.plugin . -x "*.DS_Store" && cp /tmp/plugin-name.plugin /path/to/outputs/plugin-name.pluginImportant: Always create the zip in
/tmp/first, then copy to the outputs folder. Writing directly to the outputs folder may fail due to permissions.
Naming: Use the plugin name from
plugin.jsonfor the.pluginfile (e.g., if name iscode-reviewer, outputcode-reviewer.plugin).
The .plugin file will appear in the chat as a rich preview where the user can browse the files and accept the plugin by pressing a button.
Best Practices
Start small: Begin with the minimum viable set of components. A plugin with one well-crafted skill is more useful than one with five half-baked components.
Progressive disclosure for skills: Core knowledge in SKILL.md, detailed reference material in
references/, working examples inexamples/.Clear trigger phrases: Skill descriptions should include specific phrases users would say. Agent descriptions should include
<example>blocks.Skills are for Claude: Write skill body content as instructions for Claude to follow, not documentation for the user to read.
Imperative writing style: Use verb-first instructions in skills ("Parse the config file," not "You should parse the config file").
Portability: Always use
${CLAUDE_PLUGIN_ROOT}for intra-plugin paths, never hardcoded paths.Security: Use environment variables for credentials, HTTPS for remote servers, least-privilege tool access.
Additional Resources
references/component-schemas.md— Detailed format specifications for every component type (skills, agents, hooks, MCP, legacy commands, CONNECTORS.md)references/example-plugins.md— Three complete example plugin structures at different complexity levels
Files
- ATTRIBUTION.mdAdded by AutoGineer1000 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md13.0 KiB
- references/component-schemas.md11.4 KiB
- references/example-plugins.md8.1 KiB
references/component-schemas.md
Component Schemas
Detailed format specifications for every plugin component type. Reference this when implementing components in Phase 4.
Skills
Location: skills/skill-name/SKILL.md
Format: Markdown with YAML frontmatter
Frontmatter Fields
| Field | Required | Type | Description |
|---|---|---|---|
name | Yes | String | Skill identifier (lowercase, hyphens; matches dir name) |
description | Yes | String | Third-person description with trigger phrases |
metadata | No | Map | Arbitrary key-value pairs (e.g., version, author) |
Example Skill
---
name: api-design
description: >
This skill should be used when the user asks to "design an API",
"create API endpoints", "review API structure", or needs guidance
on REST API best practices, endpoint naming, or request/response design.
metadata:
version: "0.1.0"
---Writing Style Rules
Frontmatter description: Third-person ("This skill should be used when..."), with specific trigger phrases in quotes.
Body: Imperative/infinitive form ("Parse the config file," not "You should parse the config file").
Length: Keep SKILL.md body under 3,000 words (ideally 1,500-2,000). Move detailed content to
references/.
Skill Directory Structure
skill-name/
├── SKILL.md # Core knowledge (required)
├── references/ # Detailed docs loaded on demand
│ ├── patterns.md
│ └── advanced.md
├── examples/ # Working code examples
│ └── sample-config.json
└── scripts/ # Utility scripts
└── validate.shProgressive Disclosure Levels
Metadata (always in context): name + description (~100 words)
SKILL.md body (when skill triggers): core knowledge (<5k words)
Bundled resources (as needed): references, examples, scripts (unlimited)
Agents
Location: agents/agent-name.md
Format: Markdown with YAML frontmatter
Frontmatter Fields
| Field | Required | Type | Description |
|---|---|---|---|
name | Yes | String | Lowercase, hyphens, 3-50 chars |
description | Yes | String | Triggering conditions with <example> blocks |
model | Yes | String | inherit, sonnet, opus, or haiku |
color | Yes | String | blue, cyan, green, yellow, magenta, red |
tools | No | Array | Restrict to specific tools |
Example Agent
---
name: code-reviewer
description: Use this agent when the user asks for a thorough code review or wants detailed analysis of code quality, security, and best practices.
<example>
Context: User has just written a new module
user: "Can you do a deep review of this code?"
assistant: "I'll use the code-reviewer agent to provide a thorough analysis."
<commentary>
User explicitly requested a detailed review, which matches this agent's specialty.
</commentary>
</example>
<example>
Context: User is about to merge a PR
user: "Review this before I merge"
assistant: "Let me run a comprehensive review using the code-reviewer agent."
<commentary>
Pre-merge review benefits from the agent's structured analysis process.
</commentary>
</example>
model: inherit
color: blue
tools: ["Read", "Grep", "Glob"]
---
You are a code review specialist focused on identifying issues across security, performance, maintainability, and correctness.
**Your Core Responsibilities:**
1. Analyze code structure and organization
2. Identify security vulnerabilities
3. Flag performance concerns
4. Check adherence to best practices
**Analysis Process:**
1. Read all files in scope
2. Identify patterns and anti-patterns
3. Categorize findings by severity
4. Provide specific remediation suggestions
**Output Format:**
Present findings grouped by severity (Critical, Warning, Info) with:
- File path and line number
- Description of the issue
- Suggested fixAgent Naming Rules
3-50 characters
Lowercase letters, numbers, hyphens only
Must start and end with alphanumeric
No underscores, spaces, or special characters
Color Guidelines
Blue/Cyan: Analysis, review
Green: Success-oriented tasks
Yellow: Caution, validation
Red: Critical, security
Magenta: Creative, generation
Hooks
Location: hooks/hooks.json
Format: JSON
Available Events
| Event | When it fires |
|---|---|
PreToolUse | Before a tool call executes |
PostToolUse | After a tool call completes |
Stop | When Claude finishes a response |
SubagentStop | When a subagent finishes |
SessionStart | When a session begins |
SessionEnd | When a session ends |
UserPromptSubmit | When the user sends a message |
PreCompact | Before context compaction |
Notification | When a notification fires |
Hook Types
Prompt-based (recommended for complex logic):
{
"type": "prompt",
"prompt": "Evaluate whether this file write follows project conventions: $TOOL_INPUT",
"timeout": 30
}Supported events: Stop, SubagentStop, UserPromptSubmit, PreToolUse.
Command-based (deterministic checks):
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/validate.sh",
"timeout": 60
}Example hooks.json
{
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "prompt",
"prompt": "Check that this file write follows project coding standards. If it violates standards, explain why and block.",
"timeout": 30
}
]
}
],
"SessionStart": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "cat ${CLAUDE_PLUGIN_ROOT}/context/project-context.md",
"timeout": 10
}
]
}
]
}Hook Output Format (Command Hooks)
Command hooks return JSON to stdout:
{
"decision": "block",
"reason": "File write violates naming convention"
}Decisions: approve, block, ask_user (ask for confirmation).
MCP Servers
Location: .mcp.json at plugin root
Format: JSON
Server Types
stdio (local process):
{
"mcpServers": {
"my-server": {
"command": "node",
"args": ["${CLAUDE_PLUGIN_ROOT}/servers/server.js"],
"env": {
"API_KEY": "${API_KEY}"
}
}
}
}SSE (remote server, server-sent events transport):
{
"mcpServers": {
"asana": {
"type": "sse",
"url": "https://mcp.asana.com/sse"
}
}
}HTTP (remote server, streamable HTTP transport):
{
"mcpServers": {
"api-service": {
"type": "http",
"url": "https://api.example.com/mcp",
"headers": {
"Authorization": "Bearer ${API_TOKEN}"
}
}
}
}Environment Variable Expansion
All MCP configs support ${VAR_NAME} substitution:
${CLAUDE_PLUGIN_ROOT}— plugin directory (always use for portability)${ANY_ENV_VAR}— user environment variables
Document all required environment variables in the plugin README.
Directory Servers Without a URL
Some MCP directory entries have no url because the endpoint is dynamic. Plugins can reference these servers by name instead — if the server name in the plugin's MCP config matches the directory entry name, it is treated the same as a URL match.
Commands (Legacy)
Prefer
skills/*/SKILL.mdfor new plugins. The Cowork UI now presents commands and skills as a single "Skills" concept. Thecommands/format still works, but only use it if you specifically need the single-file format with$ARGUMENTS/$1substitution and inline bash execution.
Location: commands/command-name.md
Format: Markdown with optional YAML frontmatter
Frontmatter Fields
| Field | Required | Type | Description |
|---|---|---|---|
description | No | String | Brief description shown in /help (under 60 chars) |
allowed-tools | No | String or Array | Tools the command can use |
model | No | String | Model override: sonnet, opus, haiku |
argument-hint | No | String | Documents expected arguments for autocomplete |
Example Command
---
description: Review code for security issues
allowed-tools: Read, Grep, Bash(git:*)
argument-hint: [file-path]
---
Review @$1 for security vulnerabilities including:
- SQL injection
- XSS attacks
- Authentication bypass
- Insecure data handling
Provide specific line numbers, severity ratings, and remediation suggestions.Key Rules
Commands are instructions FOR Claude, not messages for the user. Write them as directives.
$ARGUMENTScaptures all arguments as a single string;$1,$2,$3capture positional arguments.@pathsyntax includes file contents in the command context.!backtick syntax executes bash inline for dynamic context (e.g.,!`git diff --name-only`).Use
${CLAUDE_PLUGIN_ROOT}to reference plugin files portably.
allowed-tools Patterns
# Specific tools
allowed-tools: Read, Write, Edit, Bash(git:*)
# Bash with specific commands only
allowed-tools: Bash(npm:*), Read
# MCP tools (specific)
allowed-tools: ["mcp__plugin_name_server__tool_name"]CONNECTORS.md
Location: Plugin root When to create: When the plugin references external tools by category rather than specific product
Format
# Connectors
## How tool references work
Plugin files use `~~category` as a placeholder for whatever tool the user
connects in that category. For example, `~~project tracker` might mean
Asana, Linear, Jira, or any other project tracker with an MCP server.
Plugins are tool-agnostic — they describe workflows in terms of categories
rather than specific products.
## Connectors for this plugin
| Category | Placeholder | Included servers | Other options |
| --------------- | ------------------- | ---------------- | ------------------------ |
| Chat | `~~chat` | Slack | Microsoft Teams, Discord |
| Project tracker | `~~project tracker` | Linear | Asana, Jira, Monday |Using ~~ Placeholders
In plugin files (skills, agents), reference tools generically:
Check ~~project tracker for open tickets assigned to the user.
Post a summary to ~~chat in the team channel.During customization (via the cowork-plugin-customizer skill), these get replaced with specific tool names.
README.md
Every plugin should include a README with:
Overview — what the plugin does
Components — list of skills, agents, hooks, MCP servers
Setup — any required environment variables or configuration
Usage — how to trigger each skill
Customization — if CONNECTORS.md exists, mention it
Requirements and compatibility
Written for: Claude Code, Claude apps
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Names Claude Code tools, Needs an MCP server
The author says: Requires Cowork desktop app environment with access to the outputs directory for delivering .plugin files.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Anthropic
- Publisher
- Anthropic (Official)
- Source
- anthropics/knowledge-work-plugins · cowork-plugin-management/skills/create-cowork-plugin · commit e050c2e
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from cowork-plugin-management/LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Anthropic.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download create-cowork-plugin.zip