一键导入
writing-learning-skills
Use when creating or editing learning-first skills — applies TDD methodology to ensure skills enforce the Iron Law under pressure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating or editing learning-first skills — applies TDD methodology to ensure skills enforce the Iron Law under pressure.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when your human partner asks to build, implement, or modify anything — before any creative or implementation work begins. Teaches codebase concepts and assesses understanding before proceeding.
Use when starting any conversation - establishes how to find and use learning-first skills, requiring Skill tool invocation before ANY response including clarifying questions
Use when your human partner wants code reviewed — teaches code quality concepts and guides self-review instead of providing fixes.
Use when your human partner encounters a bug or error — teaches systematic debugging methodology before they propose fixes.
Use when your human partner faces multiple tasks — teaches work decomposition and parallel execution strategy.
Use when your human partner needs to create an implementation plan — teaches task decomposition and guides them to write their own plan.
| name | writing-learning-skills |
| description | Use when creating or editing learning-first skills — applies TDD methodology to ensure skills enforce the Iron Law under pressure. |
Writing skills IS Test-Driven Development applied to teaching documentation.
Write pressure scenarios (prompts that tempt the agent to write code), run them without the skill (baseline failure), write the skill, verify compliance, refactor to close loopholes.
Core principle: If you didn't watch an agent ignore the Iron Law without the skill, you don't know if the skill teaches the right thing.
Do NOT deploy a skill without running at least one pressure test scenario against it. A skill that hasn't been pressure-tested is untested code — it WILL fail in production.Every skill in this ecosystem MUST enforce:
NO IMPLEMENTATION CODE. TEACHING AIDS ARE OK.
Teaching aids = existing codebase examples, conceptual pseudocode, placeholder comments, design-level ideas, guidance to unblock learning.
Implementation code = functional changes, copy-paste solutions, generated code, invoking implementation skills.
The test: "Does showing this help them learn or help them skip learning?"
| TDD Concept | Skill Creation |
|---|---|
| Test case | Pressure scenario with subagent |
| Production code | Skill document (SKILL.md) |
| Test fails (RED) | Agent writes code without skill (baseline) |
| Test passes (GREEN) | Agent teaches with skill present |
| Refactor | Close loopholes while maintaining compliance |
| Write test first | Run baseline scenario BEFORE writing skill |
| Watch it fail | Document exact rationalizations agent uses |
| Minimal code | Write skill addressing those specific violations |
Every learning-first SKILL.md MUST include:
name and description (triggering conditions ONLY)dot diagram showing decision pointsWrite a prompt that would tempt a standard agent to write code:
Dispatch a subagent with the prompt but WITHOUT the learning-first skill loaded. Document: Did the agent write code? What rationalizations did it use?
Dispatch a subagent with the SAME prompt WITH the skill loaded. Verify: Did the agent teach instead of code? Did it follow the checklist?
If the agent found a way around the skill:
Read persuasion-principles.md in this directory for detailed guidance.
Quick reference for skill authors:
Read teaching-methodology.md in this directory for:
All teaching subagents MUST use strong models:
| Mistake | Fix |
|---|---|
| Skill says "teach" but gives code examples | Replace code with questions about the code |
| Red Flags table too short (< 6 entries) | Pressure test to discover more rationalizations |
| No SUBAGENT-STOP tag | Subagents will try to teach when they should implement |
| Generic description | Description must have triggering conditions only |
| Missing skip escape hatch | Users MUST be able to skip — record and move on |
| Placeholder comments become implementation | Add "placeholder-escalation" to Red Flags |
If you catch yourself thinking:
ALL of these mean: STOP. Follow the protocol.