lld-writer

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

A low-level design document describes how a system will be built in implementable detail. This command creates one from product requirements, high-level architecture, and API contracts.

In plain words
What is it for?
Use it to define package structure, function and interface signatures, important workflows, error handling, transaction and concurrency rules, and testing plans.
Why use it?
It fills the gap between broad architecture and writing code by spelling out modules, interfaces, data flows, errors, concurrency, and tests.

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 define package structure, function and interface signatures, important workflows, error handling, transaction and concurrency rules, and testing plans.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/testany-io/testany-agent-skills/lld-writer"><img src="https://agentmods.dev/badge/commands/testany-io/testany-agent-skills/lld-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 563 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.00563
Opus 5 $0.00005 $0.00282
Sonnet 5 $0.00002 $0.00113
Haiku 4.5 $0.00001 $0.00056

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

Security

Grade A, and why

lld-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.

plugins/testany-eng/commands/lld-writer.md · 62 lines

What it actually says

LLD Writer

启动 LLD 撰写流程。基于 PRD/HLD/API Contract,将架构决策细化为可实现的设计细节。

使用方式

提供上游文档路径:

$ARGUMENTS

LLD 在研发流程中的位置

PRD → API Contract → HLD → Guardrails → LLD → 代码实现

LLD 承接 HLD 的架构决策,输出可直接指导编码的设计细节。

模块化设计

LLD 采用模块化组合方式,根据功能需求选择模块:

  • Core(必选):模块结构、接口签名、流程、错误处理、测试设计
  • Add-ons(按需):API Contract、Storage、Async/Event、Infra、Observability 等
  • Profile(快速组合):saas-serverless、web-app、data-pipeline 等预设组合
  • Guardrails(约束):项目级工程约束,优先级最高

LLD 聚焦内容

  • 模块/包结构:目录结构、依赖关系
  • 接口与函数签名:核心类/接口/方法定义
  • 关键流程/伪代码:Happy path + 异常分支
  • 错误处理:错误分类、处理策略
  • 并发/事务/幂等:并发模型、幂等设计
  • 测试设计:单测、集成测试、Mock 策略

LLD 不包含

  • 完整代码实现(属于代码阶段)
  • 系统级架构决策(属于 HLD)
  • 与 Contract 冲突的接口定义

工作流程

  1. 基线收集:读取 PRD/HLD/Contract/Guardrails
  2. 模块选择:选择 Profile 和 Add-ons
  3. 文档组装:按模板生成 LLD + Manifest
  4. 一致性自检:覆盖率 100%、无冲突、Guardrails 全覆盖

必需产出

  • LLD 文档(Core + Add-ons)
  • LLD Manifest(模块选择与理由)
  • 追溯映射表(PRD/HLD/Contract → LLD)

请提供 PRD、HLD、API Contract 路径,若有 Guardrails 请一并提供。

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 · 62 lines · 11 tokens per session scan A 3e50f8123ff0

Subscribe to this mod's changes

lld-writer is a command published in the GitHub repository TestAny-io/testany-agent-skills (81 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 563 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.