โ† Back to list
ShunsukeHayashi

agent-skill-use

by ShunsukeHayashi

๐Ÿค– First open-source, economically-governed, beginner-friendly autonomous development framework built on Issue-Driven Development | ่ถ…ๅˆๅฟƒ่€…ใงใ‚‚ไฝฟใˆใ‚‹่‡ชๅพ‹ๅž‹้–‹็™บใƒ•ใƒฌใƒผใƒ ใƒฏใƒผใ‚ฏ

โญ 13๐Ÿด 8๐Ÿ“… Jan 24, 2026

SKILL.md


name: agent-skill-use description: Create and manage AI agent skills following best practices. Use when creating new skills, optimizing context, designing multi-agent systems, or implementing progressive disclosure patterns. allowed-tools: Bash, Read, Write, Grep, Glob, Edit

Agent Skill Use

Version: 1.0.0 Purpose: ใƒ™ใ‚นใƒˆใƒ—ใƒฉใ‚ฏใƒ†ใ‚ฃใ‚นใซๅŸบใฅใใ‚จใƒผใ‚ธใ‚งใƒณใƒˆใ‚นใ‚ญใƒซใฎไฝœๆˆใƒป็ฎก็†


Triggers

TriggerExamples
Skill Creation"create agent skill", "ใ‚นใ‚ญใƒซไฝœๆˆ", "new skill"
Context Optimization"optimize context", "ใ‚ณใƒณใƒ†ใ‚ญใ‚นใƒˆๆœ€้ฉๅŒ–"
Multi-Agent Design"design multi-agent", "ใƒžใƒซใƒใ‚จใƒผใ‚ธใ‚งใƒณใƒˆ่จญ่จˆ"
Best Practices"agent best practices", "ใƒ™ใ‚นใƒˆใƒ—ใƒฉใ‚ฏใƒ†ใ‚ฃใ‚น"

Reference Document

.claude/docs/AGENT_BEST_PRACTICES.md

ใ“ใฎใ‚นใ‚ญใƒซใฏไธŠ่จ˜ใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใฎใƒ‘ใ‚ฟใƒผใƒณใ‚’ๅฎŸ่ฃ…ใ—ใพใ™ใ€‚


Core Concepts

1. ไธ‰ๅฑคใ‚ขใƒผใ‚ญใƒ†ใ‚ฏใƒใƒฃ

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              โ”‚      MCP        โ”‚     Skills      โ”‚   Subagents     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Primary Role โ”‚ External        โ”‚ Task            โ”‚ Context         โ”‚
โ”‚              โ”‚ Connection      โ”‚ Specialization  โ”‚ Isolation       โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Context      โ”‚ High (all tools โ”‚ Low (metadata   โ”‚ Separate        โ”‚
โ”‚ Impact       โ”‚ loaded)         โ”‚ first)          โ”‚ window          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Best For     โ”‚ API calls,      โ”‚ Workflows,      โ”‚ Parallel tasks, โ”‚
โ”‚              โ”‚ data access     โ”‚ procedures      โ”‚ isolation       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

2. Progressive Disclosure

Layer 1: Index Only (~500 tokens)     โ† Always loaded
    โ†“
Layer 2: Skill Metadata (~1,000)      โ† On demand
    โ†“
Layer 3: Full Content (~5,000)        โ† When activated

Workflow: Skill Creation

Phase 1: ่ฆไปถๅฎš็พฉ

Step 1.1: ใ‚นใ‚ญใƒซใฎ็›ฎ็š„ใ‚’ๆ˜Ž็ขบๅŒ–

่ณชๅ•ใƒชใ‚นใƒˆ:
1. ใ“ใฎใ‚นใ‚ญใƒซใฏไฝ•ใ‚’้”ๆˆใ—ใพใ™ใ‹๏ผŸ
2. ใฉใฎใ‚ˆใ†ใชใƒˆใƒชใ‚ฌใƒผใง่ตทๅ‹•ใ—ใพใ™ใ‹๏ผŸ
3. ๅฟ…่ฆใชๅ…ฅๅŠ›ใฏไฝ•ใงใ™ใ‹๏ผŸ
4. ๆœŸๅพ…ใ™ใ‚‹ๅ‡บๅŠ›ใฏไฝ•ใงใ™ใ‹๏ผŸ
5. ใฉใฎใƒ„ใƒผใƒซใŒๅฟ…่ฆใงใ™ใ‹๏ผŸ

Step 1.2: ใ‚ซใƒ†ใ‚ดใƒชใฎ้ธๆŠž

CategoryUse Case
Task Automation็นฐใ‚Š่ฟ”ใ—ใ‚ฟใ‚นใ‚ฏใฎ่‡ชๅ‹•ๅŒ–
Code Qualityใƒฌใƒ“ใƒฅใƒผใƒปใƒ†ใ‚นใƒˆใƒปใƒชใƒ•ใ‚กใ‚ฏใ‚ฟ
DevOpsใƒ‡ใƒ—ใƒญใ‚คใƒป็›ฃ่ฆ–ใƒปใ‚คใƒณใƒ•ใƒฉ
Contentใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใƒปใ‚ณใƒณใƒ†ใƒณใƒ„็”Ÿๆˆ
Integrationๅค–้ƒจใ‚ตใƒผใƒ“ใ‚น้€ฃๆบ

