Vercel Composition Patterns
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
Bootstrap LID in an existing (brownfield) codebase. An agent skill from jszmajda/lid.
$ npx skills add jszmajda/lid --skill map-codebase -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jszmajda/lid map-codebase --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jszmajda/lid.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/arrow-maintenance/skills/map-codebase .claude/skills/map-codebase && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "map-codebase" agent skill from https://github.com/jszmajda/lid/tree/main/plugins/arrow-maintenance/skills/map-codebase into .claude/skills/map-codebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "map-codebase", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jszmajda/lid/tree/main/plugins/arrow-maintenance/skills/map-codebaseType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jszmajda/lid --skill map-codebase -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jszmajda/lid map-codebase --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jszmajda/lid.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/arrow-maintenance/skills/map-codebase .agents/skills/map-codebase && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "map-codebase" agent skill from https://github.com/jszmajda/lid/tree/main/plugins/arrow-maintenance/skills/map-codebase into .agents/skills/map-codebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "map-codebase", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jszmajda/lid --skill map-codebase -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jszmajda/lid map-codebase --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jszmajda/lid.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/arrow-maintenance/skills/map-codebase .cursor/skills/map-codebase && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "map-codebase" agent skill from https://github.com/jszmajda/lid/tree/main/plugins/arrow-maintenance/skills/map-codebase into .cursor/skills/map-codebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "map-codebase", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jszmajda/lid.git --path plugins/arrow-maintenance/skills/map-codebase--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jszmajda/lid --skill map-codebase -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jszmajda/lid map-codebase --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jszmajda/lid.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/arrow-maintenance/skills/map-codebase .gemini/skills/map-codebase && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "map-codebase" agent skill from https://github.com/jszmajda/lid/tree/main/plugins/arrow-maintenance/skills/map-codebase into .gemini/skills/map-codebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "map-codebase", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jszmajda/lid map-codebaseInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jszmajda/lid --skill map-codebase -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jszmajda/lid.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/arrow-maintenance/skills/map-codebase .github/skills/map-codebase && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "map-codebase" agent skill from https://github.com/jszmajda/lid/tree/main/plugins/arrow-maintenance/skills/map-codebase into .github/skills/map-codebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "map-codebase", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jszmajda/lid --skill map-codebase -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jszmajda/lid map-codebase --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jszmajda/lid.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/arrow-maintenance/skills/map-codebase .opencode/skills/map-codebase && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "map-codebase" agent skill from https://github.com/jszmajda/lid/tree/main/plugins/arrow-maintenance/skills/map-codebase into .opencode/skills/map-codebase/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "map-codebase", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
map-codebaseBootstrap LID in an existing (brownfield) codebase. An agent skill from jszmajda/lid.
Map Codebase is an agent skill from jszmajda/lid. Bootstrap LID in an existing (brownfield) codebase. Deep-reads every file in the declared scope, offers lens-based clustering options, generates skeleton LLDs/HLD/EARS bottom-up, then creates arrow docs and prompts the user to flesh out the skeletons. Token-intensive by design. Use when asked to map a codebase, bootstrap arrows, reverse-engineer the design, or start LID on an existing project.
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `evals/evals.json`, `references/brownfield-bootstrap.md` and `references/reconciliation-template.md`).
It sits in Development. The repository describes itself as: Linked-Intent Development - a SDD methodology for agentic coding. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 831c195. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Map Codebase loads about 3.4k tokens when it runs, and up to ~9.1k if it reads all its reference files. Until then it costs about 102 tokens; SKILL.md has 1,726 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jszmajda/lid at commit 831c195, republished under its MIT licence (© jszmajda). 1,726 words, ~3,401 tokens.
.claude/skills/map-codebase/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.This skill maps an existing codebase into the arrow of intent. It works bottom-up: read all the code in scope first, then propose lens-based clusterings for the user to choose among, then generate skeleton docs that describe what actually exists.
See brownfield-bootstrap.md for detailed guidance per phase.
These govern every phase. Apply consistently.
[inferred] markers; known technical debt and behavioral quirks go in Open Questions.Ask one question first:
This question determines scope and mode simultaneously — the user is not asked a separate "Full or Scoped?" later at terminal verification. Default to Full (whole project) if the user is undecided.
Then ask:
Token-intensity warning. Tell the user upfront this is token-intensive by design — reading every file, proposing multiple lenses, drafting skeletons for every segment, multi-step reconciliation. Not a lightweight operation. Users expecting a quick one-shot map should reconsider.
Undo. The workflow's STOPs between phases are the undo mechanism — aborting at any STOP leaves nothing written to disk. Agent harnesses also provide their own session-level rewind. LID does not ship a dedicated /unmap-codebase command; users roll back via the agent framework's rewind or by reverting a git commit.
Inspect the project before starting:
docs/arrows/. Redirect the user to /arrow-maintenance — that command bootstraps the overlay from existing docs without the brownfield sweep. Do not proceed here.Read every file in the declared scope. Not a sample. Sampling risks missing behaviors that only surface in edge-case files and locks in segmentation based on incomplete view.
For each file, record a structured summary:
Output: a flat list of observed behaviors with file/line references. No segmentation attempted here.
Capacity constraint handling. If the declared scope exceeds the invocation's capacity (single-agent context window, or the chosen subagent budget), surface the constraint with concrete sizing evidence, warn the user that a sampled sweep produces lower-quality mapping, and recommend narrowing scope or enabling subagent parallelism. The user may override and proceed with sampling anyway. Under override, preserve state across truncation points via per-subagent files (.lid/map-codebase/sweep-{N}.md) or by incrementally writing arrow-doc partial drafts during reconnaissance — never silently discard information the orchestrator cannot hold.
When subagents ran in parallel, each subagent writes its sweep to its own file; the orchestrator processes them in chunks during Phase 2.
See subagent-sweep-prompt.md for the prompt template given to sweep workers.
Propose 3–5 fundamentally different clusterings, each using a distinct lens. Not variations on one theme — entirely different mental models.
Good lenses to propose:
Anti-pattern lenses to explicitly avoid:
For each proposed clustering, present: name, lens, the clusters it produces, pros, cons, and best-for (what kind of reasoning it supports well).
STOP. User picks a lens. Multiple lenses are the primary edge-detection mechanism — the user's choice of lens reveals latent intent in a way no single clustering can.
See reconciliation-template.md for the presentation format.
Within the chosen lens, propose 2–3 slicing variations:
Coarse absorbs more code per LLD; fine gives precise segment-scoped tracking. Pick based on project maturity and the user's appetite for maintenance.
When a fine slicing produces more segments than sit comfortably at one level, propose grouping related leaves under sub-HLD (grouping) nodes — a shallow tree rather than a long flat list. Most projects map flat (depth-2: leaves directly under the root); nesting is offered only when the leaf count makes a grouping level genuinely clarifying. The tree placement chosen here drives the parent/children links and the mirrored artifact paths in Phase 5.
STOP. User picks a slicing.
Present the final candidate clustering (chosen lens + chosen granularity). User:
Where parallel subagents disagreed on segment assignments earlier, flag those conflicts prominently here.
Component quality check. When reviewing, apply the working definition: a segment should be an independent system achieving an independent purpose. Flag proposed segments that match anti-patterns (team boundaries, deployment units, file locations, generic "utils") rather than accepting them silently.
Derive segment and component names from the codebase's existing vocabulary — its module and directory names, its domain terms — rather than imposing LID labels on the project (HLD tenet: Speak the project's language).
STOP. User approves the final clustering before artifact generation begins.
The design layer is a recursive tree. A leaf node owns EARS and an arrow doc; an intermediate (sub-HLD) node groups its children and owns neither. Where the chosen granularity produces nested structure — leaf segments gathered under a grouping node — that nesting is the design tree, and every artifact path mirrors it. A flat depth-2 mapping (the common case) has every segment at the root level, so the mirrored path collapses to a single file name. {segment-path} below means the root-to-leaf path; at depth-2 it is just the segment name.
For each approved leaf segment, generate these artifacts in order with a STOP after each:
docs/arrows/{segment-path}.md (e.g. docs/arrows/billing/invoicing.md for an invoicing leaf under a billing group; docs/arrows/auth.md for a root-level auth leaf) — References pointing to actual files, initial status: MAPPED. Grouping (sub-HLD) nodes are directories, not arrow docs. See arrow-doc template. STOP.docs/intent/{segment-path}.md — standard LLD template (lld-templates), no separate brownfield template. Content carries brownfield state: [inferred] markers in Decisions & Alternatives table, Open Questions for observed-but-unexplained behaviors. STOP.docs/intent/<segment-path>/{segment-name}-specs.md — reserved spec-ID prefix that is the segment's root-to-leaf path (path-concatenated: the leaf prefix is the full path from the root, e.g. a runner leaf under prompt-eval reserves PEVAL-RUN). Ask the user for a namespacing parent if the prefix collides with an existing one. Initial status semantics:[x] — behavior is observed as working in current code.[ ] — behavior is specified but broken or partial in current code.[D] — explicit non-wants (intentional non-features); rare in brownfield.
STOP.index.yaml entry under arrows: with the taxonomy placement and the parent/children tree links chosen during reconciliation. A leaf segment carries parent (its grouping node, or null at the root level) and no children; each grouping (sub-HLD) node gets its own entry carrying its children list and no detail. The detail of a leaf points at its tree-mirrored arrow-doc path. At depth-2 every segment sits at the root level with parent: null and no children. Follow the schema in index-schema.md.After all segments are generated, if no HLD exists:
docs/high-level-design.md — standard template (hld-template), bodies marked *(not yet specified)* rather than filled with placeholder content. If an HLD already exists, skip this step — never modify an existing HLD. STOP.Before completing:
Ensure CLAUDE.md is configured. Invoke the /update-lid behavior (equivalent to running the update-lid skill), passing the mode that was determined from the invocation-time scope question. update-lid honors caller-provided mode and does not re-prompt. Result: LID directives block present, the ## LID block's - Mode: bullet set to the determined mode, arrow-navigation rows included (since the overlay is now installed), and a ## LID Tooling section scaffolded if a coherence script is to be declared. update-lid runs exactly once per /map-codebase invocation — at terminal verification, not during artifact generation.
Issue the flesh-out prompt. Direct the user to move into the linked-intent-dev workflow segment-by-segment to populate the skeleton LLDs and EARS specs. Without this prompt the user may leave reconstruction incomplete — and partial arrows propagate incoherence into future sessions. The flesh-out prompt is the terminal step; do not exit without issuing it.
© jszmajda, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in plugins/arrow-maintenance/skills/map-codebase of jszmajda/lid.
Open the folder on GitHubat commit 831c195
Map Codebase next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Map Codebase this skilljszmajda/lid | 105 | — | ~3.4k | Automated safety check: Pass | MIT | |
| Vercel Composition Patternssupabase/supabase | 111k | 59 repos | ~726 | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Typescript Advanced Typesrolling-scopes/rsschool-app | 10k | 25 repos | ~4.2k | Automated safety check: Pass | MPL-2.0 | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT |
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
rolling-scopes/rsschool-app
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
onyx-dot-app/onyx
Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.
jszmajda/lid
Audit coherence across an arrow of intent by running two parallel fresh Claude sessions — one reconstructs code from a single EARS, the other reconstructs the EARS from stripped code — then…
jszmajda/lid
Navigation and audit overlay for linked-intent development. An agent skill from jszmajda/lid.
jszmajda/lid
Configure or reconcile a project for linked-intent development (LID).
jszmajda/lid
Review 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.
jszmajda/lid
Guide for linked-intent development (LID). An agent skill from jszmajda/lid.
Categories
Bootstrap LID in an existing (brownfield) codebase. An agent skill from jszmajda/lid. Map Codebase is an agent skill from jszmajda/lid. Bootstrap LID in an existing (brownfield) codebase.
Map Codebase fits situations like: asked to map a codebase; bootstrap arrows; reverse-engineer the design; start LID on an existing project.
Run `npx skills add jszmajda/lid --skill map-codebase -a claude-code`. Or copy the skill folder (plugins/arrow-maintenance/skills/map-codebase in jszmajda/lid) into .claude/skills/map-codebase in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jszmajda/lid --skill map-codebase -a codex`. Or copy the skill folder (plugins/arrow-maintenance/skills/map-codebase in jszmajda/lid) into .agents/skills/map-codebase in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jszmajda/lid --skill map-codebase -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/map-codebase, .gemini/skills/map-codebase, .github/skills/map-codebase and .opencode/skills/map-codebase in your project.
SKILL.md names no scripts, command-line tools or credentials: Map Codebase is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Map Codebase is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Map Codebase: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jszmajda (a GitHub user) maintains it in jszmajda/lid, which has 105 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 6, 2026.
Source: jszmajda/lid on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.