Skip to content
Development
Command

/create-skill

Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.

From plugin
claude-night-market
343162 skills60 agents162 commands1 MCP
> /plugin marketplace add athola/claude-night-market

Command definition

create-skill.md
name: create-skill
description: Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.
usage: /create-skill [skill-description] [--skip-brainstorm] [--plugin <name>]

Create Skill Command

Creates new skills through a structured workflow: **iron-law → brainstorm → scaffold → validate**. Uses Socratic questioning to refine rough ideas into well-designed skills before generating any files.

Usage

# Start with brainstorming (recommended)
/create-skill "a skill for analyzing test coverage gaps"

# Skip brainstorming if you already have a clear design
/create-skill analyzing-coverage --skip-brainstorm

# Create in specific plugin
/create-skill "debugging async race conditions" --plugin parseltongue

Workflow

Phase -1: Iron Law Interlock (Blocking)

**This phase is required and cannot be skipped.**

Quick Reference

1. **Create test file FIRST**: `tests/test_${skill_name}_skill.py` 2. **Write structural tests**: File exists, frontmatter valid, registered in plugin.json 3. **Run tests - capture RED state**:

   pytest tests/test_${skill_name}_skill.py -v
   # Expected: FAILED (skill does not exist)

4. **Capture evidence**:

   [E1] Command: pytest tests/test_${skill_name}_skill.py -v
   Output: FAILED - FileNotFoundError
   Status: RED - Interlock satisfied

**Only after completing Phase -1 may you proceed.**

---

Phase 0: Methodology Curation (Optional but Recommended)

Before brainstorming, consider surfacing expert frameworks for your domain.

**Invoke the methodology-curator skill:**

Use abstract:methodology-curator to surface proven methodologies before brainstorming.

This is especially valuable when:

  • Creating skills that teach techniques (debugging, testing, reviewing)
  • Building knowledge management features
  • Designing decision frameworks
  • The domain has recognized experts (most do!)

Phase 0.5: Brainstorming (Default)

After methodology curation (or if skipping it), refine the skill idea through collaborative dialogue.

**Invoke the brainstorming skill:**

Use superpowers:brainstorming to refine this skill idea before scaffolding.

The brainstorming phase will:

1. **Understand the idea** - One question at a time:

  • What problem does this skill solve?
  • Who is the target user? (beginner, intermediate, advanced)
  • What triggers this skill's use? ("Use when..." clause)
  • What should this skill NOT be used for?

2. **Explore approaches** - Present 2-3 alternatives:

  • Single detailed skill vs. modular with hub
  • Technique-focused vs. pattern-focused vs. reference-focused
  • Standalone vs. integrated with existing skills

3. **Validate the design** - Present in sections:

  • Core principles (what makes this skill effective?)
  • Quick start example (the 80% use case)
  • Edge cases and anti-patterns
  • Module breakdown (if modular)

4. **Document the design**:

  • Write to `docs/plans/YYYY-MM-DD-<skill-name>-design.md`
  • Commit the design document

**Skip brainstorming** with `--skip-brainstorm` only when:

  • You have a written design document already
  • The skill is a simple extraction from existing content
  • You're creating a module for an existing skill

Phase 1: Gather Requirements

After brainstorming (or with `--skip-brainstorm`), the command prompts for:

1. **Skill name** (if not provided)

  • Must be kebab-case
  • Maximum 64 characters
  • Gerund form preferred (e.g., `processing-pdfs`, `analyzing-logs`)
  • No `SKILL` suffix in name

2. **Skill type**:

  • `technique` (default): Concrete methods and procedures
  • `pattern`: Mental models and frameworks
  • `reference`: API documentation and lookup tables

3. **Brief description**:

  • Third-person perspective
  • Must include "Use when" clause
  • 1-2 sentences maximum

4. **Target audience** (optional):

  • Beginner, intermediate, advanced
  • Specific roles (backend dev, data scientist, etc.)

5. **Category tags** (optional):

  • testing, performance, security, architecture, etc.

Phase 2: Create Directory Structure

# Standard skill structure
skills/${skill_name}/
├── SKILL.md              # Main skill file (hub)
├── modules/              # Optional modules directory
├── scripts/              # Optional automation scripts
└── baseline-scenarios.md # TDD test scenarios

For modular skills, creates additional structure:

skills/${skill_name}/
├── SKILL.md
├── modules/
│   └── README.md         # Module organization guide
├── scripts/
│   └── README.md         # Script usage guide
└── baseline-scenarios.md

Phase 3: Generate SKILL.md Template

Creates SKILL.md with:

---
name: ${skill_name}
description: ${description}
category: ${category}
tags: [${tags}]
status: draft
created: ${date}
updated: ${date}
---

# ${Skill Title}

## Overview

${description_expanded}

## When To Use

Use this skill when:
- ${condition_1}
- ${condition_2}
- ${condition_3}

Do NOT use when:
- ${anti_condition_1}
- ${anti_condition_2}

## When NOT To Use

- Simple file edits that don't need structured workflow
- Already have a working solution - just implement it

## Quick Start

### Basic Usage

${quick_example}

### Common Scenarios

1. **${scenario_1}**
   ${scenario_1_description}

2. **${scenario_2}**
   ${scenario_2_description}

## Core Principles

${principles}

## Modules

<!-- Add module references as you create them -->

## Troubleshooting

### Common Issues

**Issue**: ${issue_1}
**Solution**: ${solution_1}

## Related Skills

- See also: ${related_skill_1}
- Complements: ${related_skill_2}

## References

- ${reference_1}
- ${reference_2}

Phase 4: TDD Preparation

Creates `baseline-scenarios.md` for documenting test-first development:

# Baseline Testing Scenarios

## Purpose

Document Claude's behavior WITHOUT this skill to identify gaps and validate improvements.

## Tes
Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other commands on claude-night-market.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command