Awesome-omni-skill plugin-best-practices
This skill should be used when the user asks to "validate a plugin", "optimize plugin", "check plugin quality", "review plugin structure", "find plugin issues", "check best practices", "analyze plugin", or mentions plugin validation, optimization, or quality assurance.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/plugin-best-practices" ~/.claude/skills/diegosouzapw-awesome-omni-skill-plugin-best-practices-dc1ea4 && rm -rf "$T"
skills/tools/plugin-best-practices/SKILL.mdPlugin Best Practices
Validation and optimization guidance for Claude Code plugins.
RFC 2119 terms are mandatory: use only MUST, MUST NOT, SHOULD, SHOULD NOT, MAY. Replace REQUIRED/SHALL with MUST, SHALL NOT with MUST NOT, RECOMMENDED with SHOULD, NOT RECOMMENDED with SHOULD NOT, and OPTIONAL with MAY. See
references/rfc-2119.md.
Core Principles
- Skills are the preferred extension mechanism for new plugins, with commands reserved for backward compatibility.
Component Model
Skills
Skills are markdown prompts that run in the main conversation context and extend knowledge or provide workflows.
Two skill types are supported:
- Instruction-type (
→user-invocable: true
): imperative voice, phase-based workflows, user-invoked.commands - Knowledge-type (
→user-invocable: false
): declarative voice, topic-based references, auto-loaded.skills
Agents
Agents are autonomous subprocesses with isolated context and their own system prompts.
Key characteristics:
- Isolated context with a dedicated system prompt in the agent
file..md - Restricted tool allowlists for safety and focus.
- Specialized expertise with judgment over execution details.
- Router-friendly descriptions containing 2–4
blocks.<example>
Selection Guide
- Instruction-type skills apply when a user invokes a workflow via slash command and the process is linear.
- Knowledge-type skills apply when providing reference knowledge for agents or the main session.
- Agents apply when isolation, specialization, and autonomous decision-making are required.
Templates and Structure
Templates are centralized for reuse across components. See
${CLAUDE_PLUGIN_ROOT}/examples/ for complete templates.
plugin.json Declaration
| Config | User invocable | Claude invocable | Declare in |
|---|---|---|---|
| No | Yes | (knowledge-type) |
(default) or | Yes | Yes | (instruction-type) |
| Yes | No | (instruction-type, no auto-invoke) |
Validation Checklist
- Skills are under 500 lines with progressive disclosure to
.references/ - Agents include clear delegation descriptions and a single responsibility.
- Agent descriptions include 2–4
blocks.<example> - Component names use kebab-case.
- Scripts are executable with shebangs and
paths.${CLAUDE_PLUGIN_ROOT} - Tool invocations avoid explicit tool-call phrasing (see
).references/tool-invocations.md - Skill references use qualified names (
).plugin-name:skill-name - Component paths are relative and start with
../ - Components live at plugin root, not inside
..claude-plugin/ - Skills and commands are declared in
(recommended).plugin.json - Skill type matches manifest and writing style:
- Instruction-type uses imperative voice.
- Knowledge-type uses declarative voice.
Severity Levels
- Critical: MUST fix before plugin works correctly.
- Warning: SHOULD fix for best-practices compliance.
- Info: MAY improve (optional).
Reference Link Rule
Links to external templates or example files include a one-sentence description of what the target contains before the link.
Additional Resources
Reference documents live in
references/:
- Components:
— component-specific requirements.references/components/[type].md - Structure:
— layout and naming conventions.references/directory-structure.md - Manifest:
— plugin.json schema and configuration.references/manifest-schema.md - Tool Usage:
— tool invocation patterns.references/tool-invocations.md - MCP Patterns:
— MCP server integration.references/mcp-patterns.md - Debugging:
— diagnostics for loading failures.references/debugging.md - CLI Commands:
— plugin CLI operations.references/cli-commands.md - TodoWrite Tool:
— TodoWrite usage.references/todowrite-usage.md
Prompt Repetition
- Critical rules and safety constraints appear in multiple phases only when execution depends on it.
- Repetition favors concise restatement rather than verbatim duplication.
Parallel Agent Execution
Parallel execution applies when tasks are independent and results can be merged afterward.
Request pattern:
# Explicit parallel request Launch all agents simultaneously: - `domain-analyzer` agent - `quality-validator` agent - `format-checker` agent # Or use "in parallel" phrasing Launch 3 parallel agents to process different aspects independently
Best practices:
- "parallel" or "simultaneously" appears explicitly in the request.
- Descriptive style names the agent and intent.
- Consolidation merges findings and resolves conflicts.
Common pattern:
1. Sequential setup (if needed) 2. Launch specialized analyses in parallel: - `aspect-one-analyzer` agent — first dimension - `aspect-two-validator` agent — second dimension - `aspect-three-checker` agent — third dimension 3. Consolidate results and present unified output