doc-generate

doc-generate is a skill for Claude Code, Codex from nemock/company-brain. It costs 154 tokens per session (2,688 once invoked), scanned A, original, MIT.

A document-generation skill that turns a structured company knowledge vault into planning documents such as market-requirements documents, project charters, risk registers, and status reports.

In plain words
What is it for?
Use it to validate a vault, choose its active profile, and generate Markdown, HTML, or DOCX planning documents under the vault's exports folder.
Why use it?
It removes the need to write these documents manually and keeps generated files tied to the vault's validated source data. It also flags validation problems and uncited claims before rendering.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to validate a vault, choose its active profile, and generate Markdown, HTML, or DOCX planning documents under the vault's exports folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nemock/company-brain/doc-generate
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.

Any agent
npx skills add nemock/company-brain --skill doc-generate
Clone the repo
git clone --depth 1 https://github.com/nemock/company-brain

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-generate

README.md
[![agentmods](https://agentmods.dev/badge/skills/nemock/company-brain/doc-generate.svg)](https://agentmods.dev/skills/nemock/company-brain/doc-generate)
Your own site
<a href="https://agentmods.dev/skills/nemock/company-brain/doc-generate"><img src="https://agentmods.dev/badge/skills/nemock/company-brain/doc-generate.svg" alt="Measured on agentmods" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,688 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00154 $0.02688
Opus 5 $0.00077 $0.01344
Sonnet 5 $0.00031 $0.00538
Haiku 4.5 $0.00015 $0.00269

Measured 8d ago against content hash 5e7d04a2032a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

doc-generate 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 8d 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.

skills/doc-generate/SKILL.md · 161 lines

How it starts

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

doc-generate

This skill turns the typed vault into planning documents. The vault is the source of truth; the documents are derived artifacts you can regenerate any time and that get committed under <vault>/exports/.

You do not write document content by hand. The generators read the schema, pull the right typed nodes, and emit consistent, profile-aware output. Your job is to invoke the right cb render command and surface any issues to the user.

Before any render

  1. Confirm the vault path. Default: current working directory. Refuse politely if there is no _system/PROFILE.md — that's the marker of a vault.
  2. Run cb validate --path <vault> first. A vault with errors will still render, but uncited claims and broken edges will surface in the output. If validate reports errors, tell the user and offer to fix them via intake or atomize before generating.
  3. Confirm the active profile. Run cb describe-profile --path <vault> to know whether medical-device-only sections will appear. The profile decides which sections render.

What ships today (21 generators)

Full implementations (v0.3.0)

Document Markdown HTML DOCX Profile
Marketing Requirements Document (MRD) all
One-pager all

Scaffolds (v0.4.0)

Runnable templates that query the right typed nodes, fill in what they can, and flag the output as a scaffold in the footer. Adopters fill in the placeholders by hand. Full per-doc implementations land in v1.x.

Document CLI name Profile Length norm
PID (Project Initiation Document) pid all 2–4 pages
Project charter project-charter all 1 page
Stakeholder register stakeholder-register all 1–2 pages (table)
Risk register (planning) risk-register medical-device 1–3 pages
Status report status-report all 1 page
Meeting minutes meeting-minutes all 1 page (not 12)
Lessons learned / close-out lessons-learned all 1–2 pages
Business plan business-plan all 8–15 pages
Sales battle card (per competitor) sales-battle-card all 1–2 pages
Competitive brief competitive-brief all 3–5 pages
IFU comparison report ifu-comparison medical-device 2–4 pages
Decision log / ADR roll-up decision-log all 1–10 pages
Press release / launch press-release all 1 page
Investor update investor-update all 1–2 pages
Onboarding doc onboarding-doc all 3–6 pages
System Requirements Document (SRD) srd all 5–15 pages
Software Requirements Specification (SRS) srs all 5–20 pages
Hardware Requirements Specification (HRS) hrs all 5–20 pages
Risk brainstorm risk-brainstorm medical-device 2–4 pages

Read the full file on GitHub · 161 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. 8d ago First seen · 161 lines · 0 tokens per session scan A 5e7d04a2032a

Subscribe to this mod's changes

doc-generate is a skill published in the GitHub repository nemock/company-brain (5 stars, last pushed 3mo ago), licensed MIT. It adds 154 tokens to every session and 2,688 once invoked, about $0.0008 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-31.

Related

Other skills, from other repositories