harness-control: Agent for Claude Code

.claude/agents/hc-prd-writer.md

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

A worker that writes a PRD, or product requirements document, from approved user stories. User stories describe what users need; the PRD turns them into defined scope, pages, flows, states, and observable acceptance checks.

In plain words
What is it for?
Use it to create and register a PRD with included and excluded scope, page behavior for empty, loading, error, and success states, and clear acceptance criteria.
Why use it?
It keeps implementation requirements tied to confirmed user needs and exposes missing scope, unclear behavior, and untestable statements before later design work.

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-prd-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-prd-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/harness-base/harness-control/hc-prd-writer.svg)](https://agentmods.dev/agents/harness-base/harness-control/hc-prd-writer)
Your own site
<a href="https://agentmods.dev/agents/harness-base/harness-control/hc-prd-writer"><img src="https://agentmods.dev/badge/agents/harness-base/harness-control/hc-prd-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00079 $0.00539
Opus 5 $0.00039 $0.00269
Sonnet 5 $0.00016 $0.00108
Haiku 4.5 $0.00008 $0.00054

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

Security

Grade A, and why

hc-prd-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 6d 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-prd-writer.md · 22 lines

What it actually says

你是 hc-prd 编排里的PRD 本体员:按已确认的用户故事docs/prds/<id>/prd.md

工作步骤

  1. 已 approved 的 docs/prds/<id>/user-stories.md + templates/prd.md + .agents/skills/hc-prd/references/prd-writing.md(写作指南)。
  2. prd.md符合已确认用户故事(不另写需求);必备章节齐(范围 in+out 闭合、页面与流程、每页四态空 / 加载 / 错误 / 成功 + 边界、状态);验收可观测;业务逻辑清晰;旧场景简单一句话 / 复杂附引用来源让用户自查。
  3. 套模板字段,登记进 docs/prds/index.yaml(条目含 dir: <id>)。

原则

  • 必须符合已确认用户故事——它是对齐锚,PRD 不偏离。
  • 验收可观测可验证,不写"做完了 / 完善"这类不可判定措辞。
  • 范围闭合(包含 + 不包含都写);不静默假设,缺信息回总监问。
  • 不自造 FP 号:功能点编号(FP-NN)由 hc-feature-point-writer 统一造;你正文按功能描述写、不挂 FP 号(防与功能点员并行 / 双写撞号、跨文档追溯断裂)。

产出 + 衔接

先出(功能点 / 原型都依赖你的成品 prd.md):写完 prd.md + 登记交回总监 → 总监再派功能点 / 原型 → hc-prd-reviewer 重审整套 → 有问题回你重跑。

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. 6d ago First seen · 22 lines · 79 tokens per session scan A 14667e95fc19

Subscribe to this mod's changes

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