design-documents

design-documents is a skill for Claude Code from Vimalk0703/shipworthy. It costs 62 tokens per session (3,108 once invoked), scanned A, original, MIT.

A structured template for writing an engineering design document, including goals, alternatives, data and API changes, security, rollout, and rollback plans.

In plain words
What is it for?
It is for planning large code changes, new services, database changes, dependencies, and major architecture decisions.
Why use it?
It helps teams think through risks and long-term effects before making significant technical changes.

Skill for Claude Code

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

Part of the shipworthy plugin — 66 skills, 7 commands, 3 hooks shipped together

Good fit It is for planning large code changes, new services, database changes, dependencies, and major architecture decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vimalk0703/shipworthy/design-documents
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 Vimalk0703/shipworthy --skill design-documents
Clone the repo
git clone --depth 1 https://github.com/Vimalk0703/shipworthy

Made for: Claude Code.

Or install shipworthy, the plugin that ships this one along with the rest of its 66 skills, 7 commands, 3 hooks.

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 design-documents

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vimalk0703/shipworthy/design-documents"><img src="https://agentmods.dev/badge/skills/vimalk0703/shipworthy/design-documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,108 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.00062 $0.03108
Opus 5.5 $0.00025 $0.01243
Sonnet 5.5 $0.00012 $0.00622
Haiku 4.5 $0.00006 $0.00311

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

Security

Grade A, and why

design-documents 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.

skills/planning/design-documents/SKILL.md · 409 lines

How it starts

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

Design Documents

Core Principle

Design documents are a tool for thinking, not just documentation. Writing a design doc forces you to think through edge cases, alternatives, and second-order effects before writing code. The primary audience is your future self and your teammates who will maintain this system.


When to Write a Design Doc

A design doc is required when any of these conditions are met:

Trigger Why
Change exceeds 500 lines of code Large changes need upfront design to avoid expensive rework.
Introduces a new service or major module New services create operational burden that must be justified.
Adds a new database table or significant schema change Schema changes are hard to undo and affect many consumers.
Adopts a new external dependency or third-party service External dependencies add risk, cost, and maintenance burden.
Changes API contracts in a breaking way Breaking API changes affect consumers and require migration plans.
Makes a significant architectural decision affecting multiple teams Cross-cutting decisions need visibility and buy-in.
Introduces a new data flow between services Data flows create coupling and consistency challenges.

When NOT to write a design doc: Bug fixes, refactoring within a module (< 500 LOC), adding a feature that follows an established pattern, updating dependencies, or routine operational work. For these, a thorough PR description is sufficient.


Design Document Template

# Design: [Feature/System Name]

## Metadata

- **Author:** [Name]
- **Status:** Draft | In Review | Approved | Rejected | Superseded
- **Date:** YYYY-MM-DD
- **Reviewers:** [Names -- include at least one person from each affected team]
- **Approvers:** [Names -- who must approve before implementation begins]
- **Last Updated:** YYYY-MM-DD

---

## Context & Problem Statement

