How to Create a Claude Skill: a Real 18-Minute Rebrand Run (2026)
How to create a Claude skill: SKILL.md, front matter, scripts and a check after each step, built from two timed 18-minute rebrand runs.

To create a Claude skill, make a folder inside .claude/skills/ (in your project or your home folder) and add a SKILL.md file: YAML front matter with a name and a description of when to use it, then the steps in Markdown. Claude Code reads the description to decide when to load the skill, and /skill-name runs it directly.
This page shows the process on a real job. Claude Code rebranded two of our templates from one long prompt, in about 18 minutes each time, and we turned that prompt into a free skill with a check after every step. The numbers below are the real output of its check script.
What a Claude skill is
In Anthropic's words, skills extend what Claude can do: you write a SKILL.md file with instructions, and Claude adds it to its toolkit. Claude uses a skill when it is relevant, or you call it with /skill-name.
The docs also say when to write one: when you keep pasting the same instructions, checklist or multi-step procedure into chat, or when a section of CLAUDE.md has grown into a procedure rather than a fact. That was our case. We kept reusing a rebrand prompt, and nothing in it proved the job was finished.
Claude Code skills follow the Agent Skills open standard, which works across several AI tools. Claude Code adds its own extras: control over who can invoke a skill, running a skill in a subagent, and inserting a shell command's output into the skill before Claude reads it.
Skill, CLAUDE.md, slash command or subagent?
- CLAUDE.md is always loaded and holds facts that apply to every task. A skill's body loads only when used, so a long procedure costs almost nothing until you need it.
- Custom slash commands have been merged into skills.
.claude/commands/deploy.mdand.claude/skills/deploy/SKILL.mdboth create/deploy; if both exist, the skill wins. - Subagents work in their own context. A skill runs inside one with
context: fork, and then it cannot see your conversation, so its instructions must stand on their own. - Hooks run on every matching event. The docs say a rule that must hold every time belongs in a hook, not a skill.
A rebrand is a procedure you run once per project, with many steps and a clear end. That makes it a skill.
How to create a Claude skill, step by step
These are the five steps we followed for template-rebrand. Every field and behaviour below comes from the Claude Code skills documentation as it reads in November 2026.
1. Make the folder
The folder name becomes the command, so keep it short. Put it in the project when your team should share it, or in your home folder for your own use.
# a project skill, shared with everyone who clones the repo
mkdir -p .claude/skills/template-rebrand/scripts
# or a personal skill, available in all your projects
mkdir -p "$HOME/.claude/skills/template-rebrand/scripts"
2. Write the front matter
The front matter is YAML between two --- lines, starting on the first line of the file. Every field is optional, but the docs recommend a description, and name defaults to the folder name. Ours has just those two:
---
name: template-rebrand
description: Rebrand a Next.js App Router project, and its NestJS API if it has one, to a new brand (name and wordmark, colours, logo and icon files, copy in every locale, metadata and SEO titles, emails, seed data), then prove the old name is gone and every build passes. Use when asked to rebrand, white-label or rename a template, starter or app for a new business.
---
The description does the most work. Claude picks a skill by reading the descriptions, so use the words a person would type: "rebrand", "white-label", "rename a template". The description and the optional when_to_use are cut at 1,536 characters together, so the main use case goes first.
Other fields you will use:
disable-model-invocation: true: only you can start the skill. Use it for side effects such as a deploy.user-invocable: false: hidden from the/menu, for knowledge only Claude should load.allowed-tools: the listed tools run without asking during the turn that invokes the skill. It restricts nothing.argumentsandargument-hint: named inputs.$ARGUMENTSin the body holds what was typed after the command.context: forkwithagentruns it in a subagent;pathslimits automatic loading to matching files.
If the skill will travel: claude.ai uploads and the Skills API accept only name, description, license, compatibility, metadata and allowed-tools, and other keys cause an error. That is one reason ours keeps to two fields.
3. Write the steps
The body is plain Markdown. Keep SKILL.md under 500 lines and move long reference material into separate files. Once loaded, the body stays in the conversation and is not re-read, so every line costs context on every turn.
For long jobs, order matters. When a conversation is compacted, Claude Code keeps only the first 5,000 tokens of each skill. So the critical rules go at the top: in ours, the CHECK command and "never run a blind find-and-replace" come before step 0.
4. Add scripts for what must be exact
A script in the skill's folder is run, not read: its code costs no context, only its output does. Point to it with ${CLAUDE_SKILL_DIR}, which resolves to the skill's folder wherever it is installed.
template-rebrand/
├── SKILL.md the steps; loaded when the skill is used
└── scripts/
└── rebrand-check.mjs run by Claude; its code never enters the context
We made the check a script because counting is where a model is weakest at the end of a long run. A script that prints "1,459 hits in 77 files" cannot decide that a leftover does not matter.
5. Test that it loads
Ask for something that matches the description, or type /template-rebrand. If nothing happens, the docs suggest adding the words people say to the description, asking Claude "What skills are available?", and calling the skill by name. Edits apply within the session; a brand new top-level skills folder needs /reload-skills.
Front matter that does not parse leaves the skill callable by name but invisible to matching. claude plugin validate .claude/skills finds those files (Claude Code v2.1.233 or later).
Where Claude Code skills live
- Personal:
.claude/skills/<name>/SKILL.mdin your home folder, for all your projects on that machine. - Project:
.claude/skills/<name>/SKILL.mdin the repository, committed so the team gets it. - Plugin:
<plugin>/skills/<name>/SKILL.md, called as/plugin-name:skill-name, so it never clashes with yours. - Enterprise: deployed to a whole organisation through managed settings.
When two share a name, enterprise wins over personal and personal over project.
The run we turned into a skill
We timed Claude Code renaming a template twice, on two products. Both runs used one prompt. Neither used a skill.
8 November 2026, Food Studio Full Stack. From the buyer ZIP, Claude Code had the restaurant website, staff dashboard and NestJS API running about 4.5 minutes after unzipping. It then rebranded everything into a made-up restaurant, "Nour Kitchen", in about 18 minutes, from one prompt.

