/linked-intent-dev:update-lidfrom linked-intent-dev
Bootstraps or reconciles a project for linked-intent development (LID). Detects existing LID artifacts, creates AGENTS.md with symlink, appends directives, or fixes convention drift.
Ships in linked-intent-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Configure or reconcile a project for linked-intent development. Dispatches on project state — do not re-run unconditionally.
Invoked as /update-lid. The skill handles both initial bootstrap and ongoing reconciliation; the user's mental model differs ("set me up" vs. "update what we have") but the behavior dispatches on what's detected in the project, not on the user's framing.
LID's directives, the ## LID block, and the navigation table live in the project's agent-instructions file. Canonically that is AGENTS.md (the cross-tool convention Cursor and most agents read), with CLAUDE.md a symlink alias so Claude Code sees the same content. Never branch on which host you are running under.
AGENTS.md if it exists, otherwise CLAUDE.md. With the symlink the two are one file.AGENTS.md and a CLAUDE.md symlink pointing at it (ln -s AGENTS.md CLAUDE.md). Where symlinks are unavailable (e.g. Windows without Developer Mode), instead write a CLAUDE.md whose only content is @AGENTS.md.CLAUDE.md keeps it — do not migrate it to AGENTS.md.Below, the instruction file means the file chosen by these rules.
Use these exact detection rules — do not guess or use fuzzy matching.
grep for the literal strings "linked-intent-dev" or "Linked-Intent Development" in the instruction file. Either match indicates LID directives are already installed.grep for a ## LID heading in the instruction file. The block carries two bullets:
- Mode: {Full|Scoped} — the project's LID mode. Case-insensitive on the mode name; whitespace tolerated.- Version: {X.Y.Z} — the linked-intent-dev plugin version the project's docs conform to. A project with a ## LID block but no - Version: bullet is treated as predating versioned conventions (no - Version: bullet) (walk from the start).- Version: from the ## LID block and compare its major.minor with the major.minor of the installed linked-intent-dev plugin version (the version field in plugins/linked-intent-dev/.claude-plugin/plugin.json; the three LID plugins share it, and it is the LID conventions version). When the project's major.minor is lower, the project lags and version-walk applies. A difference in the patch number alone is not lag: a patch release asks nothing of a project, so do not walk. When the project's version is newer than the installed one — patch included — a newer LID plugin has already worked on this project; stop and suggest the user update their LID plugins (see the dispatch table). If - Version: does not read as X.Y.Z, read what parses — drop a leading v, take a missing patch as 0 (v1.3 is 1.3.0) — and walk from that version; if nothing parses, treat the project as predating versioned conventions and walk from the start. Never write the installed version over a malformed one without walking: that would silently skip every migration in between.docs/arrows/ directory exists at the project root.docs/intent/, docs/high-level-design.md); the instruction-file directive sections diverge from the current template, including a malformed ## LID block (heading other than a bare ## LID, mode merged into the heading as ## LID Mode: Full, a missing - Mode: or - Version: bullet, a - Version: not written as X.Y.Z, or stray non-template bullets); a design doc whose prefix: frontmatter is an array (an unresolved multi-prefix marker — see Version-walk); or a node folder holding more than its <node>-design.md + optional <node>-specs.md pair (an un-promoted sub-LLD left as extra files). The last two are detected independently of version lag — a project already at the installed major.minor still has them re-surfaced by reconcile-conventions, and handled the same way (surfaced with a recommended resolution, never silently left or auto-resolved).Re-check all detection signals on every invocation. Installing arrow-maintenance after initial setup, for example, should trigger an arrow-navigation-row update on the next /update-lid run.
Inspect the project and take exactly one of these actions:
| Detected state | Action |
|---|---|
No instruction file, no docs/ | Full bootstrap — create required directories, create the instruction file (AGENTS.md + CLAUDE.md symlink, per Instruction-file anchor) with LID directives + ## LID block (- Mode: + - Version: set to the installed linked-intent-dev version). No workflow-doc offer (see Workflow-doc vendoring). |
| Instruction file exists, no LID directives | Append directives — append the LID directives block to the existing instruction file without overwriting existing content. Create docs/ if missing. |
LID directives present, no ## LID block (or no - Mode: bullet) | Add or normalize the LID block — default mode Full. Keep any - Version: the block already records (read it as the version rules above say) and let the version rows below decide whether to walk; write the installed version only when the project records none. If a malformed ## LID heading already exists (mode merged into the heading, e.g. ## LID Mode: Full, or stray non-template bullets), rewrite it in place to the canonical ## LID + - Mode: + - Version: form rather than appending a second block. |
Project - Version: newer than the installed version, patch included — check this before every other row | Stop — suggest the user update their LID plugins: the installed plugin is older than what this project records. Make no changes: reconciling against an older plugin would propose undoing what the newer one did. |
Project - Version: major.minor lower than the installed version's (or - Version: absent → predating versioned conventions) | Version-walk (see below) — propose the intervening CHANGELOG migrations, confirm, apply mechanical / surface judgment, refresh - Version:. |
LID directives + ## LID block at the installed major.minor (a patch difference alone counts as current), no mode change requested | Reconcile conventions — check for convention drift (missing directories or files, outdated instruction-file sections) and surface each detected difference as a proposed update requiring user confirmation. When any update is applied, also set - Version: to the installed version, so the project records the newest conventions it has taken; when none is applied, leave - Version: as recorded. |
| Fully configured, no drift, version current (same major.minor as installed), no mode change requested | Inform and skip — tell the user what was detected (mode, version, overlay presence, directory status) and exit without changes. |
| Mode change requested (Scoped ⇄ Full) | Run mode transition (see below). |
Version-walk is evaluated before reconcile-conventions: a lagging project is brought to the current conventions version first, then ordinary drift reconciliation runs against those conventions.
Newcomer tour offer. On a project with no LID directives (the full-bootstrap and append-directives rows), check whether the memory your harness already placed in your context shows that this person has met LID before: a record of the LID tour, or other memories of them working with LID. If it doesn't, read the linked-intent-dev skill's references/tour-offer.md (beside this skill, at ../linked-intent-dev/references/tour-offer.md) and follow it. That puts a card at the top of your first message, the one that proposes the setup. Make no offer when a calling skill passed the mode, when the workflow's Phase 1 is applying this bootstrap branch inline (the workflow makes the offer), or on a project that already has LID directives.
A project records the linked-intent-dev version its docs conform to in the ## LID block's - Version: bullet. The canonical LID version is the version field in plugins/linked-intent-dev/.claude-plugin/plugin.json. When the project's major.minor is lower than the installed version's — or - Version: is absent, in which case the project is treated as predating versioned conventions (no - Version: bullet) and walked from the start — the skill walks the project forward to the installed version.
Walk the releases between the project's version and the installed version, in ascending order. The migration source is the CHANGELOG at plugins/linked-intent-dev/CHANGELOG.md (the root CHANGELOG.md symlinks to it). Each minor or major release entry has a ### Migration (v1.3 → v1.4) section describing the doc-level steps to move a project forward by one release; patch entries ask nothing of a project and have none. Read each intervening release's Migration section and reconcile the project against it.
Apply the existing propose → confirm → apply discipline — the skill never silently rewrites:
parent:/prefix: frontmatter on design docs, bump docs/arrows/index.yaml schema_version). Batch these and apply them together on a single confirmation.A migration entry that mixes both kinds is split: apply its mechanical part in the batch, surface its judgment part individually.
Never silently leave a transient migration marker. Some migrations deliberately leave a marker that flags a node as unresolved. The load-bearing one is a node folder carrying more than its <node>-design.md + <node>-specs.md pair — a former separate-spec LLD left as extra files instead of relocated into its own child folder. Relocating the LLDs into the node-as-folder tree is the defining, error-prone part of the move, so an overloaded folder is the marker most worth surfacing; a prefix: array on a design doc is a second, lower-risk marker (agents reconcile these reliably on a later pass). These are the steps most often dropped, because the marker is easy to write and easy to forget — leaving the walk looking done while the structural call it stands in for was never made. Treat each as a judgment step that must be surfaced before the walk reports complete: name the node in the project's own terms, recommend a resolution — promote the extra LLD into its own child folder, collapse a multi-prefix node into <LEAF>-<TYPE> facets, or split into sibling leaves — and apply it on approval. The user may defer any of them — honor that (user-is-always-right) — but the deferral is explicit, the marker stays in place as the record of it, and the completion report names every node left unresolved. The same surfacing-with-recommendation applies when reconcile-conventions detects these markers in a project already at the installed version. Surface, never silently leave; recommend, never silently auto-resolve.
Surface migration and reconciliation choices in the project's own terms — its LLDs, components, segments, and specs — not LID's internal structural vocabulary (HLD tenet: Speak the project's language).
On a successful walk, refresh the project's - Version: bullet to the installed version. When a walk crosses several releases, refresh once at the end rather than stepping the bullet per release. The defining marker of a conventions version is its structural layout — for the 1.2 conventions, relocation onto the docs/intent/ node-as-folder tree — so a project that has taken those structural moves is on the new conventions and the bullet advances even when the user defers residual cleanup (a prefix array, a not-yet-promoted folder); do not pin it to the prior version. What an honest walk owes the user is not a withheld version bump but a clear account: the completion report names every deferred resolution and every persisting marker (unresolved prefix: arrays, overloaded node folders), and those markers stay in place so the fall-through to reconcile-conventions — and every later /update-lid run — re-surfaces them until resolved.
After version-walk completes, fall through to ordinary reconcile-conventions against the now-current conventions.
Hosts without a plugin system read the full workflow from a vendored doc, not the instruction file (HLD § Distribution; rationale: docs/decisions/workflow-distribution.md).
docs/lid/workflow.md, offered once from the release URL when missing), the workflow in one line, and the bug-fix line. Never offer to vendor the doc yourself: this skill runs on a plugin host, where the doc adds nothing, and a vendored doc pins the project to the release that wrote it. A harness without the skill makes the offer when it meets the missing doc. Substitute the project's - Version: into the URL.- Workflow doc: declined bullet in the ## LID block records that a user declined the doc. Preserve it on every pass; never write it yourself, and never treat its absence as drift.references/workflow-doc.md (assembled from the core skill source at release) to docs/lid/workflow.md, preserving its generated-file header — source plugin version, and the statement that changes belong upstream or in the instruction file. Never author or edit workflow content per-project..aider.conf.yml carrying read: AGENTS.md — Aider auto-loads nothing else; this is its own idiom. Per-tool loading notes live in docs/setup.md.docs/lid/workflow.md is present during a version-walk and unmodified from its stamped version, re-copying the current shipped asset is a mechanical step (batched per the version-walk discipline). A hand-edited doc is excluded from the batch and surfaced per the hand-edits rule below.During a full bootstrap, prompt the user for the intended mode with Full LID as the default. For users uncertain which to pick, describe the difference before requesting a choice:
If the user does not specify a mode, select Full.
When mode is Scoped, prompt for scope patterns before writing the instruction file. Ask the user:
Write the answers into a ## LID Scope section immediately after the ## LID block (which carries - Mode: Scoped):
## LID
- Mode: Scoped
- Version: 1.2.0
## LID Scope
Paths in scope:
- `src/auth/**`
- `packages/billing/**`
Paths explicitly excluded:
- `src/auth/legacy/**`
- `**/*.test.ts`
When mode is Full, do not write a ## LID Scope section. Its absence means "entire project in scope."
Caller-provided mode. When this skill is invoked by another skill (for example, /map-codebase at its terminal verification step) that has already determined the mode from its own scope question, the caller passes the mode — and, if Scoped, the scope patterns — through, and this skill honors them without re-prompting. Re-prompting the user for a mode at the end of a long mapping session is a bad UX; the scope question the caller already asked is the mode decision.
Persist the mode and version in the instruction file's ## LID block — - Mode: {Full|Scoped} and - Version: {X.Y.Z}. At bootstrap, write - Version: set to the installed linked-intent-dev plugin version (from plugins/linked-intent-dev/.claude-plugin/plugin.json), so a freshly-bootstrapped project starts current and never triggers a spurious version-walk. The ## LID block is the sole source of truth for mode and version detection by the linked-intent-dev skill.
## LID Scope section following the format above.## LID Scope section from the instruction file./update-lid and pass the new scope patterns; the skill rewrites the ## LID Scope section in place.## LID block's - Mode: bullet; no file migration. Cascade rigor relaxes on the next linked-intent-dev consult.docs/intent/ design tree (each node a folder with its {node}-design.md and {node}-specs.md) and docs/high-level-design.md. Where multiple scoped arrows have overlapping components, surface the overlaps to the user one pair at a time and ask for reconciliation. Do not merge automatically.Ensure this layout in the project root, creating any missing:
docs/high-level-design.md (populated from the HLD template in plugins/linked-intent-dev/skills/linked-intent-dev/references/hld-template.md)docs/intent/docs/decisions/ holds project-level (HLD) decision docs; segment-level decision docs live alongside their segment at docs/intent/<segment>/decisions/. Create either lazily — only when the first decision doc at that level is written, not at bootstrap.
Do not create docs/planning/. Plans are agent-native; LID does not require the directory.
When docs/arrows/ is detected, include extra navigation rows in the instruction file's directives template — pointing at docs/arrows/index.yaml and per-segment arrow docs — as part of the project's navigation table. When docs/arrows/ is absent, omit these rows. Re-check this signal on every invocation.
docs/planning/ handlingWhen invoked as /update-lid on a project containing a docs/planning/ directory (leftover from earlier LID eras):
The linked-intent-dev skill itself ignores this directory — it is not part of the required arrow.
The skill is idempotent. Running it twice on a well-configured project produces no changes. When the project is already fully configured and no changes are needed, do not silently no-op. Tell the user what was detected — mode, version (and whether its major.minor matches the installed version's), overlay presence, directory status — so they know the skill ran and found nothing to do.
Similarly, when convention drift is detected but the user declines every proposed update, still summarize what was found before exiting.
After making any file changes (bootstrap, append directives, mode transition, drift reconciliation):
The user should never have to git diff the repo to understand what the skill just did.
When appending the LID directives block to an existing instruction file, preserve all existing content. Append, don't overwrite.
references/agents-md-template.md — the LID directives block to append to the instruction file.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/lid-coachReview a project's current linked-intent-development (LID) usage against LID's own principles and produce a prioritized report of recommendations for getting more out of the methodology. Invoke when the user runs /lid-coach, asks for a LID review, asks how they could use LID better, wants feedback on their LID setup, or asks what LID antipatterns might be present in their project. This is a principle-level advisory review, distinct from /update-lid (configuration reconciliation) and /arrow-maintenance (deterministic structural audit)./linked-intent-devGuide for linked-intent development (LID). Consult for ALL code changes. Walks changes through a mode-aware six-phase workflow (HLD → LLD → EARS → intent-narrowing edge audit → tests-first → code) with mandatory stops between each phase. Bugs walk the arrow like any other change — no short-circuit. Enforces cascade discipline within arrow segments and pauses across segment boundaries. Also consult when someone asks for the LID tour, or asks how LID or one part of it works.npx claudepluginhub jszmajda/lid --plugin linked-intent-devOther plugins' skills for the same job