# Documenting Features — Living DDD Docs in One File

> Turns an implemented feature into one living Markdown doc: glossary, domain model, Gherkin, ADRs, specs, C4 diagrams.

Documenting Features — Living DDD Docs in One File is a free AI agent skill on Agensi by Cristhian Zanforlin Lousa, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Cristhian Zanforlin Lousa](https://www.agensi.io/creators/cristhian-zanforlin-lousa)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/documenting-features-living-ddd-docs-in-one-file
- Tags: documentation, code-review, ddd, adr, gherkin, c4-model, mermaid, living-docs

## About this skill

**Documenting Features** has your agent read the code you shipped and write one Markdown file per feature that Product can check and Engineering can maintain. The file lives next to the code at `docs/features/<feature>.md` and changes in the same PRs as the code.

**The problems it solves**
- Feature knowledge spread across PRs, tickets and people's heads
- The business, the code and the database using three different names for the same thing
- Docs that describe metrics, endpoints or diagram boxes that don't exist
- Rollback plans that no one has checked against the current code

**The 10 sections:** Overview · Ubiquitous Language glossary (term → definition → code symbol) · Domain Model (aggregates, invariants, domain events) · Gherkin behaviors (happy, edge, error and authorization paths) · ADRs (only for decisions the team actually debated) · Technical Spec (dependencies, API contracts, error table) · Observability (metrics, logs, alerts) · Deployment & Rollback (flags, migrations, numbered rollback, smoke tests) · C4 diagrams in Mermaid · Platform Compatibility.

Each workflow step ends with a check against the code. Every glossary term must appear in the code, every invariant needs a test or a guard, every metric must actually be emitted, and every diagram box must exist. Anything the code doesn't show is marked `TBD` and flagged, never made up.

**What's inside**
- `references/template.md`: the complete 10-section template
- `references/gherkin.md`: scenario structure, coverage rules, anti-patterns, mapping scenarios to tests
- `references/c4-diagrams.md`: Mermaid C4 Context, Container and Component, plus when to skip diagrams
- `references/communication.md`: answer-first writing (Minto Pyramid, SCQA)

**When it triggers:** "document this feature", "write feature docs", "create ADRs", "document the domain model", or living docs.

Docs are always written in English. By default the skill prints the doc in chat and never commits. It documents only what was asked: no extra doc files, no summary `.md` nobody requested, and no rewriting of docs the change didn't make inaccurate.

Free and MIT-licensed, part of the claude-skills-czl collection.

**Source on GitHub:** [this skill](https://github.com/Cristhianzl/claude-skills-czl/tree/main/configs/agnostic/skills/documenting-features) · [full repository](https://github.com/Cristhianzl/claude-skills-czl)

## Requires

- Runs on macOS only
- Git

## Known limitations

Prints the doc in chat unless you ask it to save docs/features/<feature>.md. It only documents what exists in code, tests and PRs, and never creates extra doc files or rewrites docs the change didn't make inaccurate. Never runs git.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Documenting Features — Living DDD Docs in One File skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it work outside Claude Code?

Yes. It is a standard SKILL.md with Markdown references. It was built and tested mainly on Claude Code.

### Will it write files or commit?

By default it prints the doc in chat. It saves `docs/features/<feature>.md` only if you ask, and it never runs `git add`, `commit` or `push`. It won't create extra summary files or rewrite other docs that are still accurate.

### What happens when the code doesn't tell it something, such as alert thresholds?

It marks the field `TBD` and lists it for you. Its hard rules forbid inventing numbers, and every cited class, metric or diagram box has to exist in the code.

### Do I always get all 10 sections?

For shipped features that cross team boundaries, yes. For internal tooling, refactors with no behavior change, or spikes, it trims sections, but always keeps the Overview and the glossary.

### How do I install it?

Unzip it into `~/.claude/skills/` (all projects) or into your project's `.claude/skills/`, so you end up with `.claude/skills/documenting-features/SKILL.md`. It triggers on requests like "document this feature" or "write ADRs", or you can call it by name.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
