{"data":{"slug":"discovered-c566fe23545500d17a5101e4a44fb1c1f75a5c6934be7570","title":"Adopt","summary":"Bring a repo up to date with the dotfiles conventions, one pending version at a time.","url":"https:\/\/skillshunter.net\/skills\/discovered-c566fe23545500d17a5101e4a44fb1c1f75a5c6934be7570","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-c566fe23545500d17a5101e4a44fb1c1f75a5c6934be7570","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-c566fe23545500d17a5101e4a44fb1c1f75a5c6934be7570.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-c566fe23545500d17a5101e4a44fb1c1f75a5c6934be7570\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"The user must ensure that the repo is a valid Git repository and that all symlinks and Git settings resolve correctly before running `\/adopt`. The first deliverable is the updated `.claude\/conventions` file, which records the latest convention version applied.","instructions":"---\nname: adopt\ndescription: >-\n  Bring a repo up to date with the dotfiles conventions, one pending version at a time.\n  TRIGGER when: the user runs \/adopt; a session-start message says this repo is N versions behind or has\n  no convention record; or the user asks where it stands on the conventions.\n  DO NOT TRIGGER when: authoring a new convention version, or in a third-party clone.\nallowed-tools: Read, Write, Edit, Glob, Grep, AskUserQuestion, Skill, Bash(echo *), Bash(git rev-parse:*), Bash(git fetch:*), Bash(git log:*), Bash(git status:*), Bash(git check-ignore:*), Bash(git show:*), Bash(git ls-files:*), Bash(git diff:*), Bash(git -C ~\/.claude\/skills:*), Bash(python ~\/.claude\/conventions\/engine.py:*), Bash(python3 ~\/.claude\/skills\/shared\/commit.py:*), Bash(python ~\/.claude\/skills\/shared\/commit.py:*), Bash(python3 ~\/.claude\/skills\/shared\/gate_pushed_tree.py:*), Bash(python ~\/.claude\/skills\/shared\/gate_pushed_tree.py:*), Bash(python ~\/.claude\/conventions\/check.py:*), Bash(python ~\/.claude\/conventions\/versions\/:*), Bash(python ~\/.claude\/hooks\/check-install.py:*)\n---\n\n# Adopt\n\nA convention defined in the dotfiles repo is a claim about every repo on this machine, and changing one\nleaves the rest in the old shape. Every change an already-conforming repo has to *do something* about\nships as a numbered **version**: a folder of prose saying what changed, how to migrate an existing repo,\nwhen the migration is a no-op, and which continuing rule \u2014 if any \u2014 the version hands to the checker.\nThis skill walks the versions this repo has not adopted, one at a time, and moves its number up by one\nfor each.\n\nA version is a migration, so the walk performs it. Most versions carry prose rather than a script, and\nreading that prose and doing what it says *is* the adoption. Where a migration deletes or rewrites a\ncommitted file, the README says what would be lost \u2014 show that and get a yes before running it. In an\nunattended walk the review of the local commit is that yes, as `## Unattended` says.\n\nThe session-start notice that sends the user here is a `systemMessage` \u2014 it reaches their screen and\nnever the transcript \u2014 so the gap is re-derived below rather than taken from what they pasted.\n\n## Context\n- Repo root: !`git rev-parse --show-toplevel 2>\/dev\/null || echo \"(not a git repo)\"`\n- This repo, commits it is behind its push target: !`git fetch -q \"$(git for-each-ref --format='%(push:remotename)' \"$(git symbolic-ref -q HEAD)\")\" 2>\/dev\/null || echo \"(fetch failed \u2014 what follows compares against the last fetch that worked)\"; git -c push.default=current log --oneline HEAD..@{push} 2>\/dev\/null || echo \"(no push target on the remote)\"; echo \"(end of list)\"`\n- Dotfiles checkout, commits it is behind its upstream: !`git -C ~\/.claude\/skills fetch -q 2>\/dev\/null || echo \"(fetch failed \u2014 what follows compares against the last fetch that worked)\"; git -C ~\/.claude\/skills log --oneline HEAD..@{upstream} 2>\/dev\/null || echo \"(no upstream configured)\"; echo \"(end of list)\"`\n- Record file ignored by: !`git check-ignore -q \"$(git rev-parse --show-toplevel 2>\/dev\/null)\/.claude\/conventions\" && git check-ignore -v \"$(git rev-parse --show-toplevel 2>\/dev\/null)\/.claude\/conventions\" || echo \"(not ignored \u2014 the record will be tracked, unless Repo root above says this is not a repo at all)\"`\n- Install check: !`python ~\/.claude\/hooks\/check-install.py 2>&1 | grep FAIL || echo \"(every symlink and git setting resolves)\"`\n- Conventions status: !`python ~\/.claude\/conventions\/engine.py status \"$(git rev-parse --show-toplevel 2>\/dev\/null || pwd)\" 2>&1`\n\nThe dotfiles line reaches the checkout through `~\/.claude\/skills` because that link is live by\nconstruction \u2014 this file was loaded through it \u2014 and `~\/.claude\/conventions` is the same working tree\nseen through a second link.\n\nTwo of those lines have a trap in them, and both are why they are written the way they are. A\ncommit line appearing above `(end of list)` is the only thing that means behind \u2014 an empty `git\nlog` and a `fetch` that failed print the same nothing otherwise, so offline would read as up to\ndate. And the ignore line asks `check-ignore -q` for the yes-or-no, using `-v` only to explain it:\nthe `-v` form exits **0 on a negated pattern**, printing `!.claude\/conventions` as the matching\nrule for a file it is reporting as *not* ignored, so a record correctly re-included by the fix\nbelow would otherwise read as still hidden and every later run would loop on a `.gitignore` that is\nalready right.\n\nThe repo line compares against the branch this clone pushes to, because the other machine's pushes\nare what the gate exists to catch, and in a triangular fork `@{upstream}` is the third-party project\ninstead. The named-remote fetch and `-c push.default=current` both come from\n`~\/.claude\/learnings\/git-fork-push-target.md`, which holds the measurement and the reasons; change the\nrecipe there and here together.\n\n## What the number means\n\nThe record is `<repo>\/.claude\/conventions` \u2014 committed, one integer on its own content line. `vN` says\nevery migration up to and including N was performed here, in ascending order, by a session that read it.\nFour things it deliberately does not say:\n\n- **That the repo still conforms.** A property that has to hold *continuously* is a rule, re-measured by\n  `~\/.claude\/conventions\/check.py` \u2014 which the repo's commit gate runs, and which this walk runs too. The\n  number is history; the checker is the present tense.\n- **That every version applied.** A version whose `## When it does not apply` is satisfied here ran to a\n  no-op, and the number advances just the same. There is no `n\/a`: an exception to a convention belongs\n  *in* the convention, written into that section and re-evaluated in every repo, not remembered per repo\n  as a line nobody re-reads.\n- **That every version was performed, in a fork.** A fork \u2014 `origin` is the user's, the `upstream` remote\n  is someone else's \u2014 may decline a version whose README frontmatter says `optional: forks`. The record\n  then carries `decline <n> <reason>` below the number, and the checker runs none of that version's\n  rules. The convention still decides where the choice exists; the fork only answers it. Everywhere else,\n  and for every version not marked that way, there is no decline.\n- **That the rules it brought in are the only ones running here.** The number decides the versioned rules\n  and nothing else: one introduced by v7 starts running when the number reaches 7. Beside them,\n  `~\/.claude\/conventions\/universal\/` holds the rules no version gates \u2014 they run in every repo whatever\n  its number, an exempt one included, and they fail the commit gate exactly as a versioned rule does.\n  That directory is the smaller half on purpose, because a rule added to it reaches every repo the moment\n  it is committed, with no adoption in between; a property a repo can adopt belongs in a version instead.\n\nA repo that must never adopt carries `exempt <reason>` on that content line instead of a number. A clone\nof someone else's project \u2014 `origin` owned by another account \u2014 adopts nothing and records nothing, with\nno file needed; a fork is not a clone and adopts like any other repo of the user's.\n\nWhat can never carry a version at all \u2014 agent behaviour, code content, an unbounded property, a global\nsetting \u2014 is enumerated in `~\/.claude\/conventions\/not-versioned.md`. Read it when the user asks what\n\"current\" covers, so the answer is \"every versionable convention has been adopted\" rather than\n\"everything in CLAUDE.md is satisfied here\".\n\n## Unattended\n\nAn unattended walk, started as `\/adopt unattended`, is for a walk nobody is watching. Without that\nargument the walk runs as everything below describes. With it, the walk differs in these places, and\nthis list is the one statement of them that `authoring.md` and `docs\/convention-versions.md` point to:\n\n- **Each pending version's `asks:` line**, printed under it in **Conventions status**, says whether its\n  migration needs the user. `never` walks on. `always` stops before the version, unless its\n  `## When it does not apply` holds or the repo is already in its shape (sub-steps 2 and 3), which need\n  nobody. `when <case>` stops only where that case holds in this repo: settle it with the evidence the\n  README asks for, exactly as an attended walk would before putting the question.\n- **A stop is a report, not a question.** Record nothing for the stopping version and leave its tree\n  untouched: undo any part of its migration already made, because a half-applied migration commits as\n  if done. Commit the versions adopted before it through \u00a74, then end with the README's question\n  verbatim, the stock-take sub-step 4 would have shown beside it, and the case from `asks:` that held.\n  The walk ends there; the user's answer comes through a later attended `\/adopt`.\n- **A rewrite or deletion of a committed file needs no yes.** The commit is local and reviewed before\n  any push, so the review is the yes. List each such change in the report with what the README says it\n  loses. A file git does not track, such as v17's per-machine wrapper, is not covered: git cannot give\n  it back, so deleting one stops the walk as a question does, whatever `asks:` says. The exception is\n  a file the README names as holding nothing the migration did not already carry elsewhere, such as\n  v17's standard pass-through wrapper: delete it and name it in the report. Editing an\n  untracked file in place, such as v15 and v17 trimming the per-machine `config\/deploy.env`, is not a\n  stop, but git cannot undo it either: list each such edit in the report with the lines it removed,\n  so a later stop can restore them by hand.\n- **A fork's decline offer** (sub-step 2) is a question, so a version marked optional for forks whose\n  migration applies in a fork stops the walk.\n- **Anything the walk would need the screen for**, such as a relaunch Taking Over the Machine covers,\n  is a stop where an attended walk would ask, unless the README says what an unattended walk does\n  instead, as v17 step 6 does by filing a memo for the relaunch.\n- **An `asks:` line that proves wrong in this repo** (the README asks something its `when` case does\n  not name) is a stop where an attended walk would simply ask. Say so in the report, because the line\n  is fixed in the dotfiles repo.\n\nA \u00a73 failure stops an unattended walk just as it stops an attended one.\n\n## 0. Gates, before anything is read or run\n\n- **Not a git repo** \u2014 if **Repo root** says so, stop. A record written here would be a file nothing\n  tracks, in a directory no clone ever sees, and the engine would report it as written. Three real\n  project directories on this machine have no `.git` at all, which is why the session-start notice says\n  so rather than staying silent \u2014 and that notice is the most likely reason someone typed `\/adopt` here.\n  Offer `git init` as its own decision, not as part of this walk.\n- **This repo behind its push target** \u2014 if **This repo, commits it is behind its push target** shows any\n  commit line above `(end of list)`, propose the sync and stop. A migration that deletes a file the other\n  machine just appended to merges cleanly and loses the append silently; that near-loss is written up in\n  `~\/.claude\/learnings\/git-stash-pull-safety.md`, and the tree is dirty by premise here, so follow that\n  file rather than reaching for `git pull --rebase`.\n- **A repo cloned on two machines gets one walk, not two.** These repos are worked from both machines, so\n  a repo behind on conventions is behind in both clones, and the session-start notice fires in both. Two\n  walks from the same base migrate the same files twice and write two records claiming the same number \u2014\n  the conflict \u00a74 ends with. The machine the user typed `\/adopt` in walks; the other clone takes the\n  result through `\/pull`, which is work for the session that owns it and never for this one. Before\n  walking, find out whether that clone already is: `\/repo-status` reports both clones' convention\n  records. It answers a different question from the behind-its-push-target gate, which is about commits and\n  has already run by here. A peer clone already ahead on the record, or holding an uncommitted\n  adoption, means stopping here and pulling instead. A peer that cannot be reached is not evidence of a\n  second walk \u2014 say it went unmeasured, and walk.\n- **The dotfiles checkout behind its upstream** \u2014 if **Dotfiles checkout, commits it is behind its\n  upstream** shows any commit line above `(end of list)`, stop and propose pulling it. A walk run from a\n  stale checkout records this repo as current against a `latest` that has already moved.\n- **The record must be trackable** \u2014 if **Record file ignored by** names a file, line and pattern, the\n  record would be untracked and therefore worthless. Fix the repo's `.gitignore` first: a wholesale\n  `.claude\/` exclusion becomes `.claude\/*` plus explicit `!` re-includes, because git cannot re-include\n  a path underneath an excluded directory. Show the edit and apply it on a yes.\n- **A dirty working tree is not a gate.** Do not refuse on uncommitted changes and do not ask the user\n  to stash them. Several repos hold a convention's work already done and never committed; the new number\n  and that pending change commit together at \u00a74, which is what makes them the best-verified case rather\n  than a refusal.\n- **Install check** is report-only and never blocks. Mention any `FAIL` line it produced: a\n  `~\/.claude\/hooks` that is a copy rather than a link freezes the session-start notice forever, so this\n  repo would go quiet about being behind without anything appearing to break.\n\n## 1. Read the gap\n\nTake the pending versions from **Conventions status** in Context \u2014 number, slug, title, and the rules\neach introduces.\n\n- An `exempt` line stops the run here. Report the reason it records. The exemption is from the versions\n  and from nothing else: the universal rules are gated by no number, so they run in that repo too and its\n  commit gate can still fail on one \u2014 say that, rather than leaving `exempt` to read as nothing being\n  checked here.\n- **A `declined vN` line** names a version this fork chose not to take on. It is not pending, and the\n  walk never re-offers it. If the user asks to take one on now, read its README as \u00a72 does, perform the\n  migration, and run `engine.py adopt \"<repo root>\" <N>` with that number: the engine accepts a declined\n  version below the record, drops its decline line, and leaves the number where it is.\n- **Status saying this record declines versions but no `upstream` remote is configured** means a clone of a\n  fork that never had the remote added \u2014 git does not commit remotes. The declines still hold. Before\n  walking, tell the user, and ask for the upstream URL to add with `git remote add upstream <url>`, or a\n  version this fork would have declined gets migrated here instead.\n- Nothing pending: say the repo is current and name the version it is current *through*. Then run\n  `python ~\/.claude\/conventions\/check.py \"<repo root>\"` anyway and report what it says, because current\n  is a statement about migrations and the checker is the one that can still find something broken,\n  including a universal rule that being current never covered.\n- **A record naming a version above this checkout's newest one** \u2014 status prints this as its own line \u2014\n  means the dotfiles repo here is behind the machine that wrote the record. Stop and propose pulling it.\n  This is a different condition from \u00a70's dotfiles gate, which compares the checkout with its own\n  upstream and stays clean whenever the other machine pushed the repo but not the dotfiles.\n\n## 2. Walk the pending versions, one at a time, ascending\n\nOne version per pass, in number order. Never batch them, never reorder them, and never start the next\nbefore the current one's number is recorded \u2014 a later migration may depend on what an earlier one wrote.\nThe engine enforces the order anyway: `adopt` and `decline` take only the current number plus one, the one\nexception being a declined version taken on later, which \u00a71 describes.\n\n1. **Read the version's README in full first** \u2014 `~\/.claude\/conventions\/versions\/<NNN-slug>\/README.md`,\n   every heading, before touching anything. Its four sections are what the rest of this pass runs on:\n   what changed and why, how to migrate an existing repo, when the migration is a no-op here, and the\n   continuing rule the version hands to the checker.\n\n2. **Settle `## When it does not apply`, with the positive evidence it asks for.** Name the command you\n   ran or the file you read and show what came back; \"nothing found\" and \"nothing looked at\" must not\n   read the same (`~\/.claude\/memory\/feedback_not_run_is_not_pass.md`). If none of its conditions holds,\n   the migration applies here \u2014 continue. If one does, change nothing and go to sub-step 5.\n\n   **In a fork, ask about a version marked `[optional for forks]` before migrating it.** Status prints\n   `a fork of <owner>'s project` when this repo is one, and tags each such version in the pending list.\n   Only where the migration applies \u2014 a no-op needs no decision \u2014 ask the user whether this fork takes\n   it on or declines it, saying what the migration would change here and that declining keeps the fork\n   closer to its upstream. Ask in plain text, for the same reason sub-step 4 gives. A decline takes the\n   user's reason in their words and goes straight to sub-step 5's decline form; nothing is migrated.\n\n3. **Check whether the repo is already in the target shape.** Work done by hand, or on the other machine\n   days ago, is common, and the answer is the same as a no-op: change nothing and go to sub-step 5. Say\n   which of the two it was, since \"already in this shape\" and \"does not apply here\" are different facts\n   that leave the same empty diff.\n\n4. **Do the migration.**\n   - **Where the README carries a question, take stock of what the repo holds that bears on it, then\n     put it to the user verbatim with those findings beside it** \u2014 or, in an unattended walk, end the\n     walk with both as `## Unattended` describes. Look wherever the README says to\n     look, and show what you found and where. The question itself stays unedited and unsummarised,\n     with nothing added but the repo's name if that is not already obvious. Ask it in plain text below\n     the findings, not through AskUserQuestion, whose box covers the text above it\n     (`~\/.claude\/memory\/feedback_link_inside_the_question.md`). The findings are evidence, never an\n     answer: a question exists precisely because no file can settle it, so a plausible answer read off\n     the surrounding repo is the guess `~\/.claude\/memory\/feedback_surface_the_gap_dont_fill_it.md`\n     forbids. The stock-take lets the user answer from what the repo actually has rather than from\n     memory. If their answer amounts to \"not here\", treat it as sub-step 2's no-op and say so \u2014 their\n     reason is stored nowhere, so if it would hold for every repo it belongs in that version's\n     `## When it does not apply` or in a later version, which is work in the dotfiles repo and its own\n     session's task. Offer a memo for it. If their answer is that it applies and they do not want it\n     done, that is a \u00a73 stop \u2014 unless this is a fork and the version is marked optional for forks, where\n     it is the decline sub-step 2 describes.\n   - **Where the folder carries an `apply.py`, run it** rather than doing the work by hand \u2014\n     `python ~\/.claude\/conventions\/versions\/<NNN-slug>\/apply.py \"<repo root>\"`. It exists because the\n     work is mechanical and tedious, it prints what it did, and it exits non-zero on any line it cannot\n     classify, which is a \u00a73 stop with the tree left as it found it.\n   - **Otherwise perform it yourself**, following the README's named files and transformation. Where it\n     deletes or rewrites a committed file, show what would be lost and how to compare against the diff,\n     and get a yes before doing it. Ordinary additions need no ceremony \u2014 do them and show the result.\n   - Then run the README's own after-the-migration check and report what it returned.\n\n5. **Advance the number by one:** `python ~\/.claude\/conventions\/engine.py adopt \"<repo root>\" <N>`.\n   It refuses to lower the number, to skip one, or to go above the newest version in this checkout, and\n   a refusal is a \u00a73 stop rather than something to work around. A version the fork declined advances\n   with `python ~\/.claude\/conventions\/engine.py decline \"<repo root>\" <N> <reason>` instead, which also\n   refuses outside a fork and for a version not marked optional.\n\n6. **Run the checker:** `python ~\/.claude\/conventions\/check.py \"<repo root>\"`. Exit 0 is done; exit 1 \u2014\n   a violation or a rule that could not be measured \u2014 is a \u00a73 stop, except for the one kind of finding\n   the **Findings this walk did not cause** heading below carves out. It runs *after* the number moves\n   because it runs the versioned rules introduced at or below the adopted version, so the rule this\n   version brings in is unmeasurable until the record names it. That order is safe in the direction that\n   matters: the number only ever claims the migration ran, and this repo's commit gate re-runs the same\n   checker, so a half-done migration cannot reach a commit. Report which rules ran \u2014 the header counts\n   them as `X rule(s) taken on, Y universal` and every finding is labelled `<name> (v7)` or\n   `<name> (universal)`, so a version whose `## Continuing rule` says `None` adds nothing to the first\n   count, and that count is how you can tell.\n\n### Findings this walk did not cause\n\nOnly a finding numbered **above** the version this walk started from says the migration just performed is\nincomplete. The other two kinds were already failing in this repo before `\/adopt` was typed, and they are\nnot read the same way.\n\nA finding labelled `(universal)` is a \u00a73 stop. Those rules are gated by no version, so adopting nothing\nwould have left it failing just the same, and the walk cannot clear it: the remedy is a command that can\nreach outside the repo's tree \u2014 this machine's project-memory cache link is the case that exists today \u2014\nso running it is the user's decision rather than a step of the walk. Report the `fix:` line printed under\nthe finding verbatim.\n\n**A finding numbered at or below the walk's starting number is not a stop.** That rule was entitled to run\nbefore the walk began, so the finding predates it, and the thing that clears it may be a version still\npending in this very walk: v13 is written to delete the project `\/tmp\/` line that v2's\n`gitignore-scope-global` reports, so a repo at v11 carrying that line meets the finding the moment v12\nrecords its number \u2014 before the remedy is reachable. Stopping there cannot be right, because the stop\nforbids the one version that fixes it. Carry on to the next version, say in the report that you did and\nwhich finding you carried, and read the checker again after each one. It becomes the stop only if it still\nstands once the last pending version is done; name it then with whatever printed it, and say the walk\ncompleted with the gate still refusing for a reason older than the walk. Nothing is skipped by this \u2014 the\nversion just recorded was performed in full \u2014 so \u00a73's reason for refusing a skip does not reach it.\n\n## 3. The first failure stops the run\n\nA migration you cannot complete, an `apply.py` exiting non-zero, an `adopt` or `decline` refusal, a\n`check.py` exit 1 that **Findings this walk did not cause** does not carve out, or a user who wants the\nconvention's work not done where no decline is on offer \u2014 any of these ends the walk. Leave the tree exactly\nas it is, name the failing items whatever printed them reported, and say which versions were adopted\nbefore it. Do not skip the failing version and carry on with the next: later migrations may depend on it,\nand the engine will refuse the skip regardless. The repo stays behind at that number, and the\nsession-start notice keeps saying so, which is the pressure working rather than a gap being filed away.\n\n## 4. Commit the walk\n\nOne commit for the whole walk, subject:\n\n```\nchore(conventions): adopt through vN\n```\n\nN is the new number \u2014 re-run `engine.py status` to read it rather than counting the versions you walked.\nThe record and whatever the migrations changed in the working tree commit together: run the repo's gate\nfirst (`python3 ~\/.claude\/skills\/shared\/gate_pushed_tree.py --caller adopt --record`), write the subject to a\nfile under `tmp\/`, and commit every path `git status --short` lists that the walk changed with\n`python3 ~\/.claude\/skills\/shared\/commit.py -F <file> <paths\u2026>`, which checks the message, scans what the\ncommit adds and signs it. Nothing here commits any other way.\n\nLeave the push to the user's next `\/yolo` or `\/wrap-up`; its push step asks the other machine's session to\n`\/pull`, which is how that clone takes this walk. What that session must not do is run `\/adopt`: its own\nsession-start notice was derived before the pull arrived and will still report a convention gap, which is\nthe one thing that turns this into the record conflict this section ends with.\n\nTwo things to say once the walk is over. If this repo's `.claude\/commit-checks.sh` does not run\n`check.py`, the rules this walk just took on were measured by the walk and by nothing since, and the\nuniversal rules with them \u2014 say so rather than leaving \"adopted\" to read as \"checked from here on\". And\nif the record file conflicts on a later pull, both machines walked from the same base: keep the higher\nnumber, whose migrations are all present in the merged tree. Decline lines need one more look, since\none machine may have declined a version the other performed: keep a decline only where the merged tree\ndoes not carry that version's migration, and ask the user where you cannot tell.\n\n## There is no audit step\n\nRe-checking is only meaningful for a property that has to keep holding, and such a property must not be\nsampled by a command someone has to remember to run. That half is the commit gate's: `check.py` measures\nevery rule the repo's number entitles it to and every universal rule beside them, on every commit, and\nreports a rule it could not measure as unmeasured rather than as a pass. Nothing re-derives a migration\nafterwards, because a migration is not a standing claim \u2014 it ran, and the number says how far.\n\n## Out of scope\n\n- **Never touch another repository.** The session running in a repo is the only one that may commit\n  there. A repo found behind is reported, never adopted from here.\n- Do NOT walk the same versions in another machine's clone of this repo, and do NOT drive that clone from\n  here. It takes this walk's commit through `\/pull`.\n- Do not author a new convention version. That happens in the dotfiles repo, in the session that is\n  changing the convention itself, not in the one adopting it here.\n- Do not edit a shipped version's README or its `apply.py` to make this repo pass. A version folder is\n  shared by repos that run it at different times, so editing one gives two repos different behaviour\n  under one number; a convention that is wrong is corrected by a later version. A fix to how a *rule*\n  detects something is different \u2014 that belongs in the rule file, under `rules\/` or `universal\/`, where\n  it applies everywhere at once.\n- Do not hand-write, or lower, the record file. The engine's `adopt` and `decline` are the only writers,\n  and one version at a time is what keeps the number from claiming a migration nobody read.\n- Do not create the artifact a version's `## When it does not apply` says is absent \u2014 an empty\n  `.claude\/memos\/`, a guessed `LICENSE`, an invented `engines.node`. The no-op is the version working\n  correctly.\n","use_cases":["Updating a repository to align with current dotfiles conventions","Ensuring a repo meets convention requirements before committing changes","Resolving convention gaps in a forked project"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/AnotherSava\/claude-code-common\/blob\/1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93\/claude\/skills\/adopt\/SKILL.md","source_commit":"1a7f9f9cce53f6946ae1e3a9cc0733f2524a4b93","license":null,"version":null,"listing_approved_at":"2026-12-01","created_at":"2026-11-30T08:07:38.000000Z","updated_at":"2026-12-01T12:48:20.000000Z","seo_title":"Adopt Repo Conventions","seo_description":"Bring a repository up to date with dotfiles conventions, one version at a time, ensuring compliance with the latest standards.","seo_keywords":["adopt convention","repo conventions","dotfiles update","convention migration","git convention check"]}}