Skills Creator
Ensures consistency, quality, compliance when creating skills for .config/opencode/skills/.
Purpose
Consistent skill creation following agentskills.io standards & Anthropic best practices.
Core Principles
- •Progressive Disclosure: Discovered by name/description, loaded when needed
- •Self-Contained: Independent, single responsibility
- •Practical: Concrete examples & actionable guidance
- •Maintainable: SKILL.md < 500 lines; use
doc/for details - •Standards-Compliant: Follow agentskills.io spec
Creation Process
Phase 1: Requirements
Clarify:
- •Purpose: What problem does this solve?
- •Scope: Single responsibility?
- •Uniqueness: Overlaps w/ existing skills?
- •Structure: Needs
bin/doc/share?
Phase 2: Structure
Pattern A: Minimal (Guidelines Only)
skill_name/ └── SKILL.md
Use when: Simple rules, standards, processes
Pattern B: With Doc
skill_name/
├── SKILL.md
└── doc/
├── examples.md # examples and filled examples
├── patterns.md # common patterns (renamed from pat.md)
└── template.md # templates and tpl references
Use when: Detailed examples or templates needed
Pattern C: With Scripts
skill_name/
├── SKILL.md
├── bin/
│ └── helper.py
├── doc/
│ └── usage.md
└── share/
└── templates/
Use when: Executable code or automation required
Phase 3: Content
Use template from doc/template.md.
SKILL.md Structure
Mandatory YAML Front Matter
--- name: skill_name # snake_case, max 64 chars description: Brief when-to-use # 1-2 lines ---
Recommended Sections
- •Purpose (必須): Problem this solves
- •Core Principles (推奨): 3-5 fundamental rules
- •Rules/Standards (必須): Specific, actionable guidelines
- •Examples (推奨): Concrete ✅/❌ patterns
- •Edge Cases (optional): Exceptions & special situations
- •References (optional): Official docs or related skills
Language
Write all new skills in English. Apply to SKILL.md, doc/, examples, inline text.
Reference Format
Append Last accessed: YYYY-MM-DD to each URL (not shared date line).
Naming
Directory Names
- •Format: lowercase, snake_case
- •Length: Max 64 chars
- •Chars: ASCII only, no spaces/special chars except underscores
✅ naming_conventions, api_design_patterns, error_handling_guide
❌ NamingConventions, naming-conventions, nc, 命名規則
File Names
- •Format: lowercase, snake_case
- •Length: Short & clear (ex, pat, tpl)
- •Exception:
SKILL.mdfixed by spec
✅ doc/examples.md, doc/template.md, doc/patterns.md
❌ doc/example-long.md, doc/template-basic.md, doc/Template.md
Optional Category Prefixes
For large skill sets:
coding_naming_conventions coding_error_handling writing_style_guide finance_valuation_methods
Size & Content
SKILL.md Limits
- •Target: < 500 lines
- •Max: ~5000 tokens for main instructions
- •Strategy: Move detailed content to
doc/
When to Split
If SKILL.md > 500 lines:
BEFORE:
skill_name/
└── SKILL.md (800 lines)
AFTER:
skill_name/
├── SKILL.md (300 lines - core)
└── doc/
├── detailed_ex.md (300 lines)
└── adv_patterns.md (200 lines)
Reference: For detailed examples, see [doc/detailed_ex.md](doc/detailed_ex.md)
File References
Relative Paths
Always use skill-root relative:
✅ See [template](doc/template.md), Run: bin/validator.py
❌ See [template](/absolute/path/tpl.md), See [template](../other-skill/file.md)
Nesting Depth
Keep doc refs 1 level from SKILL.md:
✅ doc/examples.md, bin/helper.py
❌ doc/sub_dir/deep/file.md
Bin Directory
When including bin/:
- •Self-Contained: Each script works independently
- •Documented: Usage in SKILL.md or script docstring
- •Error Handling: Handle edge cases gracefully
- •Dependencies: Doc required libs/tools
Example:
## Usage Run: `python bin/validator.py --input data.csv` Dependencies: Python 3.8+, pandas
Quality Checklist
Structure
- • YAML front matter complete & valid
- •
namefollows snake_case (legacy kebab-case allowed) - •
descriptionclearly states when to use - • SKILL.md < 500 lines
Content
- • Purpose explains problem solved
- • Rules specific & actionable
- • Examples include ✅ good & ❌ bad
- • File references use relative paths
- • No redundancy w/ existing skills
Consistency
- • Follows AGENTS.md principles
- • Compatible w/ existing skills
- • Uses progressive disclosure
Usability
- • Understandable by first-time users
- • Practical examples included
- • Edge cases addressed
Self-Verification
After creation:
Q1: Single, clear responsibility? → YES/NO + reason Q2: Content specific enough? → YES/NO + areas to improve Q3: Conflicts w/ other skills/AGENTS.md? → YES/NO + resolve Q4: What if user misinterprets? → Sections needing clarification Q5: What if edge case X occurs? → Missing handling
Common Skill Types
Type 1: Standards & Conventions
Examples: naming_conventions, code_structure, documentation_standards
- •Clear rules w/ examples
- •✅/❌ pattern demos
- •Minimal
bin/needs
Type 2: Workflow & Processes
Examples: code_review_process, deployment_checklist, git_workflow
- •Step-by-step procedures
- •Decision trees
- •Checklists
Type 3: Templates & Generators
Examples: readme_template, api_documentation, test_template
- •Reusable templates in
doc/ - •Customization points marked
- •May include generation
bin/utilities
Type 4: Analysis & Decision Frameworks
Examples: architecture_decision, performance_optimization, risk_assessment
- •Evaluation criteria
- •Scenario comparison tables
- •Weighted decision matrices
See COMMON.md.
Related: thinking_framework, documentation, security_experts
See doc/examples.md, doc/patterns.md, doc/template.md for details.
Refs: agentskills.io, repo (2026-01-26)