Skip to content
Back to skills

Write Internals Doc

ASecurity

Write or tighten an architecture/internals page that records decisions, cross-module constraints and traps — only what a maintainer would otherwise get wrong. Use when a change leaves behind a reason that is not visible in the code, when an internals or traps page is edited, or when a doc has grown into a file catalog. Not for user guides, runbooks, specs or plans.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agents

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add mxrsv/agents-skills --skill write-internals-doc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Internals Doc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Internals Doc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mxrsv-write-internals-doc/badge)](https://www.skillsdirectory.com/skills/mxrsv-write-internals-doc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-internals-doc
description: Write or tighten an architecture/internals page that records decisions, cross-module constraints and traps — only what a maintainer would otherwise get wrong. Use when a change leaves behind a reason that is not visible in the code, when an internals or traps page is edited, or when a doc has grown into a file catalog. Not for user guides, runbooks, specs or plans.
---

# write-internals-doc — decisions and traps, not a tour

An internals page earns its place by preventing a mistake. If a reader could learn it by opening
the file, it does not belong.

## 1. The gate question

Before adding a paragraph: **what would a maintainer get wrong without it?** No concrete answer,
no paragraph. Write the answer down as the first sentence of the entry.

## 2. Entry shape

For each decision or trap, in this order:

1. **Claim** in bold, one sentence, in present tense ("A Tailwind utility loses to any plain rule on the same element").
2. **Mechanism**: why it is true, with the smallest fact that proves it.
3. **Consequence for the reader**: what to do or not do.
4. **Link** to the code, test or spec that holds it (relative, resolving).

Keep a trap entry under ~8 lines. If it needs more, it is a design: move it to a spec and link.

## 3. Page shape

- Opens with the "for maintainers" callout if the repo uses one, then a 3-line scope.
- Sections group by area a reader is about to edit, so `AGENTS.md` can link to one section.
- A table only for lookups ("surface → page"), never for narrative.

## 4. Do not write

- File catalogs, field or method lists, control-flow retellings, PR summaries.
- A second account of a changed decision: rewrite or delete the old text.
- Planned work or "gaps" in a living doc; those live in a spec.
- The names of studied outside projects, if the repo forbids it.

## 5. Keep it true

After editing, run the repo's anchor/compliance checks and grep for the symbols the page cites.
Removing or renaming a module means editing its page in the same change.

## 6. Split of homes

User task help → user guide; reason or constraint → this page; setup/release steps → runbook;
requirement, acceptance and task progress → the spec (progress in its `## Status`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.