ring:writing-trds

ring:writing-trds is a skill for Claude Code, Codex from LerianStudio/ring. It costs 150 tokens per session (3,667 once invoked), scanned A, original, Apache-2.0.

A Technical Requirements Document, or TRD, that describes a feature's architecture, component boundaries, data flow, integrations, failure cases, and source-code structure before specific technologies are chosen.

In plain words
What is it for?
Use it after product requirements are approved and before detailed API design or an implementation plan.
Why use it?
It makes the system design explicit early, helping the team find missing boundaries and failure handling before implementation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit Use it after product requirements are approved and before detailed API design or an implementation plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lerianstudio/ring/writing-trds
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.

Any agent
npx skills add LerianStudio/ring --skill writing-trds
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

Made for: Claude Code, Codex.

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 ring:writing-trds

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/writing-trds/github.svg)](https://agentmods.dev/skills/lerianstudio/ring/writing-trds)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/writing-trds"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/writing-trds/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 ring:writing-trds

Your own site · 80×15
<a href="https://agentmods.dev/skills/lerianstudio/ring/writing-trds"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/writing-trds.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,667 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00150 $0.03667
Opus 5 $0.00075 $0.01834
Sonnet 5 $0.00030 $0.00733
Haiku 4.5 $0.00015 $0.00367

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

Security

Grade A, and why

ring:writing-trds 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 5d 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.

pm-team/skills/writing-trds/SKILL.md · 255 lines

How it starts

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

TRD Creation — Architecture Before Implementation

When to use

  • PRD passed Gate 1
  • Feature Map passed Gate 2 (Large Track only)
  • About to design technical architecture

Skip when

  • PRD not validated → complete Gate 1 first
  • Architecture already documented → proceed to API Design (Large) or plan (Small)
  • Pure business requirement change → update PRD

Sequence

Runs before: ring:designing-api-contracts (Large Track) / ring:writing-plans (Small Track) Runs after: ring:mapping-feature-relationships (Large Track) / ring:writing-prds (Small Track)

The TRD designs the technical architecture of the system or feature: components and their boundaries, data flow between them, integration points, and failure modes — using technology-agnostic patterns before concrete technology choices.

Handling Missing Information

When specific details are not provided (tech stack, architecture, team size, deployment model, etc.):

  • Infer from project name, context, existing codebase patterns, and git history
  • Document assumptions explicitly in a ## Assumptions section at the top of the TRD
  • NEVER block execution to ask clarifying questions — assume and proceed
  • Flag assumptions that carry high risk for the reader to validate (mark as ⚠️ Assumption:)
  • The only valid exception: tech stack ambiguity in Step 0 when auto-detection fails and no codebase files exist to infer from

Step -1: Design Validation Check (UI Features Only, Conditional)

Read PRD and detect UI indicators (user stories with "see", "view", "click", "page", "screen", "button", "form"; features involving login, dashboard, settings, reports, notifications).

If feature has UI:

  • Check docs/pre-dev/{feature}/design-validation.md (produced by a standalone ring:validating-ux-completeness run, if one happened)
  • If present → honor its verdict: "DESIGN VALIDATED" proceeds; any other verdict means fix the listed design gaps before (or alongside) the TRD
  • If absent → proceed and add to ## Assumptions: ⚠️ UX risk: no design validation ran for this UI feature — consider a standalone ring:validating-ux-completeness pass

Read the full file on GitHub · 255 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. 5d ago First seen · 255 lines · 150 tokens per session scan A 410089efedee

Subscribe to this mod's changes

ring:writing-trds is a skill published in the GitHub repository LerianStudio/ring (211 stars, last pushed 19d ago), licensed Apache-2.0. It adds 150 tokens to every session and 3,667 once invoked, about $0.0007 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-09-03.

Related

Other skills, from other repositories

ds-backend

Backend architecture — API design, database schema, authentication, data pipelines. Use when designing or reviewing a backend, REST/GraphQL APIs, data models, auth flows, or ingest/ETL pipelines.

sungurerdim/dev-skills · 45 tokens

execution/backend-executor

Internal: Backend Executor. Implements API routes, services, business logic, auth. Read spec and segment. Write evidence on completion.

dynos-fit/dynos-work · 31 tokens

execution/integration-executor

Internal: Integration Executor. Wires components together, connects external APIs, handles plumbing. Write evidence on completion.

dynos-fit/dynos-work · 28 tokens

sdd-apply

Skill "sdd-apply" from Gentleman-Programming/gentle-ai, covering execution role, language domain contract, purpose, what you receive and execution and persistence contract.

Gentleman-Programming/gentle-ai · 0 tokens

memstack-security-api-audit

Use this skill when the user says 'audit API', 'check API security', 'API routes security', 'endpoint audit', 'check my routes', or needs to verify API route protection. Reviews API endpoints for authentication, authorization, and input validation gaps. Do NOT use for frontend security headers or dependency scanning.

cwinvestments/memstack · 69 tokens

memstack-automation-api-integration

Use this skill when the user says 'API integration', 'connect APIs', 'sync data', 'data mapping', 'rate limiting', or needs system-to-system connectors with authentication, rate limit handling, and error recovery. Generates API integration code with authentication (OAuth, API key, JWT), request/response mapping, rate…

cwinvestments/memstack · 98 tokens