Official agent skill

Architecture Docs Writer

by prisma in prisma/orm

Guides writing and rewriting architecture subsystem docs, ADRs and reference pages so they make sense to a developer with no prior project context.

OfficialApache-2.0Auto-check passedDevelopment

Install Architecture Docs Writer

skills CLI
$ npx skills add prisma/orm --skill write-architecture-docs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install prisma/orm write-architecture-docs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/prisma/orm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills-contrib/write-architecture-docs .claude/skills/write-architecture-docs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
write-architecture-docs
GitHub stars
48k
Token cost
~1.6k tokens
SKILL.md length
894 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
Apache-2.0

At a glance

Guides writing and rewriting architecture subsystem docs, ADRs and reference pages so they make sense to a developer with no prior project context.

  • Works in 2 steps: Read at least two sibling docs in the… → Read the ADRs you'll reference. Don't…
  • Writing a new subsystem doc under the architecture docs folder
  • SKILL.md covers Before writing, Voice and framing, Structure and Anti-patterns, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Before writing, the agent reads at least two sibling docs in the same directory to match their voice, structure and level of detail. It also reads the ADRs it will cite closely enough to summarize each key idea inline, so the reader does not have to follow a link to understand the page.

The voice rule is to describe the system as it is, not the project that produced it. That means no mentions of workstreams, proofs of concept, sprints or milestones, no comparisons with other products or earlier versions, and non-goals written as architectural boundaries rather than unfinished work. Docs explain why before what, spread ideas over several sentences instead of compressing them, and lean on concrete examples such as code snippets or JSON fragments.

When your agent uses it

  • Writing a new subsystem doc under the architecture docs folder
  • Rewriting a doc that reads like a project retrospective
  • Reviewing architecture docs for transient project language
  • Documenting a system's design for a developer who is new to the team

Example prompts

  • “Write the subsystem doc for the query execution pipeline, matching the other docs in that folder.”
  • “Rewrite this architecture page so it drops the PoC wording and states facts about the system.”
  • “Summarize the key idea of the cache invalidation ADR inside the caching doc so readers do not need to click through.”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Read at least two sibling docs in the same directory (e.g., other subsystem docs under docs/architecture docs/subsystems/). Calibrate your…
  2. Read the ADRs you'll reference. Don't just link to them — understand them well enough to summarize the key idea inline, so the reader…

What it can do on your machine

Read from SKILL.md and the folder at commit 095af7a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Architecture Docs Writer loads about 1.6k tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 894 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from prisma/orm at commit 095af7a, republished under its Apache-2.0 licence (© prisma). 894 words, ~1,581 tokens.