Phase 2: ๆง‹้€ ่จญ่จˆ

Step 2.1: ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชไฝœๆˆ

mkdir -p .claude/skills/[skill-name]/resources
mkdir -p .claude/skills/[skill-name]/scripts

Step 2.2: ๅฟ…้ ˆใƒ•ใ‚กใ‚คใƒซๆง‹ๆˆ

.claude/skills/[skill-name]/
โ”œโ”€โ”€ SKILL.md              # Required: ใƒกใ‚คใƒณๅฎš็พฉ
โ”œโ”€โ”€ resources/            # Optional: ๅ‚็…งใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆ
โ”‚   โ”œโ”€โ”€ templates.md      # ใƒ†ใƒณใƒ—ใƒฌใƒผใƒˆ้›†
โ”‚   โ””โ”€โ”€ examples.md       # ไฝฟ็”จไพ‹
โ””โ”€โ”€ scripts/              # Optional: ๅฎŸ่กŒใ‚นใ‚ฏใƒชใƒ—ใƒˆ
    โ””โ”€โ”€ helper.sh         # ใƒ˜ใƒซใƒ‘ใƒผใ‚นใ‚ฏใƒชใƒ—ใƒˆ

Phase 3: SKILL.mdไฝœๆˆ

Step 3.1: Frontmatter

---
name: "kebab-case-name"           # Required
description: "[Action] [Object]. Use when [trigger]."  # Required
allowed-tools: Bash, Read, Write  # Required
version: "1.0.0"                  # Optional
triggers:                         # Optional (for documentation)
  - "/command"
  - "natural language trigger"
dependencies:                     # Optional
  - "other-skill"
mcp_tools:                        # Optional (wrapped MCP tools)
  - "github.issues"
---

Step 3.2: ๆง‹้€ ใƒ†ใƒณใƒ—ใƒฌใƒผใƒˆ

# [Skill Title]

**Version**: X.Y.Z
**Purpose**: [One-line purpose]

---

## Triggers

| Trigger | Examples |
|---------|----------|
| [Category] | "[EN]", "[JP]" |

---

## Workflow

### Phase 1: [Title]

#### Step 1.1: [Substep]
[Instructions]

---

## Best Practices

โœ… GOOD: [Pattern]
โŒ BAD: [Anti-pattern]

---

## Checklist

- [ ] [Item 1]
- [ ] [Item 2]

Phase 4: MCP Tool Wrapping

Step 4.1: ใƒ„ใƒผใƒซใ‚’ใ‚นใ‚ญใƒซๅ†…ใซใƒฉใƒƒใƒ—

<!-- SKILL.mdๅ†… -->

## Integrated Tools

This skill wraps the following MCP tools:

| Tool | Purpose |
|------|---------|
| `github.issues.create` | Issueไฝœๆˆ |
| `github.prs.review` | PRใƒฌใƒ“ใƒฅใƒผ |

### Tool Usage

Tool definitions are loaded only when this skill is activated,
following progressive disclosure pattern.

Step 4.2: Tool Index (Full Definitionใงใฏใชใ)

<!-- resources/tool-index.md -->

# Tool Index

## Available Tools
- `tool.name` - Brief description
- `tool.name2` - Brief description

Full definitions loaded on demand.

Phase 5: Subagent็ตฑๅˆ๏ผˆๅฟ…่ฆใชๅ ดๅˆ๏ผ‰

Step 5.1: Subagentไฝฟ็”จๅˆคๆ–ญ

Task received
    โ”‚
    โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Parallel tasks  โ”‚โ”€โ”€Yesโ”€โ”€โ–บ Use Subagent
โ”‚ (>3 independent)โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚ No
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Security        โ”‚โ”€โ”€Yesโ”€โ”€โ–บ Use Subagent
โ”‚ isolation neededโ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚ No
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Long-running    โ”‚โ”€โ”€Yesโ”€โ”€โ–บ Use Subagent
โ”‚ background task โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚ No
         โ–ผ
Use Skills instead (default)

Step 5.2: Subagent Spawnๅฎš็พฉ

# agents/[agent-name]/AGENT.md frontmatter
---
name: "parallel-executor"
type: "subagent"
spawn_conditions:
  - "independent_tasks > 3"
  - "explicit_parallel_request"
context_inheritance: "minimal"
---

Workflow: Context Optimization

Step 1: ็พ็Šถๅˆ†ๆž

# ใ‚นใ‚ญใƒซๆ•ฐใจใ‚ตใ‚คใ‚บใ‚’็ขบ่ช
find .claude/skills -name "SKILL.md" -exec wc -l {} \;

