align-tests

align-tests is a skill for Claude Code, Codex from c9r-io/orchestrator. It costs 72 tokens per session (1,199 once invoked), scanned A, original, MIT.

A workflow for bringing code formatting and tests back into agreement after large refactors or broad changes. It discovers the repository’s formatting and test commands for Rust and frontend code.

In plain words
What is it for?
Use it after major modifications to inspect changed files, format affected code, run relevant tests, analyze failures, and update tests when needed.
Why use it?
Large changes often leave inconsistent style or tests that describe old behavior; this process finds and fixes those mismatches.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/c9r-io/orchestrator/align-tests
Any agent
npx skills add c9r-io/orchestrator --skill align-tests
Clone the repo
git clone --depth 1 https://github.com/c9r-io/orchestrator

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 align-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/c9r-io/orchestrator/align-tests.svg)](https://agentmods.dev/skills/c9r-io/orchestrator/align-tests)
Your own site
<a href="https://agentmods.dev/skills/c9r-io/orchestrator/align-tests"><img src="https://agentmods.dev/badge/skills/c9r-io/orchestrator/align-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,199 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00072 $0.01199
Opus 5 $0.00036 $0.00600
Sonnet 5 $0.00014 $0.00240
Haiku 4.5 $0.00007 $0.00120

Measured 5d ago against content hash 67db2082da7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

align-tests 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 5d 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.

.claude/skills/align-tests/SKILL.md · 99 lines

How it starts

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

Align Tests

Run a strict formatting + test-alignment workflow after major refactors.

In this repository, discover Rust workspace commands from Cargo.toml and frontend commands from gui/package.json. For other targets, derive commands from their own build files before running anything.

Workflow

  1. Scope the impacted areas.
  • Inspect changed files with git status --short and git diff --name-only.
  • Prioritize test suites by changed modules. Typical mapping:
    • Backend (core/ or equivalent) → language-native unit/integration tests.
    • Frontend (gui/) → JS/TS unit tests, Playwright, build, and type checks when relevant.
  • If the project layout differs, discover module boundaries from the directory structure and build configs.
  1. Run formatters and fix code style.
  • Auto-detect and run the appropriate formatter for each affected area:
    • Rust: cargo fmt --all — applies rustfmt to the entire workspace.
    • TypeScript / JavaScript: inspect gui/package.json for a formatter or linter and use its declared scripts. Do not invent a formatter dependency.
    • Other languages: use whatever formatter the project already configures (go fmt ./..., black ., mix format, etc.).
  • After formatting, check git diff --stat to confirm what changed.
  • If formatting produces changes, continue with the rest of the workflow — these will be included in the final commit.
  • Do not skip this step even if the refactor seems small; CI pipelines typically gate on formatting.
  1. Run unit tests first, then broaden.
  • Backend (discover from project config):
    • Rust: run a focused package test first, then cargo test --workspace from the repository root.
    • Other languages: use the project's existing test command (make test, go test ./..., etc.).
  • Frontend (discover from gui/package.json):
    • cd gui && npm test.
    • Use npm run build for TypeScript/build drift and npm run test:e2e when browser behavior is in scope.
  1. Analyze failures by root cause.
  • Classify each failure:
    • Refactor signature drift (function/argument/type changed).
    • Behavior change (assertion no longer matches intended logic).
    • Test fixture/mock drift (mocked dependency contract changed).
    • Environment/order issues (state leakage, async timing).
  • Prefer preserving intended product behavior; only update expectations when behavior change is intentional.

Read the full file on GitHub · 99 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 99 lines · 72 tokens per session scan A 67db2082da7b

Subscribe to this mod's changes

align-tests is a skill published in the GitHub repository c9r-io/orchestrator (21 stars, last pushed 3d ago), licensed MIT. It adds 72 tokens to every session and 1,199 once invoked, about $0.0004 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-30.