write-project-docs

write-project-docs is a skill for Claude Code, Codex from drscotthawley/slmn. It costs 94 tokens per session (4,181 once invoked), scanned A, original, Apache-2.0.

A documentation tool for nbdev projects, where software is developed in Jupyter notebooks. It adds notes to notebooks and keeps the project index and README organised, with optional setup for an llms.txt file and a dark-mode documentation website.

In plain words
What is it for?
Use it to add headings and explanations to notebooks, update documentation for several notebooks, prepare an llms.txt file for language-model tools, or add a light/dark theme to GitHub Pages documentation.
Why use it?
It reduces the manual work of turning notebook-based code into readable project documentation. It validates notebook cell references before making changes, helping avoid partly updated documentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it to add headings and explanations to notebooks, update documentation for several notebooks, prepare an llms.txt file for language-model tools, or add a light/dark theme to GitHub Pages documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drscotthawley/slmn/write-project-docs
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 drscotthawley/slmn --skill write-project-docs
Clone the repo
git clone --depth 1 https://github.com/drscotthawley/slmn

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 write-project-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/drscotthawley/slmn/write-project-docs/github.svg)](https://agentmods.dev/skills/drscotthawley/slmn/write-project-docs)
Your own site
<a href="https://agentmods.dev/skills/drscotthawley/slmn/write-project-docs"><img src="https://agentmods.dev/badge/skills/drscotthawley/slmn/write-project-docs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-project-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/drscotthawley/slmn/write-project-docs"><img src="https://agentmods.dev/badge/skills/drscotthawley/slmn/write-project-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,181 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.00094 $0.04181
Opus 5.5 $0.00038 $0.01672
Sonnet 5.5 $0.00019 $0.00836
Haiku 4.5 $0.00009 $0.00418

Measured 2mo ago against content hash 2471404ff9fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-project-docs 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 2mo 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.

slmn/skills/write-project-docs/SKILL.md · 236 lines

How it starts

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

Write project docs

Three parts: (1) documenting the notebooks themselves, (2) optionally publishing an llms.txt on the project's docs site, and (3) optionally theming that docs site dark with a light/dark toggle. Part 1 is the common case; parts 2 and 3 are one-time setups you'll rarely repeat per-project.

Part 1: documenting notebooks

If slmn is importable in this environment, prefer its tools over hand-editing notebook JSON:

  • slmn.nbtools.write_nb_docs(path, notes=[[after_id, source], ...], patches=[[cell_id, new_source], ...]) for one notebook.
  • slmn.nbtools.write_project_docs(specs, llms_txt=None) for several notebooks at once -- specs is {notebook_path: {'notes': ..., 'patches': ...}}. It validates every cell id in every notebook before writing any of them, so a bad id can't leave some notebooks half-edited.

Both take two kinds of edit -- notes (new markdown cells, purely additive) and patches (replace an existing cell's source outright). Deciding which one to use for a given cell is the part that needs judgment, not a fixed rule:

Preserve vs. overwrite

Default to notes. Adding a heading/summary next to existing content is always safe -- worst case it's slightly redundant, and that's trivial to fix later. Reach for patches only when you're confident the existing cell is disposable.

A cell is disposable if it's near-verbatim nbdev/quarto scaffolding -- the same boilerplate every fresh nbdev_new-generated project ships with, not anything a human wrote for this project. Known examples to check the exact wording of before treating something new as boilerplate (the wording can drift between nbdev versions):

  • "This file will become your README and also the index of your documentation."
  • The whole ## Developer Guide section ("If you are new to using nbdev here are some useful pointers to get you started.", "### Install <pkg> in Development mode", the pip install -e . / nbdev_prepare code block).
  • ## Usage / ### Installation boilerplate with unfilled conda/PyPI placeholders (pip install git+https://github.com/..., conda install -c ..., pip install ...) when the package in fact isn't published to conda/PyPI yet -- these aren't just generic, they're actively wrong.
  • ### Documentation boilerplate pointing at [docs]/[repo]/[pypi]/[conda] link placeholders with no project-specific content.

Read the full file on GitHub · 236 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. 2mo ago First seen · 236 lines · 94 tokens per session scan A 2471404ff9fa

Subscribe to this mod's changes

write-project-docs is a skill published in the GitHub repository drscotthawley/slmn (1 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 94 tokens to every session and 4,181 once invoked, about $0.0004 per session on Opus 5.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

write-project-docs compared with skills from other repositories

write-project-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-project-docsdrscotthawley/slmnSkill12mo agoApache-2.0A94Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code