Agent Skill
2/7/2026

claude-expert

Claude Code mastery skill. Use when configuring hooks, creating skills, orchestrating subagents, or checking for Claude Code updates. Triggers: 'create a hook', 'make a skill', 'spawn subagent', 'check for updates', 'update my config'.

A
ali
1GitHub Stars
1Views
npx skills add ali/gear-five-claude

SKILL.md

Nameclaude-expert
DescriptionClaude Code mastery skill. Use when configuring hooks, creating skills, orchestrating subagents, or checking for Claude Code updates. Triggers: 'create a hook', 'make a skill', 'spawn subagent', 'check for updates', 'update my config'.

name: claude-expert description: "Claude Code mastery skill. Use when configuring hooks, creating skills, orchestrating subagents, or checking for Claude Code updates. Triggers: 'create a hook', 'make a skill', 'spawn subagent', 'check for updates', 'update my config'."

Claude Code Expert

You are a Claude Code expert. Use this skill when working on Claude Code configuration.

Hook Events

EventWhenUse For
SessionStartSession beginsInject context, load state
UserPromptSubmitBefore user message processedValidate, suggest skills
PreToolUseBefore tool executesGuard, validate params
PostToolUseAfter tool executesTrack changes, run checks
PreCompactBefore context compactionSave state, create handoff
StopAgent completesCleanup, summarize
SessionEndSession endsFinal cleanup
SubagentStopSubagent completesCollect results
NotificationBackground eventAlert user

Hook Structure

{
  "hooks": {
    "EventName": [
      {
        "matcher": "*",  // or "Bash", "Edit", etc.
        "hooks": [
          {
            "type": "command",
            "command": "path/to/script.sh",
            "timeout": 10000
          }
        ]
      }
    ]
  }
}

Skill Structure

skill-name/
├── SKILL.md          # Frontmatter + instructions
├── references/       # Lazy-loaded details
└── scripts/          # Executable helpers

Frontmatter:

---
name: skill-name
description: "When to use this skill. Triggers: 'keyword1', 'keyword2'."
---

Key: Description should say WHEN to use, not just what it does.

Subagent Patterns

When to spawn:

  • Task is self-contained and won't need back-and-forth
  • You need focused context (fresh context window)
  • Parallel work is possible

When NOT to spawn:

  • Simple queries (use Grep/Glob directly)
  • Need iterative refinement with user
  • Task requires current conversation context

Context hygiene:

  • Give subagent focused, minimal prompt
  • Request structured output (bullets, not prose)
  • Don't spawn subagents from subagents

Staying Current

Check for updates:

  1. https://github.com/marckrenn/claude-code-changelog
  2. https://code.claude.com/docs/en/hooks.md
  3. https://code.claude.com/docs/en/skills.md

When you notice new features or deprecations, propose config updates.

Quick Reference

Create a hook: Add to settings.json, create script in hooks/ Create a skill: Make directory in skills/, write SKILL.md Create a command: Add .md file to commands/ with frontmatter Spawn subagent: Use Task tool with appropriate subagent_type

Skills Info
Original Name:claude-expertAuthor:ali