10 November 2026, e-commerce template into "Talvane". This one ran headless, so nobody could step in. The base was our e-commerce package (storefront, admin dashboard and NestJS API); the brief, a made-up Nordic coat shop with 12 product photos. The whole prompt:
Turn this store into Talvane, a Nordic menswear brand: calm, warm, made for cold weather. Replace the whole catalogue with the 12 pieces in talvane-photos/ (one product each, with names, descriptions and prices that fit them, sorted into categories), and rebrand the storefront and the admin dashboard to match: name, logo, colours, homepage, copy and emails, in every language the store ships. Keep the existing design system and every feature working, the fitting room included. The back-end seed and the storefront's mock catalogue must both show the new products.
Do not add any pictures of people. When you are done, run the production build of each app and fix any errors until they pass. Do not start a dev or production server.
It ran with claude -p, the model claude-fable-5-2, accepted edits and a fixed list of allowed tools. It finished in 18 min 43 s and 154 turns, with 0 follow-ups, and touched 252 files: 206 edited, 46 new. At API prices the usage would have cost $16.14; it ran on a subscription, so nothing was charged.
The result: 12 products in 4 categories in English and Arabic, a new accent colour, wordmark, hero, banners and copy. We ran the storefront's production build afterwards, and it passed with 47 pages. One caveat: the machine had our own user-level Claude Code settings, which a buyer's machine would not have.
Why one prompt was not enough
Both runs worked. But a prompt says what to do, not how to prove it is done. After the Talvane run, the only evidence was the model's summary and our later build. Nothing had counted what was left of the old brand.
A brand also spreads wider than a prompt suggests. The skill's map command lists where it usually lives. On the Food Studio Full Stack it found three apps in two languages, 2 brand config files, 43 metadata files, 21 logo and icon files, 6 theme token files, 6 mail files and 6 seed or mock data locations:
$ node .claude/skills/template-rebrand/scripts/rebrand-check.mjs map --limit 1
rebrand-check map
2998 files outside node_modules, build output and lockfiles
Apps:
admin-dashboard Next.js 16.4.2 build: yarn run build
back-end NestJS 10.4.22 build: yarn run build
storefront Next.js 16.4.2 build: yarn run build
Locales:
admin-dashboard: ar 22, en 22 files
back-end: ar 10, en 10 files
storefront: ar 15, en 15 files
brand config (2):
admin-dashboard/src/config/brand.config.ts
storefront/src/config/brand.config.ts
metadata and SEO (43):
admin-dashboard/public/robots.txt
admin-dashboard/src/app/[locale]/auth/layout.tsx
... and 41 more
logo and icon files (21):
admin-dashboard/public/brand/wordmark-ar-master.webp
admin-dashboard/public/brand/wordmark-ar-white.webp
... and 19 more
theme tokens (6):
admin-dashboard/src/styles/globals.css
admin-dashboard/src/styles/theme-variables.css
... and 4 more
emails (6):
back-end/src/modules/mail/mail.module.ts
back-end/src/modules/mail/mail.service.ts
... and 4 more
seed and mock data (6):
admin-dashboard/public/mock-media/ (65 files)
admin-dashboard/src/lib/mock/ (123 files)
... and 4 more
Done in 0.0 s
Names are the easy part. The home page line "Good food" sits in 11 files across the three apps: five storefront message files, the storefront's brand config, the API's settings seed, two API seed data files and both mock catalogues.
A rename leaves all of that describing the old restaurant, so the skill says to rewrite copy, not just replace a name.

