keel-adopt
Skill9 starsChanged 51 days agoMITView on GitHub
Adopt Keel's discipline into an EXISTING project (brownfield) — inventory, non-destructive merge, back-fill docs from real code, migrate security. Never overwrites.
- Deletes or force-pushes
In this repository17 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- keel-agent-team-createSkill
- keel-agent-team-startSkill
- keel-auditSkill
- keel-autopilotSkill
- keel-compactSkill
- keel-continueSkill
- keel-distillSkill
- keel-handoverSkill
- keel-phase-reviewSkill
- keel-pilotSkill
- keel-planSkill
- keel-researchSkill
- keel-statsSkill
- keel-teamSkill
- keel-tidySkill
- keel-updateSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use when the project already has code + history (rules.md §0, Mode B).
- Very specific: line 34
Multi-user team?: Ask who the project OWNER (founder) is — default the adopter, never assumed — and write their git config user.name into …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/keel-adopt — bring an existing project under Keel discipline (brownfield)
Use when the project already has code + history (rules.md §0, Mode B). Goal: overlay the template's discipline without clobbering anything. Non-destructive is the hard rule — propose the full plan, get approval, then act. Nothing is overwritten without a shown diff + an explicit yes.
1. Inventory & classify
Bucket every template path against the repo and report the three lists before touching anything:
- missing → safe to add as-is.
- present (project already has its own:
README.md,.gitignore,pyproject.toml,Makefile,CLAUDE.md,Dockerfile, ...) → merge, never replace. - conflicting (same path, different intent) → show a diff, ask.
Safe bulk-add of only-missing files (never cp -r over the top; never rm -rf .git):
rsync -av --ignore-existing <keel>/ ./ --exclude .git2. Back-fill the living docs from real code
docs/architecture.md← reverse-engineer the current module map (what each real dir/file does; status ✅).HANDOVER.md← write the FIRST session block: (a) what already exists / works today (not blank placeholders); seedLESSONS.mdwith known gotchas andTASKS.md ## Nowwith the actual next work.- Capture the adoption itself as an ADR in
docs/adr/(what was added / merged / deferred and why).
3. Reconcile discipline
- Merge, don't replace an existing
CLAUDE.mdand.claude/settings.json(union the permissions; keep the project's). - Map the existing source layout to the nearest
docs/layouts.mdprofile — don't create parallel folders beside it. - Prune template parts the project won't use, cascading reference cleanup (rules.md §0a).
- Multi-user team? Ask who the project OWNER (founder) is — default the adopter, never assumed —
and write their
git config user.nameinto.claude/project-owner: governance files become owner-only via theowner-guardhook (docs/steering.md "Multi-user"). Single-user: skip, no file.
4. Security migration (rules.md §7 — as a migration, not a rewrite)
- Freeze currently-installed versions into
==inrequirements/base.txt;pip-compile --generate-hashes. pip-audit; fix criticals first. Don't break a working build chasing the ideal — stage it over phases.
5. Approve → commit
Present the plan as three columns — add · merge · defer — with reasons. On approval, apply, then propose
an approved commit (rules.md §6). Update HANDOVER.md before ending the session (rules.md §1.4).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

