harness-writing

harness-writing is a skill for Claude Code, Codex from tienenwu/fables. It costs 33 tokens per session (1,413 once invoked), scanned A, original, MIT.

A guide for creating or reviewing a project-specific development harness: the rules, checks, risk handling, and workflow that guide coding work.

In plain words
What is it for?
Use it when setting up an AI-assisted development workflow, defining project checks, or auditing an existing harness for weak evidence and conflicting rules.
Why use it?
It helps teams keep project decisions and verification rules consistent instead of relying on informal instructions or duplicate sources of truth.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it when setting up an AI-assisted development workflow, defining project checks, or auditing an existing harness for weak evidence and conflicting rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tienenwu/fables/harness-writing
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 tienenwu/fables --skill harness-writing
Clone the repo
git clone --depth 1 https://github.com/tienenwu/fables

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 harness-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/tienenwu/fables/harness-writing/github.svg)](https://agentmods.dev/skills/tienenwu/fables/harness-writing)
Your own site
<a href="https://agentmods.dev/skills/tienenwu/fables/harness-writing"><img src="https://agentmods.dev/badge/skills/tienenwu/fables/harness-writing/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 harness-writing

Your own site · 80×15
<a href="https://agentmods.dev/skills/tienenwu/fables/harness-writing"><img src="https://agentmods.dev/badge/skills/tienenwu/fables/harness-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,413 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.00033 $0.01413
Opus 5 $0.00016 $0.00707
Sonnet 5 $0.00007 $0.00283
Haiku 4.5 $0.00003 $0.00141

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

Security

Grade A, and why

harness-writing 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 9d 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.

en/harness-writing/SKILL.md · 91 lines

How it starts

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

🌐 繁體中文(canonical) · English mirror

Harness Writing — Generate a Repository-Specific Evidence-Driven Workflow

Core Model

The Harness is the sole orchestration kernel: the always-on kernel keeps only routing and invariants while standard/high-risk details load on demand; risk conditions and claim→evidence gates control state transitions, and evidence does not mean creating a repository artifact every time. Profiles select required states; adapters describe available capabilities; contracts retain project judgments; domain playbooks provide techniques inside a state.

Do not reinvent invariants or invent project parameters. File count is only a supporting signal; route primarily by reversibility, blast radius, ambiguity, external side effects, and verifiability.

When to Use

  • A new project needs a Harness, contract index, and mechanical-check baseline.
  • An existing project needs AI workflow adoption or recalibration.
  • An existing Harness needs an audit for dual sources of truth, fake evidence, review ceremony, or contract pollution.
  • Not for adding one already-decided project contract; edit it through the existing lifecycle.

Generation Workflow

1. Discover (read-only)

  • Inventory structure, CI, existing rules, integration points, public interfaces, production resources, and release paths.
  • Assess side effects before build/test/lint; run each safe command once and record duration, output, and baseline failures. Do not run commands that may write production resources; record the limitation.
  • Inventory capabilities rather than product names: isolated writes, shell execution, tests, fresh reviewers, persistent artifacts, and access to another model family.
  • Derive every quick eligibility condition and absolute high-risk trigger from real project evidence. Do not manufacture precision with numeric totals; record absent items as "none."
  • If a Harness exists, modify it instead of generating a second one.

Read the full file on GitHub · 91 lines

Files

What ships with it

3 files 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. 9d ago First seen · 91 lines · 33 tokens per session scan A 8528d03fa8bb

Subscribe to this mod's changes

harness-writing is a skill published in the GitHub repository tienenwu/fables (4 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 1,413 once invoked, about $0.0002 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

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 127 tokens

argent-tv-interact

Control and inspect TV apps via argent — Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega). Boot the target, read focus, navigate with the D-pad remote, type, screenshot, and on Vega debug the JS runtime (evaluate, console logs, network inspector). Use when a task targets a TV (runtimeKind "tv", or…

software-mansion/argent · 107 tokens

offer-compare-skill

A decision assistant for comparing two or more job offers across pay, growth, company strength, team risk, promotion, AI exposure, and lifestyle. Total compensation means the combined value of salary, bonuses, shares, and sign-on payments.

yanliudesign/offer-toolkit-skill · 231 tokens

flutter-feature-based-clean-architecture

Organize Flutter apps with modular feature-based clean architecture. Use when creating features under lib/features/ with domain, data, and presentation layers. Do not use for test-only, BlocBuilder, navigation, or spinner requests.

HoangNguyen0403/agent-skills-standard · 51 tokens

Detox Mobile Testing

Gray-box end-to-end testing for React Native apps with Detox. Covers .detoxrc.js configuration, build and test commands, matchers, device.launchApp control, automatic synchronization, and macOS CI pipelines.

PramodDutta/qaskills · 48 tokens

database-mongodb

Apply MongoDB data-modeling, indexing, and query rules from access patterns. Use when designing schemas, choosing embed vs reference, or tuning MongoDB query behavior.

HoangNguyen0403/agent-skills-standard · 37 tokens