From srnnkls-tropos
Create new Claude Code skills following project patterns and best practices. Use when building new skills, extracting reusable capabilities, or converting commands to skills.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin srnnkls-troposThis skill uses the workspace's default tool permissions.
Create well-structured skills using progressive disclosure and project conventions.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Create well-structured skills using progressive disclosure and project conventions.
Reference: best-practices.md for comprehensive guidance, reference.md for project patterns and frontmatter specs.
Gather concrete examples of how the skill will be used:
Skip this step only when usage patterns are already clearly understood.
Analyze each use case to identify reusable resources:
| Resource Type | When to Use | Example |
|---|---|---|
scripts/ | Same code rewritten repeatedly | rotate_pdf.py |
references/ | Domain knowledge Claude needs | schema.md, api.md |
assets/ | Files used in output | template.html, logo.png |
templates/ | Document structure patterns | report.md |
Required fields:
name: skill-name # Lowercase, hyphens, max 64 chars
description: | # Max 1024 chars
[What it does]. Use when [context].
Optional fields:
| Field | Purpose | Example |
|---|---|---|
context | Run in forked sub-agent | context: fork |
agent | Specify agent type | agent: haiku |
user-invocable | Hide from slash menu | user-invocable: false |
allowed-tools | Restrict available tools | See reference.md |
hooks | Lifecycle hooks (PreToolUse, PostToolUse, Stop) | See reference.md |
Naming pattern: <namespace>[-<subnamespace>]-<action>
code-debug, spec-create, git-worktree-useDescription format: Third person, what + when.
mkdir -p .claude/skills/{skill-name}
Standard structure:
.claude/skills/{skill-name}/
├── SKILL.md # Main instructions (<500 lines)
├── templates/ # Document templates (.md)
├── scripts/ # Executable code (.sh, .py)
└── references/ # Extended documentation
Write SKILL.md:
Test with real tasks:
Match specificity to task fragility:
High freedom - Multiple approaches valid, context-dependent:
## Code review
1. Analyze structure and organization
2. Check for bugs and edge cases
3. Suggest improvements
Low freedom - Operations fragile, consistency critical:
## Database migration
Run exactly: `python scripts/migrate.py --verify --backup`
Do not modify flags.
| Type | Characteristics | Examples |
|---|---|---|
| Operational | Multi-step workflow, state changes, document templates | spec-create, spec-archive |
| Generation | Transform input → structured output, format templates | spec-issues-create |
| Guidance | Imperative instructions, code patterns | code-implement, code-debug |
<namespace>[-<subnamespace>]-<action>