output-contract

output-contract is a skill for Claude Code, Codex from Haaaiawd/ANWS. It costs 63 tokens per session (582 once invoked), scanned A, original, MIT.

A set of rules for saving reports and coordinating work between coding-agent sessions. It defines how to record evidence, avoid repeated explanations, and control which session writes each file.

In plain words
What is it for?
Use it when writing architecture, review, or exploration documents, or when splitting work between parallel sessions. It helps assign file ownership, preserve source references, and merge results.
Why use it?
It reduces conflicting edits, unsupported conclusions, and duplicated reports when several workflows or agent sessions work together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when writing architecture, review, or exploration documents, or when splitting work between parallel sessions. It helps assign file ownership, preserve source references, and merge results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/haaaiawd/anws/output-contract
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 Haaaiawd/ANWS --skill output-contract
Clone the repo
git clone --depth 1 https://github.com/Haaaiawd/ANWS

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 output-contract

README.md
[![agentmods](https://agentmods.dev/badge/skills/haaaiawd/anws/output-contract.svg)](https://agentmods.dev/skills/haaaiawd/anws/output-contract)
Your own site
<a href="https://agentmods.dev/skills/haaaiawd/anws/output-contract"><img src="https://agentmods.dev/badge/skills/haaaiawd/anws/output-contract.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 582 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.00063 $0.00582
Opus 5 $0.00032 $0.00291
Sonnet 5 $0.00013 $0.00116
Haiku 4.5 $0.00006 $0.00058

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

Security

Grade A, and why

output-contract 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 8d 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.

src/anws/templates/.agents/skills/output-contract/SKILL.md · 38 lines

What it actually says

输出契约与协作闭环

各 Skill、Workflow 若重复本节条文,应改为一句引用本 Skill,仅保留角色或步骤专属增量。

何时加载

  • 撰写即将写入仓库的架构 / 审查 / 探索类 Markdown。
  • 父会话拆分并行子任务,或按路径切片协作修改。
  • 需要核对「是否可追溯、是否重复叙事、是否单写者」时。

Spec / 落盘契约

  • Precise:可核对陈述须带来源或 path:line / 章节锚点;禁止无源强结论。
  • Evidence-backed:发现 / 证据 / 建议须能指回具体输入或检索结果。
  • Non-repetitive:同一事实只写一次;禁止总述与正文两套复述。
  • No filler:禁止无主语的「需优化 / 应关注」类空话。

规范块(CRITICAL、严重度表、门禁、上下游契约)不得删;收紧仅针对执行旁白与重复叙事。

委派闭环(父子会话)

  1. 父会话TARGET_DIR、轮次、最终路径、合并顺序、对规范化报告路径的唯一写盘
  2. 子会话:有界切片;证据规则与父级相同。
  3. 交接:子代理返回可合并表结构 + 一行裁定;父代理去重、对照 spec、写 07_* / explore 报告,再跑工作流文末 completion

无委派时:单会话跑全文;父级仍负最终落盘与一致性。

并行与路径

  • 每个被管理路径(或 glob)每批最多一个写者;禁止在授权外全仓格式化。
  • 子任务目录或主题须 不相交;冲突由父代理裁决。
  • /genesis 协同时的检查清单与交接句式见 genesis.md「子代理编排与检查清单」(或 EN 树同名小节)。
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. 8d ago First seen · 38 lines · 63 tokens per session scan A e35b4de9988e

Subscribe to this mod's changes

output-contract is a skill published in the GitHub repository Haaaiawd/ANWS (142 stars, last pushed 3mo ago), licensed MIT. It adds 63 tokens to every session and 582 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-30.