スキル一覧に戻る
ali

claude-expert

by ali

0🍴 0📅 2026年1月12日
GitHubで見るManusで実行

SKILL.md


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

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です