lld

lld is a command for Claude Code from infraspecdev/tesseract. It costs 43 tokens per session (1,449 once invoked), scanned A, original, MIT.

A command that creates or updates a low-level design (LLD), a detailed technical document for one software component, using a backend or infrastructure template.

In plain words
What is it for?
Use it to document a named component or find component directories that do not yet have an LLD.
Why use it?
It gives developers a shared description of how a component should be built and keeps the design in a predictable documentation location.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shield plugin — 36 skills, 17 commands, 22 agents shipped together

Good fit Use it to document a named component or find component directories that do not yet have an LLD.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/infraspecdev/tesseract/lld
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/infraspecdev/tesseract

Made for: Claude Code.

Or install shield, the plugin that ships this one along with the rest of its 36 skills, 17 commands, 22 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/infraspecdev/tesseract/lld"><img src="https://agentmods.dev/badge/commands/infraspecdev/tesseract/lld.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,449 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.00043 $0.01449
Opus 5.5 $0.00017 $0.00580
Sonnet 5.5 $0.00009 $0.00290
Haiku 4.5 $0.00004 $0.00145

Measured 1mo ago against content hash 447b54bdede0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

shield/commands/lld.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LLD

Generate or update a component-scoped Low-Level Design document.

Usage

/lld [<component>] [--type backend|infra]

  • <component> — kebab-case component identifier (matches the file docs/lld/<component>.md). When omitted, bare /lld scans the repo for component-shaped directories and presents undocumented candidates.
  • --type backend|infra — selects the LLD template variant. When omitted, the type is inferred from repo markers at the component's directory path (pyproject.toml / package.json / pom.xml / go.mod → backend; *.tf / Chart.yaml / kustomization.yaml / atmos.yaml → infra). Ambiguous detection (both backend and infra markers in the component dir) prompts the user.

Paths

This command writes the following registry-tracked path:

Registry key Resolved path
lld_canonical_md docs/lld/<component>.md

Path A (this command) always writes to the canonical path. Path B (/plan TRD-driven authoring, M2 plan) drafts to docs/shield/<feature>/lld-<component>.md and /implement promotes the draft to the canonical path at milestone close (M2 plan, step 5h).

Output Paths — MANDATORY

Find the project root by locating .shield.json. The canonical LLD path is always <project_root>/docs/lld/<component>.md — independent of .shield.json output_dir (which controls docs/shield/ only, not docs/lld/).

Write via the lld-docs skill's atomic-write contract: <target>.tmp → rename to <target>. On failure, remove .tmp and surface error.

Do NOT write to docs/shield/<feature>/. Do NOT write to any other location. Do NOT silently clobber an existing populated docs/lld/<component>.md — see "Re-run behavior" below.

Behavior

  1. If <component> is provided, use it (must match ^[a-z0-9-]+$).
  2. If <component> is omitted, scan the project root for component-shaped directories:
    • top-level dirs with pyproject.toml (Python packages)
    • top-level dirs with package.json (Node packages)
    • top-level dirs with pom.xml or build.gradle* (JVM modules)
    • top-level dirs with go.mod (Go modules)
    • top-level dirs with *.tf files (terraform modules)
    • dirs with Chart.yaml (helm charts)
    • dirs with kustomization.yaml (kustomize bases)

Read the full file on GitHub · 136 lines

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. 1mo ago First seen · 136 lines · 43 tokens per session scan A 447b54bdede0

Subscribe to this mod's changes

lld is a command published in the GitHub repository infraspecdev/tesseract (5 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 1,449 once invoked, about $0.0002 per session on Opus 5.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-09-03.