Two more finds. The API's settings seed holds a site_name of "Food Studio", described as the name shown across the site and in emails, so the email brand comes from data, not from the mail template. And the Arabic name, فود ستوديو, appears 34 times: easy to miss if you only search in English.

The template-rebrand skill, in full
Here is the whole SKILL.md, 88 lines: the CHECK command first, then nine steps from the brief to the final build, each ending with a check, and a report. It works on any Next.js App Router project, with or without a NestJS API.
---
name: template-rebrand
description: Rebrand a Next.js App Router project, and its NestJS API if it has one, to a new brand (name and wordmark, colours, logo and icon files, copy in every locale, metadata and SEO titles, emails, seed data), then prove the old name is gone and every build passes. Use when asked to rebrand, white-label or rename a template, starter or app for a new business.
---
# Rebrand a Next.js (and NestJS) project
Work through the steps in order. Every step ends with a check: run it, fix what it
finds, and only then move on. CHECK means this command, from the project root:
```bash
node ${CLAUDE_SKILL_DIR}/scripts/rebrand-check.mjs check \
--old "Old Name" --old "Old name in each other script" \
--new "New Name" --new "New name in each other script"
```
Add `--case` when the old name is a common word (STORE), and `--allow <path>` for a
file that keeps the old name on purpose. Never run a blind find-and-replace.
## 0. Brief, map and baseline
1. Write down the old name in every form the project uses (each language, slug,
email domain) and the new name in every language, the brand colour, the logo
files and the tone. If the request leaves one out, choose a sensible value, keep
going, and list the choice in the report.
2. Run `node ${CLAUDE_SKILL_DIR}/scripts/rebrand-check.mjs map`.
3. Run each app's build command from the map once, before any edit.
Check: you have the map, a CHECK hit count to work down, and a result for every
build. A build that already failed is noted as not caused by the rebrand.
## 1. Names and wordmark
Brand config files, the logo component, the web app manifest, and any settings row a
seed writes (an email sender name often lives there). Leave package names, env
variable names, database names, Docker volumes and storage prefixes alone unless
asked: renaming them breaks installs and existing data.
Check: CHECK shows 0 hits under "brand config". The infra hits you kept go in the report.
## 2. Colours
Brand tokens in the theme files the map lists, light and dark, plus the browser theme
colour in the manifest or viewport. No colour is written into a component.
Check: CHECK with `--old "#oldhex"` for each old brand colour shows 0 hits, and text
on the new colour keeps a 4.5:1 contrast in both themes.
## 3. Logo and icon files
Replace the wordmark, mark, favicon, app icons and share image the map lists. Keep
file names and sizes, or update every reference. Open each new file and look at it.
Check: CHECK reports 0 picture paths missing from public/, and no file or folder name
with the old name except ones you kept on purpose.
## 4. Copy in every locale
Rewrite, do not just rename: hero, about, footer, legal, support, SEO, and any
sentence that describes the old business. Same keys in every locale, each language
written natively.
Check: CHECK shows 0 hits under "messages", and no locale or message file has the new
name in one language but not in another.
## 5. Metadata and SEO
Root and page layouts, `generateMetadata`, title templates, Open Graph and Twitter
fields, JSON-LD, sitemap, robots, manifest `name` and `short_name`.
Check: CHECK shows 0 hits under "metadata and SEO".
## 6. Emails
Sender name, subjects, header and footer, links, in every language the API sends.
The sender address and domain come from env: list them in the report.
Check: CHECK shows 0 hits under "emails".
## 7. Seed and mock data
Seeders, fixtures and mock catalogues: products, categories, settings rows, demo
account email domains, image paths. The API seed and any frontend mock data agree.
Check: CHECK shows 0 hits under "seed data".
## 8. Build and final check
Run every app's build command again. Fix errors until each passes. Do not start a dev
or production server unless asked.
Check: every build exits 0, then CHECK prints `Result: PASS`.
## Report
Files changed per step, the choices made for anything the brief left out, each
allowed hit and why, the build results, and what is left for a person: domain, DNS,
email sender, legal texts.
Two choices are deliberate. Package names, env variables, database names and Docker volumes stay unless you ask, because renaming them breaks installs and existing data. And a brief with gaps does not stop the run: the skill picks a sensible value and reports it, the way the Talvane run needed 0 follow-ups.
Get it from the agent-skills repository on GitHub, in either of two ways:
# with the skills CLI
npx skills add aniq-ui-pro/agent-skills --skill template-rebrand
# or by hand: copy the folder into your project
git clone https://github.com/aniq-ui-pro/agent-skills
mkdir -p .claude/skills
cp -R agent-skills/skills/template-rebrand .claude/skills/
Then start it with a sentence after the command. The skill has no $ARGUMENTS placeholder, so Claude Code appends what you type to the skill:
/template-rebrand Turn Food Studio into Nour Kitchen, a family restaurant.
Arabic name: مطبخ نور. Brand colour: #1f6f5c. New logo files are in ./brand.

