# Project Setup — ai.memention.net Version: 2026-12-05 · Changelog: `https://ai.memention.net/cards/setup-changelog.md` You are setting up a project with structured AI-agent documentation patterns. Follow the steps below in order. Reading this file again in a project that already ran it is the way to refresh that project — Step 1 detects it. ## Step 1 — Assess the project Before asking the user anything, orient yourself: 1. Read the project's existing `CLAUDE.md` (if any), `README.md`, `package.json` / `pubspec.yaml` / `Cargo.toml` / `go.mod` or equivalent. 2. Walk the top-level directory structure. 3. Note: language/framework, approximate size (files, modules), whether it already has a `cards/` directory or per-feature `CLAUDE.md` files. If it has any agent docs, run the Step 4 checker now too (it is read-only), and base your findings on its output. 4. Decide the mode: - **refresh** — `.claude/agent-setup.json` exists: this setup ran here before. Follow *Refresh mode* below instead of Steps 2–3. - **update** — there is no record, but the project already has agent structure: CLAUDE.md + cards, skills under `.claude/skills/`, a project plan, or similar. This structure can come from a run of this setup before records existed. - **setup** — little or no agentic structure exists. **If this is an update, be careful:** the existing setup encodes decisions and project knowledge. Do not re-apply patterns over it or replace files wholesale — extend and refresh instead. In update mode, install the `review-agentic-setup` skill now (the install commands are under Agent Skills in Step 3). Run it in **report-only** mode (`/review-agentic-setup --report-only`): - **Loading it:** skills live-reload. If `.claude/skills/` did not exist when the session started, run `/reload-skills` first, or simply follow its `SKILL.md` directly. - **What it does:** it audits what exists *before* you present scope, and writes nothing. - **Using its findings:** put its proposed changes in the scoping summary. In Step 3, apply only the changes that the user confirms. The skill install is the only write before the user confirms scope. Leave it uncommitted, and mention it in the summary. Commit it with the rest in Step 3, and record it as `skill:review-agentic-setup`. - **The changelog:** read the whole changelog too. A project set up before records existed may predate any of its entries, so use them as a checklist of known fixes. There is no `applied` list to filter by. When you read `Affects:` lines, treat each pattern that you can see in the project as applied. Examples are a card index, per-feature CLAUDE.md files, a `project-plan.md`, hooks, and copied skills. - Treat every existing file as intentional until shown otherwise. ### Refresh mode The record (see *The setup record* at the end) says which version of this setup the project applied and what the user chose. Bring the project to the current version. Do not redo or ask again what is already settled: 1. Read `.claude/agent-setup.json`. Fetch the changelog and take every entry whose version is greater than the record's `version`. A record version older than every changelog entry is valid — take them all. If the record's `version` equals the version at the top of this file, there is nothing new. Then skip to step 5. If `skill:review-agentic-setup` is applied, also offer to run it — the project itself may have drifted. 2. Keep an item only if its `Affects:` line names a pattern in the record's `applied` list, a file in `copied`, or `all`. `skill:*` matches any *applied* skill (declined skills do not count). Items with `Affects: new pattern ` are not changes. Carry them to step 3 as offers, and use their `Action:` as the recommendation rule. For each kept entry, check whether it actually affects the project (an entry about `@CLAUDE_full.md` matters only if the project uses it). Then draft the concrete change from the entry's `Action:` line. 3. Collect the patterns to offer: - Any pattern in the Step 2 table that is in neither `applied` nor `declined` (new since the last run, or never asked about). - Any `declined` pattern whose changelog items since then say it changed materially. Do not offer other declined patterns again. If a changelog item gives a condition for offering a pattern, use it for your recommendation, but still list the pattern. For Agent Skills, offer `skill:review-agentic-setup` if it is in neither list. Do not clone the skills repo only to list the rest. Tell the user that they can ask for the full list. 4. Present one summary, with the same structure as the Step 2 message. It contains: - The mode, and the record version → the current version. - The concrete change for each kept item. Give each skipped item one line, with the reason. - The patterns to offer, each with a recommendation. - The tool check. Run the detection from *Installing tools* in Step 3 for every tool in the record's `tools`. Also run it for every tool that a kept item or an offered pattern requires. List each tool that is missing, older than its minimum, or older than its pin. - Any questions that the items raise (such as commands you could not discover). Do NOT apply anything until the user confirms. After the user confirms, apply the confirmed changes with the same rules as Step 3 — extend, never replace wholesale. If there is nothing to apply, offer or ask, show the summary and continue straight to step 5. The record update needs no confirmation. 5. Run Step 4 (verify), which also rewrites the record with the current version. If the record is malformed or names a version newer than this file, say so and fall back to **update** mode. ## Step 2 — Present scope Based on what you found, present the user with a scoping summary and ask which patterns to apply. The available patterns are: | Pattern | What it does | Best for | URL | |---------|-------------|----------|-----| | **Context Cards** (`context-cards`) | Compresses project knowledge into small, lazy-loaded reference cards indexed from CLAUDE.md | Any project where CLAUDE.md is growing large or agents need domain context | `https://ai.memention.net/cards/cards-procedure.md` | | **Known Stack** ⚗️ (`known-stack`) | Names the standard frameworks and patterns in one line each in CLAUDE.md, so cards cover only what the code and the model's prior cannot supply | Projects built mostly from mainstream frameworks used the standard way | `https://ai.memention.net/cards/known-stack.md` | | **Feature-First Architecture** ⚗️ (`feature-first`) | Documents code organized per feature as a hookable pipeline of named nodes | Projects whose code already has an explicit pipeline, middleware or hook engine (named steps that other code attaches to) | `https://ai.memention.net/cards/feature-first-structured.md` | | **Feature-First Advanced** ⚗️ (`feature-first-advanced`) | Adds bidirectional peer features, runtime-bound hooks, full middleware model | Feature-first projects where features hook into each other or middleware varies per request | `https://ai.memention.net/cards/feature-first-advanced.md` | | **Two-Tier CLAUDE.md** (`two-tier`) | Splits per-feature CLAUDE.md into a slim always-loaded overview + on-demand full contract | Projects using feature-first architecture with 3+ node features | `https://ai.memention.net/cards/two-tier-claude-md.md` | | **Shared Project Plan** (`project-plan`) | A single `project-plan.md` holding the goal + live state that every spawned agent reads first and updates, so independent agents share one objective | Work fanned out across subagents, worktrees, or issue-driven autonomous runs | `https://ai.memention.net/cards/project-plan.md` | | **Standing Defaults** (`standing-defaults`) | Decisions made once and not re-litigated per project: always use a Python venv, always ship a dependency-free database migration path | Any project that runs Python or persists data | `https://ai.memention.net/cards/standing-defaults.md` | | **Hooks Over Prose** (`hooks-over-prose`) | Moves mechanical "always/never" rules out of CLAUDE.md into `.claude/settings.json` permissions and hooks, so the harness enforces them | Projects whose instruction files contain rules a script could check (protected paths, formatting, forbidden commands) | `https://ai.memention.net/cards/hooks-over-prose.md` | | **Code Health Feedback** ⚗️ (`code-health`) | Uses or installs (after asking where — default: the project's venv) the aihealth code-health tool, pinned to a release, and wires it into Claude Code: hooks report new or worsened smells after each edit and before the agent finishes, plus an MCP server for on-demand checks | Projects where agents regularly change code in Python, Dart, Swift, Rust, Go, TS/JS, C-family, shell, Make or CMake | `https://ai.memention.net/cards/code-health.md` | | **Agent Skills** (`skill:` per copied skill, `plugin:@anthropic-agent-skills` per plugin) | Installs reusable Claude Code skills for the project: copied into `.claude/skills/`, or enabled as plugins from Anthropic's official skills marketplace | Any project that benefits from shared, reusable skills (refactoring, planning, discovery, document creation, frontend design, MCP servers, etc.) | `https://github.com/epatel/agent-skills/` and `https://github.com/anthropics/skills` | Your scoping message to the user should include: - Whether you are in **setup** or **update** mode, and why (refresh mode has its own summary, above) - A 2-3 sentence summary of what you found (stack, size, current state of docs) - For each pattern: whether you recommend it and a one-line reason why or why not - For each recommended pattern that needs tools (its card's `## Requires` table): what detection found. Give the path and version, "older than the minimum", or "not found". Detection is read-only, so run it now (see *Installing tools* in Step 3). Install nothing yet - Ask the user to confirm which patterns to apply Do NOT proceed until the user confirms scope. ## Step 3 — Fetch and apply For each pattern the user selected, fetch its URL and follow the instructions inside it. When a pattern or skill needs a tool, follow *Installing tools* at the end of this step. Never install anything without the user's yes, and let the user choose where. **Known Stack** (`known-stack.md`) — ⚗️ *Experimental*: - Apply it before Context Cards: write the Known stack section in `CLAUDE.md` between the overview and the commands - One line per standard concept, with its file paths and any local twist. Anything that needs more than a line becomes a card - Then run a narrowed cards procedure. Write no architecture card if the architecture is a textbook instance of the named stack. Write no domain cards for layers that the lines cover **Context Cards** (`cards-procedure.md`): - Follow its Steps 0–5 - Create the `cards/` directory and populate cards - Append the index to `CLAUDE.md` **Feature-First Architecture** (`feature-first-structured.md`) — ⚗️ *Experimental*: - Recommend it only when the code already has an explicit pipeline, middleware or hook engine. That means named steps, and a way for other code to attach before or after them. Show the user where that is (file and symbol). If there is none, recommend declining. Plain modules or MVC layers are not pipelines - Document only nodes, context keys and hooks that exist in the code, each traceable to a file. Never invent nodes or hook points to fit the pattern - Identify existing features/modules that map to the pipeline model - Create per-feature `CLAUDE.md` files documenting nodes, context keys, hooks - This is a documentation/organization pattern — do NOT refactor code unless the user asks **Feature-First Advanced** (`feature-first-advanced.md`) — ⚗️ *Experimental*: - Only applies on top of feature-first, when features hook into each other or hooks bind at runtime - Skip it if static one-directional hooks already cover the project **Two-Tier CLAUDE.md** (`two-tier-claude-md.md`): - For each feature CLAUDE.md that exceeds ~40 lines, split into `CLAUDE.md` + `CLAUDE_full.md` - Point to `CLAUDE_full.md` by plain path with a "read when…" condition — never `@CLAUDE_full.md`, which is an import and loads it every time - Only applies after feature-first docs exist **Standing Defaults** (`standing-defaults.md`): - Copy the card into the project's `cards/` directory, and add an index entry to `CLAUDE.md`. List it under `copied` in the setup record, with its SHA-256 - Check the project against it: no dependency installs outside a venv, and a schema-version + ordered-migrations path wherever the project persists data - Report any gaps that you find. Do not change code unless the user asks **Shared Project Plan** (`project-plan.md`): - Create `project-plan.md` at the repo root with Goal, Non-goals, Milestones, Decisions, Current state, and Open questions sections - Reference it from `CLAUDE.md` (`@project-plan.md`) and from any subagent/worktree spawn prompt so every agent reads it first and updates it before finishing - Unlike cards, this one *is* imported with `@`: every session needs the current goal **Hooks Over Prose** (`hooks-over-prose.md`): - Scan every CLAUDE.md (and imports) for rules phrased "always / never / before every / don't forget" - Present the mechanical ones to the user, with the proposed permission rule or hook for each. Apply only the ones that the user approves - Put shared rules in `.claude/settings.json`, and hook scripts under `.claude/hooks/` (executable). Replace the prose of each moved rule with a one-line note - Trigger each new rule once to confirm it fires with the expected message **Code Health Feedback** (`code-health.md`) — ⚗️ *Experimental*: - Follow the card's "Applying it to a project" steps. The aihealth repo's `AGENT-INSTALL.md` ("In a project's venv") holds the exact commands and JSON - Get aihealth and a Python 3.11+ interpreter through *Installing tools*. Use a suitable existing copy, or install where the user chooses (default: the project's gitignored `.venv/`). Pin the install to the commit of the latest release tag. The card shows how to resolve that commit. Someone can move a tag, but nobody can move a commit. Commit the pin (dev requirements, or the install command in `CLAUDE.md`). Install outside the project only when the user picks that option - Wire `.venv/bin/aihealth` into `.mcp.json` and the `.claude/settings.json` hooks. Merge with the existing entries, and keep the `[ -x … ]` guard. Add the short `CLAUDE.md` section - Run the baseline scan and report it. Do not refactor what it finds unless the user asks **Agent Skills** (`https://github.com/epatel/agent-skills/`): - Clone the **latest release tag**, not `main`. Copy the skill directories you want into the project's `.claude/skills/` directory. Copy one directory per skill, each with its `SKILL.md` and any `references/` or `scripts/`. Release tags have the form `vYYYY.MM.DD`, with `.2`, `.3` for later releases the same day. Record the tag as `skills_release` in the setup record, so a refresh knows which release the copies came from. If the repo has no tags yet, clone the default branch and say so - The repo's `README.md` lists every available skill with a one-line purpose. Read it after you clone, and recommend from that list, not from memory - `review-agentic-setup` reviews and modernizes an existing agentic setup (CLAUDE.md, cards, skills, hooks) against the current model. Install it whenever the project already has structure, and run it as the first step in **update** mode - Install only the skills relevant to the project. If you are not sure, ask the user which ones - These skills are **project-scoped**: copied, not symlinked, and committed under `.claude/skills/`. Thus every agent, worktree, and collaborator for this project can invoke them. They also trigger only in projects where they apply. Never install into `~/.claude/skills/` from this step, even when the user asks for "all skills". That location loads them in every project on the machine, and collaborators cannot see it. - If the user already has a skill from this repo installed personally (`~/.claude/skills/`, often a symlink), still copy it into the project. The project copy pins the version that this project's setup used. Tell the user that the personal copy is now redundant here. The user can remove it when no other project relies on it. Do not touch `~/.claude/` yourself - A skill whose `SKILL.md` installs its own dependencies (for example a venv for a helper script) goes through *Installing tools* before its first run. Say what it would install and where. Run it only after the user's yes - Skills live-reload: an installed skill is available in the current session. If `.claude/skills/` did not exist when the session started, run `/reload-skills` (or tell the user to) - Example: ```bash REPO=https://github.com/epatel/agent-skills.git TAG=$(git ls-remote --tags --refs "$REPO" | sed 's|.*/||' | sort -V | tail -1) SRC=$(mktemp -d) && echo "clone in $SRC" # An annotated tag makes git print "... is not a commit!"; that warning is harmless. if [ -n "$TAG" ]; then git -c advice.detachedHead=false clone -q --depth 1 --branch "$TAG" "$REPO" "$SRC" else git clone -q --depth 1 "$REPO" "$SRC" # no release tags yet: default branch fi cat "$SRC/README.md" mkdir -p .claude/skills cp -r "$SRC/focused-refactor" .claude/skills/ ``` The snippet works in bash and zsh. Your shell may not keep variables between commands, so note the printed clone path and use it for later copies. Delete the clone (`rm -rf `) after you copy the skills, not before. **Anthropic's skills** (`https://github.com/anthropics/skills`) — the official example and document skills, published as a plugin marketplace named `anthropic-agent-skills`: - Plugins: `document-skills` (docx, pdf, pptx, xlsx), `example-skills` (frontend-design, mcp-builder, webapp-testing, skill-creator, doc-coauthoring, canvas-design and more), `claude-api`. Read the repo's `.claude-plugin/marketplace.json` for the current list. Do not rely on this list - Recommend one only when the project's work matches it: - a web frontend → `example-skills`, for `frontend-design` and `webapp-testing` - office document generation → `document-skills` - work on the Claude API → `claude-api` Skip a plugin whose skills the user already has from another marketplace (for example `frontend-design@claude-plugins-official`) or built into their Claude account. If the user has this same plugin at user scope, still offer to enable it at project scope, so collaborators get it. Mention that the user can then remove the user-scope install. Check `/plugin` and the skills listed in the session before you propose a plugin. Never run `/plugin install` or `claude plugin install` without `--scope project` — the default is user scope (`~/.claude/settings.json`) - Enable for the whole project by committing to `.claude/settings.json` (merge with existing keys): ```json { "extraKnownMarketplaces": { "anthropic-agent-skills": { "source": { "source": "github", "repo": "anthropics/skills" } } }, "enabledPlugins": { "example-skills@anthropic-agent-skills": true } } ``` Collaborators get the marketplace after they accept the workspace trust dialog. If `/plugin` reports the plugin "is enabled in project settings but isn't installed", run `claude plugin install @anthropic-agent-skills --scope project` - Each plugin skill has its plugin's name as a namespace (`/example-skills:frontend-design`). Otherwise, use it like any other skill. Record each enabled plugin as `plugin:@anthropic-agent-skills` - Each skill has its own `LICENSE.txt`. Most are Apache 2.0, but the document skills are "All rights reserved". Use the document skills, but do not copy their files into the project ### Installing tools Some patterns and skills need tools: an interpreter, a CLI, a package. A card lists them in a `## Requires` table (tool, minimum version, how to detect it, default location). Every tool goes through the same steps: **detect → check the version → ask whether and where → install → verify → record**. Never install anything without an explicit yes from the user. 1. **Detect, in this order.** Stop at the first copy that works: 1. The project's own location: `.venv/bin/`, `node_modules/.bin/`. 2. `command -v ` on `PATH`. 3. For a Python interpreter, versioned names and managers: `python3.13`, `python3.12`, `python3.11`, `uv python find '>=3.11'`. Take the version from the tool's own `--version` output. Compare versions number by number (`3.9` is older than `3.11`), never as strings. For an interpreter, report every qualifying one you found with its path, and recommend the newest. Some tools serve only a rule that the user has not approved yet (a formatter for a Hooks Over Prose hook). Detect such a tool after the user approves the rule, not during scoping. 2. **Check that it works, not only that it exists.** For Python, also create a throwaway venv: `python3 -m venv "$(mktemp -d)/t"`. On Debian and Ubuntu this fails with `ensurepip is not available` until the user installs `python3-venv`. 3. **Ask once, after the user confirms scope.** Put one question per missing or outdated tool in a single message. Each question gives the tool, the pattern that needs it, the version found (or "not found") and the minimum version. It also gives the location options, with a recommended default: | Tool type | Options, recommended first | |---|---| | Python tool for this project (e.g. aihealth) | Existing suitable copy · project `.venv/` · separate project tool venv `.venv-tools/` (when its dependencies clash with the project's) · user level with `uv tool install` or `pipx` (all projects) · skip | | Python interpreter | Existing `python3.1x` or uv-managed interpreter · `uv python install ` (user level) · Homebrew or apt (system-wide) · skip the pattern | | `python3-venv` on Debian/Ubuntu | The user runs `sudo apt install python3-venv` · use `uv venv` instead · skip | | CLI tool used by a hook (`jq`, a formatter) | Project-local (`.venv/` for Python tools, `devDependencies` for Node tools) · Homebrew or apt (system-wide) · skip, and the hook does nothing | | `git`, `curl`, `make`, `claude` | Never installed by this setup. If missing or too old, stop and tell the user | - **Label the scope.** Mark every option outside the project as *affects all projects* or *system-wide*. - **Offer an existing copy first.** When a suitable copy already exists, even outside the recommended location, offer "use the existing copy at ``" first. Say what this means for collaborators: they need the same form. 4. **Install only what the user approved, where the user approved it.** - Show the exact command before you run it. - Never run `sudo` yourself. Give the user the command to run (they can type `! ` in Claude Code). - After installing, detect the tool again and confirm the version meets the minimum. - If an install fails, report the error and stop. Do not switch to another method without asking. 5. **If the user skips a tool, what needs it is declined.** - **A tool the whole pattern needs** (aihealth for code-health): make no file changes for that pattern. Record the pattern under `declined`, with no `tools` entry. - **A tool only one rule or hook needs** (a formatter in hooks-over-prose): leave out that rule and keep the rest of the pattern. Say in one line what was left out, and that the user can ask for it later once the tool is installed. Refresh mode does not offer it again on its own. 6. **Record the choice in the setup record's `tools` key.** Record the form. Never record machine-specific paths or the version found on this machine, because collaborators run the same steps on their own machines. The install command goes where the pattern says (a requirements file, the `CLAUDE.md` section, a `make setup` target). ## Step 4 — Verify After applying all selected patterns: 1. Run the mechanical checks. Read the script first. It is short, read-only, and standard-library only. It needs Python 3.9+ (any `python3.x` that detection finds). If there is none, tell the user and skip this check. Do not install an interpreter for it: ```bash CHECK=$(mktemp -d)/check-agent-docs.py curl -fsSL https://ai.memention.net/cards/check-agent-docs.py -o "$CHECK" python3 -I "$CHECK" . ``` It flags these problems: - unresolved `@` imports - eager imports of cards or `CLAUDE_full.md` - dead or missing index entries - card-to-card references - files over the size limits - a malformed setup record If something blocks it (a permission prompt that the user declines, or a policy), say so in the summary. Do not work around it. You may apply the same checks by hand, labeled as such. Fix every ERROR that the user's confirmed scope covers. Report any remaining ERRORs (for example, a fix the user declined), and do not fix them unasked. Judge each WARN. 2. Confirm every new file is readable in isolation (open it cold — the script cannot judge this) 3. Confirm `CLAUDE.md` index entries name the situation that should trigger the card, not just its topic 4. Write `.claude/agent-setup.json` (see *The setup record* below). In setup mode, create it. In refresh or update mode, rewrite it: keep earlier choices, add this run's choices, and set `version` to this file's version 5. Present a summary to the user. Include: - files created and patterns applied - tools used or installed, and where - tools skipped, and what stays inactive because of them - the checker output - recommendations for next steps, if any ## Notes - These patterns document existing code — they do not restructure or refactor it. The one exception is a changelog item that fixes code copied from a pattern, such as the migration runner. Show the change, and apply it only with the user's explicit approval - If the project also serves other coding agents that read `AGENTS.md`, keep the shared content (overview, commands, card index) in `AGENTS.md`. Claude Code (v2.1.277 or later) reads `AGENTS.md` natively when there is no `CLAUDE.md`, `.claude/CLAUDE.md` or `CLAUDE.local.md` in the working directory or above. The checker also reads a card index kept in `AGENTS.md`. If you also need Claude-specific lines, add a thin `CLAUDE.md` that imports it with `@AGENTS.md`. One source, no drift. - If the project already has partial setup (for example, some cards exist), extend it. Do not replace it. Never overwrite an existing card, feature doc, or skill before you show the user what would be lost - When in doubt about a pattern's applicability, ask the user — do not guess ## The setup record Every run ends by writing `.claude/agent-setup.json`. Commit it with the project. Nothing imports it, so it costs no context. An agent reads it only when this setup runs again. ```json { "source": "https://ai.memention.net/setup", "version": "2026-11-14.4", "updated": "2026-11-14", "applied": ["context-cards", "hooks-over-prose", "skill:review-agentic-setup"], "declined": ["project-plan", "standing-defaults"], "copied": { "cards/standing-defaults.md": { "pattern": "standing-defaults", "sha256": "" } }, "skills_release": "v2026.11.14", "tools": { "aihealth": { "pattern": "code-health", "min": "0.3.1", "pin": "ff7f011ae6d01ed4f44a18a617541167dc070725", "form": "project-venv" }, "python": { "pattern": "code-health", "min": "3.11", "form": "existing" } } } ``` - `version` — the `Version:` at the top of this file when it was last applied. Versions are `YYYY-MM-DD`, with `.2`, `.3`… for later releases the same day. Compare the date first, then the number after the dot as a number. No suffix counts as 1. So `2026-11-13.10` is newer than `2026-11-13.2`, which is newer than `2026-11-13`. Do not compare them as plain strings. Refresh mode takes the changelog entries with a greater version. - `updated` — the date of the last run (any mode). - `applied` / `declined` — pattern IDs from the Step 2 table (`skill:` and `plugin:@` for Agent Skills). A pattern the user was not asked about is in neither. - `copied` — files copied verbatim from a pattern into the project. Today this is only the Standing Defaults card. Each key is a project path. Each value has the pattern ID and the SHA-256 of the file as it was copied (`shasum -a 256`). In refresh mode, if the file's current hash still matches, it is unedited: show the diff to the new source and replace it. If the hash differs, the project edited it: propose a merge instead. Record the new hash after either. - `skills_release` — the `epatel/agent-skills` release tag the copied skills (`skill:` in `applied`) came from. Present when any such skill is applied. In refresh mode, compare it with the latest tag. When a newer release exists, the changelog items since the record's `version` say which skills to copy again. Copy them from that release and update this field. - `tools` — optional. One entry per tool a pattern or skill needs, keyed by tool name, written by *Installing tools*: - `pattern`: the pattern ID that needs the tool. - `min`: the minimum version, as dotted numbers. For a pinned tool, the pinned release's version. - `pin`: for a tool installed from git, the commit SHA the project is pinned to, resolved from the release tag. The tag stays readable next to it in the committed install command. - `form`: where this project expects the tool. One of `existing` (use whatever suitable copy each machine has), `project-venv`, `tool-venv` (`.venv-tools/`), `user` (uv tool, pipx), or `system` (Homebrew, apt). A skipped tool has no entry, because what needed it was declined. Never record paths or versions found on one machine. In refresh mode, run detection again for every entry and offer an install or upgrade where a tool is missing or older than `min`. If a release newer than the one that `pin` points to exists, offer to move the pin. Upgrade only after the user's yes.