본문으로 건너뛰기
cccskills
무료GitHub에 공개

claude-code-mastery

Design better agents, skills and hooks for Claude Code, checking the current spec instead of guessing at fields.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Claude Code Mastery - Building Better AI Systems

Use the cc-docs skill to read the official Claude Code documentation before you design anything against it — the spec moves, and this file is a map, not a substitute for it.

Use this knowledge to continuously improve how you work.

Core Capabilities

Subagents

Location: ~/.claude/agents/ (user) or .claude/agents/ (project)

Key fields:

---
name: agent-name
description: When Claude should delegate here
tools: Read, Grep, Glob, Bash, Edit, Write
model: sonnet | opus | haiku | inherit
permissionMode: default | acceptEdits | bypassPermissions
skills: skill-1, skill-2
hooks:
  PreToolUse: [...]
  PostToolUse: [...]
---

System prompt content here...

Use subagents when:

  • Task needs isolated context
  • Different tools/permissions needed
  • Specialized behavior required

Skills

Location: ~/.claude/skills/ (user) or .claude/skills/ (project)

Structure:

skill-name/
├── SKILL.md          # Required - main instructions
├── reference.md      # Optional - detailed docs
└── scripts/          # Optional - utilities

Key fields:

---
name: skill-name
description: When to apply this skill (triggers auto-loading)
allowed-tools: Read, Grep, Glob  # Optional tool restriction
context: fork  # Optional - run in subagent
---

Instructions here...

Use skills when:

  • Knowledge should auto-apply based on task
  • Pattern repeats across projects
  • Want to inject expertise without delegation

Hooks

Location: .claude/settings.json or subagent frontmatter

Events:

  • PreToolUse - Before tool executes (can block)
  • PostToolUse - After tool executes
  • SubagentStart - When subagent begins
  • SubagentStop - When subagent completes
  • SessionStart - When session begins

Example:

{
  "hooks": {
    "PostToolUse": [{
      "matcher": "Edit|Write",
      "hooks": [{
        "type": "command",
        "command": "./scripts/auto-lint.sh"
      }]
    }]
  }
}

Use hooks when:

  • Deterministic action needed (not AI judgment)
  • Automation on every occurrence
  • Validation before allowing operations

MCP Servers

Configuration: ~/.claude.json or .mcp.json

Access external tools:

  • megg (memory)
  • shadcn (UI components)
  • perplexity (research)
  • Custom servers

Improvement Patterns

Pattern: Repeated Context Loading

Problem: Same context loaded every session Solution: Create a skill that auto-applies

---
name: project-context
description: Apply when working on [project]. Auto-loads conventions.
---

Pattern: Manual Validation

Problem: Manually checking things before commit Solution: Create PreToolUse hook

{
  "hooks": {
    "PreToolUse": [{
      "matcher": "Bash(git commit:*)",
      "hooks": [{"type": "command", "command": "./scripts/pre-commit-check.sh"}]
    }]
  }
}

Pattern: Complex Delegation

Problem: Unclear when to use which agent Solution: Improve agent descriptions, add proactive triggers

description: Use proactively when [specific trigger]. Handles [specific task].

Pattern: Lost Knowledge

Problem: Decisions forgotten between sessions Solution: megg_remember after every significant decision

Documentation Reference

Fetch these with the cc-docs skill rather than trusting a remembered field list:

TopicURL
Subagentshttps://code.claude.com/docs/en/sub-agents
Skillshttps://code.claude.com/docs/en/skills
Hookshttps://code.claude.com/docs/en/hooks-guide
MCPhttps://code.claude.com/docs/en/mcp
Headless modehttps://code.claude.com/docs/en/headless
Settingshttps://code.claude.com/docs/en/settings
CLI referencehttps://code.claude.com/docs/en/cli-reference

Self-Improvement Checklist

When improving workflows:

  1. Identify the friction point
  2. Check docs for existing solution
  3. Choose right tool (skill vs hook vs subagent)
  4. Implement minimal version
  5. Test it works
  6. Document in megg
  7. Consider if others need it (project vs user scope)

Anti-Patterns

  • Over-engineering: Don't create skills for one-time tasks
  • Premature automation: Prove manual workflow first
  • Isolated improvements: Log all changes in megg
  • Ignoring scope: User skills for personal, project for team

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Branch and commit conventions that keep an agent's work reviewable — one branch per task, main stays clean, nothing force-pushed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ToruAI/toru-claude-agents152026년 7월 26일 업데이트

cc-docs

무료

Look up how Claude Code itself works — hooks, skills, subagents, MCP, plugins, settings — from the official docs, so answers come from the current spec instead of memory.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ToruAI/toru-claude-agents152026년 7월 26일 업데이트

dev-cycle

무료

Run a feature end to end — scout the code, plan it, build it, and keep a session file so a closed terminal doesn't lose the thread.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ToruAI/toru-claude-agents152026년 7월 26일 업데이트

Close out a session — summarise what changed, capture what was learned, and prepare the commit.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ToruAI/toru-claude-agents152026년 7월 26일 업데이트

Hand over a spec and walk away — plans, builds, tests and audits on its own, stopping only at a real blocker.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ToruAI/toru-claude-agents152026년 7월 26일 업데이트

dev-qa

무료

Run the project's own tests, linter, type checker and build, and report what actually failed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ToruAI/toru-claude-agents152026년 7월 26일 업데이트

ToruAI의 스킬 모두 보기

이 스킬의 문제 신고