Adopt the standard in an existing repo
Already have a repo — notes, docs, a half-structured knowledge base — and want it to become a proper command center? adopt sets up a safe path and hands your agent a playbook.
cd my-existing-reponpx polydomain adoptWhat the command does
Section titled “What the command does”It is deliberately minimal and touches nothing existing:
- Requires a git repo with a clean working tree (untracked files are fine; commit or stash tracked changes first).
- Creates the
adopt/standardbranch — so the whole operation is reversible. - Writes one file,
MIGRATION.md(the playbook), uncommitted.
It writes no other files and never edits or overwrites anything. To undo at any point: git checkout - then git branch -D adopt/standard.
What your agent does
Section titled “What your agent does”Commit MIGRATION.md, then tell your agent “adopt the polydomain standard.” It follows the playbook under plan → review → approve → execute:
- Inventory every file (tracked + untracked) as a lossless baseline.
- Propose a domain mapping for you to review and adjust.
- Restructure on the branch — fill the missing standard parts (informed by your repo, never generic), organize content into domains, and preserve each domain’s internals. It moves with
git mvand never deletes (deletion needs your explicit approval). - Verify lossless —
git diffshows exactly what changed, and an inventory accounts for every original file.
You review the diff and merge when satisfied. Nothing is lost: it all lives on the branch in git.