hld-writer

hld-writer is a command for Claude Code from TestAny-io/testany-agent-skills. It costs 11 tokens per session (421 once invoked), scanned A, original, MIT.

A writing workflow for a high-level design (HLD), a document describing a system's architecture, major technical decisions, and risks.

In plain words
What is it for?
Use it to design new user-facing or backend features, integrations, internal refactors, and performance or security work from a PRD and API contract.
Why use it?
It connects product requirements to architecture and keeps technical plans aligned with the agreed API definitions.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the testany-eng plugin — 21 skills, 21 commands shipped together

Good fit Use it to design new user-facing or backend features, integrations, internal refactors, and performance or security work from a PRD and API contract.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/testany-io/testany-agent-skills/hld-writer
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.

Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills

Made for: Claude Code.

Or install testany-eng, the plugin that ships this one along with the rest of its 21 skills, 21 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/hld-writer/github.svg)](https://agentmods.dev/commands/testany-io/testany-agent-skills/hld-writer)
Your own site
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/hld-writer"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/hld-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 hld-writer

Your own site · 80×15
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/hld-writer"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/hld-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 421 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.00011 $0.00421
Opus 5 $0.00005 $0.00211
Sonnet 5 $0.00002 $0.00084
Haiku 4.5 $0.00001 $0.00042

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

Security

Grade A, and why

hld-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 11d 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.

plugins/testany-eng/commands/hld-writer.md · 47 lines

What it actually says

HLD Writer

启动 HLD 撰写流程。基于 PRD 和 API Contract,做出架构级技术决策。

使用方式

提供 PRD 和 API Contract 文件路径:

$ARGUMENTS

为什么需要 API Contract?

API Contract(来自 api-writer)是接口定义的唯一事实源

  • HLD 直接引用契约中的接口,不重新设计
  • 确保前后端/跨团队对接口理解一致
  • 避免 HLD 与契约产生漂移

支持的 HLD 类型

  1. 新功能(有 UI) - 涉及前后端的新功能
  2. 新功能(无 UI / 后端) - 纯后端服务
  3. 第三方集成 - 接入外部服务
  4. 功能重构 - 内部架构重构
  5. 性能/安全优化 - 非功能性改进

HLD 聚焦内容

  • 高成本决策:技术选型、架构模式
  • 接口引用:引用 API Contract,不重新定义
  • 风险决策:安全、性能、兼容性
  • 复用决策:复用 vs 新建

工作流程

  1. 上下文收集:读取 PRD + API Contract,扫描技术文档
  2. 需求映射:PRD 需求 → HLD 章节
  3. 结构规划:选择合适的模板
  4. 内容撰写:技术决策 + 理由(接口引用契约)
  5. 强制审查:PRD 覆盖率、契约一致性检查

请提供 PRD 和 API Contract 路径开始撰写。

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. 11d ago First seen · 47 lines · 11 tokens per session scan A 0e9b6f93cb14

Subscribe to this mod's changes

hld-writer is a command published in the GitHub repository TestAny-io/testany-agent-skills (82 stars, last pushed 3d ago), licensed MIT. It adds 11 tokens to every session and 421 once invoked, about $0.0001 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.