intelig-agent-playbook: Skill for Claude Code

.claude/skills/fitness-test/SKILL.md

fitness-test is a skill for Claude Code from InteliGHQ/intelig-agent-playbook. It costs 94 tokens per session (678 once invoked), scanned A, original, MIT.

A procedure for writing an automated architecture test that checks whether a project rule is obeyed. It promotes a rule from manual review to an enforced test when the source code can be checked for that rule.

In plain words
What is it for?
Use it when a code reviewer finds a repeated violation or when a rule is being moved from advisory review into automated enforcement.
Why use it?
It prevents the same architecture mistake from recurring by making the build fail when the rule is broken.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is InteliGHQ/intelig-agent-playbook's own configuration. It tells Claude Code how to work on intelig-agent-playbook itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything intelig-agent-playbook configures →

Reuse

Borrowing it

Nothing to install: this file belongs to InteliGHQ/intelig-agent-playbook. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/InteliGHQ/intelig-agent-playbook/main/.claude/skills/fitness-test/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/InteliGHQ/intelig-agent-playbook

Made for: Claude Code.

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 fitness-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/intelighq/intelig-agent-playbook/fitness-test/github.svg)](https://agentmods.dev/skills/intelighq/intelig-agent-playbook/fitness-test)
Your own site
<a href="https://agentmods.dev/skills/intelighq/intelig-agent-playbook/fitness-test"><img src="https://agentmods.dev/badge/skills/intelighq/intelig-agent-playbook/fitness-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fitness-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/intelighq/intelig-agent-playbook/fitness-test"><img src="https://agentmods.dev/badge/skills/intelighq/intelig-agent-playbook/fitness-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 678 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.00094 $0.00678
Opus 5 $0.00047 $0.00339
Sonnet 5 $0.00019 $0.00136
Haiku 4.5 $0.00009 $0.00068

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

Security

Grade A, and why

fitness-test 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scaffold.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/fitness-test/SKILL.md · 46 lines

How it starts

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

Author a fitness test (advisory → enforced)

The repo's core move: when a rule keeps getting broken, you don't write a sterner sentence — you write a test the build cannot pass while the rule is violated. This skill packages how to do that here, with the conventions and a scaffold script, so it's one operation instead of a from-scratch guess each time.

When to use

  • A manual-review rule was violated again (the code-reviewer flagged a repeat offender).
  • You're promoting a rule UP the Enforcement Map in standards/architecture.rules.md.

When NOT to use

  • The invariant is already enforced by tsc (types) or the linter — that's the ci tier. Don't duplicate it as a fitness test.
  • You can't state the rule as a checkable property over the source. Sharpen the rule first; a vague rule makes a flaky test.

The contract (non-negotiable)

  • The test lives in the bounded context's test/architecture.fitness.test.ts (see arch-examples/).
  • The test name starts with the rule ID, e.g. test("API-001: controllers import no domain types", …).
  • On failure it prints the rule ID and the offending files — so the next agent gets the ID in the red build and the lesson isn't taught twice.
  • For dependency rules, prefer a real architecture-test tool (dependency-cruiser / ts-arch) over ad-hoc string matching; string scans miss re-exports, path aliases, and dynamic imports.

Steps

  1. Read the rule in standards/architecture.rules.md for its principle (the why), not just the wording — the test should defend the principle.
  2. State the invariant as a property over src/** (e.g. "no file in api/** imports domain/**").
  3. Scaffold the test: run scaffold.sh <RULE-ID> "<what it checks>" from this skill for a stub, then fill in the predicate.
  4. Make it go red against a known violation, then green. A test you've only seen pass is not yet a wall.
  5. Promote the rule: change its tag in STANDARDS_DIGEST.md and its row in the Enforcement Map to fitness, citing the new test.

Read the full file on GitHub · 46 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. 10d ago First seen · 46 lines · 94 tokens per session scan A 97657122842b

Subscribe to this mod's changes

fitness-test is a skill published in the GitHub repository InteliGHQ/intelig-agent-playbook (2 stars, last pushed 3mo ago), licensed MIT. It adds 94 tokens to every session and 678 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

neuron-evaluation-engineer

Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…

neuron-core/neuron-ai · 77 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens