Creates new Claude Code skills, auto-apply skills, or auto-trigger rules, and audits existing ones for quality and effectiveness.
Ships in ai-asset-pricing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two modes: Create a new skill or Audit an existing one.
/create-skill wrds-fundamentals -- create a skill named wrds-fundamentals/create-skill event-study "Auto-apply skill for event study methodology" -- name + description/create-skill audit wrds-psql -- audit a specific skill/create-skill audit all -- audit all skills with summary tableParse $ARGUMENTS:
audit, audit <name>, or audit all → Audit modeSix phases: Determine Type → Gather Requirements → Choose Pattern → Generate → Validate → Register.
Parse $ARGUMENTS:
If $ARGUMENTS is empty, use AskUserQuestion to ask:
"What do you want to create? Provide a name (lowercase, hyphens) and choose a type."
Three types with different file locations and frontmatter:
| Type | Location | Key frontmatter |
|---|---|---|
User-invocable skill (/name) | .claude/skills/{name}/SKILL.md | name, description, argument-hint |
| Auto-apply skill (triggers on task match) | .claude/skills/{name}/SKILL.md | name, description (includes "Auto-apply when...") |
| Auto-trigger rule (triggers on file paths) | .claude/rules/{name}.md | description, paths (globs). No name field. |
How to decide (type):
Skill vs Agent decision (ask this first):
| Question | Yes → | No → |
|---|---|---|
| Is the workflow rigid with known inputs? | Skill | Consider agent |
| Does it need judgment, discovery, or error recovery? | Agent | Skill |
| Will it run frequently (>5x/week)? | Skill (token savings compound) | Either |
| Does it need its own tool set or isolation? | Agent | Skill |
Skills run in the caller's context (zero spawn overhead, 75-80% fewer tokens than agents). If 90%+ of usage follows a fixed template, build a skill. Reserve agents for exploratory work. See docs/AGENT_LESSONS_LEARNED.md for case study.
^[a-z][a-z0-9-]{0,63}$ (lowercase + hyphens, max 64 chars)helper, utils, tools, misc, data, general, common, documents.claude/skills/{name}/ or .claude/rules/{name}.md already exists, ask user whether to overwrite or pick a new nameUse a single AskUserQuestion to gather what's needed. Skip questions already answered by $ARGUMENTS:
description field and rule globs)argument-hint)If the user names an existing skill, read its SKILL.md to understand the pattern before proceeding.
Read the exemplar SKILL.md file for each relevant pattern before generating.
| Pattern | When to use | Exemplar (read this) |
|---|---|---|
| Phased workflow | Multi-step processes with dependencies between steps | new-project/SKILL.md (3 phases) |
| Checklist / decision table | Systematic validation, branching logic, audit | submission-prep/SKILL.md (10 categories) |
| Code template | Must produce or follow exact code patterns | wrds-psql/SKILL.md (pipeline template) |
| Gotchas / known issues | Encoding domain traps Claude must avoid | wrds-psql/SKILL.md (19 numbered items) |
| Reference table | Quick-lookup data (palettes, sizes, thresholds) | publication-figures/SKILL.md |
| Philosophy + principles | Judgment-heavy tasks needing guiding principles | build-deck/SKILL.md (Rhetoric of Decks) |
Most skills combine 2-3 patterns:
wrds-psql, onboardsubmission-prep, style-checkbuild-deck, respond-to-refereepanel-data-rules, wrds-psqlMatch specificity to the task's fragility:
wrds-psql pipeline.submission-prep checks.write-section, respond-to-referee.Before generating, read 1-2 exemplar SKILL.md files for the chosen pattern(s). This grounds the output in proven patterns from this project.
For user-invocable or auto-apply skills:
---
name: {validated-name}
description: "{third-person description stating WHAT and WHEN, max 1024 chars}"
argument-hint: "{format hint, only if skill takes arguments}"
---
For auto-trigger rules:
---
description: {third-person description of what the rule enforces}
paths:
- "**/*.{ext}"
- "{other glob patterns}"
---
Rules have NO name field. The paths field lists glob patterns that trigger the rule.
< >)# {Human-Readable Skill Name}
{1-2 sentence purpose statement}
## Examples ← only for user-invocable skills
- `/skill-name` -- basic usage
- `/skill-name arg` -- with argument
- `/skill-name --flag` -- variant
{Body sections using chosen pattern(s)}
## Output ← if skill produces a report/summary
{Template of what Claude prints when done}
.claude/rules/workflow.md (or similar). Auto-apply triggers depend on the LLM noticing the description — rules are guarantees. Critical workflows need both.Only create auxiliary files if:
Keep references ONE level deep from SKILL.md. Never chain: file A → file B → file C.
For reference files longer than 100 lines, include a table of contents at the top.
Read best-practices.md (in this skill's directory) and run the validation checklist against the generated skill.
name matches ^[a-z][a-z0-9-]{0,63}$ (skills) or is absent (rules)description under 1024 charsdescription contains no XML tags (< >)description is in third persondescription states both WHAT and WHENpaths field present with valid glob patterns## Examples section present (if user-invocable)## Output section present (if skill produces reports)Fix any violations before presenting the skill to the user.
CLAUDE.md and find the ## Skills & Rules section### Factor Construction & Data — domain skills for PyBondLab### Infrastructure — meta-skills for creating/auditing skills, rules, agents### Category section—, not --):
- \/skill-name` — One-line description`- \skill-name` — One-line description. Auto-apply when...`- \rule-name` — One-line description`Only add to the README skills tree if the skill is infrastructure-level (not domain-specific). Add under the skills/ section:
{name}/SKILL.md # Short description (/skill-name)
SKILL CREATED: {name}
==================
Type: {user-invocable skill | auto-apply skill | auto-trigger rule}
Location: {file path}
Patterns: {chosen patterns}
Lines: {line count} / 500
Registered in CLAUDE.md under: {category}
Files created:
{list of files with line counts}
To test: ask Claude "when would you use {name}?" — the description should give a clear answer.
Four phases: Read → Analyze → Report → Fix.
Parse the audit target from $ARGUMENTS:
audit <name> → read .claude/skills/{name}/SKILL.mdaudit all → list and read all SKILL.md files in .claude/skills/*/audit (no target) → list all skills as a numbered list, ask which to audit (or offer all)Also read:
best-practices.md (in this skill's directory) for evaluation criteriaCLAUDE.md to check ecosystem registrationRun 12 checks grouped in 4 categories. For each: PASS, WARN, or FAIL.
name present, matches ^[a-z][a-z0-9-]{0,63}$, no reserved words ("anthropic", "claude"), not generichelper, data, utils)name, invalid characters, or contains reserved wordsdescription present, non-empty, under 1024 characters, no XML angle bracketsargument-hint; rules have paths## Examples present with usage patterns (user-invocable) or N/A (auto-apply/rules)Check for: Windows-style backslash paths, menus without defaults, nested references deeper than 1 level, tool/package assumptions without availability checks.
Check root CLAUDE.md for the skill under the Skills & Rules section.
Check if body references other files (e.g., best-practices.md, templates).
Compare this skill's description against all other skills.
Print structured report:
SKILL AUDIT: {name}
=============================
File: .claude/skills/{name}/SKILL.md | Lines: {count} | Type: {user-invocable|auto-apply|rule}
A. FRONTMATTER B. BODY QUALITY
[PASS] A1 Name [PASS] B5 Lines ({n})
[PASS] A2 Description [PASS] B6 Sections
[PASS] A3 Desc quality [PASS] B7 Examples
[PASS] A4 Type fields [PASS] B8 Token efficiency
[PASS] B9 Anti-patterns
C. ECOSYSTEM D. CONSISTENCY
[PASS] C10 CLAUDE.md [PASS] D12 Overlap
[PASS] C11 Aux files
SUGGESTIONS:
1. [B5] At 478 lines, approaching the 500-line limit.
RESULT: 12/12 passed, 0 warnings, 0 failures
For all mode, print each skill's report separately, then a summary table:
SUMMARY: {N} skills audited
==============================
| Skill | Pass | Warn | Fail |
|------------------------|------|------|------|
| build-deck | 12 | 0 | 0 |
| create-skill | 11 | 1 | 0 |
| wrds-psql | 12 | 0 | 0 |
| ... | | | |
After reporting, offer to fix FAIL items:
## Examples section with usage patternsNever auto-fix without showing the proposed change first.
Reading best practices reference...What SKILL.md sets; muted values are Claude Code's defaults
38 skills in this plugin
/audit-captionsAudit all table and figure captions for language, notation, and formatting consistency/audit-mathAdversarial audit of mathematical proofs, derivations, and formal environments/audit-sectionDeep audit of a single section -- style, factual accuracy, citations, logical flow/bond-dataReference for the Dickerson corporate bond dataset: column mappings between WRDS and PyBondLab, rating encoding, return definitions, signal clusters, and data gotchas. Auto-apply when loading bond data for PyBondLab analysis./build-contextGenerate guidance/paper-context.md from user-provided .tex, .md, or .pdf files/build-deckCreate and compile Beamer presentations following the Rhetoric of Decks philosophy. Use when making seminar or conference slides./ai-asset-pricing:create-skill <skill-name> [description] | audit [skill-name | all]from ai-asset-pricing
ai-asset-pricing@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin ai-asset-pricingOther plugins' skills for the same job