test-lane

test-lane is a skill for Claude Code, Codex from harshanandak/forge. It costs 64 tokens per session (711 once invoked), scanned A, original, MIT.

A test-routing guide for a codebase called Forge. It determines whether changed files can use focused tests or must run the full test suite; a monorepo or codebase can contain many packages and commands, but the input only describes Forge.

In plain words
What is it for?
Diagnosing slow pushes, checking how changed files map to tests, and deciding whether to run targeted tests or the full unit-test suite before adding paths or commands.
Why use it?
It explains why a push takes longer and identifies whether files have no recognized test mapping or no runnable tests. It is meant to choose the right test lane, not to avoid testing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Diagnosing slow pushes, checking how changed files map to tests, and deciding whether to run targeted tests or the full unit-test suite before adding paths or commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harshanandak/forge/test-lane
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add harshanandak/forge --skill test-lane
Clone the repo
git clone --depth 1 https://github.com/harshanandak/forge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-lane

README.md
[![agentmods](https://agentmods.dev/badge/skills/harshanandak/forge/test-lane.svg)](https://agentmods.dev/skills/harshanandak/forge/test-lane)
Your own site
<a href="https://agentmods.dev/skills/harshanandak/forge/test-lane"><img src="https://agentmods.dev/badge/skills/harshanandak/forge/test-lane.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00711
Opus 5 $0.00032 $0.00356
Sonnet 5 $0.00013 $0.00142
Haiku 4.5 $0.00006 $0.00071

Measured 7d ago against content hash a2364bbdc022, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

test-lane scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.forge/contributor-skills/test-lane/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

test-lane

A slow push is almost never a hang. It is the full-suite lane, and the full-suite lane is what an unmapped path buys you. [Forge #8 ×3]

The two lists that decide the lane

A changed path stays on the fast targeted lane only if it satisfies both:

  1. isKnownTargetablePath(file)scripts/test.js [verified 2026-08-13, around line 181]
  2. It resolves to at least one real test file through getTestCandidatesForChangedFile(file) / DIRECT_TEST_CANDIDATESlib/commands/test.js [verified 2026-08-13, around lines 30 and 202]

Satisfy one and not the other and you still get the full suite: an unrecognised path sets hasUnmappedFiles, and a recognised path that maps to zero existing tests sets hasZeroResolvedTests. Either flag flips the plan to full.

Diagnose before you guess

node -e "console.log(JSON.stringify(require('./scripts/test.js').classifyPushTests(process.cwd()), null, 2))"

Read mode and reason. reason names the exact cause: unmapped pushed files require full unit coverage, known changes did not resolve runnable tests, package-level changes detected, or known changes mapped to targeted tests when you are on the fast lane.

Adding a new path

Both edits, in the same commit as the path itself:

  • scripts/test.js → add the prefix to isKnownTargetablePath.
  • lib/commands/test.js → add the prefix to getTestCandidatesForChangedFile (or an exact entry in DIRECT_TEST_CANDIDATES), pointing at tests that exist.

Then re-run the classifier above and confirm mode: "targeted".

Rules

  • Never widen a timeout to make a lane pass. A slow lane is a routing bug or a real regression. Bumping the budget hides both. [Forge #9 ×3]
  • Never delete or vacuously weaken an assertion to get green. Same class. [Forge #9 ×3]
  • Markdown that other suites read (README, AGENTS.md, docs/) also pulls in the doc-asserting suites automatically — you do not need to list those by hand. [verified 2026-08-13 — selectDocAssertingTests, lib/commands/test.js]
  • Local green is not CI green. A targeted lane proves the mapped tests pass on your machine, nothing more. Read gh pr checks or the shepherd verdict before you call anything ready.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 69 lines · 64 tokens per session scan A a2364bbdc022

Subscribe to this mod's changes

test-lane is a skill published in the GitHub repository harshanandak/forge (4 stars, last pushed 7d ago), licensed MIT. It adds 64 tokens to every session and 711 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.