/cs:write-a-skill <name-or-description> — Author a new agent skill with Matt Pocock's 3-phase workflow (Gather → Draft → Review). Runs 6 review-checklist items
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-659b387cc966 ,按照其中的说明把「cs-write-a-skill」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Command: /cs:write-a-skill <name-or-description>
The skill-author persona pressure-tests any new-skill commit. Six forcing questions before any merge, matching Matt Pocock's review checklist.
The description is the only thing your agent sees when deciding to load this skill.
skill_description_validator.pyOver 100 lines = over-conditioning + reference soup downstream.
references/<topic>.md; replace inline content with 1-2 line pointersDates rot. "As of October 2024" becomes wrong by next year.
Synonym drift confuses agents + readers.
Without examples, agents construct from scratch and hallucinate.
Deep nesting = agent gives up resolving the chain.
references/<topic>.md layoutreferences/category/subtopic.mdskill_structure_validator.py# 1. Description gate
python ../skills/write-a-skill/scripts/skill_description_validator.py path/to/SKILL.md
# 2. Structure gate
python ../skills/write-a-skill/scripts/skill_structure_validator.py path/to/skill-folder/
# 3. Combined review (Matt's 6-item checklist)
python ../skills/write-a-skill/scripts/skill_review_checklist_runner.py path/to/skill-folder/
# 4. Karpathy code-quality gate (if scripts/ exist)
python ../../karpathy-coder/skills/karpathy-coder/scripts/complexity_checker.py path/to/skill-folder/scripts/
python ../../karpathy-coder/skills/karpathy-coder/scripts/assumption_linter.py path/to/skill-folder/scripts/
# 5. Attribution check (if derived)
grep -r "derived_from\|original_author" path/to/skill-folder/
# Skill Author Review: <skill-name>
**Date:** YYYY-MM-DD
## The Decision Being Made
[gather | draft | review | validate | derive | audit]
## Description Validation
- Length: N chars (limit 1024): pass/fail
- Third person: pass/fail
- "Use when" trigger: pass/fail
- Action verb in first sentence: pass/fail
## Structure Validation
- SKILL.md present + ≤100 lines: pass/fail (N lines)
- References one level deep: pass/fail
- No circular refs: pass/fail
- scripts/ folder: present/absent (optional)
## Review Checklist (Matt's 6 items)
- [x|/] 1. Description includes triggers
- [x|/] 2. SKILL.md under 100 lines
- [x|/] 3. No time-sensitive info
- [x|/] 4. Consistent terminology
- [x|/] 5. Concrete examples included
- [x|/] 6. References one level deep
## Karpathy Code Gate (if applicable)
- complexity_checker: PASS / WARN (with findings)
- assumption_linter: CLEAN / NOISY
## Attribution (if derived skill)
- Upstream link: present/missing
- License compatibility: yes/no
- Author credit: present/missing
## Verdict
🟢 SHIP | 🟡 WARN-WITH-JUSTIFICATION | 🔴 BLOCK
## Top 3 Actions (if not green)
[3 concrete fixes with file:line references]
/cs:karpathy-check — for code-quality concerns in scripts//cs:tdd — for testing discipline (different from skill quality gates)/cs:decide — to log the verdictcs-skill-authorwrite-a-skill../../karpathy-coder/, ../../autoresearch-agent/Version: 1.0.0 Derived: Matt Pocock's write-a-skill (MIT) + this repo's wrapper