Get the FREE Ultimate OpenClaw Setup Guide →

skill-creator

Scanned
npx machina-cli add skill b33eep/claude-code-setup/skill-creator --openclaw
Files (1)
SKILL.md
5.6 KB

Skill Creator

Guide users through creating high-quality custom skills for claude-code-setup.

Overview

Skills extend Claude's capabilities with specialized knowledge and workflows. This skill helps users create their own custom skills stored in ~/.claude/custom/skills/.

Skill types:

  • Command skills: Invoked explicitly with /skill-name
  • Context skills: Auto-loaded based on project's Tech Stack

Creation Flow

Follow these steps in order. Use conversational interaction - ask one question at a time.

Step 1: Determine Skill Type

Ask the user:

What type of skill do you want to create?

1. **Command skill** - Invoked explicitly with /skill-name
   Example: /deploy-staging, /generate-report

2. **Context skill** - Auto-loads based on project's tech stack
   Example: Company coding standards, API conventions

Step 2: Gather Concrete Examples

This is the most important step for quality. Ask based on skill type:

For command skills:

Give me 2-3 concrete examples of how you'd use this skill.
Format: "I say X and expect Y"

Example:
- "Deploy to staging" → push code, SSH to server, run deploy script
- "Generate weekly report" → gather metrics, format as markdown, save to docs/

For context skills:

Give me 2-3 concrete examples of how this skill should guide Claude.
Format: "When doing X, Claude should Y"

Example:
- When writing API endpoints, use our standard response format
- When handling errors, use our custom exception classes
- When writing tests, follow our naming convention

Step 3: Analyze and Suggest

Based on the examples, identify:

  1. Name suggestion (kebab-case)
  2. Patterns/workflows in the examples
  3. For context skills: Suggest applies_to values based on mentioned technologies

Present the analysis:

Based on your examples, I see a [pattern description].

Suggested name: [name]
[For context skills only:]
Suggested applies_to: [tech1, tech2, ...]

Want to add more tech stacks? (comma-separated, or continue)

Step 4: Generate or Review Content

Ask the user:

Should I generate the skill content based on your examples,
or do you want to provide the instructions yourself?

1. Generate for me
2. I'll provide it

If generating:

  • Create clear, actionable instructions based on the examples
  • Structure with headers for different workflows/scenarios
  • Include relevant details from the examples

If user provides:

  • Ask them to paste or describe the content
  • Review their content and suggest improvements:
    • Missing details that would help Claude
    • Unclear instructions
    • Missing examples
  • Ask: "Should I incorporate these suggestions?"

Step 5: Review and Refine

Present the complete SKILL.md draft:

---
name: [name]
description: [1-2 sentence description]
type: [command|context]
[applies_to: [tech1, tech2, ...]]  # Only for context skills
[file_extensions: [".ext1", ".ext2"]]  # Only for context skills with file mappings
---

# [Title]

[Content...]

Ask: "Does this look good? Any changes needed?"

Iterate until the user approves.

Step 6: Save the Skill

  1. Create directory: ~/.claude/custom/skills/[name]/
  2. Write the SKILL.md file
  3. Confirm creation with usage instructions:

For command skills:

Created: ~/.claude/custom/skills/[name]/SKILL.md

To use: /[name]
To edit: Modify the SKILL.md file directly

For context skills:

Created: ~/.claude/custom/skills/[name]/SKILL.md

This skill will auto-load when your project's Tech Stack includes:
[tech1], [tech2], or [tech3]

To edit: Modify the SKILL.md file directly

Skill Format Reference

Command Skill

---
name: skill-name
description: Brief description of what this skill does
type: command
---

# Skill Title

Instructions for Claude to follow when this skill is invoked.

Context Skill

---
name: skill-name
description: Brief description of what this skill provides
type: context
applies_to: [python, fastapi, django]
file_extensions: [".py"]
---

# Skill Title

Standards or guidelines that Claude should follow automatically.

Frontmatter Fields

FieldRequiredDescription
nameYesSkill identifier (kebab-case, e.g., deploy-staging)
descriptionYesWhat the skill does (1-2 sentences, third person)
typeYescommand or context
applies_toContext onlyList of tech stacks that trigger auto-load
file_extensionsContext onlyFile extensions that trigger task-based loading (e.g., [".py"])

Common applies_to Values

Languages: python, typescript, javascript, rust, go, java Frameworks: fastapi, django, flask, react, nextjs, express Tools: docker, kubernetes, terraform, aws, gcp

Quality Guidelines

When generating or reviewing skill content:

  1. Be specific - Vague instructions lead to inconsistent results
  2. Include examples - Show what good output looks like
  3. Structure clearly - Use headers, lists, tables
  4. Stay focused - One skill per domain/workflow
  5. Test mentally - Would Claude know what to do with these instructions?

Output Location

All custom skills are saved to:

~/.claude/custom/skills/[skill-name]/
└── SKILL.md

This location is separate from the base installation (~/.claude/skills/) and survives upgrades.

Source

git clone https://github.com/b33eep/claude-code-setup/blob/main/skills/skill-creator/SKILL.mdView on GitHub

Overview

Skill-creator guides users through crafting high-quality custom skills for claude-code-setup, supporting both command and context skills. It covers storage in ~/.claude/custom/skills/ and provides a conversational, step-by-step flow from defining type to saving the final SKILL.md.

How This Skill Works

Users interact one question at a time, starting with skill type, then gathering 2-3 concrete examples, analyzing patterns, and finally generating or reviewing the SKILL.md draft. The process ends with saving the skill and a short usage note, ensuring the skill lives under ~/.claude/custom/skills/ for Claude to load.

When to Use It

  • When you want to create a new command or context skill for claude-code-setup.
  • When you need concrete usage examples to shape the skill’s behavior.
  • When you want to analyze patterns and choose a name and tech mapping.
  • When you want to generate, review, and save a complete SKILL.md draft.
  • When you want to save and finalize the skill into ~/.claude/custom/skills/.

Quick Start

  1. Step 1: Decide whether the new skill will be a command skill or a context skill.
  2. Step 2: Provide 2-3 concrete examples based on the chosen type.
  3. Step 3: Generate or review the SKILL.md draft and save it to the correct directory.

Best Practices

  • Capture 2-3 concrete examples for each skill to guide behavior.
  • Clearly distinguish command vs. context skills in the content.
  • Use kebab-case naming for consistency with the tool’s conventions.
  • Structure SKILL.md with explicit workflows and scenarios.
  • Verify the saving location and include a brief usage note after creation.

Example Use Cases

  • A developer creates a command skill /deploy-staging with concrete uses like pushing code, SSHing to a server, and running a deployment script.
  • A team defines a context skill 'company-coding-standards' that guides Claude to enforce API conventions and coding style.
  • Using Step 3, the user derives a kebab-case name and maps applies_to technologies for a context skill.
  • The user generates a complete SKILL.md draft and saves it under ~/.claude/custom/skills/deploy-staging/SKILL.md.
  • The team reviews the drafted skill, iterates on examples and instructions, and finalizes the skill for deployment.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers