nossaifd
Not so shitty AI first drafts. The project is a writing guide and a checker for text that an AI model
writes and a person reads. Such text includes documentation, READMEs, reports and notes. The guide is GUIDE.md, and
the checker is check.py.
The site is at https://rahuldave.com/nossaifd/.
Much of the advice comes from “Communicating Your Work”, a tutorial by Rosalind Reid. She taught it at Harvard in 2015, and she was the editor of American Scientist magazine from 1992 to 2008. Each rule that uses her work names her and gives the page. See Sources and credit.
How to use the guide and the checker
For a report:
-
Give
GUIDE.mdto the model with the writing task. -
Give the model a glossary of the project’s terms, so that it uses one term for one thing.
-
Run the checker on the result, and fix each hard problem. A hard problem breaks a limit of the guide, such as a sentence of more than 40 words. A soft note is for you to judge:
uv run --no-project python check.py docs/*.md uv run --no-project python check.py -v docs/page.md -
Keep a copy of the result. Then give it to an agent that did not write it. That agent revises it with the declaude skill by Oskar Austegard, in
.agents/skills/declaude/, which finds and rewrites the sentences that sound like a model. The declaude skill gives the steps. -
Run the checker again, and fix only what the revision broke. Then run the linter of the declaude skill once more.
-
Read the result. The checker cannot judge meaning or tone.
The checker needs only Python 3.11 or later, with no other packages. uv run gives that Python, so the
machine needs only uv.
Files in this repository
| File | What it is |
|---|---|
GUIDE.md |
The rules for reports: words, sentences, instructions, paragraphs, long documents, figures, tone, punctuation, formatting and short items |
check.py |
It checks a report against the rules that a program can measure. See the checker |
EXAMPLES.md |
Worked examples for the rules, from Rosalind Reid, Shreya Shankar and the declaude skill by Oskar Austegard. Each example names its source |
sources/reid/ |
The PDFs of Rosalind Reid’s tutorial, which the guide cites page by page |
sources/declaude.json |
The commit and the version of the declaude skill by Oskar Austegard that ships here, with the git id of each file of that commit and of each file that the patch changes. just declaude-copy writes it |
sources/declaude.patch |
The three changes that the copy makes to the declaude skill by Oskar Austegard: its name and the paths of its folder, its description, and one sentence. See the declaude skill |
docs/ |
The pages of the site, which smalldocs builds from _smalldocs.yml |
.agents/skills/nossaifd/ |
The agent skill, with copies of GUIDE.md, EXAMPLES.md and check.py |
.agents/skills/declaude/ |
The declaude skill by Oskar Austegard, with its licence and three changes. See the declaude skill |
Install the skill in a repository
The repository is also a package of two agent skills. The first, .agents/skills/nossaifd/, holds
copies of the guide, the examples and the checker, and a SKILL.md that tells an agent how to use them.
The second, .agents/skills/declaude/, is the declaude skill by Oskar Austegard, which he calls
declauding. Step 6 of the nossaifd skill calls the declaude skill, so install both. With npx, run this
command:
npx skills add rahuldave/nossaifd -a codex --skill '*' -yAn agent that has only the nossaifd skill follows rules 50 to 55 of the guide in place of the declaude skill.
jnterfaces is a package of agent skills for the command
interface of a project. Its installer adds other packages. Each package does one job, which
jnterfaces calls a role. It installs both skills of this package in the role prose. In a project that
uses jnterfaces, run this command:
just install proseThe installer of jnterfaces clones this repository, copies the skills and records the source revision in
.agents/nossaifd-install.json. It never overwrites a file that you edited after an install.
just uninstall prose takes both skills out again, except a file that you edited. This repository has no installer of its own.
The role also brings the recipe just prose-check, from .agents/just/roles/nossaifd.just. It is the
step prose-check of just check.
- Without names of pages, it checks each page that changed since the last commit. Git shows such a page as added or changed, or as a new file that it does not ignore. A deleted page is not checked.
- The rule
is_pageofprose_gate.pydecides what a page is. So the recipe leaves outAGENTS.md,CLAUDE.md,CHANGELOG.mdand the files in.agents,.claudeand.codex. - In CI, where the checkout is clean, it checks the pages of the pull request or of the push. It
needs the whole history, so set
fetch-depth: 0on the job.--base REFruns the same check outside 101. See “The check in CI” in the flow. - When no page changed, the recipe passes.
- With names of pages, it checks those pages only. Put a page whose name starts with
-after--. - Each page gets its own checker, by the map of checkers.
-valso shows the soft notes. - The API pages. When the project has a recipe
api-prose-check, the recipe runs it after the pages pass. Theapitool of the Python profile, jnprofile-python, gives that recipe. It checks the API page of each module that changed since the last commit. In CI, or with--base, it checks the modules that changed since the same base as the pages. That needs jnprofile-python #17 or later. The recipe passes--baseon. With names of pages or with--, it does not run, and the recipe says so. When it fails, the step fails. - It writes nothing into the project.
The last line of the recipe is jlog step prose-check. The index of jnterfaces runs each line through
jlog, which logs the lines of a run. The last line runs only when the
check passed. It records the step, and jlog pass at the end of just check needs that record. The index
sets that shell from jnterfaces #37 on, so an older clone of jnterfaces needs just install --update.
That line fails in a project without the index of jnterfaces. It fails when the shell of the Justfile is
not jlog, even with jlog installed. So such a project does not import the file. It copies this recipe
into its Justfile in place of any recipe prose-check that the Justfile has:
# Check the pages that changed since HEAD against the writing guide, each with its checker, then the API pages
[positional-arguments]
prose-check *args:
uv run --no-project --quiet python .agents/skills/nossaifd/scripts/prose_gate.py check-changed "$@"
recipes="$(just --justfile {{quote(justfile())}} --summary)" && if printf '%s\n' $recipes | grep -qx api-prose-check; then b=; for a in "$@"; do shift; if [ -n "$b" ]; then b=; set -- "$@" "$a"; else case "$a" in -v) ;; --base) b=1; set -- "$@" "$a" ;; --base=*) set -- "$@" "$a" ;; *) echo "prose-check: no API pages with names of pages or --"; exit 0 ;; esac; fi; done; just --justfile {{quote(justfile())}} api-prose-check "$@"; fiThe second line does nothing in a project without a recipe api-prose-check, so you can keep it.
If your Justfile has the line import? '.agents/just/roles/nossaifd.just', from an earlier version of
this README, replace that line with the recipe above.
The name just prose is for a different target, of the commit gates. See “Beside the commit gates” in
the flow.
After you change the guide, the examples or the checker, run just sync to copy them into the nossaifd
skill. just check fails while the copies differ.
just declaude page.md prints the passages of a page that the linter of Oskar Austegard’s declaude
skill marks as possible model prose. It does not fail on them, because a person judges each one.
just declaude-copy is a different recipe from just declaude. It copies the declaude skill by Oskar Austegard again from its
fixed commit in oaustegard/claude-skills, and it applies sources/declaude.patch. To take a newer version, change the
commit in the Justfile and run just declaude-copy. If the patch no longer applies, the recipe stops before
it changes the copy. Then update or remove the patch, and the names of the changed files and the version
in tests/test_declaude.py.
Make the flow happen in a project
An agent follows the steps of the nossaifd skill only when it loads the skill. Three parts make the flow
happen. The first is an instruction in AGENTS.md and CLAUDE.md. The second is a hook at the start and
at the end of each turn. The third is a workflow for GitHub that checks each pull request. A project can
also name another checker for some pages, for example the talk checker for the slides of a talk.
The skill ships the parts in .agents/skills/nossaifd/scripts/ and .agents/skills/nossaifd/assets/.
Make the flow happen says what each part does and how
to install it.
Build the site
smalldocs builds the site from the pages that _smalldocs.yml
lists, with the theme Folio in _extensions/folio/. The first page of the site is this README, which
index.qmd includes:
just siteThe site goes to _site/. just check also runs smalldocs check ., which finds broken links.
Talks
A listener cannot go back and hear a sentence again, but a reader can read it again. So a talk needs other rules than a report, and the guide for talks and its checker have their own repository, nossaifd-talks. Its site is at https://rahuldave.com/nossaifd-talks/. That guide also uses the work of Rosalind Reid.
Where the name comes from
The name of the project comes from “Shitty First Drafts”, the essay in Anne Lamott’s Bird by Bird. Lamott says that every good piece of writing starts as a bad first draft. An AI model writes first drafts fast, and they have their own bad habits. The guide gives the model rules that remove those habits before a person reads the draft.
Where the rules come from
The guide joins five sources. Sources and credit says what each one gives, and Why the rules says what the guide chose where the sources disagree.
- “Communicating Your Work”, a tutorial by Rosalind Reid, for the course AC297r at Harvard in March
2015. It gives the structure of a report and the rules for figures. Her PDFs are in
sources/reid/. She gave permission to use them on one condition. Every place that uses her work credits her. - ASD-STE100, Simplified Technical English. Aircraft makers write their maintenance manuals in it. Andrej Karpathy suggested on X that the same rules suit text that AI models write. It gives the rules for words, sentences, instructions and paragraphs. Only its about page was read, so all but one of these rules come from memory. The list of them says which.
- The plain-writing skill by Shreya Shankar, at https://github.com/docwriter-org/plain-writing-skill, under the MIT licence. It gives the rules for tone, punctuation and the patterns of AI writing.
- “Five Principles for Generating Readable AI Text in Bulk”, by Shreya Shankar. It gives the rules for short items that a reader skims, such as titles, list items and the rows of a dashboard.
- The declaude skill by Oskar
Austegard, under the MIT licence. It gives the rules for the revision of a draft that reads as if a
model wrote it. Its register, the file that lists its patterns, gives a pair of sentences, before and
after, for most of the patterns. This repository ships the skill in
.agents/skills/declaude/. See the declaude skill.
Licence
The code and the guide are under the MIT licence, in LICENSE. The declaude skill in .agents/skills/declaude/ is
under its own MIT licence, copyright (c) 2025 Oskar Austegard, in the file LICENSE of that folder. Rosalind Reid’s PDFs in sources/reid/
are her work, used with her permission, and they are not under the MIT licence.
Rosalind Reid lets others use her work on one condition. Every place that uses it credits her. So where text in the guide, the examples or the nossaifd skill comes from her work, it must keep its credit to Rosalind Reid. The condition holds in every copy and in every changed version, and the MIT licence does not remove it.