Documents

Ward Test Scope Routing

Try it

Route validation by changed boundaries and risk, choosing the smallest sufficient checks for code, docs, UI, data, auth, sync, build, security, and release work. Use when deciding test commands, reducing unnecessary full-suite runs, auditing test layering, or documenting what was and was not verified.

What it does

Choose validation from the changed surface and risk. Keep the local feedback loop small, while reserving complete regression and release gates for merge, release, and high-risk boundaries.

The skill document

Test Scope Routing

Choose validation from the changed surface and risk. Keep the local feedback loop small, while reserving complete regression and release gates for merge, release, and high-risk boundaries.

For compact routing examples, read references/usage-examples.md when needed.

Establish the project contract

Before selecting commands:

  1. Read the applicable AGENTS.md, CLAUDE.md, CONTRIBUTING.md, and test-scope documentation.
  2. Inspect package.json, Makefiles, task runners, test configuration, CI workflows, and release workflows.
  3. Identify the repository, branch, worktrees, submodules, and uncommitted changes. Preserve changes that are outside the request.
  4. Use project-defined commands and prerequisites. Do not invent a global command name or assume that verify, fast, or full has a standard meaning.
  5. Check whether a command starts a database, browser, production connection, deployment, or other external state before running it.

Treat project documentation as the authority for exact commands and boundaries. This skill supplies the routing method, not project-specific command names.

Write a small spec first

For behavior changes, record before implementation:

  • in-scope behavior and explicit non-goals;
  • user-observable acceptance conditions;
  • affected code, UI, data, permission, offline, conflict, error, and compatibility boundaries;
  • the smallest validation tier and any additional tiers;
  • checks intentionally not run and why.

If a requirement is materially ambiguous, resolve the spec or decision first. For a behavior change, add a focused failing test when practical, then implement the smallest change.

Select the smallest sufficient tier

Use semantic tiers. Projects may rename or combine them, but the responsibilities must remain distinct.

TierResponsibilityTypical scope
L0 staticSyntax, formatting, repository policy, static assets, and documentation constraintsDocs, copy, low-risk CSS, static configuration
L1 fastDeterministic local logic and state behaviorUtilities, models, reducers, controllers, rule calculations
L2 targeted UIUser-visible rendering and interaction in the affected journeyNavigation, forms, settings, offline UI, PWA, accessibility-sensitive flows
L3 integrationExternal boundaries and data correctnessDatabase schema/RLS, functions, auth, sync, export, deletion, network errors
L4 fullMerge, release, or high-risk system boundaryFull build, security, dependency, complete E2E, database, release, and production checks

Route by the union of touched boundaries:

  • Documentation-only changes normally need L0 or no executable test when the project has no documentation checker.
  • Pure logic changes need L1; use a related-test or explicit-test-file route when the project supports it.
  • UI changes need L1 only when logic is affected, plus the smallest relevant L2 journey.
  • Auth, synchronization, data lifecycle, schema, RLS, or server-function changes need the relevant L1 and L3 checks. Do not treat a UI test as permission or database evidence.
  • Dependency, build, Service Worker, CSP, public-resource, or release changes need the project’s L4 checks.
  • Merge, release, and explicitly high-risk changes require L4 even when lower tiers already passed.

Do not run every tier merely because a command is convenient. Do add tiers when the change crosses a boundary. If no targeted check exists, report the gap as unverified instead of hiding it behind an unrelated full suite.

Inspect command composition

Before composing or recommending shortcuts:

  • Expand each command and identify nested checks. Avoid running the same unit, coverage, build, or E2E suite twice.
  • Do not assume verify means full regression. Confirm whether it excludes database, functions, E2E, or production probes.
  • Prefer a test-file, project, tag, or related-test selector for local iteration when supported.
  • Treat a command named fast as only a label; verify whether it runs all unit tests or only impacted tests.
  • Keep local database checks local and follow the project’s migration/control-plane rules. Never substitute a production write for validation.
  • Separate code failure, flaky behavior, missing dependency, unavailable Docker/browser, missing environment variables, and missing production URL. Environment blockage is not a passing test.
  • Keep CI and release gates appropriately complete even when local iteration is targeted.

