Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/UvRoxx/midnight-agent-skillsnpx agentmods add skills/uvroxx/midnight-agent-skills/midnight-test-runnerWrote 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.
[](https://agentmods.dev/skills/uvroxx/midnight-agent-skills/midnight-test-runner)<a href="https://agentmods.dev/skills/uvroxx/midnight-agent-skills/midnight-test-runner"><img src="https://agentmods.dev/badge/skills/uvroxx/midnight-agent-skills/midnight-test-runner/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.
<a href="https://agentmods.dev/skills/uvroxx/midnight-agent-skills/midnight-test-runner"><img src="https://agentmods.dev/badge/skills/uvroxx/midnight-agent-skills/midnight-test-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.02007 |
| Opus 5 | $0.00029 | $0.01004 |
| Sonnet 5 | $0.00012 | $0.00401 |
| Haiku 4.5 | $0.00006 | $0.00201 |
Grade A, and why
midnight-test-runner 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 12d 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.
How it starts
The opening of the file, as written. The whole thing — 377 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Midnight Test Runner
Run, debug, and write tests for Midnight smart contracts using Vitest and contract simulators.
When to Use
Use this skill when:
- Running contract test suites
- Debugging failing tests
- Writing new test cases
- Testing privacy features (selective disclosure)
- Validating ZK circuit behavior
How It Works
- Compiles Compact contract
- Creates contract simulator from compiled artifacts
- Runs Vitest test suite
- Reports results with coverage
Quick Start
# Navigate to contract directory
cd counter-contract
# Run all tests
npm run test
# Run with watch mode
npm run test:watch
# Run with coverage
npm run test -- --coverage
Test Structure
Directory Layout
counter-contract/
├── src/
│ ├── counter.compact # Contract source
│ ├── witnesses.ts # Private state types
│ ├── managed/ # Compiled artifacts
│ └── test/
│ ├── counter.test.ts # Test file
│ └── simulators/
│ └── simulator.ts # Contract simulator
Basic Test File
// counter.test.ts
import { describe, it, expect, beforeEach } from 'vitest';
import { CounterSimulator } from './simulators/simulator';
describe('Counter Contract', () => {
let simulator: CounterSimulator;
beforeEach(() => {
simulator = CounterSimulator.deployContract(0);
});
it('initializes with correct values', () => {
const ledger = simulator.getLedger();
expect(ledger.round).toBe(0n);
});
it('increments the counter', () => {
simulator.as('player1').increment();
const ledger = simulator.getLedger();
expect(ledger.round).toBe(1n);
});
});
Contract Simulator Pattern
Creating a Simulator
// simulators/simulator.ts
import { Contract } from '../managed/contract';
type LedgerState = {
round: bigint;
};
type PrivateState = {
privateCounter: number;
};
export class CounterSimulator {
private ledger: LedgerState;
private privateStates: Map<string, PrivateState>;
private currentPlayer: string = 'default';
private constructor(initialValue: number) {
this.ledger = { round: BigInt(initialValue) };
this.privateStates = new Map();
this.privateStates.set('default', { privateCounter: initialValue });
}
static deployContract(initialValue: number): CounterSimulator {
return new CounterSimulator(initialValue);
}
as(playerId: string): CounterSimulator {
this.currentPlayer = playerId;
if (!this.privateStates.has(playerId)) {
this.privateStates.set(playerId, { privateCounter: 0 });
}
return this;
}
getLedger(): LedgerState {
return { ...this.ledger };
}
getPrivateState(): PrivateState {
return { ...this.privateStates.get(this.currentPlayer)! };
}
increment(): LedgerState {
this.ledger.round += 1n;
return this.getLedger();
}
}
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.
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.
- 12d ago First seen · 377 lines · 58 tokens per session scan A 79a55942648e
midnight-test-runner is a skill published in the GitHub repository UvRoxx/midnight-agent-skills (9 stars, last pushed 5mo ago), licensed MIT. It adds 58 tokens to every session and 2,007 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.
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.
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".
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…
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.
atmos-validation
Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.
skill-benchmark
Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.