generate-doc

generate-doc is a skill for Claude Code, Codex from rgomezcasas/dotfiles. It costs 10 tokens per session (437 once invoked), scanned A, original, MIT.

A documentation-generation workflow that creates project-specific Markdown files from the current task and repository structure.

In plain words
What is it for?
Use it to add concise English documentation under the appropriate docs folder, using existing folders and descriptive filenames.
Why use it?
It provides a consistent place and format for recording where project changes belong and which conventions apply.

Skill for Claude CodeCodex

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 skills/rgomezcasas/dotfiles/generate-doc
Any agent
npx skills add rgomezcasas/dotfiles --skill generate-doc
Clone the repo
git clone --depth 1 https://github.com/rgomezcasas/dotfiles

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 generate-doc

README.md
[![agentmods](https://agentmods.dev/badge/skills/rgomezcasas/dotfiles/generate-doc.svg)](https://agentmods.dev/skills/rgomezcasas/dotfiles/generate-doc)
Your own site
<a href="https://agentmods.dev/skills/rgomezcasas/dotfiles/generate-doc"><img src="https://agentmods.dev/badge/skills/rgomezcasas/dotfiles/generate-doc.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 437 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.00010 $0.00437
Opus 5 $0.00005 $0.00218
Sonnet 5 $0.00002 $0.00087
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade A, and why

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

config/agents/global_skills/generate-doc/SKILL.md · 32 lines

What it actually says

Context

  • Project root: !git rev-parse --show-toplevel
  • Existing docs structure: !tree -d --noreport docs/ 2>/dev/null || echo "No docs/ directory found"
  • Existing doc files: !fd -e md . docs/ 2>/dev/null || echo "No documentation files found"

Guidelines

  1. Write documentation in English
  2. Place the file inside the docs/ folder. If subfolders exist, choose the most relevant one. Create a new subfolder only if no existing one fits
  3. Use a descriptive kebab-case filename that clearly communicates the content (e.g., nix-flake-structure.md, karabiner-custom-shortcuts.md)
  4. Structure the document with a clear title (#), an introductory paragraph, and organized sections (##, ###)
  5. Keep documentation minimal. The purpose is to guide agents/humans on where to make changes and what files are involved, not to explain general concepts. Only document repo-specific details (file paths, conventions, structure). Assume the reader already knows how the tools work
  6. Avoid generic explanations, tutorials, or "how X works" sections. Focus on: which file to edit, what format to follow, and any repo-specific conventions

Task

Based on the current conversation:

  1. Identify the key topic or knowledge worth documenting
  2. Explore the existing docs/ structure to find the best location
  3. Write the documentation file following the guidelines above
  4. Check AGENTS.md — if the new doc belongs to an existing referenced folder, no update needed. If it creates a new docs/ subfolder, add a reference line in the Documentation section of AGENTS.md
  5. Confirm the file path and a brief summary of what was documented
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. 4d ago First seen · 32 lines · 10 tokens per session scan A 9d996427f18f

Subscribe to this mod's changes

generate-doc is a skill published in the GitHub repository rgomezcasas/dotfiles (362 stars, last pushed 15d ago), licensed MIT. It adds 10 tokens to every session and 437 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

nvim-install

Install Neovim and stand up the nvim-fredrik config in the Claude Code web sandbox (the cloud environment), where no Neovim exists. Use this before testing any Neovim config change in a web session, e.g. checking out a PR branch that touches nvim-fredrik and observing its runtime behavior. Installs Neovim via Nix from…

fredrikaverpil/dotfiles · 132 tokens

autopilot-batch

Fan out a batch of autopilot-queued issues to parallel background worktree subagents — each runs /autopilot at the build model from its 'model:' label — with a gating review at Opus 5 or above and never below the build (Opus reviews Sonnet and Opus builds, Fable reviews Fable builds).

joshukraine/dotfiles · 75 tokens

todoist-cli

Manage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the td CLI. Use when the user wants to view, create, update, complete, or organize Todoist items, or mentions tasks, inbox, today, upcoming, projects, labels, or filters.

joshukraine/dotfiles · 68 tokens

autopilot

Carry a well-scoped GitHub issue through the full dev loop autonomously, stopping at a per-run tier boundary (PR-ready, or merge+deploy for small reversible changes).

joshukraine/dotfiles · 40 tokens

obsidian

Find, navigate, read, and edit notes in the user's personal Obsidian vault (an iCloud-synced markdown collection on macOS). Use whenever the user mentions "the vault", "my notes", "Obsidian", a daily note, a meeting note, scratchpad, or asks to look up/jot down something that sounds personal-knowledge-base-like (e.g.…

fredrikaverpil/dotfiles · 116 tokens

qa-handoff

Generate a hands-on QA testing guide as a self-contained HTML page — for Rails apps or static (Hugo) sites. --publish uploads the HTML to the project's configured QA host.

joshukraine/dotfiles · 41 tokens