From lt-dev
Develops, optimizes, and validates Claude Code plugins, skills (SKILL.md), commands, agents, hooks (hooks.json), and scripts. Ensures consistency with official best practices. Activates when creating, editing, or reviewing files in plugins/ directory, .claude-plugin/, plugin.json, permissions.json, or marketplace.json. Covers YAML frontmatter, element structure, cross-references, naming conventions, and plugin manifest validation. NOT for application development (use domain-specific skills).
How this skill is triggered — by the user, by Claude, or both
Slash command
/lt-dev:developing-claude-pluginsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are an expert in developing Claude Code marketplaces and plugins. This skill ensures that all elements in this package follow current best practices, maintain consistency, and are optimally structured.
You are an expert in developing Claude Code marketplaces and plugins. This skill ensures that all elements in this package follow current best practices, maintain consistency, and are optimally structured.
File patterns that trigger this skill:
plugins/**/* - Any file in the plugins directory**/SKILL.md - Skill definition files**/commands/**/*.md - Command files**/agents/**/*.md - Agent files**/hooks/**/* - Hook configurations and scriptsmarketplace.json - Marketplace definitionplugin.json - Plugin manifestsActions that trigger this skill:
CRITICAL: Before ANY implementation or optimization, fetch the latest official documentation.
Fetch these GitHub sources first:
WebFetch: https://github.com/anthropics/claude-code/blob/main/plugins/README.md
WebFetch: https://github.com/anthropics/skills/blob/main/README.md
For specific topics, use targeted searches:
WebSearch: "Claude Code [topic] documentation site:claude.com"
Topics to search when relevant:
Apply the patterns and requirements from these sources.
Purpose: Provide contextual expertise that enhances Claude's capabilities in specific domains.
Structure:
skills/
└── skill-name/
├── SKILL.md # Main skill definition (REQUIRED)
├── reference.md # Detailed reference documentation
├── examples.md # Usage examples
└── [topic].md # Additional topic-specific files
SKILL.md Template:
---
name: skill-name-kebab-case
description: Concise description (max 1024 chars, ideal 500-700). Formula: [What it does] + [When to use it] + [Key capabilities]. Must trigger auto-detection correctly.
---
# Skill Title
[Introductory paragraph explaining the skill's purpose]
## When to Use This Skill
- [Trigger condition 1]
- [Trigger condition 2]
## Core Capabilities
[Main content organized by capability]
## Related Skills
- `related-skill-1` - [relationship]
- `related-skill-2` - [relationship]
Key Principles:
Purpose: User-triggered actions invoked via /command-name.
Structure:
commands/
├── simple-command.md
└── category/
├── sub-command-1.md
└── sub-command-2.md
Template:
---
description: What this command does (shown in /help and command list)
argument-hint: "[optional-args]" # Optional: shown in autocomplete (MUST quote if value contains brackets)
allowed-tools: Read, Grep, Bash # Optional: restrict tool access
model: claude-3-5-sonnet-20241022 # Optional: force specific model
---
# Command Title
[Brief description of what this command accomplishes]
## When to Use This Command
- [Use case 1]
- [Use case 2]
## Workflow
### Step 1: [Action]
[Instructions]
### Step 2: [Action]
[Instructions]
## Examples
[Practical examples of command usage]
Naming: Use kebab-case, e.g., create-story.md, git/commit-message.md
Purpose: Autonomous agents that handle complex, multi-step tasks with specific tool access.
File: agents/agent-name.md
Template:
---
name: agent-name
description: When to use this agent and what tasks it handles autonomously
model: sonnet | opus | haiku
tools: Bash, Read, Grep, Glob, Write, Edit
permissionMode: default | bypassPermissions
skills: optional-comma-separated-skills
---
[Agent persona and mission]
## Use Cases
- [When to spawn this agent]
- [Specific task types it handles]
## Execution Protocol
[Detailed workflow and phases]
## Output Format
[Expected output structure]
Key Principles:
Purpose: Automated responses to Claude Code events.
Structure:
hooks/
├── hooks.json # Hook definitions
└── scripts/ # Hook handler scripts
└── handler.ts
hooks.json Template:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "/path/to/script.sh"
}
]
}
]
}
}
Fields:
| Field | Type | Description |
|---|---|---|
matcher | string | Tool filter: "Write", "Write|Edit", "Bash(npm test*)", or omit for all |
type | string | "command" (shell) or "prompt" (Claude evaluation) |
command | string | Shell command (for type="command") |
timeout | number | Seconds before timeout (default: 60, optional) |
Events:
PreToolUse - Before a tool executesPostToolUse - After a tool executesPermissionRequest - When permission is requestedUserPromptSubmit - When user submits a promptSessionStart - Session initializationSessionEnd - Session teardownStop - When main agent finishesSubagentStart - When subagent startsSubagentStop - When subagent finishesTeammateIdle - Agent Teams: teammate waiting for workTaskCompleted - Agent Teams: task finishedPreCompact - Before context compactionWhen optimizing existing elements:
1. Read the element completely
2. Identify the element type and purpose
3. Fetch current best practices from documentation
4. Compare against other elements in the same category
5. List specific issues and improvements
1. Present findings to the user
2. Propose specific changes with rationale
3. Highlight any breaking changes or dependencies
4. Get approval before implementation
1. Make changes incrementally
2. Maintain backwards compatibility where possible
3. Update cross-references in related elements
4. Verify no broken references
1. Validate YAML frontmatter syntax
2. Check markdown rendering
3. Verify all cross-references work
4. Test any commands or workflows
| User Intent | Correct Skill |
|---|---|
| "Create a new skill" | THIS SKILL |
| "Optimize plugin.json" | THIS SKILL |
| "Add a hook for validation" | THIS SKILL |
| "Create a NestJS module" | generating-nest-servers |
| "Build a Vue component" | developing-lt-frontend |
| "Update npm packages" | maintaining-npm-packages |
Works closely with:
using-lt-cli skill - For Git operations in this packagegenerating-nest-servers skill - When adding NestJS-related commands or skillsdeveloping-lt-frontend skill - When adding Nuxt-related commands or skillsmaintaining-npm-packages skill - When adding maintenance-related commandsWhen modifying any skill, command, or agent in this package, this expertise should inform the changes.
npx claudepluginhub lennetech/claude-code --plugin lt-devGuides creation, modification, and debugging of Claude Code plugins with schemas, templates, checklists, validation workflows, and troubleshooting. Activates on .claude-plugin/, plugin.json, commands/, skills/, hooks/.
Guides creation of Claude Code plugins including skills, commands, agents, hooks, MCP servers, and configuration. Use for 'create plugin', 'make skill', scaffolding structures.
Creates, converts, validates, and publishes Claude Code plugins with Agent Skills, hooks, agents, and servers. Automates manifest generation, scanning, structure validation, and marketplace prep.