writing-skills
Use when creating, updating, or improving agent skills.
它会碰到什么
逐条看命中(4 条严重或高危)
- 高
render-graphs.js:18exec-spawnconst { execSync } = require('child_process'); - 高
render-graphs.js:18exec-spawnconst { execSync } = require('child_process'); - 高
render-graphs.js:104exec-spawnreturn execSync('dot -Tsvg', { - 高
render-graphs.js:148exec-spawnexecSync('which dot', { encoding: 'utf-8' });
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Writing Skills (Excellence)
Dispatcher for skill creation excellence. Use the decision tree below to find the right template and standards.
⚡ Quick Decision Tree
What do you need to do?
- Create a NEW skill:
- Is it simple (single file, <200 lines)? → [Tier 1 Architecture](references/tier-1-simple/README.md)
- Is it complex (multi-concept, 200-1000 lines)? → [Tier 2 Architecture](references/tier-2-expanded/README.md)
- Is it a massive platform (10+ products, AWS, Convex)? → [Tier 3 Architecture](references/tier-3-platform/README.md)
- Improve an EXISTING skill:
- Fix "it's too long" -> [Modularize (Tier 3)](references/templates/tier-3-platform.md)
- Fix "AI ignores rules" -> [Anti-Rationalization](references/anti-rationalization/README.md)
- Fix "users can't find it" -> [CSO (Search Optimization)](references/cso/README.md)
- Verify Compliance:
- Check metadata/naming -> [Standards](references/standards/README.md)
- Add tests -> [Testing Guide](references/testing/README.md)
📚 Component Index
| Component | Purpose |
|-----------|---------|
| [CSO](references/cso/README.md) | "SEO for LLMs". How to write descriptions that trigger. |
| [Standards](references/standards/README.md) | File naming, YAML frontmatter, directory structure. |
| [Anti-Rationalization](references/anti-rationalization/README.md)| How to write rules that agents won't ignore. |
| [Testing](references/testing/README.md) | How to ensure your skill actually works. |
🛠️ Templates
- [Technique Skill](references/templates/technique.md) (How-to)
- [Reference Skill](references/templates/reference.md) (Docs)
- [Discipline Skill](references/templates/discipline.md) (Rules)
- [Pattern Skill](references/templates/pattern.md) (Design Patterns)
When to Use
- Creating a NEW skill from scratch
- Improving an EXISTING skill that agents ignore
- Debugging why a skill isn't being triggered
- Standardizing skills across a team
How It Works
- Identify goal → Use decision tree above
- Select template → From
references/templates/ - Apply CSO → Optimize description for discovery
- Add anti-rationalization → For discipline skills
- Test → RED-GREEN-REFACTOR cycle
Quick Example
---
name: my-technique
description: Use when [specific symptom occurs].
metadata:
category: technique
triggers: error-text, symptom, tool-name
---
# My Technique
## When to Use
- [Symptom A]
- [Error message]
Common Mistakes
| Mistake | Fix |
|---------|-----|
| Description summarizes workflow | Use "Use when..." triggers only |
| No metadata.triggers | Add 3+ keywords |
| Generic name ("helper") | Use gerund (creating-skills) |
| Long monolithic SKILL.md | Split into references/ |
See [gotchas.md](gotchas.md) for more.
✅ Pre-Deploy Checklist
Before deploying any skill:
- [ ]
namefield matches directory name exactly - [ ]
SKILL.mdfilename is ALL CAPS - [ ] Description starts with "Use when..."
- [ ]
metadata.triggershas 3+ keywords - [ ] Total lines < 500 (use
references/for more) - [ ] No
@force-loading in cross-references - [ ] Tested with real scenarios
🔗 Related Skills
- opencode-expert: For OpenCode environment configuration
- Use
/write-skillcommand for guided skill creation
Examples
Create a Tier 1 skill:
mkdir -p ~/.config/opencode/skills/my-technique
touch ~/.config/opencode/skills/my-technique/SKILL.md
Create a Tier 2 skill:
mkdir -p ~/.config/opencode/skills/my-skill/references/core
touch ~/.config/opencode/skills/my-skill/{SKILL.md,gotchas.md}
touch ~/.config/opencode/skills/my-skill/references/core/README.md
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
plugins/agentic-awesome-skills/skills/writing-skills/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 4 个不同仓库或目录里都有叫 writing-skills 的技能。它们内容并不相同,别混用:
- sickn33/agentic-awesome-skills — Use when creating, updating, or improving agent skills.
- sickn33/agentic-awesome-skills — Use when creating, updating, or improving agent skills.
- sickn33/agentic-awesome-skills — Use when creating, updating, or improving agent skills.