Create or Update Claude Code Skill

VerifiedCaution

Guidelines for creating or updating Claude Code skills, covering frontmatter, content rules, and mode detection.

Sby Skills Guide Bot
DevelopmentIntermediate
8/7/2026
Claude Code
#skill-management#skill-authoring#claude-code#workflow

Recommended for

Automated summary

Creates or updates a Claude Code skill by converting the current conversation into a SKILL.md file with appropriate frontmatter and rules.

Strengths

  • Encourages concise, behavior-focused skill files
  • Provides clear frontmatter guidance
  • Differentiates create vs update modes explicitly
  • Emphasizes token cost efficiency

Limitations

  • Claude Code-specific, not portable to other tools
  • Requires manual judgment for mode and frontmatter
  • No automated validation of the generated SKILL.md
When to use it

When you need to persist a new reusable behavior or update an existing skill while working in Claude Code.

When not to use it

When the skill is already fully written or when you are only discussing code without changing skill definitions.

Security analysis

Caution
Quality score92/100

The skill instructs the AI to create directories and write files, which are powerful operations but legitimate for the purpose of managing skill files. It does not contain destructive or exfiltrating commands.

Findings
  • •Uses file system operations (mkdir, write) which could be misused if arguments are untrusted.
How this analysis is made

Examples

Create a code review skill
Create a skill named code-review-checklist with guidelines for reviewing pull requests.
Update a skill with a new rule
Update the skill typescript-error-fixes with the new rule about null checks.
Modify an existing skill
Add a new rule to existing skill commit-message about conventional commits.

Create or update a skill based on the current conversation.

The first word of $ARGUMENTS is the skill name (kebab-case). The rest is an optional note about what to add or change.


Step 1 — Detect mode

Check whether .claude/skills/$0/SKILL.md already exists.

  • Exists → update mode: read the current file, then go to Step 3.
  • Does not exist → create mode: go to Step 2.

Step 2 — Determine frontmatter (create only)

Decide the correct frontmatter based on what the skill does:

description — one sentence: what the skill does + when Claude should auto-load it. Put the key trigger phrase first (budget is 1,536 chars).

paths — set only if the skill is scoped to specific files. Use glob patterns:

  • Design system / theme work → @soroush.tech/design-system/**
  • All TypeScript → **/*.ts,**/*.tsx
  • Omit for project-wide knowledge

argument-hint — short label shown in autocomplete, e.g. [filename] or [component-name].

disable-model-invocation: true — add only if this is a manual workflow with side effects (deploy, commit, send). Reference knowledge should NOT have this.

user-invocable: false — add only if users should never call it directly (pure background context).


Step 3 — Write content

Rules for skill content:

  • Reference skills (conventions, patterns, style guides): state the rule + one ✗/✓ code pair. No prose explaining why — the example shows it.
  • Task skills (step-by-step actions): numbered steps, imperative verbs, no explanation.
  • Keep SKILL.md under 500 lines.
  • Every line is a recurring token cost — cut anything that doesn't change Claude's behavior.
  • End with: If $ARGUMENTS names a file, read it and apply the rules. Otherwise apply to the code being discussed. (for reference skills only).

Update mode: add the new rule or change to the appropriate section. Do not touch unrelated rules. Remove any rule made obsolete by the change.


Step 4 — Write the file

For create: run mkdir -p .claude/skills/$0 then write .claude/skills/$0/SKILL.md.

For update: write the updated .claude/skills/$0/SKILL.md.

Confirm what was created or changed. If a new paths scope was set, mention which files will trigger it.

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-update-claude-code-skill-msih95pz/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-update-claude-code-skill-msih95pz' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-or-update-claude-code-skill-msih95pz/download' --output '.skill-downloads/create-or-update-claude-code-skill-msih95pz/SKILL.md.part' && mv '.skill-downloads/create-or-update-claude-code-skill-msih95pz/SKILL.md.part' '.skill-downloads/create-or-update-claude-code-skill-msih95pz/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.

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-update-claude-code-skill-msih95pz/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