CClaude Code Catalog
전체 가이드

Claude Code Skills 완전 가이드

중급 12 min

Claude Code의 Skills 시스템은 반복 워크플로우를 재사용·공유 가능한 커맨드로 변환합니다. 이 가이드에서는 첫 SKILL.md 작성부터 조직 전체 배포까지 다룹니다. YAML frontmatter 스펙, 5개 공식 번들 스킬(/simplify, /batch, /debug, /loop, /claude-api), context fork·동적 주입 등 고급 패턴, 개인/프로젝트/플러그인/엔터프라이즈 배포 계층과 Agent Skills 오픈 표준을 학습합니다.

스킬SKILL.md번들 스킬자동화Agent Skills

SKILL.md 포맷과 Frontmatter

Every Claude Code skill is defined in a SKILL.md file — a Markdown document with optional YAML frontmatter. The frontmatter controls how the skill appears, what tools it can access, and how it executes. The body contains the prompt that Claude follows when the skill is invoked. The minimal SKILL.md requires just a name and a prompt body. As your needs grow, you can progressively add fields: description for autocomplete hints, allowed_tools to restrict capabilities, context to control execution isolation, and invocation to set manual or automatic triggering. The $ARGUMENTS placeholder is central to making skills flexible. When a user types /my-skill some-value, the $ARGUMENTS token in the prompt body is replaced with 'some-value'. This enables parameterized skills that adapt to different inputs without requiring separate skill files for each variation.
# Minimal SKILL.md --- name: quick-review description: Quick code review of staged changes --- Review the staged changes (git diff --cached) and provide feedback on code quality, potential bugs, and style issues. # Full-featured SKILL.md --- name: deploy-check description: Pre-deployment readiness verification allowed_tools: - Read - Bash - Grep - Glob context: fork # Run in isolated context invocation: user # Manual trigger only --- Verify deployment readiness for $ARGUMENTS: Current environment: !`echo $NODE_ENV` 1. Run the test suite and report failures 2. Check for uncommitted changes 3. Verify all environment variables are set 4. Validate build output exists and is fresh 5. Report go/no-go decision with reasoning

번들 스킬 상세 가이드

Claude Code ships with five official bundled skills that demonstrate best practices and solve common workflows. These skills are maintained by Anthropic and updated with each release. /simplify runs three parallel review agents (code-reuse, code-quality, efficiency) against your changed files, automatically fixing issues it finds. It uses context: fork so each agent gets an isolated view of the codebase. /batch is the powerhouse for large-scale changes. It researches your codebase, decomposes the work into 5-30 independent units, spins up a separate git worktree for each unit, and generates PRs automatically. Ideal for API migrations, code standard enforcement, or cross-cutting refactors. /debug analyzes your session logs to diagnose issues with Claude Code itself — failed tool calls, permission problems, unusual token consumption, or behavioral anomalies. /loop enables repeating tasks with optional cron scheduling. Monitor deployments, run periodic code quality checks, or collect data at intervals. /claude-api provides instant access to Claude API documentation and best practices, helping you build applications that integrate with Claude.
# /simplify — Parallel code review /simplify # Runs 3 agents: code-reuse, code-quality, efficiency # Auto-fixes found issues # /batch — Large-scale parallel changes /batch "migrate all API calls from v1 to v2 format" # 1. Researches codebase # 2. Splits into N independent units # 3. Each unit runs in its own worktree # 4. Creates PRs per unit # /debug — Session troubleshooting /debug /debug --session <session-id> /debug --verbose # /loop — Repeating tasks /loop --count 5 "check error logs" /loop --cron "*/30 * * * *" "health check" /loop --duration 1h --interval 5m "monitor deploy" # /claude-api — API reference /claude-api "how to use tool_use with streaming"

고급 패턴

The context field in SKILL.md frontmatter controls execution isolation. With context: share (default), the skill runs in the same context as the main conversation, seeing all prior messages and tool results. With context: fork, the skill gets a clean, isolated context — essential for parallel execution patterns where multiple agents should not interfere with each other. Dynamic context injection via !`command` syntax lets skills pull in runtime information. The command runs before the prompt is sent to Claude, and its output is inlined into the prompt. This is powerful for skills that need to adapt to the current state of the repository, environment, or external systems. The invocation field controls when skills activate. User-invoked skills (invocation: user, the default) require explicit /command calls. Auto-invoked skills (invocation: auto) trigger automatically when certain conditions in the conversation are met — useful for guardrails, linters, or post-action hooks. Combining these patterns enables sophisticated multi-agent workflows. A parent skill can fork multiple child skills, each with its own context, tools, and scope, then collect and merge their results.
# Context: fork — Isolated execution --- name: parallel-review context: fork --- # This skill runs in a clean context, ideal for # spawning as one of several parallel agents # Dynamic context injection --- name: deploy-status --- Current branch: !`git branch --show-current` Last commit: !`git log --oneline -1` Pending changes: !`git status --short` Based on the above, determine if we're ready to deploy. # Auto-invocation (guardrail pattern) --- name: security-check invocation: auto description: Automatically checks for security issues --- If the conversation involves modifying authentication, authorization, or credential handling code, flag any potential security concerns before changes are applied. # Multi-agent composition --- name: full-audit context: fork --- Run these checks in parallel: 1. /simplify for code quality 2. /security-check for vulnerabilities 3. Custom test coverage analysis Merge all findings into a single report.

배포 및 조직 관리

Skills follow a clear hierarchy for discovery and organization. Personal skills live in .claude/skills/ (gitignored) or ~/.claude/skills/ (global). Project skills go in your repository root's skills/ directory and are committed alongside code. Plugin skills are distributed via npm packages. Enterprise skills use the Skills API for centralized management. The Agent Skills open standard (agentskills.io) extends SKILL.md to work across multiple AI coding agents. A skill written to this standard can run on Claude Code, Cursor, Windsurf, and other compatible agents. The standard adds version metadata, compatibility declarations, and a registry API. For team deployment, the recommended pattern is a shared skills repository. Teams maintain a central repo of approved skills, which individual projects reference. The $CLAUDE_SKILL_DIR environment variable (v2.1.69+) lets you point to a shared directory of skills without copying files into each project. Organization-level distribution uses the Skills API (/v1/skills) to programmatically list, fetch, and execute skills. This enables CI/CD integration, automated skill updates, and usage analytics across the organization.
# Skill directory hierarchy (highest to lowest priority): .claude/skills/ # Personal (gitignored) ./skills/ # Project (committed) ~/.claude/skills/ # Global (all projects) $CLAUDE_SKILL_DIR/ # Custom directory (v2.1.69+) # Share skills via environment variable export CLAUDE_SKILL_DIR="/team/shared-skills" # Agent Skills standard (agentskills.io) --- name: universal-lint version: 1.0.0 compatibility: - claude-code - cursor - windsurf --- # Skills API for enterprise GET /v1/skills # List all skills GET /v1/skills/{name} # Get skill details POST /v1/skills/{name}/exec # Execute skill # npm distribution npm install @myorg/claude-skills # Skills auto-discovered from node_modules

실행 미리보기

Claude Code Skills 완전 가이드

Claude Code Skills 완전 가이드에 대해

Claude Code 가이드는 Claude Code의 특정 측면을 마스터하기 위한 심층적인 단계별 안내를 제공합니다. Claude Code Skills 완전 가이드은(는) 중급 수준의 가이드로, 일상 워크플로우에서 Claude Code를 최대한 활용하기 위한 베스트 프랙티스, 실전 기법, 실용적인 팁을 안내합니다.

관련 가이드