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

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/drscotthawley/slmn/write-project-docs
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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00094 $0.04181
Opus 5 $0.00047 $0.02090
Sonnet 5 $0.00019 $0.00836
Haiku 4.5 $0.00009 $0.00418

Measured 5d ago against content hash 2471404ff9fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 19d ago), licensed Apache-2.0. It adds 94 tokens to every session and 4,181 once invoked, about $0.0005 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens