Stuffing every deployment rule, database migration note, and pull-request checklist into a single monolithic CLAUDE.md file silently destroys your token budget before you write your first line of code. Claude Code Skills solve this cleanly—turning scattered instructions into modular, on-demand SKILL.md folders that cost near-zero baseline tokens until the exact second your workflow needs them.
Quick Answer: Claude Code Skills (2027)
To add skills to Claude Code, place a SKILL.md file inside .claude/skills/
In this updated 2027 guide—covering the official Claude Code Skills documentation, the open Agent Skills specification, Anthropic’s Complete Guide to Building Skills for Claude, and First Sale Lab’s SKILL.md tutorial—you will learn how to create, install, and properly activate every type of Claude Code skill. Pair this workflow cleanly with our Claude Skills in n8n AI agents tutorial and Claude Code vs Cursor workflow comparison.
Video walkthrough by First Sale Lab (10:51) covering skill structure, directory placement, trigger descriptions, dynamic $ARGUMENTS, and troubleshooting inactive skills.
| Timestamp | Video Chapter | What You Learn & Configure |
|---|---|---|
| 00:00 – 00:55 | Intro & Why Skills Matter | Why repeating long prompts across terminal sessions breaks flow |
| 00:55 – 01:44 | What a Claude Code Skill Is | How SKILL.md differs from always-on CLAUDE.md instructions |
| 01:44 – 03:19 | Creating Your First Skill | Setting up .claude/skills/ |
| 03:19 – 04:33 | Where Skills Live (Scopes) | Project Git repos vs ~/.claude/skills/ personal directories |
| 04:33 – 06:13 | The Trigger Description & Rules | How Claude matches user prompts and instruction discipline |
| 06:13 – 08:54 | Arguments & Invocation Control | Dynamic $ARGUMENTS/$1 variables plus who can trigger skills |
| 08:54 – 10:51 | Built-In Packs & Fixing Issues | Default included skills and fixing skills that refuse to trigger |
What Are Claude Code Skills? (CLAUDE.md vs. Progressive Disclosure)
When engineers first adopt Claude Code, every rule goes inside CLAUDE.md: CSS conventions, Playwright suites, SQL naming guides, and deploy checklists. Within weeks, CLAUDE.md balloons past 4,000 tokens.
Because Claude ingests 100% of CLAUDE.md on every prompt turn, irrelevant guidelines compete with your real task and drain 5-hour rolling quotas faster. Claude Code Skills solve this via three-stage progressive disclosure:

| Capability | CLAUDE.md (Always-On Memory) | SKILL.md (Claude Code Skills) |
|---|---|---|
| Startup Token Cost | 100% loaded on every turn (often 3,000–8,000+ tokens) | Lightweight (~100 tokens per skill for YAML header only) |
| When Full Instructions Load | Always present even when unrelated | On-demand only when task matches or /command runs |
| Bundled Executable Scripts | Not supported natively (prose only) | Includes scripts/, references/, and assets/ subfolders |
| Tool Pre-Approval | Follows static workspace permissions | Per-turn allowed-tools grant in YAML frontmatter |
| Context Isolation | Shares main terminal chat history | Supports context: fork inside isolated subagents |
| Best 2027 Role | Short global repo identity, build & lint commands | Multi-step audits, testing, deployments, generators |
How to Add and Install Skills in Claude Code (Manual + /plugin Marketplace)
Developers generally add skills in two ways: creating custom project-specific folders manually or installing pre-built packs directly inside the CLI. Both paths coexist seamlessly inside the same workspace.
Method 1: How to Add a Custom Skill Manually (.claude/skills/)
Every custom skill uses one named directory containing a required SKILL.md file. Pick one of four official loading scopes based on who needs access:
| Scope Level | Exact Folder Path | Who Sees It | Best Use Case |
|---|---|---|---|
| Project Skill | .claude/skills/ | Entire team via Git clone | PR audits, migrations, Playwright tests, deploy workflows |
| Personal Skill | ~/.claude/skills/ | You across every local repo | Commit formatting, personal shortcuts, debugging checklists |
| Enterprise Policy | Managed org settings (~/.claude/skills/synced/) | All devs inside org | Security gates, internal design systems, compliance rules |
| Plugin Bundle | Installed plugin (/plugin-name:skill-name) | Any repo with plugin enabled | Anthropic official docs packs, Codex & Shopify plugins |
Follow strict naming hygiene: folder and YAML name must match identically, stay under 64 characters, use lowercase letters, numbers, and hyphens only, and avoid reserved strings like claude or anthropic. Never nest skills two levels deep—keep SKILL.md strictly one folder inside skills/.
Method 2: How to Install Skills in Claude Code via /plugin Marketplace
Prefer ready-made workflows? Anthropic hosts official packs at github.com/anthropics/skills (covering Word, Excel, PowerPoint, PDF parsing, and frontend skills) installable right inside your interactive prompt:
# 1. Start Claude Code in your project
claude
# 2. Register Anthropic's official skill marketplace once
/plugin marketplace add anthropics/skills
# 3. Install Document or Example Skills packs
/plugin install document-skills@anthropic-agent-skills
/plugin install example-skills@anthropic-agent-skills
# Or type /plugin interactively to browse & enable installed skills
Anatomy of SKILL.md YAML Frontmatter & Copy-Paste Build
Inspect what makes a SKILL.md package reliable. YAML frontmatter at the top controls autocomplete naming, semantic triggering, argument hints, temporary permissions, and isolation:

| YAML Frontmatter Field | Required? | Exact Behavior in Claude Code (2027) |
|---|---|---|
| name | Yes | Lowercase hyphenated slug (max 64 chars). Creates the /name slash command. |
| description | Yes | Max 1,024 chars. Read at startup to match intent automatically. |
| allowed-tools | No | Space-separated tool grant (e.g. Read Grep Glob Bash) for that skill turn only. |
| argument-hint | No | Displays placeholder hints in terminal autocomplete, e.g. “[route-folder]”. |
| disable-model-invocation | No | Set true for risky deploys so Claude waits strictly for manual /command execution. |
| user-invocable | No | Set false to keep ambient background policies out of manual slash autocomplete. |
| context | No | Set context: fork to execute noisy deep audits inside an isolated subagent. |
| agent | No | Names which subagent profile runs when context: fork is active. |
Build your first complete workflow right now—an automated endpoint security auditor named api-audit—using deterministic Python checks under scripts/ and reference standards under references/ so Claude never guesses across large codebases:
mkdir -p .claude/skills/api-audit/scripts .claude/skills/api-audit/references .claude/skills/api-audit/assets
---
name: api-audit
description: ALWAYS invoke this skill when reviewing backend REST or Next.js API routes, checking endpoint auth guards, or auditing N+1 database queries. Do not audit API routes directly without loading this skill first.
allowed-tools: Read Grep Glob Bash
argument-hint: "[target-folder-or-route]"
---
# API Security & Schema Audit
Target directory or endpoint: $ARGUMENTS
## Audit Procedure
1. Read `references/openapi-rules.md` to load current auth and rate-limit rules.
2. If `$ARGUMENTS` is empty, locate `src/routes/` or `app/api/` using Glob.
3. Run `python .claude/skills/api-audit/scripts/check_routes.py $ARGUMENTS` before manual analysis.
4. Report unauthenticated handlers or SQL queries inside loops using `assets/report-template.md`. Do not edit source files unless explicitly asked.
Drop a fast helper check inside .claude/skills/api-audit/scripts/check_routes.py—notice how pairing lean scripts with GEMINI.md or SKILL.md also mirrors the disciplined terminal engineering patterns in our Google Gemini CLI 2027 guide:
#!/usr/bin/env python3
"""Deterministic check for POST handlers missing auth middleware."""
import pathlib, sys
root = pathlib.Path(sys.argv[1] if len(sys.argv) > 1 else "src/routes")
if not root.exists():
print(f"SKIP: {root} not found"); sys.exit(0)
flagged = [str(p) for p in list(root.rglob("*.ts")) + list(root.rglob("*.js"))
if ("router.post" in p.read_text(errors="ignore") or "async function POST" in p.read_text(errors="ignore"))
and "requireAuth" not in p.read_text(errors="ignore")]
print(f"Scanned {root}: {len(flagged)} unauthenticated POST candidates")
for item in flagged: print(" -", item)
How to Use Skills in Claude Code: Slash Commands vs Auto-Trigger
Once your folders exist and you restart claude, you can trigger workflows manually or let semantic discovery fire automatically:

- Explicit Slash Command (
/api-audit src/routes/v2): Ideal when targeting specific folders via$ARGUMENTS(or positional$1,$2) or running high-risk deploy scripts safely. - Automatic Prompt Matching: Simply say “Audit our new billing routes for auth gaps” and Claude detects the match at startup without forcing extra syntax.
- Temporary Permission Reset: Grants listed under
allowed-toolsprevent annoying prompt popups inside that single turn, then reset automatically on exit.
To extend local skills across external APIs like Linear, Postgres, or n8n orchestrators, combine Skills with Model Context Protocol tools covered in our MCP custom agent integration tutorial and modular Claude Skills inside n8n guide.
How to Properly Activate a Claude Code Skill (And Fix Silent Triggers)
The #1 frustration builders report online isn’t writing Markdown—it is wondering how to properly activate a Claude Code skill when natural prompts silently bypass it. Because default startup matching treats soft descriptions as optional hints, fix silent skips with four checks:
- Confirm discovery with a fresh restart: Claude indexes
SKILL.mdheaders strictly on session launch. Always type/exitand reopenclaudeafter creating or renaming skills. - Test manual
/skill-namefirst: If typing/api-auditmanually fails, check YAML syntax (colons, indentation) and verify the file sits exactly at.claude/skills/<name>/SKILL.md. - Switch from passive to directive description phrasing: Passive lines like “Helps audit endpoints” get ignored roughly half the time. Rewrite using imperative triggers: “ALWAYS invoke this skill when reviewing REST routes… Do not review endpoints without loading this skill first.”
- Enforce stubborn skills via
CLAUDE.mdor Hooks: For zero-miss compliance workflows, add one short line in rootCLAUDE.md(“MUST run /api-audit whenever touching src/routes/”) or wire a lightweightUserPromptSubmithook inside.claude/settings.jsoninspecting incoming prompts for keywords before Claude answers:
{
"hooks": {
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "echo '[Skill Check] If task modifies routes or API auth, load .claude/skills/api-audit/SKILL.md first.'"
}
]
}
]
}
}
Best Claude Code Skills Websites, Codex Skill Plugin & Shopify Ecosystem (2027)
Beyond authoring private repo playbooks, the 2027 SKILL.md open ecosystem lets teams pull vetted workflows from curated directories and cross-tool bridges:
| Platform / Skill Pack | Verified Install / Source | What It Gives You in 2027 |
|---|---|---|
| Anthropic Official Skills Hub | github.com/anthropics/skills (/plugin marketplace add anthropics/skills) | First-party PDF, DOCX, XLSX, PPTX & frontend skill modules maintained by Anthropic |
| ClaudeCodeSkill Directory | claudecodeskill.org (Claude Code skills website) | Searchable community directory indexing copy-ready SKILL.md packs for DevOps, QA & UI |
| OpenAI Codex Plugin Bridge | github.com/openai/codex-plugin-cc | Bridges Codex & Claude Code (.agents/skills/ standard + /codex:review verification loops) |
| Shopify Official AI Toolkit | github.com/Shopify/shopify-ai-toolkit | Adds specialized Liquid templating, Shopify CLI, Hydrogen & GraphQL Admin API skills |
| Agent Skills Open Spec | agentskills.io/specification | Cross-agent format standard keeping skills portable across Claude Code, Codex & CLI tools |
Because both OpenAI Codex and Claude Code follow the cross-agent Agent Skills specification, engineering teams increasingly store shared playbooks inside a single .agents/skills/ directory so multiple terminal agents read the exact same instructions cleanly without duplicating markdown folders. Inspect the OpenAI Codex Plugin for Claude Code if your team runs dual-model cross-reviews (drafting in Claude Code, verifying diffs through Codex via /codex:review), or grab Shopify’s official AI Toolkit via npx skills add Shopify/shopify-ai-toolkit or claude plugin install shopify-ai-toolkit for ecommerce storefronts, Polaris UI, and GraphQL mutations. Developers browsing third-party Claude Code skills websites such as claudecodeskill.org can copy verified workflows in seconds—just inspect any bundled scripts/ files manually before running untrusted shell code locally.
Subagent Forking (context: fork), Governance & Legacy Migration
For heavy test suites or crawl diagnostics that flood your terminal with verbose JSON, set context: fork and agent: Explore in frontmatter so Claude spins up an isolated subagent returning only clean summaries. Meanwhile, combine disable-model-invocation: true on deploy scripts so only explicit /deploy commands ever run them.
---
name: full-regression-scan
description: ALWAYS run Playwright regression checks inside an isolated subagent before summarizing broken selectors.
context: fork
agent: Explore
allowed-tools: Bash Read Grep
disable-model-invocation: true
---
Quick Migration Checklist From Legacy .claude/commands/
- Move single markdown files from
.claude/commands/review.mdinto.claude/skills/review/SKILL.md. - Add YAML
name, directivedescription, and scopedallowed-tools. - Move oversized boilerplate snippets into
references/orassets/, then remove the old command file to avoid duplicate slash collisions.
Real Workflow Test & Limitations (2027 Costs in USD & INR)
Refactoring a 4,200-token monolithic CLAUDE.md (React rules, SQL migrations, security audits, Playwright checklists) into a lean 420-token core CLAUDE.md plus four modular .claude/skills/ folders cut baseline session input tokens dramatically while stretching rolling usage caps across every 2027 tier:
| Plan / API Tier | 2027 Cost (USD / INR) | Real Claude Code Skills Impact |
|---|---|---|
| Claude Pro Plan | $20/mo (~₹1,999/mo in India) | Includes Claude Code & Skills; lean startup context doubles useful turns inside 5-hr caps |
| Claude Max Plan (5x) | $100/mo (~₹8,400/mo) | Smoothly powers daily multi-skill coding + forked subagent test suites |
| Claude Ultra Plan (10x) | $200/mo (~₹16,800/mo) | Built for nonstop parallel subagents and heavy CI pipelines |
| Anthropic API (Sonnet 5.5 / Opus 5.5) | $2/$10 or $4/$20 per 1M tokens | Progressive disclosure cuts wasted system input tokens up to ~80% on focused edits |
- 60+ personal skills still accumulate startup bloat: At ~100 tokens per YAML header, unpruned global directories inside
~/.claude/skills/quietly rebuild a 6,000-token startup tax. - Relative script paths fail outside repo root: Always write paths relative to root (
.claude/skills/.../scripts/) and verify cleanly if running in monorepos. allowed-toolsgrants turn-wide Bash trust: Audit downloaded third-party community skills before authorizing shell tools inside folders with production.envsecrets.
Common Claude Code Skills Errors & Quick Fixes
| Symptom / Error | Why It Happens | Exact Fix |
|---|---|---|
| /my-skill missing after creating SKILL.md | Session not restarted or nested two folders deep | Place one folder deep (.claude/skills/name/SKILL.md) & restart claude |
| Skill only works manually, skips auto-trigger | Passive description lacks trigger verbs | Rewrite description using ‘ALWAYS invoke when…’ directive phrasing |
| Unexpected permission prompt every command | Missing allowed-tools field in YAML | Specify allowed-tools: Read Grep Glob Bash cleanly |
| Third-party /plugin install fails | Marketplace repo not added first | Run /plugin marketplace add anthropics/skills before /plugin install |
| Context limit fills up during test skill | Missing context: fork on noisy Bash runner | Add context: fork & agent: Explore to isolate verbose output |
Written by Sachin Kumar, Technology Editor at AI Insight Talks (info@aiinsighttalks.com). Tested against current 2027 Claude Code Agent Skills specifications.
Frequently Asked Questions
How do you add skills to Claude Code manually?
To add skills to Claude Code manually, create a named subfolder inside .claude/skills/
How do you install skills in Claude Code from GitHub or marketplaces?
Run claude in your terminal, add a plugin marketplace with /plugin marketplace add anthropics/skills, and run /plugin install document-skills@anthropic-agent-skills (or type /plugin to browse interactively). Official third-party packs like Shopify’s shopify-ai-toolkit install the exact same way.
How do I properly activate a Claude Code skill if auto-trigger fails?
First test the explicit /skill-name slash command to confirm directory placement (one folder deep) and session restart. If manual commands work but natural prompts skip the skill, rewrite your YAML description using directive phrasing (‘ALWAYS invoke this skill when…’) or enforce it with a CLAUDE.md rule or UserPromptSubmit hook.
How do I use skills in Claude Code once added?
You can invoke any skill explicitly by typing /skill-name plus optional inputs (captured via $ARGUMENTS or $1), or write a natural prompt matching its YAML description so Claude loads its instructions, scripts, and allowed-tools pre-approvals automatically for that turn.
Can I use a Codex skill for Claude Code or Shopify Code skill packs?
Yes. OpenAI’s open-source openai/codex-plugin-cc plugin links Claude Code with Codex workflows cleanly via .agents/skills/ compatibility and /codex:review commands, while Shopify maintains an official Claude Code skill pack (Shopify/shopify-ai-toolkit) covering Liquid templates, Hydrogen, Polaris, and GraphQL.
What is the best Claude Code skills website or directory in 2027?
Start with Anthropic’s official github.com/anthropics/skills repository and the open agentskills.io specification for verified packs. For curated third-party workflows spanning DevOps, QA, and architecture, community directories like claudecodeskill.org index thousands of install-ready SKILL.md blueprints.




