
agent-skill-use
by ShunsukeHayashi
๐ค First open-source, economically-governed, beginner-friendly autonomous development framework built on Issue-Driven Development | ่ถ ๅๅฟ่ ใงใไฝฟใใ่ชๅพๅ้็บใใฌใผใ ใฏใผใฏ
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
| Trigger | Examples |
|---|---|
| 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: ใซใใดใชใฎ้ธๆ
| Category | Use 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ๅๆธใฎ็ขบ่ช
| Metric | Target |
|---|---|
| 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
| Rule | Example |
|---|---|
| Kebab-case | my-skill |
| Lowercase | code-reviewer |
| Descriptive | test-generator |
Forbidden
| Word | Reason |
|---|---|
claude | Trademark |
anthropic | Company name |
mcp | Protocol 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
Related Documents
.claude/docs/AGENT_BEST_PRACTICES.md- ๅฎๅ จใชใในใใใฉใฏใใฃใน.claude/skills/skill-creator/SKILL.md- ๅบๆฌในใญใซไฝๆ.claude/skills/README.md- ในใญใซใคใณใใใฏใน
Score
Total Score
Based on repository quality metrics
SKILL.mdใใกใคใซใๅซใพใใฆใใ
ใฉใคใปใณในใ่จญๅฎใใใฆใใ
100ๆๅญไปฅไธใฎ่ชฌๆใใใ
GitHub Stars 100ไปฅไธ
1ใถๆไปฅๅ ใซๆดๆฐ
10ๅไปฅไธใใฉใผใฏใใใฆใใ
ใชใผใใณIssueใ50ๆชๆบ
ใใญใฐใฉใใณใฐ่จ่ชใ่จญๅฎใใใฆใใ
1ใคไปฅไธใฎใฟใฐใ่จญๅฎใใใฆใใ
Reviews
Reviews coming soon

