Skip to content
Back to skills

Documenting

ASecurity

Writes project docs in the right place. Use when the user asks to document something, record a decision, write an ADR, or update the README or docs. Not for code comments, commit messages or reviews.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add msFoma/foma-skills --skill documenting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Documenting?

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

Security grade badge for Documenting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/msfoma-documenting/badge)](https://www.skillsdirectory.com/skills/msfoma-documenting)

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: documenting
description: >-
  Writes project docs in the right place. Use when the user asks to document something, record a decision, write an ADR, or update the README or docs. Not for code comments, commit messages or reviews.
license: Apache-2.0
metadata:
  level: "atomic"
  uses: ""
  agents: ""
  tokens: "548"
---

Put each fact in its one home, in the project's existing format, sized to the change.

## Steps
1. Find the homes: read CLAUDE.md `## Where things live` for the docs home and decision log (fallback: `docs/`, `docs/decisions.md`). Read the target file's tail and copy its format, numbering and tone.
2. Pick the home for the fact, then size it:
   - One-line fact: one line in the right existing place.
   - New subsystem or feature: a short doc in the docs home, linked from where readers start (README or CLAUDE.md `## Where things live`).
   - Changed command: update CLAUDE.md `## Commands`. User-facing change: README.
   - Decision: only if it passes all three gates below.
3. Update an existing doc instead of adding one; replace stale text rather than appending a contradiction.
4. Grep for other places that state the same fact and fix or link them. Check that each path and command you wrote exists or runs.

## Decision gates
When you decide on your own whether to log a decision, write an entry only when all three hold, otherwise skip it. When the user asks to record one, record it.
1. Hard to reverse: changing your mind later costs real work.
2. Surprising without context: a reader would ask "why this way?".
3. A real trade-off: genuine alternatives existed and one was chosen for stated reasons.

Entry: date, decision, alternatives, reason, status `proposed`, `accepted` or `superseded by <id>`. A superseded entry stays; mark it and link the new one. A decision that changes how code is written also gets one line in CLAUDE.md.

## Rules
- One home per fact: link to it, never copy it.
- No new `*.md` outside the docs home (README, CLAUDE.md, AGENTS.md, CHANGELOG, DESIGN.md excepted).
- Never put trees, dependency lists, overviews or generic advice into CLAUDE.md; only what code cannot show.
- README changes only for what users see; internals go to the docs home.
- Say which size you took (line, edit or new doc) in one line.

If you create a new doc, a decision log or a glossary, or the project has no docs yet, read `references/formats.md`.

## Report
- Files changed and what was recorded (or which gate failed and why nothing was written).
- Not checked: <…>

Files in this skill

  • SKILL.md2.5 KB
  • references/formats.md1.5 KB

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.