agentleFS
muratsilahtaroglumuratsilahtaroglu/claude-code-starter-kit/.claude/skills/keel-adopt/SKILL.md

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

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
  1. Distinctive:

    Use when the project already has code + history (rules.md §0, Mode B).

    line 8
  2. Very specific:

    Multi-user team?: Ask who the project OWNER (founder) is — default the adopter, never assumed — and write their git config user.name into …

    line 34

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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 .git

2. 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); seed LESSONS.md with known gotchas and TASKS.md ## Now with 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.md and .claude/settings.json (union the permissions; keep the project's).
  • Map the existing source layout to the nearest docs/layouts.md profile — 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.name into .claude/project-owner: governance files become owner-only via the owner-guard hook (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 == in requirements/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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.