Agent Native

write-architecture-docs

This skill guides the agent to write architecture documentation, ADRs, and subsystem reference material for engineering teams.

by PrismaOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (prisma)

Agents
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
License
Apache-2.0 (permissive)
Pin
55458c4pinned Oct 9, 2026
Context cost
about 1,500 tokenswhen the skill loads
GitHub stars
415on prisma/prisma-next
Scripts
None found

What it does

“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.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill guides the agent to write architecture documentation, ADRs, and subsystem reference material for engineering teams. The agent learns to structure docs for both precise reference and narrative accessibility, emphasizing concrete examples, design principles, and ADR integration without project jargon or marketing language.

When to use it

  • Creating or updating architecture subsystem documentation
  • Writing architecture decision records (ADRs) for the team
  • Documenting system design for developers new to the codebase
  • Reviewing and improving existing architecture reference material

When not to

  • Writing project retrospectives, sprint summaries, or PoC reports
  • Creating user-facing product documentation or marketing content
  • When rapid drafting is prioritized over foundational clarity and structure

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add prisma/prisma-next --skill write-architecture-docs

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install prisma/prisma-next write-architecture-docs@55458c441d2cf452028c22eed21370447720840a

Installs the commit we checked (55458c4).

Copy by hand

Download the folder at 55458c4 and put it in .claude/skills/write-architecture-docs for Claude Code and in .agents/skills/write-architecture-docs for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at 55458c4

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "write-architecture-docs" by Prisma.

Source, pinned to commit 55458c441d2cf452028c22eed21370447720840a:
https://github.com/prisma/prisma-next/tree/55458c441d2cf452028c22eed21370447720840a/skills-contrib/write-architecture-docs

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/write-architecture-docs/ for Claude Code and .agents/skills/write-architecture-docs/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/prisma/write-architecture-docs

SKILL.md at the pin

---
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](#design-principles)") 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.

Good: "Prisma Next supports multiple database families. SQL was the first; MongoDB is the second."
Bad: "MongoDB is a database family in Prisma Next. 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.

Good: "An owned model declares `owner: \"User\"` — a domain fact about aggregate membership. Its data lives within the owner's storage. See [ADR 177](docs/architecture%20docs/adrs/ADR%20177%20-%20Ownership%20replaces%20relation%20strategy.md)."
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?

From prisma/prisma-next at 55458c4, shown as plain text under its license: Apache-2.0 (permissive). The license text is in LICENSE.

View SKILL.md on GitHub at 55458c4

Files

1 file, 6.2 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at 55458c4
All 44 skills from Prisma

More from Prisma

  • prisma-8

    This skill helps agents work with Prisma 8, a contract-first data layer for TypeScript projects.

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 3.5K tokens · pinned 6 days ago

  • adr-review

    This skill reviews Architecture Decision Records (ADRs) from a fresh perspective, identifying clarity and structural issues, then rewrites them for future…

    Claude Code, Codex, Cursor +4 · about 590 tokens · pinned 6 days ago

  • ast-visitor-pattern

    This skill teaches agents to use the visitor pattern with frozen subclasses for discriminated unions that need multiple dispatch sites.

    Claude Code, Codex, Cursor +4 · about 710 tokens · pinned 6 days ago

  • bumping-biome

    Updates the biome code formatter package to a specified version using pnpm, renames configuration files to biome.jsonc format, updates schema references, and…

    Claude Code, Codex, Cursor +4 · about 290 tokens · pinned 6 days ago

  • contrib-pr

    This skill guides external contributors through opening a pull request against prisma-next by following the project's contribution guidelines.

    Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago

  • create-pr

    This skill creates a GitHub pull request with a Linear-ticket-prefixed title and a decision-led narrative description for the prisma-next repository.

    Claude Code, Codex, Cursor +4 · about 4.3K tokens · pinned 6 days ago

All Docs and writing skills
  • n8n-docs-assistant

    This skill answers questions about n8n configuration, setup, credentials, nodes, and troubleshooting by retrieving information from current n8n documentation.

    by n8nOfficial publisher

    Claude Code, Codex, Cursor +3 · about 450 tokens · pinned 6 days ago

  • algodocs-automation

    This skill automates Algodocs document processing tasks through Composio's toolkit via the Rube MCP server.

    by ComposioOfficial publisher

    Claude Code, Codex, Cursor +3 · about 690 tokens · pinned 6 days ago

  • remotion-docs

    This skill enables agents to search and retrieve Remotion documentation via the Algolia API and fetch pages as Markdown.

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 320 tokens · pinned 6 days ago

  • remotion-docs

    This skill searches the Remotion documentation using the Algolia API and retrieves documentation pages as Markdown.

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 320 tokens · pinned 6 days ago

  • receipts

    This skill generates a personal Claude Code usage report from local session transcripts stored in ~/.claude/projects, mining activity across projects without…

    by AnthropicOfficial publisher

    Contains scripts

    Claude Code · about 4.1K tokens · pinned 6 days ago

  • solo

    This skill enables an agent to work through a single difficult mathematics problem independently within one session.

    by AnthropicOfficial publisher

    Claude Code · about 1.4K tokens · pinned 6 days ago

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use