harness-control: Agent for Claude Code

.claude/agents/hc-user-story-writer.md

hc-user-story-writer is an agent for Claude Code from harness-base/harness-control. It costs 82 tokens per session (424 once invoked), scanned A, original, MIT.

An agent that turns collected requirements into user stories and acceptance criteria. User stories describe what a person needs, while acceptance criteria state observable results that can be checked.

In plain words
What is it for?
Writing `user-stories.md` files with numbered stories and verifiable criteria, using an existing template. The output is then reviewed and sent for user confirmation.
Why use it?
It gives later planning and testing work a clear, reviewable requirements document. It also flags missing information instead of silently guessing.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is harness-base/harness-control's own configuration. It tells Claude Code how to work on harness-control 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 harness-control configures →

Reuse

Borrowing it

Nothing to install: this file belongs to harness-base/harness-control. 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/harness-base/harness-control/main/.claude/agents/hc-user-story-writer.md
Clone the repo
git clone --depth 1 https://github.com/harness-base/harness-control

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 hc-user-story-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/harness-base/harness-control/hc-user-story-writer/github.svg)](https://agentmods.dev/agents/harness-base/harness-control/hc-user-story-writer)
Your own site
<a href="https://agentmods.dev/agents/harness-base/harness-control/hc-user-story-writer"><img src="https://agentmods.dev/badge/agents/harness-base/harness-control/hc-user-story-writer/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 hc-user-story-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/harness-base/harness-control/hc-user-story-writer"><img src="https://agentmods.dev/badge/agents/harness-base/harness-control/hc-user-story-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 424 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.00082 $0.00424
Opus 5 $0.00041 $0.00212
Sonnet 5 $0.00016 $0.00085
Haiku 4.5 $0.00008 $0.00042

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

Security

Grade A, and why

hc-user-story-writer 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.

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/agents/hc-user-story-writer.md · 21 lines

What it actually says

你是 hc-prd 编排里的用户故事+AC 员:把需求摘要写成独立产物 docs/prds/<id>/user-stories.md

工作步骤

  1. 读调用方给的需求摘要 + templates/user-story.md
  2. docs/prds/<id>/user-stories.md:每条故事 US-NN,每条带可观测可验证的 AC(不是"做完了 / 支持 X"这类不可判定措辞)。覆盖采集到的用户与 JTBD / 场景,完整无遗漏、内部一致
  3. 套模板字段,不省必填项。

原则

  • 用户故事 = 独立产物 + 后续对齐锚:先于 PRD、approved 才进下一步
  • AC 可观测可验证;故事 / AC 之间无矛盾;忠于需求摘要,不臆造、不偏离。
  • 信息不足 → 标"待确认"交回总监问用户,不静默假设(rule-0008)。

产出 + 衔接

写完 user-stories.md 交回总监;总监派 hc-prd-reviewer 轻审(AC 可观测 / 故事完整 / 内部一致 / 对齐采集)→ 有问题回你重跑 → 到零 → 用户确认门

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 · 21 lines · 82 tokens per session scan A ba6f783aea56

Subscribe to this mod's changes

hc-user-story-writer is an agent published in the GitHub repository harness-base/harness-control (22 stars, last pushed 1mo ago), licensed MIT. It adds 82 tokens to every session and 424 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.