Agent skill

Lane

by lukeed in lukeed/lane

Use lane in this repository — create isolated worktrees, read existing context before editing, and record constraints that future work must preserve.

MITAuto-check passedDevelopment

Install Lane

skills CLI
$ npx skills add lukeed/lane --skill lane -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lukeed/lane lane --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lukeed/lane.git skills-src && mkdir -p .claude/skills && cp -r skills-src/crates/lane/assets .claude/skills/lane && rm -rf skills-src

Use ~/.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/

Facts

Skill name
lane
GitHub stars
159
Token cost
~928 tokens
SKILL.md length
407 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Use lane in this repository — create isolated worktrees, read existing context before editing, and record constraints that future work must preserve.

  • Tasks that involve Git worktrees
  • SKILL.md covers Workflow, Read before editing, Record what must stay true and Anchors, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Lane is an agent skill from lukeed/lane. Use lane in this repository — create isolated worktrees, read existing context before editing, and record constraints that future work must preserve.

Its SKILL.md is about 930 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Git worktrees. The repository describes itself as: Copy-on-write worktrees with memory that survives them. The licence is MIT.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/lane”

What it can do on your machine

Read from SKILL.md and the folder at commit 4235dd7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lane loads about 928 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 407 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~928

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from lukeed/lane at commit 4235dd7, republished under its MIT licence (© lukeed). 407 words, ~928 tokens.

Download SKILL.mdSave it as .claude/skills/lane/SKILL.md (or your agent's skills folder).
name
lane
description
Use lane in this repository — create isolated worktrees, read existing context before editing, and record constraints that future work must preserve.

lane

This repository keeps durable context / memories as Markdown under .lane/. You must read before editing a file, via lane why <path>, then record only the non-obvious constraints or decisions another agent would otherwise have to rediscover.

Workflow

bash
lane new fix-login     # create a branch and worktree
# edit and commit as usual
lane merge             # land on local trunk
lane merge --squash    # land on local trunk as one commit
lane push              # push the lane for a pull request

lane new prints the worktree path. Work there, not in the parent checkout.

lane merge rebases, audits memory, updates local trunk, and removes the lane. Commit or stash tracked changes first.

The push workflow is for protected trunks. After the pull request merges, run lane prune. Use lane ls --json for machine-readable lane state.

Read before editing

bash
lane why src/auth.rs
lane why src/

Run lane why for every file you intend to edit. A directory returns all notes beneath it; --json includes full ids, anchors, timestamps, and note text.

Run lane check before landing. For every stale note, take exactly one action:

bash
lane note confirm <id>              # the note is still true
lane note replace <id> "<rewrite>"  # the constraint has changed
lane note retire <id>               # the constraint no longer applies

An unambiguous id prefix is enough. Use lane note edit <id> for the interactive menu, or the direct commands above in scripts and agent workflows.

Other lifecycle commands:

bash
lane note restore <id>  # restore a retired note
lane note pin <id>      # protect a note from eviction
lane note unpin <id>    # remove that protection

Record what must stay true

Not every file or commit needs a note. Only record significant, non-obvious constraints — never a summary of the change.

Commit Message Trailer(s)

If lane install hooks has been run, then git hooks are active and you can add notes while writing commit messages. Include a Why: trailer when the finding belongs with a commit:

text
make verification constant-time

Why: src/auth.rs#fn verify | early return leaks token length

The form is Why: <path>[#<anchor>] | <text>. The path and | separator are required; omit the anchor to target the whole file.

Run lane install hooks once if trailers are not being captured.

Show full SKILL.md (155 more words)Show less
Manually

Record a finding directly when it does not belong to a commit, or if lane install hooks has not been run:

bash
lane note add src/auth.rs -a "fn verify" "must stay constant-time"

Supplying text is non-interactive and defaults to @file when -a is omitted. Omit the text only when you want the interactive prompt.

Anchors

An anchor describes what a note is about:

anchormatches
fn verifya declaration by kind and name
verifya uniquely named declaration
#script, #stylea top-level component block
## Rate limitinga Markdown section
@filethe whole file

Run lane anchors <path> --json and prefer the canonical anchor it returns. Ambiguous declaration names are refused with their available choices.

Rules

  • Never edit .lane/ by hand; use the lane note commands.
  • Do not pass --dirty unless the lane should inherit the parent checkout's uncommitted work.
  • Keep each note to one constraint.
  • Do not record what a commit changed.

Run lane --help for the command list, or lane <command> --help for details.

© lukeed, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in crates/lane/assets of lukeed/lane.

Open the folder on GitHubat commit 4235dd7

Compare with similar skills

Lane 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.

Lane compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lane this skilllukeed/lane159—~928Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Keep Codex Fastvibeforge1111/keep-codex-fast1.6k—~3.1kAutomated safety check: PassMIT

Similar skills

  • 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.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Keep Codex Fast

    vibeforge1111/keep-codex-fast

    A skill your agent uses when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state.

    1.6k GitHub stars~3.1k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed

Categories

Questions about Lane

What does Lane do?

Use lane in this repository — create isolated worktrees, read existing context before editing, and record constraints that future work must preserve. Lane is an agent skill from lukeed/lane. Use lane in this repository — create isolated worktrees, read existing context before editing, and record constraints that future work must preserve.

When should I use Lane?

Lane fits situations like: tasks that involve Git worktrees.

How do I install Lane in Claude Code?

Run `npx skills add lukeed/lane --skill lane -a claude-code`. Or copy the skill folder (crates/lane/assets in lukeed/lane) into .claude/skills/lane in your project. Claude Code loads it when a task matches its description.

How do I install Lane in Codex?

Run `npx skills add lukeed/lane --skill lane -a codex`. Or copy the skill folder (crates/lane/assets in lukeed/lane) into .agents/skills/lane in your project. Codex loads it when a task matches its description.

Can I use Lane in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lukeed/lane --skill lane -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lane, .gemini/skills/lane, .github/skills/lane and .opencode/skills/lane in your project.

What does Lane need to run?

SKILL.md names no scripts, command-line tools or credentials: Lane is instructions for the agent only.

Does Lane access the network?

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.

Is Lane safe to install?

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.

What licence does Lane use?

Lane is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lane use?

About 928 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lane?

Skills that share tags, products or a category with Lane: Finishing a Development Branch (obra/superpowers, 297k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars) and Git Worktree Cleanup (lobehub/lobehub, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lane?

lukeed (a GitHub user) maintains it in lukeed/lane, which has 159 GitHub stars. The repository was last updated on September 14, 2026.

Source: lukeed/lane on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.