Download SKILL.mdSave it as .claude/skills/write-architecture-docs/SKILL.md (or your agent's skills folder).
name
write-architecture-docs
description
Write or rewrite architecture subsystem docs, ADRs, and reference material for the engineering team. Use when creating, updating, or reviewing docs under docs/architecture docs/, or when the user asks you to write documentation that describes the system's design.

Writing Architecture Documentation

Architecture docs in this repo serve two audiences: team members working on the system (need precise reference material) and team members seeking context (need an accessible narrative). The doc must work for both without requiring prior project context.

Before writing

  1. Read at least two sibling docs in the same directory (e.g., other subsystem docs under docs/architecture docs/subsystems/). Calibrate your voice, structure, and level of detail to match them.
  2. Read the ADRs you'll reference. Don't just link to them — understand them well enough to summarize the key idea inline, so the reader doesn't have to follow the link to understand the doc.

Voice and framing

Write about the system, not the project. These docs describe the intended system as far as we know it. They are not project retrospectives, sprint summaries, or PoC reports.

  • State facts: "The execution pipeline generalizes across families" — not "The PoC validated that the execution pipeline generalizes"
  • No transient project references: avoid "workstream", "PoC", "sprint", "milestone", "being validated", "current effort"
  • No product comparisons: don't reference other products or prior versions. Describe what the system is, not what it improves upon.
  • Non-goals are architectural boundaries, not "not yet done" items. No (current) qualifiers.

Write for a developer without prior context. Imagine someone joining the team and reading this doc as their first exposure to this part of the system.

  • Explain why before what. Before introducing a concept like model ownership, explain the problem it solves: "In SQL, related data lives in separate tables and is joined at query time. In MongoDB, the idiomatic pattern is to store related data inside the parent document."
  • Let ideas breathe. Don't compress three concepts into one sentence. If a sentence requires the reader to already understand three things to parse it, break it apart.
  • Use concrete examples — code snippets, JSON fragments, "a developer writing X gets Y under the hood." Abstract descriptions are hard to pin understanding to.

Structure

Lead with a grounding example. Put a concrete, complete code snippet, JSON example, or diagram near the top of the document — right after the overview — so the reader has a visual reference to pin their understanding to as they read. Abstract explanations are much easier to follow when the reader can refer back to something tangible. Annotate the example with brief callouts that preview the key concepts ("notice that storage: {} means this model is embedded"). The detailed sections that follow can then elaborate on what the reader has already seen.

Articulate design principles early. If the subsystem's design is shaped by a set of principles or invariants, state them explicitly after the grounding example and before the detailed sections. This gives the reader the reasoning framework they need to understand why specific decisions were made. Each principle should be one or two sentences of plain language, not jargon. Later sections can reference the principles by number (e.g., "see design principle #5") to connect specific decisions back to their rationale.

Narrative flow. Guide the reader from one concept to the next. Don't list a set of problems and then separately list a set of solutions — pair each problem with its solution so the reader builds understanding incrementally.

Overview section. Open with plain language explaining what this part of the system is and why it exists. The first sentence should be immediately understandable by any engineer. Save technical details for later sections.

Show full SKILL.md (332 more words)Show less

Good: "Prisma 8 supports multiple database families. SQL was the first; MongoDB is the second." Bad: "MongoDB is a database family in Prisma 8. The contract, ORM, execution pipeline, and plugin framework all generalize across fundamentally different data models — the same ContractBase domain structure, the same Collection chaining API, and the same plugin lifecycle work for both SQL and MongoDB."

Inline summaries with ADR links. When referencing an ADR, summarize the key idea in the text and link the ADR for depth. The doc should be understandable without following any links. The example below shows the link as it must appear in the subsystem doc you are writing, so its path is relative to that doc's location under docs/architecture docs/subsystems/.

Good: "An owned model declares owner: \"User\" — a domain fact about aggregate membership. Its data lives within the owner's storage. See ADR 177." Bad: "See ADR 177 for how embedding works."

References section. Organize by durability:

  1. Architecture decisions (ADRs) — first
  2. Durable reference material — second
  3. Historical context (planning docs) — last, labeled as such

Anti-patterns

  • Compressed summaries. A paragraph that reads like a bulleted list crammed into prose. If you're listing things, use a list.
  • Jargon without introduction. Don't use terms like "aggregate root", "discriminator narrowing", or "STI" without explaining what they mean in context.
  • ADR-as-explanation. Pointing to an ADR instead of explaining the concept. ADR links are for depth; the doc must stand alone.
  • Project-process narrative. "We built X, then discovered Y, which led to Z." Describe what the system is, not how we arrived at it.
  • Terse overview + detailed body. The overview should be the most accessible part of the doc, not the most compressed.

Quality check

Before finishing, re-read the doc as a developer who has never seen it before. For each paragraph, ask:

  • Can I understand this without context from outside this doc?
  • Does it explain why before what?
  • Would a concrete example help here?
  • Am I stating a fact about the system, or narrating a project?

© prisma, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills-contrib/write-architecture-docs of prisma/orm.

Open the folder on GitHubat commit 095af7a

Compare with similar skills

Architecture Docs Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Architecture Docs Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Architecture Docs Writer this skillprisma/orm48k—~1.6kAutomated safety check: PassApache-2.0
Control Manifest CreatorDonchitos/Claude-Code-Game-Studios26k—~3.9kAutomated safety check: PassMIT
Dark Architecture Diagram BuilderCocoon-AI/architecture-diagram-generator7.4k1 repos~2.1kAutomated safety check: PassMIT
Deepwiki Rssopaco/deepwiki-rs3.1k—~748Automated safety check: PassMIT
Mermaid Diagramsjjmartres/opencode1336 repos~1.9kAutomated safety check: PassMIT
Create Vibe Featuremistralai/mistral-vibe5.1k—~1.2kAutomated safety check: PassApache-2.0

Similar skills

  • Control Manifest Creator

    Donchitos/Claude-Code-Game-Studios

    Builds a flat must-do and never-do rules sheet per layer from Accepted architecture decision records and writes it to docs/architecture/control-manifest.md.

    26k GitHub stars~3.9k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Dark Architecture Diagram Builder

    Cocoon-AI/architecture-diagram-generator

    Creates dark-themed system, cloud, security and network architecture diagrams as self-contained HTML files with inline SVG and CSS.

    7.4k GitHub starsUsed in 1 repo~2.1k tokens
    DevelopmentAuto-check passed
  • Deepwiki Rs

    sopaco/deepwiki-rs

    AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.

    3.1k GitHub stars~748 tokensUpdated 23 days ago
    DevelopmentAuto-check passed
  • Mermaid Diagrams

    jjmartres/opencode

    Helps an agent pick the right Mermaid diagram type and write the syntax for class, sequence, flow, ER, C4, state and other software diagrams.

    133 GitHub starsUsed in 6 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Create Vibe Feature

    mistralai/mistral-vibe

    Official

    Guides feature work in the Mistral Vibe Python CLI so each change lands in the right module and matches the project's architecture decision records.

    5.1k GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Docs

    brickbots/PiFinder

    Author and edit PiFinder's user-facing documentation in the project's house style.

    250 GitHub stars~6.2k tokensUpdated today
    DevelopmentAuto-check passed

More from prisma/orm

All 20 skills in this repo
  • Official

    Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.

    48k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Official

    Fetches a pull request's canonical review state as JSON, validates it, and renders markdown, a text summary and triage target files from it using bundled scripts.

    48k GitHub stars~767 tokensUpdated today
    Auto-check passed
  • Official

    Implements triaged pull request review actions, commits focused fixes, posts status replies on GitHub and resolves the threads.

    48k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Official

    Runs the triage step of the review-framework loop: reads fetched PR review state, builds `review-actions.json`, validates it and renders `review-actions.md`.

    48k GitHub stars~995 tokensUpdated today
    Auto-check passed
  • Official

    Replaces a plain TypeScript union plus switch statements with frozen subclasses and a visitor interface when several places dispatch on the same variants.

    48k GitHub stars~830 tokensUpdated today
    Auto-check passed
  • Official

    Guides an outside contributor through opening a prisma/orm pull request from a fork that follows CONTRIBUTING.md and passes review on the first round.

    48k GitHub stars~2.3k tokensUpdated today
    Auto-check passed

Categories

Questions about Architecture Docs Writer

What does Architecture Docs Writer do?

Guides writing and rewriting architecture subsystem docs, ADRs and reference pages so they make sense to a developer with no prior project context. Before writing, the agent reads at least two sibling docs in the same directory to match their voice, structure and level of detail. It also reads the ADRs it will cite closely enough to summarize each key idea inline, so the reader does not have to follow a link to understand the page.

When should I use Architecture Docs Writer?

Architecture Docs Writer fits situations like: writing a new subsystem doc under the architecture docs folder; rewriting a doc that reads like a project retrospective; reviewing architecture docs for transient project language; documenting a system's design for a developer who is new to the team.

How do I install Architecture Docs Writer in Claude Code?

Run `npx skills add prisma/orm --skill write-architecture-docs -a claude-code`. Or copy the skill folder (skills-contrib/write-architecture-docs in prisma/orm) into .claude/skills/write-architecture-docs in your project. Claude Code loads it when a task matches its description.

How do I install Architecture Docs Writer in Codex?

Run `npx skills add prisma/orm --skill write-architecture-docs -a codex`. Or copy the skill folder (skills-contrib/write-architecture-docs in prisma/orm) into .agents/skills/write-architecture-docs in your project. Codex loads it when a task matches its description.

Can I use Architecture Docs Writer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add prisma/orm --skill write-architecture-docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-architecture-docs, .gemini/skills/write-architecture-docs, .github/skills/write-architecture-docs and .opencode/skills/write-architecture-docs in your project.

What does Architecture Docs Writer need to run?

SKILL.md names no scripts, command-line tools or credentials: Architecture Docs Writer is instructions for the agent only.

Does Architecture Docs Writer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Architecture Docs Writer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Architecture Docs Writer use?

Architecture Docs Writer is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Architecture Docs Writer use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Architecture Docs Writer?

Skills that share tags, products or a category with Architecture Docs Writer: Control Manifest Creator (Donchitos/Claude-Code-Game-Studios, 26k stars), Dark Architecture Diagram Builder (Cocoon-AI/architecture-diagram-generator, 7.4k stars), Deepwiki Rs (sopaco/deepwiki-rs, 3.1k stars) and Mermaid Diagrams (jjmartres/opencode, 133 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Architecture Docs Writer?

prisma (a GitHub organization, an official publisher) maintains it in prisma/orm, which has 47,701 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 6, 2026.

Source: prisma/orm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.