# MCPใƒ„ใƒผใƒซๆ•ฐใ‚’็ขบ่ช
grep -r "mcp_tools" .claude/skills/

Step 2: Indexไฝœๆˆ

<!-- .claude/overview.md -->
---
version: "1.0"
last_updated: "YYYY-MM-DD"
---

# Project Agent Configuration

## Available Skills

| Skill | Description | Triggers |
|-------|-------------|----------|
| skill-1 | Brief desc | /cmd, "phrase" |
| skill-2 | Brief desc | /cmd, "phrase" |

## Loading Rules

1. Always load: This overview only
2. On skill trigger: Load SKILL.md metadata
3. On execution: Load full skill content

Step 3: Tokenๅ‰Šๆธ›ใฎ็ขบ่ช

MetricTarget
Base context<15,000 tokens
Skill load time<500ms
Token reduction>30%

Workflow: Multi-Agent Design

Team Structure

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Coordinator โ”‚
โ”‚   (Lead)    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             โ”‚               โ”‚
โ–ผ             โ–ผ               โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Planning โ”‚ โ”‚ Executionโ”‚ โ”‚  Review  โ”‚
โ”‚  Team    โ”‚ โ”‚   Team   โ”‚ โ”‚   Team   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

A2A Message Format

{
  "message_id": "uuid-v4",
  "from_agent": "coordinator",
  "to_agent": "execution-team",
  "intent": "execute_task",
  "payload": {
    "task_id": "task-123",
    "description": "Task description",
    "priority": "high"
  }
}

Naming Rules

Required

RuleExample
Kebab-casemy-skill
Lowercasecode-reviewer
Descriptivetest-generator

Forbidden

WordReason
claudeTrademark
anthropicCompany name
mcpProtocol name

Validation Checklist

Structure

  • Directory at .claude/skills/[name]/
  • SKILL.md has valid frontmatter
  • Name is kebab-case, no forbidden words

Content

  • Description has action + trigger
  • Triggers cover EN and JP
  • Steps are clear and actionable
  • Best practices documented

Integration

  • MCP tools wrapped (not loaded directly)
  • Subagent criteria defined (if needed)
  • Index updated in overview.md

Quick Reference

Create New Skill

# 1. Create directory
mkdir -p .claude/skills/my-skill/resources

# 2. Create SKILL.md
cat > .claude/skills/my-skill/SKILL.md << 'EOF'
---
name: my-skill
description: Does X. Use when Y.
allowed-tools: Bash, Read, Write
---

# My Skill

**Version**: 1.0.0
**Purpose**: [Purpose]

## Workflow

### Step 1: [Title]
[Instructions]
EOF

# 3. Update overview
echo "| my-skill | Does X | /my, \"do x\" |" >> .claude/overview.md

Validate Skill

# Check frontmatter
head -n 6 .claude/skills/my-skill/SKILL.md

# Test trigger (in Claude)
# "do x" โ†’ Skill should activate

  • .claude/docs/AGENT_BEST_PRACTICES.md - ๅฎŒๅ…จใชใƒ™ใ‚นใƒˆใƒ—ใƒฉใ‚ฏใƒ†ใ‚ฃใ‚น
  • .claude/skills/skill-creator/SKILL.md - ๅŸบๆœฌใ‚นใ‚ญใƒซไฝœๆˆ
  • .claude/skills/README.md - ใ‚นใ‚ญใƒซใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚น

Score

Total Score

75/100

Based on repository quality metrics

โœ“SKILL.md

SKILL.mdใƒ•ใ‚กใ‚คใƒซใŒๅซใพใ‚Œใฆใ„ใ‚‹

+20
โœ“LICENSE

ใƒฉใ‚คใ‚ปใƒณใ‚นใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+10
โœ“่ชฌๆ˜Žๆ–‡

100ๆ–‡ๅญ—ไปฅไธŠใฎ่ชฌๆ˜ŽใŒใ‚ใ‚‹

+10
โ—‹ไบบๆฐ—

GitHub Stars 100ไปฅไธŠ

0/15
โœ“ๆœ€่ฟ‘ใฎๆดปๅ‹•

1ใƒถๆœˆไปฅๅ†…ใซๆ›ดๆ–ฐ

+10
โ—‹ใƒ•ใ‚ฉใƒผใ‚ฏ

10ๅ›žไปฅไธŠใƒ•ใ‚ฉใƒผใ‚ฏใ•ใ‚Œใฆใ„ใ‚‹

0/5
โœ“Issue็ฎก็†

ใ‚ชใƒผใƒ—ใƒณIssueใŒ50ๆœชๆบ€

+5
โœ“่จ€่ชž

ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐ่จ€่ชžใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5
โœ“ใ‚ฟใ‚ฐ

1ใคไปฅไธŠใฎใ‚ฟใ‚ฐใŒ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹

+5

Reviews

๐Ÿ’ฌ

Reviews coming soon