Claude Code Skills Tutorial: How to Add, Install & Use SKILL.md (2027 Guide)

Developer desk workspace setup for creating modular claude code skills and SKILL.md workflows

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// (project) or ~/.claude/skills// (personal), or install packs via /plugin marketplace add anthropics/skills. Claude reads ~100 metadata tokens per skill at startup—loading full prompts, scripts/, and allowed-tools only when activated.

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.

TimestampVideo ChapterWhat You Learn & Configure
00:00 – 00:55Intro & Why Skills MatterWhy repeating long prompts across terminal sessions breaks flow
00:55 – 01:44What a Claude Code Skill IsHow SKILL.md differs from always-on CLAUDE.md instructions
01:44 – 03:19Creating Your First SkillSetting up .claude/skills//SKILL.md cleanly
03:19 – 04:33Where Skills Live (Scopes)Project Git repos vs ~/.claude/skills/ personal directories
04:33 – 06:13The Trigger Description & RulesHow Claude matches user prompts and instruction discipline
06:13 – 08:54Arguments & Invocation ControlDynamic $ARGUMENTS/$1 variables plus who can trigger skills
08:54 – 10:51Built-In Packs & Fixing IssuesDefault 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:

Architecture diagram comparing always-on CLAUDE.md token burn against three-stage claude code skills progressive disclosure
Figure 1: Progressive disclosure keeps startup context at ~100 tokens per skill rather than loading dormant checklists on every turn.
CapabilityCLAUDE.md (Always-On Memory)SKILL.md (Claude Code Skills)
Startup Token Cost100% loaded on every turn (often 3,000–8,000+ tokens)Lightweight (~100 tokens per skill for YAML header only)
When Full Instructions LoadAlways present even when unrelatedOn-demand only when task matches or /command runs
Bundled Executable ScriptsNot supported natively (prose only)Includes scripts/, references/, and assets/ subfolders
Tool Pre-ApprovalFollows static workspace permissionsPer-turn allowed-tools grant in YAML frontmatter
Context IsolationShares main terminal chat historySupports context: fork inside isolated subagents
Best 2027 RoleShort global repo identity, build & lint commandsMulti-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 LevelExact Folder PathWho Sees ItBest Use Case
Project Skill.claude/skills//SKILL.mdEntire team via Git clonePR audits, migrations, Playwright tests, deploy workflows
Personal Skill~/.claude/skills//SKILL.mdYou across every local repoCommit formatting, personal shortcuts, debugging checklists
Enterprise PolicyManaged org settings (~/.claude/skills/synced/)All devs inside orgSecurity gates, internal design systems, compliance rules
Plugin BundleInstalled plugin (/plugin-name:skill-name)Any repo with plugin enabledAnthropic 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:

Annotated VS Code screenshot showing .claude/skills directory layout and SKILL.md YAML frontmatter fields
Figure 2: Inside .claude/skills/api-audit/SKILL.md—name registers /api-audit, description drives auto-matching, and allowed-tools grants temporary turn permissions.
YAML Frontmatter FieldRequired?Exact Behavior in Claude Code (2027)
nameYesLowercase hyphenated slug (max 64 chars). Creates the /name slash command.
descriptionYesMax 1,024 chars. Read at startup to match intent automatically.
allowed-toolsNoSpace-separated tool grant (e.g. Read Grep Glob Bash) for that skill turn only.
argument-hintNoDisplays placeholder hints in terminal autocomplete, e.g. “[route-folder]”.
disable-model-invocationNoSet true for risky deploys so Claude waits strictly for manual /command execution.
user-invocableNoSet false to keep ambient background policies out of manual slash autocomplete.
contextNoSet context: fork to execute noisy deep audits inside an isolated subagent.
agentNoNames 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:

Terminal trace comparing explicit /slash command and automatic prompt triggering in claude code skills
Figure 3: Explicit /api-audit triggers bind $ARGUMENTS directly, while natural prompts match YAML descriptions and automatically clear allowed-tools grants on completion.
  • 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-tools prevent 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:

  1. Confirm discovery with a fresh restart: Claude indexes SKILL.md headers strictly on session launch. Always type /exit and reopen claude after creating or renaming skills.
  2. Test manual /skill-name first: If typing /api-audit manually fails, check YAML syntax (colons, indentation) and verify the file sits exactly at .claude/skills/<name>/SKILL.md.
  3. 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.”
  4. Enforce stubborn skills via CLAUDE.md or Hooks: For zero-miss compliance workflows, add one short line in root CLAUDE.md (“MUST run /api-audit whenever touching src/routes/”) or wire a lightweight UserPromptSubmit hook inside .claude/settings.json inspecting 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 PackVerified Install / SourceWhat It Gives You in 2027
Anthropic Official Skills Hubgithub.com/anthropics/skills (/plugin marketplace add anthropics/skills)First-party PDF, DOCX, XLSX, PPTX & frontend skill modules maintained by Anthropic
ClaudeCodeSkill Directoryclaudecodeskill.org (Claude Code skills website)Searchable community directory indexing copy-ready SKILL.md packs for DevOps, QA & UI
OpenAI Codex Plugin Bridgegithub.com/openai/codex-plugin-ccBridges Codex & Claude Code (.agents/skills/ standard + /codex:review verification loops)
Shopify Official AI Toolkitgithub.com/Shopify/shopify-ai-toolkitAdds specialized Liquid templating, Shopify CLI, Hydrogen & GraphQL Admin API skills
Agent Skills Open Specagentskills.io/specificationCross-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/

  1. Move single markdown files from .claude/commands/review.md into .claude/skills/review/SKILL.md.
  2. Add YAML name, directive description, and scoped allowed-tools.
  3. Move oversized boilerplate snippets into references/ or assets/, 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 Tier2027 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 tokensProgressive 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-tools grants turn-wide Bash trust: Audit downloaded third-party community skills before authorizing shell tools inside folders with production .env secrets.

Common Claude Code Skills Errors & Quick Fixes

Symptom / ErrorWhy It HappensExact Fix
/my-skill missing after creating SKILL.mdSession not restarted or nested two folders deepPlace one folder deep (.claude/skills/name/SKILL.md) & restart claude
Skill only works manually, skips auto-triggerPassive description lacks trigger verbsRewrite description using ‘ALWAYS invoke when…’ directive phrasing
Unexpected permission prompt every commandMissing allowed-tools field in YAMLSpecify allowed-tools: Read Grep Glob Bash cleanly
Third-party /plugin install failsMarketplace repo not added firstRun /plugin marketplace add anthropics/skills before /plugin install
Context limit fills up during test skillMissing context: fork on noisy Bash runnerAdd 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// for project-wide Git sharing or ~/.claude/skills// for personal cross-repo tools, save a SKILL.md file containing YAML name and description frontmatter, and restart your Claude CLI session so discovery registers it.

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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top