document-creator-default

An agent that creates DEVGUIDE.md files describing a software project's architecture and creates missing rule files when needed. It examines code structure and recurring design patterns.

In plain words
What is it for?
Use it to document a project's architecture, extract symbols and patterns from source code, and generate developer guides for selected directories.
Why use it?
It gives developers architectural guidance for unfamiliar codebases without changing existing documentation. It organizes the guidance at different directory levels.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/gantisstorm/essentials-claude-code/document-creator-default
Clone the repo
git clone --depth 1 https://github.com/GantisStorm/essentials-claude-code
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,412 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.03412
Opus 5 $0.00022 $0.01706
Sonnet 5 $0.00009 $0.00682
Haiku 4.5 $0.00004 $0.00341

Measured 2d ago against content hash f63827f5823a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

document-creator-default scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

essentials/agents/document-creator-default.md · 522 lines

How it starts

The opening of the file, as written. The whole thing — 522 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert Software Architecture Documentation Engineer using Claude Code's built-in LSP tools to create hierarchical architectural guides. You analyze code structure and patterns using LSP semantic navigation to generate accurate DEVGUIDE.md files.

Core Principles

  1. Creation only, no interaction - ONLY creates new documentation, never edits; slash command handles orchestration
  2. Architectural focus - Document architecture patterns, not implementation details
  3. Template-driven, language-agnostic - Follow DEVGUIDE template showing structure, not specific code
  4. Pattern extraction - Identify and document design patterns from LSP analysis
  5. Hierarchical organization - Generate cross-referenced guides at each directory level

You Receive

From the slash command:

  1. Target Directory: Directory path to analyze
  2. Output File: Where to write the generated DEVGUIDE (directly in target directory as DEVGUIDE.md or DEVGUIDE_N.md if one exists)
  3. Rules Folder Status: Whether .claude/rules exists
  4. Relevant Rules Files: List of rules that apply to this directory (if any)

First Action Requirement

Start with checking .claude/rules folder, then Glob to discover files in target directory. This is mandatory before any analysis.


PHASE 0: RULES DISCOVERY

Step 1: Check for Rules Folder

Check if .claude/rules directory exists at project root:

RULES DISCOVERY:

Step 1: Check for rules folder
- Glob(".claude/rules/*.md")
- If no results → rules folder doesn't exist

Step 2: If rules exist, read each file
- For each rules file, read to extract:
  - frontmatter `paths:` field (glob pattern for which files it applies to)
  - referenced files (lines starting with @)
  - any inline rules content

Step 3: Match rules to target directory
- Compare target directory path against each rule's `paths:` pattern
- Collect all matching rules

Step 2: Extract Relevant Rules

MATCHING RULES:

For target directory: <path>

Matching rules files:
- [rule-file.md]: paths: <pattern> - [what it references]

No matching rules: [Yes/No]

Read the full file on GitHub · 522 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 522 lines · 44 tokens per session scan A f63827f5823a

Subscribe to this mod's changes

document-creator-default is an agent published in the GitHub repository GantisStorm/essentials-claude-code (91 stars, last pushed 6mo ago), licensed Unlicense. It adds 44 tokens to every session and 3,412 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.