The check, run on three real folders
We ran rebrand-check.mjs read-only on three folders: the current Food Studio Full Stack code, and the e-commerce template before and after the Talvane run. Each run took between 0.1 and 1.4 seconds.
Food Studio, before any rebrand
On an untouched template the check should fail everywhere, and it does:
$ node .claude/skills/template-rebrand/scripts/rebrand-check.mjs check \
--old "Food Studio" --old "فود ستوديو" --new "Nour Kitchen" --new "مطبخ نور" --limit 0
rebrand-check: 2761 text files read in 0.3 s
Old name: 1459 hits in 77 files
"Food Studio": 75
"food-studio": 1175
"foodstudio": 175
"فود ستوديو": 34
messages: 50 hits in 18 files
seed data: 1252 hits in 16 files
emails: 1 hit in 1 file
brand config: 20 hits in 2 files
docs: 79 hits in 14 files
infra and package names: 30 hits in 7 files
code: 20 hits in 12 files
other: 7 hits in 7 files
File and folder names with the old name: 5
New name ("Nour Kitchen", "مطبخ نور") in every locale:
none admin-dashboard ar: 0 hits in 22 files
none admin-dashboard en: 0 hits in 22 files
none back-end ar: 0 hits in 10 files
none back-end en: 0 hits in 10 files
none storefront ar: 0 hits in 15 files
none storefront en: 0 hits in 15 files
(none: that app's message files never name the brand; check it shows the brand another way)
Picture paths in the code: 166 checked, 0 missing from public/
Result: FAIL
The 1,459 hits need reading, not just counting. Only 109 are the name as words ("Food Studio" 75 times, فود ستوديو 34 times) in 50 files. Of the 1,175 food-studio hits, 1,142 are image paths in the two mock catalogues. Of the 175 foodstudio hits, 143 are the demo accounts' email domain, foodstudio.example.
Whether those paths change is a decision, so the skill has Claude decide each group and report it. The five file and folder names are the two mock media folders, the API's media folder and both mock catalogues.

The Talvane result, after the run
The e-commerce template started with two names: our own in the admin ("Aniq Dashboard", أنيق in Arabic) and a placeholder, STORE, in the storefront's brand config. Before the run, the check counted Aniq and أنيق 51 times in 14 files, and STORE and ستور 25 times in 4 files. After it:
$ node .claude/skills/template-rebrand/scripts/rebrand-check.mjs check \
--old Aniq --old "أنيق" --new Talvane --new "تالفان"
rebrand-check: 2358 text files read in 0.7 s
Old name: 8 hits in 4 files
"Aniq": 7
"أنيق": 1
messages: 1 hit in 1 file
storefront/messages/home/ar.json (1) line 110: ..."text": "أدفأ معطف امتلكته، ومظهره أنيق مع ذلك. الصوف كثيف والقصة نظيفة ويتسع لكنزة سميكة تحته....
infra and package names: 7 hits in 3 files
admin-dashboard/package.json (3) line 2: "name": "aniq-ui-admin",
back-end/package.json (3) line 2: "name": "aniq-ui-backend",
storefront/package.json (1) line 7: "author": "Aniq-ui",
New name ("Talvane", "تالفان") in every locale:
ok admin-dashboard ar: 4 hits in 19 files
ok admin-dashboard en: 4 hits in 19 files
none back-end ar: 0 hits in 12 files
none back-end en: 0 hits in 12 files
ok storefront ar: 5 hits in 12 files
ok storefront en: 5 hits in 12 files
(none: that app's message files never name the brand; check it shows the brand another way)
Picture paths in the code: 83 checked, 0 missing from public/
Result: FAIL
$ node .claude/skills/template-rebrand/scripts/rebrand-check.mjs check --old STORE --old "ستور" --case
rebrand-check: 2358 text files read in 0.2 s
Old name: 4 hits in 3 files
"STORE": 4
docs: 1 hit in 1 file
storefront/BRANDING.md (1) line 29: storeName: "YOUR STORE" // the wordmark in the navbar and footer
code: 3 hits in 2 files
back-end/src/modules/ai-chat/services/system-prompts/capabilities-prompt.ts (2) line 58: STORE SETTINGS:
back-end/src/modules/ai-chat/services/system-prompts/store-operations-guidance.ts (1) line 130: STORE SETTINGS:
Picture paths in the code: 83 checked, 0 missing from public/
Result: FAIL
Twelve hits are left in 7 files, and none is a brand a visitor sees. Seven are name, description and author fields in three package.json files, which the skill says to leave. Three are "STORE SETTINGS:" headings in the AI assistant's prompts, never a brand. One is the placeholder "YOUR STORE" in a branding guide.
The last is the best lesson: أنيق is also Arabic for "elegant", and the new Talvane copy uses it to describe a coat. A script cannot tell a brand from an adjective, so the skill ends with Claude reading each hit and passing real keepers with --allow.
Everything else passed. The new name appears in both languages of the storefront (5 and 5) and the admin (4 and 4), no message file has it in one language only, and all 83 picture paths in the code exist. The API's message files never named the brand, before or after.
Running a skill with nobody watching
The Talvane run also showed a trap. With a fixed allowlist, 15 of Claude's shell commands were refused, among them git ls-files, python3, and direct calls to next build and nest build through node_modules/.bin. It finished anyway, but each refusal was a wasted step.
prompt=$(cat prompt-talvane.txt)
claude -p "$prompt" --model claude-fable-5-2 --output-format json \
--permission-mode acceptEdits \
--allowedTools "Read" "Edit" "Write" "Glob" "Grep" "TodoWrite" \
"Bash(yarn:*)" "Bash(corepack:*)" "Bash(npm:*)" "Bash(npx:*)" "Bash(node:*)" \
"Bash(ls:*)" "Bash(mkdir:*)" "Bash(cat:*)" "Bash(cp:*)" "Bash(mv:*)" "Bash(rm:*)" \
"Bash(find:*)" "Bash(cd:*)" "Bash(git status:*)" "Bash(git diff:*)"
So in a headless run, allow what the steps call: Bash(node:*) for the check script and your package manager for the builds. A skill's own allowed-tools field can grant tools for the turn that invokes it; we left it out so your permission settings stay in charge.

What the best Claude Code skills have in common
Lists of the best Claude Code skills are easy to find. To judge one before installing it, look for these traits, taken from the docs and from this rebrand.
- One job. A skill that rebrands should not also deploy.
- A description in the user's words, main use case first.
- A check after every step that a command can answer, not "make sure it looks right".
- Scripts for anything exact: counts, file lists, comparisons.
- Critical rules at the top, because compaction keeps only the start of a skill.
- Side effects behind
disable-model-invocation, so nothing risky starts because a sentence matched.
FAQ
How do I create a skill in Claude Code?
Create a folder such as .claude/skills/my-skill/, add a SKILL.md that starts with YAML front matter (at least a description of what it does and when to use it), and write the steps below in Markdown. Claude Code picks it up in the running session (run /reload-skills if the skills folder itself is new), and /my-skill calls it.
What is the difference between a skill and CLAUDE.md?
CLAUDE.md loads in every session and should hold facts about the project. A skill's body loads only when used, so it suits a long procedure such as a rebrand or a release. The docs suggest moving a CLAUDE.md section into a skill once it has become a procedure.
Are Claude Code skills the same as slash commands?
Custom slash commands have been merged into skills: a command file and a skill folder with the same name create the same /name, and the skill wins. Skills add a folder for scripts and reference files, and Claude can load them on its own.
Can a Claude skill run a script?
Yes. Put the script in the skill's folder and tell Claude in SKILL.md to run it, with ${CLAUDE_SKILL_DIR} in the path. Its code is executed, not loaded into context. Ours is one Node file with no dependencies.
How long should SKILL.md be?
Under 500 lines, the docs say, with long reference material in separate files that SKILL.md links to. Shorter is better, since the body stays in context once loaded. Ours is 88 lines.
Why does Claude not use my skill?
Usually the description lacks the words people type. Rewrite it with natural phrases, ask "What skills are available?" to see if it is listed, and call it with /name. Malformed YAML also hides the description; claude plugin validate finds it.
The templates behind the runs, and their prices
- Food Studio Full Stack (ordering website, staff dashboard and NestJS API): $149, against $227 for the three parts bought separately.
- Food Studio ordering website $59, staff dashboard $69, Backend API $99.
- E-commerce template with admin dashboard, the base of the Talvane run: Full Stack $149, storefront $59, admin dashboard $69, API $99.
- Bundle of 10 premium templates: $499.
One payment and a commercial licence for unlimited projects, client work included. Each template page shows any offer running today. Browse the templates.
Demo video: Food Studio
Related guides
- CLAUDE.md Examples From 28 Shipped Next.js and NestJS Apps (2026)
- Claude Code RTL: Arabic Right to Left in Next.js and Tailwind (2026)
- Claude Code vs Replit vs Lovable: Which One Fits Your Project (2026)
- Replit vs Lovable for Templates: We Tested Both in English and Arabic (2026)
- 30 Prompts to Customize a Website Template With AI (2026)
- How to Build a Restaurant Online Ordering System with Next.js
Sources
Skill fields, locations, loading, limits and troubleshooting: the Claude Code docs on skills, read in November 2026, with subagents, CLAUDE.md and hooks for the comparisons. The open format: Agent Skills. Advice across Claude products: skill authoring best practices. Run figures: our logs of the 8 and 10 November 2026 runs. Check output: the skill's script, run on the template code.
You might also like

CLAUDE.md Examples From 28 Shipped Next.js and NestJS Apps (2026)
Four CLAUDE.md examples to copy, written from 28 shipped Next.js and NestJS apps: root, Next.js, NestJS and AGENTS.md, plus a free skill that checks yours.

Claude Code RTL: Arabic Right to Left in Next.js and Tailwind (2026)
Claude Code RTL done right: a CLAUDE.md block, a free rtl-check skill and hook that flags ml-, left- and text-left, and real results from 6 Next.js repos.

How to Build an Online Fitness Coaching App with Next.js
Build an online coaching platform with client rosters, assigned workouts and weekly check-ins using Next.js and NestJS. A worked example, step by step.
