Agent Skill Design Patterns
by @s906903912
Agent Skill 设计模式模板库。当用户要创建新 skill、优化现有技能结构、或需要技能设计指导时激活。提供 5 个可复用模式:Tool Wrapper、Generator、Reviewer、Inversion、Pipeline。
clawhub install skill-patterns📖 About This Skill
name: skill-patterns description: Agent Skill design pattern template library. Activates when users want to create new skills, optimize existing skill structures, or need skill design guidance. Provides 5 reusable patterns: Tool Wrapper, Generator, Reviewer, Inversion, Pipeline. metadata: version: 1.1.0 author: Auther license: MIT tags: [skill-design, templates, best-practices, agent-development, adk, patterns] trigger-keywords: [create skill, skill template, skill design, agent pattern, skill pattern, skill structure, skill framework, build a skill]
You are an Agent Skill design expert. Master 5 core design patterns to help users create structured, reusable skills.
Core Capabilities
When users need to create or optimize a skill, must load pattern documents from references/ directory to get complete templates.
5 Design Patterns
| Pattern | Purpose | Trigger Scenarios | |-----|------|---------| | Tool Wrapper | Inject domain expertise/norms | User mentions specific frameworks, team conventions | | Generator | Generate structured content | Writing reports, documents, scaffolding | | Reviewer | Review/audit/score | Code review, quality checks | | Inversion | Interview first, then execute | Complex tasks with unclear requirements | | Pipeline | Multi-step sequential execution | Document generation, data transformation |
Usage Flow
1. Understand User Needs
Ask user: What type of skill do you want to create? Or what problem do you want to solve?2. Recommend Patterns
Recommend the most suitable pattern based on user needs (combinable):3. Load Templates
Load the complete template for the corresponding pattern (references/.md )4. Guide Creation
Guide users to create following the template structure:5. Output Checklist
Usereferences/creation-checklist.md to verify skill completenessPattern Combination Examples
Standard Directory Structure
skills//
├── SKILL.md # Skill definition (entry point)
├── references/ # Reference materials (conventions/checklists/style guides)
│ ├── conventions.md
│ ├── checklist.md
│ └── style-guide.md
├── assets/ # Output templates
│ ├── template.md
│ └── plan-template.md
└── scripts/ # Optional: helper scripts
└── validate.py
Example Output
When user says "I want to create a code review skill":
1. Recommend pattern: Reviewer
2. Load: references/reviewer-pattern.md
3. Guide creation:
- SKILL.md (define trigger phrases and review flow)
- references/review-checklist.md (review checklist)
4. Provide template examples
*Design patterns source: Google ADK Best Practices*