keel
Use a project's local keel code graph to assess change impact, find callers and reuse candidates, validate a plan, or check an edit. Applies only in a repository with a .keel/ directory; skip it for prose-only work.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- keel
- description
- Use a project's local keel code graph to assess change impact, find callers and reuse candidates, validate a plan, or check an edit. Applies only in a repository with a .keel/ directory; skip it for prose-only work.
03 SKILL.md 正文
keel — structural evidence, not a verdict
<!-- agent-sync:start keel -->
Vendor-neutral and machine-wide: canonical in ~/.agents/skills/, copied
into each repository by agent-sync, followed by any coding agent or a person.
Use keel as focused structural evidence beside tests, types, lint and reading
the code. It is advisory unless the project promotes a finding to a gate — a
pre-commit keel compile --changed does exactly that.
Local only
Prefer the project's keel MCP tools. For the CLI, keep every call offline:
KEEL_NO_NETWORK=1 KEEL_NO_TELEMETRY=true keel <command> --llm
Never keel login, keel push, Keel Cloud or its HTTP server.
.keel/graph.db is generated project state, not memory.
The smallest useful query
- Before changing a public signature, or removing or renaming a symbol:
keel checkorkeel discoveron it, and read its callers. - Before adding a symbol, when reuse or placement is unclear:
keel name "<intent>". - Unfamiliar code:
keel context,keel skeletonorkeel focus, rather than whole files. - A plan that names concrete symbols:
keel validate-plan— evidence, not authority. - After an edit:
keel compile <file>;keel review --base <ref>for a wider diff.
When the graph is wrong
An empty answer is not "no callers". keel walks the tree with the ignore rules
in .gitignore, .ignore and .keelignore — ignore_patterns in keel.json
is not read by keel map — and a bare directory name there matches at any
depth: build/ hid a whole src/…/build/ package from one project's graph for
eight days. If a symbol you can see in the tree is missing, keel search it;
if that finds nothing, read the ignore files before believing the graph. The
session-start map reads --cached and can be stale; keel map re-parses.
An arity error (E005) can resolve a call to a different function that shares
its name. Check keel search <name> before changing a call site to satisfy
one.
A warning is not a refactor request, and a clean keel result is not a substitute for the project's checks. <!-- agent-sync:end --> <!-- Everything above is canonical and kept byte-identical across repos by agent-sync; edit it in agent-sync/skills/, not here. Anything BELOW this note is this project's own — drift.sh counts it but never flags it. -->
04 同仓库更多 Skills
train
Launch a new max_llm training run on both GPUs (RTX 4090 + RTX 3090 Ti) through torchrun DDP, resolving the TOML config by name or path. Use only when the user explicitly asks to start, launch or begin a run — "resume", "continue" or "keep training" mean the existing run; takes an optional config name or path.
serve-live
Before a person looks at a running service, make sure what is running IS the code in the checkout. Restart the services your change actually touched — not every service — and verify each is serving the current commit rather than merely answering; check the remaining dependencies are up without bouncing them. Use whenever you finish work a person will view in a browser or client, whenever you say a page or service is ready, after any commit that changes served code, and when asked to 'restart', 'refresh the services', 'is it live', or 'serve the latest'. Also covers waiting for lazy warm-up before calling a service ready.
review
Review a local change, branch, pull request, or stack for correctness, regressions, security, tests, and unnecessary complexity. Use when asked to review rather than implement.
regression-coverage
Reshape a slow or brittle test suite around observable user journeys and published contracts. Use when pruning tests, repairing weak smoke coverage, or addressing repeated feature regressions.
pr-babysit
Monitor selected pull requests and report or safely act on review, CI, mergeability, and stack state.
keel
Use a project's local keel code graph to assess change impact, find callers and reuse candidates, validate a plan, or check an edit. Applies only in a repository with a .keel/ directory; skip it for prose-only work.