seedbank
Maintain a small, generated AGENTS.md of repository facts (build commands, conventions, invariants, past mistakes) that were rediscovered often or were costly to get wrong. Use at task start to check cached facts, and at task end to log and promote what you had to dig for.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 5
- Forks
- 1
01 前言 Front Matter
- name
- seedbank
- description
- Maintain a small, generated AGENTS.md of repository facts (build commands, conventions, invariants, past mistakes) that were rediscovered often or were costly to get wrong. Use at task start to check cached facts, and at task end to log and promote what you had to dig for.
- allowed-tools
- Bash(${CLAUDE_SKILL_DIR}/bin/seedbank *), Bash("${CLAUDE_SKILL_DIR}/bin/seedbank" *)
02 资源文件 19
- 其他.gitignore40 B
- 参考文档agents/gardener.md1.6 KB
- 其他bin/seedbank1.2 KB
- 参考文档references/guide.md3.3 KB
- 参考文档references/schema.md5.4 KB
- 参考文档references/scoring.md2.1 KB
- 脚本scripts/cg_fingerprint.py3.1 KB
- 脚本scripts/cg_mode.py5.4 KB
- 脚本scripts/sb_compile.py5.6 KB
- 脚本scripts/sb_conflicts.py2.3 KB
- 脚本scripts/sb_hook.py13.5 KB
- 脚本scripts/sb_scoring.py3.4 KB
- 脚本scripts/sb_store.py9.3 KB
- 脚本scripts/seedbank.py43.0 KB
- 参考文档tests/fixtures/mini_repo/CMakeLists.txt94 B
- 参考文档tests/fixtures/mini_repo/README.md126 B
- 其他tests/fixtures/mini_repo/src/generated/bindings.cpp92 B
- 脚本tests/fixtures/mini_repo/tools/codegen.py57 B
- 脚本tests/smoke_test.sh29.7 KB
03 SKILL.md 正文
seedbank
!"${CLAUDE_SKILL_DIR}/bin/seedbank" mode --banner
Agents that do not expand the line above (e.g. Codex): run
<this-skill-dir>/bin/seedbank mode --banner first and follow it.
Offline fact store + profiler. It counts rediscoveries and mistake cost;
you supply the fact text and decide what to promote. Nothing is promoted
just because it was seen once; promotion is always a deliberate promote call. Formulas: references/scoring.md.
seedbank is not on PATH: always run it as <this-skill-dir>/bin/seedbank. State
lives in <git repo root>/.seedbank/.
- Start: read
AGENTS.md. If it answers your question, skip re-discovery. - While working, log only "how does this repo work" discoveries, not
every file you touch (with the plugin hook, Read/Grep/Glob and
read-only Bash such as cat/sed/grep/rg/find are logged automatically):
bin/seedbank observe run --scope <topic> -- <command...> bin/seedbank observe mistake "<rule you broke>" --scope invariants [--source <file>] bin/seedbank observe fact "<invariant>" --scope invariants - End:
bin/seedbank candidates, then
A correctness/safety invariant is always worth promoting: usebin/seedbank promote <key> --representation "<compact text>" --tier hot [--critical] bin/seedbank promote <key> --tier warm --scope <topic> bin/seedbank compile--criticalso it's protected from budget-based eviction. Promote refuses a fact contradicting one in the same scope; re-run with--replace <id>or--force.compilerewrites only the region between<!-- seedbank:begin -->/<!-- seedbank:end -->and excludes stale facts (source changed since promotion) instead of serving them as still true;--criticalfacts stay, marked "(source changed — verify)". With the plugin, a Stop hook reminds you once per session when this session produced candidates; hand the curation to thegardeneragent to keep it out of your context, or do step 3 yourself. - Existing hand-written
AGENTS.md/CLAUDE.md:bin/seedbank import <path>. - Sharing facts:
bin/seedbank export --out f.json; the recipient runsbin/seedbank import f.json(refused unless the repo fingerprint matches).
Hook setup, tiers, what to commit: references/guide.md.
Full CLI: references/schema.md.
04 同仓库更多 Skills
file-organizer
Reorganize and rename files into tidy folder structures. Use when asked to sort, organize, or restructure a messy directory of files.
bloated-skill
Safely delete data files (CSV, temp, stale files) from a repository with mandatory user confirmation before every deletion. Use when asked to delete, remove, or clean up data files.
bloated-skill
This skill helps you with various tasks related to code and data. It is designed to assist you in many situations. Use it whenever you need help with things.
weeder
Measure and reduce a Skill's token footprint (always-loaded description + on-trigger SKILL.md body) without regressing routing accuracy or losing instructions. Use when a SKILL.md feels oversized, repeats rules, or has a vague description that might mis-route.
pruner
Pick the smallest set of file:line ranges relevant to a concrete task (bug, compiler error, failing test, change) in a large Python or C/C++ repository, instead of grep-exploring or reading whole files. Skip when the task or traceback already names the file.
mycelium
Decide whether to spawn subagents (one, or several in parallel) to search, investigate or edit, and brief them well; passes finding notes between agents so they don't redo the same exploration. Use before delegating to an agent and after an agent reports findings.