Record evidence

In the task or PR, record:

  1. Scope and acceptance conditions.
  2. Selected tier(s) and the exact command(s) run.
  3. Results, including counts and relevant artifacts when available.
  4. Tiers not run and the reason.
  5. Environment blockers, flaky tests, or unverified production behavior.
  6. Remaining merge or release gates.

Do not describe a change as fully verified from an exit code, HTTP 200, empty output, pending CI check, or unit coverage percentage alone. State the actual boundary covered and the boundary that remains unverified.

Keep the global and project layers separate

  • Keep this skill framework-level: risk classification, tier responsibilities, command inspection, and evidence reporting.
  • Keep project-specific facts in the project’s test-scope and contribution documents: exact commands, path mappings, thresholds, environments, browser/database prerequisites, and release exceptions.
  • Keep one-off audits and handoffs as task records, not as the permanent global source of truth.

Related skills

Query and manage Linear issues, projects, teams, cycles, labels, and comments through a managed OAuth GraphQL endpoint.

by byungkyu518 installs18 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván854 installs69 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván555 installs18 stars

Read and write Excel workbooks, worksheets, ranges, tables, and charts in OneDrive through Microsoft Graph with managed OAuth.

by byungkyu800 installs42 stars

More from wardlu

Browse all skills

Audit an AI agent's reachable data, external data paths, and untrusted instructions, then explain the result in plain language with Low, Medium, High, or Critical severity. Use when a user asks what an agent can see, where data may go, whether a skill, plugin, or tool is safe, or how to reduce agent privacy risk across Codex, Claude Code, or another agent.

by wardlu2 installs

Repair Codex Desktop sessions that fail after switching model providers or importing/forking old conversations. Use this skill whenever a user mentions an old Codex session becoming invalid, “model provider not found”, “Codex cannot load config.toml”, remote context compaction 404s, “Item with id rs_... not found”, repeated reconnecting during resume, or a migrated Codex conversation that cannot continue—even when the user only asks to inspect or explain the failure. Diagnose the target session across its JSONL rollout, root state_5.sqlite, config.toml, and logs_2.sqlite, then make a target-scoped backup-first repair with verification and restart instructions.

by wardlu1 installs

Internationalize the user-facing language layer of a GitHub repository, including its repository description, repository topics, README files, release notes, changelogs, and other explicitly selected documentation, with English as the default and any user-requested locales as mirrors. Use when a user asks to translate, localize, add language mirrors, or check cross-locale parity for a GitHub repository. Confirm the exact document and metadata scope when it is not explicit, identify existing locales, preserve facts, code, commands, links, images, and structure, and provide local Markdown plus GitHub-style previews. Do not use for product UI or runtime i18n, database content, visual README redesign or assets, public-release suitability or security scans, Issue or PR label taxonomies, Git tags, or Git, PR, release, deployment, or production operations.

by wardlu1 installs

Review a public repository release across version and tag consistency, final build artifacts, archives, secrets and internal material, third-party licenses, production response headers, and GitHub Release attachments. Use when the user asks to publish, create a tag or Release, verify a launch, or run the complete public-release gate, adapting checks to the project's configuration.

by wardlu1 installs

Run the public-repository gates for Git commits, pushes, and pull requests. Check staged and untracked scope, secrets and personal data, internal material, branches and remotes, PR base/head, CI, and merge prerequisites. Use when the user asks to commit, push, open a PR, review public repository content, or run the complete public-repository gate.

by wardlu1 installs

Analyze local Codex session telemetry and produce privacy-safe efficiency reports with actionable workflow recommendations. Use when the user asks to run Codex Doctor, inspect Codex productivity, diagnose context bloat, repository exploration, validation or retry patterns, compare recent sessions, or interpret a codex-efficiency-report HTML/JSON file. Default to local telemetry-only analysis; use the optional compact AI diagnosis only when the user explicitly requests AI interpretation.

by wardlu1 installs