Create or Refactor a Skill

VerifiedSafe

Creates or refactors a Claude Code skill using a skill name and optional documentation path. It reads the existing skill definition and generates a new or updated SKILL.md file. Use this when you need to define a new reusable skill or update an existing one.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#skill#creation#refactoring#claude-code

Recommended for

Automated summary

Creates or refactors a Claude Code skill by following a structured template.

Strengths

  • Automates the creation of reusable skills
  • Leverages a base skill file for consistency
  • Supports parameters like skill name and documentation path

Limitations

  • Requires strict adherence to a reference skill file
  • Limited to allowed tools (Read, Grep, Glob, Write, Task)
  • May fail if the base skill is not loaded
When to use it

Use this skill when you need to create a new skill or refactor an existing one in a structured way.

When not to use it

Avoid it if the skill is trivial or if you are working outside the Claude Code environment with unsupported tools.

Security analysis

Safe
Quality score75/100

The skill is a meta-skill that only instructs to read another skill and use safe tools (Read, Grep, Glob, Write, Task). There are no destructive or exfiltrating commands, no obfuscation, and no network access. The Write tool is used for its intended purpose.

No concerns found

How this analysis is made

Examples

Create a new skill
/create-skill circuit-breaker docs/features/resilience
Refactor an existing skill
/create-skill codex-brainstorm

description: Create or refactor a Claude Code skill argument-hint: <skill-name> [docs-path] allowed-tools: Read, Grep, Glob, Write, Task

⚠️ Must read and follow the skill below before executing this command:

@skills/create-skill/SKILL.md

Task

Create or refactor a skill.

Parameters

$ARGUMENTS

Examples

/create-skill circuit-breaker docs/features/resilience
/create-skill codex-brainstorm  # Refactor existing skill

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/create-or-refactor-a-skill-mmbizj7v/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/create-or-refactor-a-skill-mmbizj7v' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-or-refactor-a-skill-mmbizj7v/download' --output '.skill-downloads/create-or-refactor-a-skill-mmbizj7v/SKILL.md.part' && mv '.skill-downloads/create-or-refactor-a-skill-mmbizj7v/SKILL.md.part' '.skill-downloads/create-or-refactor-a-skill-mmbizj7v/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Grep, Glob, Write, Task

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/create-or-refactor-a-skill-mmbizj7v/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills