协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
create-skill【开发与工程】Create a new SKILL.md file following the Agent Skills open standard (agentskills.io). Covers frontmatter schema, section structure, writing effective procedures with Expected/On failure pairs, validation checklists, cross-referencing, and registry integration. Use when codifying a repeatable procedure for agents, adding a new capability to the skills…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
書 SKILL.md 文件,使行者系統可消耗以執特定之法。
skills/_registry.yml 之 48 域之一:
r-packages、jigsawr、containerization、reporting、compliance、mcp-integration、
web-dev、git、general、citations、data-serialization、review、bushcraft、
esoteric、design、defensive、project-management、devops、observability、mlops、
workflow-visualization、swarm、morphic、alchemy、tcg、intellectual-property、
gardening、shiny、animal-training、mycology、prospecting、crafting、
library-science、travel、relocation、a2a-protocol、geometry、number-theory、
stochastic-processes、theoretical-science、diffusion、hildegard、maintenance、
blender、visualization、3d-printing、lapidary、versioning每技於己之目錄:
mkdir -p skills/<skill-name>/
名慣:
submit-to-cran,非 SubmitToCRANcreate-、setup-、write-、deploy-、configure-create-r-dockerfile,非 create-dockerfile得: 目錄 skills/<skill-name>/ 存,名循小寫中劃線始以動詞。
敗則: 若名不始以動詞,更名目錄。察名衝:ls skills/ | grep <keyword> 確無現技名重。
---
name: skill-name-here
description: >
One to three sentences plus key activation triggers. Must be clear
enough for an agent to decide whether to activate this skill from
the description alone. Max 1024 characters. Start with a verb.
license: MIT
allowed-tools: Read Write Edit Bash Grep Glob # optional, experimental
metadata:
author: Philipp Thoss
version: "1.0"
domain: general
complexity: intermediate
language: R | TypeScript | Python | Docker | Rust | multi
tags: comma, separated, lowercase, tags
---
必要域:name、description
可選域:license、allowed-tools(實驗)、metadata、compatibility
元資料慣:
complexity:basic(< 5 步,無邊況)、intermediate(5-10 步,有判)、advanced(10+ 步,甚域知)language:主語;跨語技用 multitags:3-6 標便發現;含域名得: YAML 前言無訛而解,name 合目錄名,description 一千二十四字內有清觸。
敗則: 驗 YAML,察 --- 界相配、版字串正引(如 "1.0" 非 1.0)、述用正 > 多行折疊。
# Skill Title (Imperative Verb Form)
One paragraph: what this skill accomplishes and the value it provides.
題合 name 而為人讀式。「Submit to CRAN」非「submit-to-cran」。
得: 頂 # 標題以祈使式,續以簡段述技所畢。
敗則: 若題為名詞而非動詞式,重書。「Package Submission」成「Submit to CRAN」。
列 3-5 觸件——行者當激此技之具體景:
## When to Use
- Starting a new R package from scratch
- Converting loose R scripts into a package
- Setting up a package skeleton for collaborative development
由行者視書。此為行者察以決激之件。
注:最要觸件宜亦現於前言之
description,蓋其於發現階段在全體前讀。## When to Use節供增細與脈。
得: 3-5 點述行者當激此技之具體可察件。
敗則: 若觸感泛(「需作事時」),由行者視重書:何可察之狀或用者之請當觸激?
分必要與可選。明類與默:
## Inputs
- **Required**: Package name (lowercase, no special characters except `.`)
- **Required**: One-line description of the package purpose
- **Optional**: License type (default: MIT)
- **Optional**: Whether to initialize renv (default: yes)
得: 入節清分必要與可選參,各有類示與默(若用)。
敗則: 若參類疑,括中加具體例:「Package name (lowercase, no special characters except .)」。
此技之核。每步循此式:
### Step N: Action Title
Context sentence explaining what this step accomplishes.
\```language
concrete_code("that the agent can execute")
\```
**Expected:** What success looks like. Be specific — file created, output matches pattern, command exits 0.
**On failure:** Recovery steps. Don't just say "fix it" — provide the most common failure cause and its resolution.
有效書步:
書以便譯:
得: 法節含 5-12 號步,各有具體碼、**Expected:** 果、**On failure:** 復。
敗則: 若步缺碼,加實命或配。若 Expected/On failure 缺,即書之——可敗之步皆需二者。
法畢後行者運之清單:
## Validation
- [ ] Criterion 1 (testable, binary pass/fail)
- [ ] Criterion 2
- [ ] No errors or warnings in output
每項須客觀可驗。「Code is clean」劣。「devtools::check() returns 0 errors」佳。
得: markdown 勾表(- [ ])有 3-8 二元過敗之準,行者可程或察而驗。
敗則: 以可度者代主觀者。「Well-documented」成「All exported functions have @param, @return, and @examples roxygen tags」。
3-6 陷含因與避:
## Common Pitfalls
- **Pitfall name**: What goes wrong and how to avoid it. Be specific about the symptom and the fix.
汲實踐。最佳陷為費時顯之非顯者。
得: 3-6 陷,各有粗名、述所敗、與如何避。
敗則: 若陷泛(「慎 X」),具體之:名症、因、修。汲開發或試時實敗景。
交叉參常於此前、後、同用之 2-5 技:
## Related Skills
- `prerequisite-skill` - must be done before this skill
- `follow-up-skill` - commonly done after this skill
- `alternative-skill` - alternative approach to the same goal
用技 name 域(中劃線),非題。
得: 2-5 相關技,列以中劃線 ID 與簡述(前提、後續、替)。
敗則: 驗各所引技存:ls skills/<skill-name>/SKILL.md。刪更名或已去之引。
編 skills/_registry.yml 於宜域下加新技:
- id: skill-name-here
path: skill-name-here/SKILL.md
complexity: intermediate
language: multi
description: One-line description matching the frontmatter
更頂之 total_skills 計。
得: 新項現於 skills/_registry.yml 宜域下,total_skills 合盤之實技目數。
敗則: 以 find skills -name SKILL.md | wc -l 計盤技與籍 total_skills 較。驗 id 精合目錄名。
若技基於既法、論文、軟件包、標準,加引用子文件於 references/:
mkdir -p skills/<skill-name>/references/
建二文件:
references/CITATIONS.bib — 機讀 BibTeX(真源)references/CITATIONS.md — 人讀渲之參,便 GitHub 覽% references/CITATIONS.bib
@article{author2024title,
author = {Author, First and Other, Second},
title = {Paper Title},
journal = {Journal Name},
year = {2024},
doi = {10.xxxx/xxxxx}
}
<!-- references/CITATIONS.md -->
# Citations
References underpinning the **skill-name** skill.
1. Author, F., & Other, S. (2024). *Paper Title*. Journal Name. https://doi.org/10.xxxx/xxxxx
引用為可選——溯源要時加之(學術法、發標、規框)。
譯中處 references/:references/EXAMPLES.md 之散述宜譯。references/CITATIONS.bib 留英(BibTeX 為中立語)。若唯碼,譯可鏈至英 references/。
得: 二文件存,.bib 解為合法 BibTeX。
敗則: 以 bibtool -d references/CITATIONS.bib 或線上驗器驗 BibTeX 語法。
提交前運本地驗:
# Check line count (must be ≤500)
lines=$(wc -l < skills/<skill-name>/SKILL.md)
[ "$lines" -le 500 ] && echo "OK ($lines lines)" || echo "FAIL: $lines lines > 500"
# Check required frontmatter fields
head -20 skills/<skill-name>/SKILL.md | grep -q '^name:' && echo "name: OK"
head -20 skills/<skill-name>/SKILL.md | grep -q '^description:' && echo "description: OK"
得: 行數 ≤500,諸必要域存。
敗則: 若逾 500 行,施漸次披露——抽大碼塊(>15 行)至 references/EXAMPLES.md:
mkdir -p skills/<skill-name>/references/
移擴碼例、全配文件、多變例至 references/EXAMPLES.md。SKILL.md 加參:See [EXAMPLES.md](references/EXAMPLES.md) for complete configuration examples. 主 SKILL.md 留簡片(3-10 行)。.github/workflows/validate-skills.yml 之 CI 於諸 PR 執此限。
建符號鏈以令 Claude Code 發現技為 /slash-command:
# Project-level (available in this project)
ln -s ../../skills/<skill-name> .claude/skills/<skill-name>
# Global (available in all projects)
ln -s /mnt/d/dev/p/agent-almanac/skills/<skill-name> ~/.claude/skills/<skill-name>
得: ls -la .claude/skills/<skill-name>/SKILL.md 解至技文件。
敗則: 驗相對路正。由 .claude/skills/,../../skills/<skill-name> 當達技目錄。以 readlink -f 調鏈解。Claude Code 期平構於 .claude/skills/<name>/SKILL.md。
諸技必需。 此步施於人作者與循此法之 AI 行者。勿略——缺譯積為陳積。
提交新技後即為四支持語搭譯文件:
for locale in de zh-CN ja es; do
npm run translate:scaffold -- skills <skill-name> "$locale"
done
而譯各文件之散文(代碼塊與 ID 留英)。終重生狀態文件:
npm run translation:status
得: 四文件建於 i18n/{de,zh-CN,ja,es}/skills/<skill-name>/SKILL.md,source_commit 皆合當前 HEAD。npm run validate:translations 顯新技無陳警。
敗則: 若搭架敗,於搭前驗技存於 skills/_registry.yml——本讀籍。若 translation:status 顯新文件陳,察 source_commit 合英源最後改之提交雜湊。
skills/<skill-name>/SKILL.mdname 合目錄名description 一千二十四字內_registry.yml 有正路total_skills 已更references/EXAMPLES.md)references/CITATIONS.bib + CITATIONS.md.claude/skills/<skill-name> 存符號鏈指技目錄~/.claude/skills/<skill-name> 存全域符號鏈(若全可用)references/EXAMPLES.md)。git mv(WSL):於 /mnt/ 路,目錄之 git mv 或生壞權(d?????????)。宜 mkdir -p + 複文件 + git rm 舊路。參境指南之疑難節。結構良好之技循此質單:
此庫之尺參:
write-vignette、configure-git-repository)write-testthat-tests、manage-renv-dependencies)submit-to-cran、setup-gxp-r-project)references/EXAMPLES.md 為大配evolve-skill — 演化與精此法建之技create-agent — 建行者定之平行法create-team — 建團組之平行法write-claude-md — CLAUDE.md 可參項專流之技configure-git-repository — 技宜納版控commit-changes — 提交新技及其符號鏈security-audit-codebase — 察技是否含入之密或證