[What problem are we solving? Why is it a problem? Why now?
Include data that demonstrates the problem:
- Metrics showing the current pain (error rates, latency, support tickets).
- Business context (customer complaints, revenue impact, competitive pressure).
- What happens if we do nothing?

Be specific. "The system is slow" is not a problem statement.
"The product search API has a p99 latency of 4.2 seconds, causing a 15% cart
abandonment rate on mobile devices" is a problem statement.]

---

## Goals

[What must this solution achieve? Be specific and measurable.]

1. Reduce product search p99 latency to < 500ms.
2. Support 10,000 concurrent search queries.
3. Maintain backward compatibility with the existing search API.

---

## Non-Goals

[What is explicitly out of scope? This prevents scope creep and sets expectations.
Non-goals are features or improvements that are related but will NOT be addressed
by this design.]

1. Redesigning the search UI (separate project).
2. Supporting fuzzy/typo-tolerant search (future iteration).
3. Real-time index updates (batch updates within 5 minutes are acceptable).

---

## Proposed Solution

[Detailed description of what you will build. Include:]

### Architecture Overview

[Diagram showing components, data flows, and interactions.
Use ASCII diagrams or reference an attached image.]

[Client] --> [API Gateway] --> [Search Service] --> [Elasticsearch] | [Product Service] --> [PostgreSQL]


### How It Works

[Step-by-step description of the solution. Be specific enough that another
engineer could implement it from this description.]

1. [Step 1: ...]
2. [Step 2: ...]
3. [Step 3: ...]

### Key Design Decisions

[For each significant choice, explain what you chose and why.]

- **Why Elasticsearch over Algolia:** Self-hosted gives us control over ranking
  algorithms and avoids per-query pricing at our scale (2M queries/day).
- **Why batch indexing over real-time:** Simplifies consistency model and reduces
  infrastructure complexity. 5-minute delay is acceptable per product team.

---

## Alternatives Considered

[At least 2 alternatives. For each: describe the approach, list pros and cons,
and explain why it was rejected. This demonstrates that the proposed solution
is not the first idea that came to mind.]

### Alternative A: [Name]

**Description:** [What this approach would look like.]

**Pros:**
- [Pro 1]
- [Pro 2]

**Cons:**
- [Con 1]
- [Con 2]

**Why rejected:** [Specific reason this approach was not chosen.]

### Alternative B: [Name]

**Description:** [What this approach would look like.]

**Pros:**
- [Pro 1]
- [Pro 2]

**Cons:**
- [Con 1]
- [Con 2]

**Why rejected:** [Specific reason this approach was not chosen.]

---

## Data Model Changes

[New tables, columns, indexes. Include the actual schema.
For existing tables, show the before and after.]

### New Tables

```sql
CREATE TABLE search_index_jobs (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    status VARCHAR(20) NOT NULL DEFAULT 'pending',  -- pending, running, completed, failed
    started_at TIMESTAMP,
    completed_at TIMESTAMP,
    records_processed INTEGER DEFAULT 0,
    error_message TEXT,
    created_at TIMESTAMP NOT NULL DEFAULT NOW()
);

Read the full file on GitHub · 409 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 · 409 lines · 62 tokens per session scan A 8cfe7cef4926

Subscribe to this mod's changes

design-documents is a skill published in the GitHub repository Vimalk0703/shipworthy (6 stars, last pushed 6mo ago), licensed MIT. It adds 62 tokens to every session and 3,108 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.

Related

Other skills, from other repositories

hedgehog-planning-intake

Use on any core for first-run planning intake — Phase 0 runs the vendored BMAD-METHOD planning shelf, shared by every core, and Phase 1 (mining 04-prd.md into intent records plus the Add-ons/sync-and-remote-entities decision) is full-stack-app's and pwa-app's shared procedure — identical mechanics, a different…

skyf0xx/hedgehog · 0 tokens

bmad-product-brief

Create, update, or validate a product brief. Use when the user wants help producing, editing, or validating a brief.

skyf0xx/hedgehog · 30 tokens

hedgehog

Use when the user writes the word "Hedgehog" anywhere in a request, or has agreed to install the Hedgehog build discipline in a project that does not have it yet. Hedgehog builds prose as well as code — articles, essays, blog posts, tweets, threads, newsletters, announcements, and marketing or product copy of any…

skyf0xx/hedgehog · 0 tokens

conventional-commits

Use when uncommitted changes need to be split into atomic, conventional commits ordered for review. Triggers on "commit this", "make commits", "clean up commits", "commit the changes". In Hedgehog, each Loop step is already meant to be its own commit — this skill matters most when a Correction Protocol fast-forward…

skyf0xx/hedgehog · 88 tokens

hedgehog-contributing

Use when the user wants to contribute a fix or roadmap item back to the Hedgehog project itself (skyf0xx/hedgehog) rather than their own project. Triggers on "let's fix that in Hedgehog", "I want to contribute", "let's pick up a roadmap item", or when tweaker offers this at the end of a build and the user says yes.…

skyf0xx/hedgehog · 118 tokens

pr-writing

Use whenever writing a PR title/description, a commit message body, a code review comment, or an issue — in Hedgehog's own repo or any consuming project. Triggers on "open a PR", "write the PR description", "comment on this PR", "file an issue". Covers writing style (terse, info-dense, Simplified Technical English)…

skyf0xx/hedgehog · 107 tokens