double-knuth
Skill9 starsChanged 30 days agoMITView on GitHub
Generic two-pass "Double-Knuth" review for ANY repo or file set: Pass 1 = correctness/bugs on the change (delegates to /code-review when a git diff exists, agent-based otherwise), Pass 2 = completeness + cross-file/doc consistency — the defect class a diff reviewer structurally cannot see (stale counts/enumerations, docs contradicting changed behavior, dead paths, orphaned files, contract drift). Read-only: returns a ranked BUG/RISK/NIT list with file:line + concrete fixes. Specialized versions take precedence: websites → website-review; this skill covers everything else (skill suites, scripts, tools, configs). Trigger phrases: "double knuth this", "double knuth the code", "double knuth the repo", "two-pass review", "consistency review", "did the docs drift", "review the whole repo, not just the diff".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- karero/website-builderword for word, first seen Oct 14, 2026
Other versions1 project uses a version of this.
Word for word · 1
- karero/website-builder★ 9100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- skills/new-website/templates/AGENTS.mdAGENTS.md
- skills/new-website/templates/CLAUDE.mdCLAUDE.md
- ai-seoSkill
- astro-i18n-setupSkill
- business-listings-setupSkill
- copywritingSkill
- customer-researchSkill
- facts-checkSkill
- imageSkill
- independent-reviewSkill
- internal-link-auditSkill
- keystatic-setupSkill
- new-websiteSkill
- og-imagesSkill
- outgoing-link-auditSkill
- schema-markupSkill
- search-console-insightsSkill
- search-console-setupSkill
- seo-auditSkill
- seo-repositionSkill
- site-architectureSkill
- website-brand-kitSkill
- website-contact-formSkill
- website-content-guideSkill
- website-design-systemSkill
- website-hero-carouselSkill
- website-launch-checkSkill
- website-motionSkill
- website-new-pageSkill
- website-permissionsSkill
- website-positioning-checkSkill
- website-positioningSkill
- website-qaSkill
- website-reviewSkill
- website-scorecardSkill
- website-seo-geoSkill
- website-storySkill
- website-taglineSkill
- website-team-setupSkill
- website-testimonialsSkill
- wordpress-inspectorSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Run it at the END of a work batch, after a multi-file fix wave, or before trusting a new tool — the moments cross-file consistency silently …
- Distinctive: line 23
Read-only: report findings.
- Very specific: line 27
In a git repo with a diff: run the host's diff-review command if it has one (Claude Code: /code-review, effort high after a fix wave or for …
- Distinctive: line 37
If the artifact has its own gate (test suite, build, linter), it must be green BEFORE Pass 1 — the review is not a substitute for the gate.
- Distinctive: line 38
BEFORE Pass 1 — the review is not a substitute for the gate.
- Very specific: line 47
Paths & references: every file path, cp source, link, and import that any doc or script mentions actually resolves.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Double-Knuth — generic two-pass review
The review standard the website suite already uses, generalized. Run it at the END of a work batch, after a multi-file fix wave, or before trusting a new tool — the moments cross-file consistency silently breaks. Read-only: report findings; fix only when asked.
Pass 1 — correctness (the change itself)
- In a git repo with a diff: run the host's diff-review command if it has
one (Claude Code:
/code-review, efforthighafter a fix wave or for new analytics,mediumfor routine edits); on hosts without one (e.g. Codex), review the diff yourself in a fresh context with the adversarial BUG/RISK/NIT prompt. Either way it covers correctness bugs + reuse/simplification. - No repo / no diff: spawn a read-only agent over the changed files (or, if the host has no sub-agent primitive, review them in a separate fresh session) asking the two killer questions per guard/test/check: "can this pass while the thing it protects is broken?" (Rule 9) and "does anything skip silently?" (Rule 12) — hunt latent bugs that green tests cannot see.
- If the artifact has its own gate (test suite, build, linter), it must be green BEFORE Pass 1 — the review is not a substitute for the gate.
Pass 2 — completeness + cross-file/doc consistency
Hunt what no diff can show. Check the repo against its own claims, verifying every claim against actual file contents (never from memory):
- Counts & enumerations: "the four modules", lists of tests/files/steps/ options anywhere in docs vs what actually exists.
- Paths & references: every file path,
cpsource, link, and import that any doc or script mentions actually resolves. - Docs ↔ behavior: README/SKILL.md/comments describing behavior that has since changed (soft-warn vs hard-fail, defaults, branch names, formats).
- Orphans, both directions: files nothing references; references to files that no longer exist.
- Single source of truth: values claimed to live in one place (config, constants) have no hardcoded copies drifting elsewhere.
- Declared intent vs actual state (config parity): what a manifest/config
declares vs what is actually present — a recurring bug class the happy path
never exercises. Check: a
.gitignoreentry for a file that is still tracked (git ls-filesit —.gitignoredoes NOT untrack); a config key consumed in code (getProperty("x"), an env var, a DI/Koin name, a flavorBuildConfig) but missing from one of the build flavors / environments /.propertiesfiles; a CI/build step invoking a name that doesn't exist (a fastlane lane absent from the Fastfile, a gradle task, a Make target, a script path); a plugin/dependency still referenced after its repo or module was removed. - Conventions: the repo's stated conventions (naming, URL style, error handling) hold in every file, including examples inside docs.
Method: deterministic grep sweeps for the terms touched by recent changes (Rule 5 — code answers what code can answer), PLUS one fresh-eyes read-only agent for the judgment calls. Fresh eyes matter most when reviewing your own fixes — the second Knuth must not share the first one's assumptions.
Output
One ranked list — BUG (wrong or self-contradictory now) / RISK (breaks
under a normal future change, or a guard that can't fire) / NIT — each with
file:line, a one-line explanation, and a concrete fix. Then list the checks
that came back clean: silence is not coverage (Rule 12).
After fixes are applied
Re-run the artifact's own gate end-to-end, and negative-test any new guard: deliberately break the thing it protects and watch it fail with the intended message (Rule 9). A guard that has never fired is a hypothesis, not a guard.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

