bluebook-audit
This skill should be used when the user asks to 'audit footnotes', 'check Bluebook formatting', 'audit citations', 'run footnote audit', 'check my footnotes', 'bluebook audit', or needs systematic Bluebook compliance checking of a law review manuscript.
Best use case
bluebook-audit is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
This skill should be used when the user asks to 'audit footnotes', 'check Bluebook formatting', 'audit citations', 'run footnote audit', 'check my footnotes', 'bluebook audit', or needs systematic Bluebook compliance checking of a law review manuscript.
Teams using bluebook-audit should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/bluebook-audit/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How bluebook-audit Compares
| Feature / Agent | bluebook-audit | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
This skill should be used when the user asks to 'audit footnotes', 'check Bluebook formatting', 'audit citations', 'run footnote audit', 'check my footnotes', 'bluebook audit', or needs systematic Bluebook compliance checking of a law review manuscript.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Bluebook Footnote Audit Workflow
Systematic Bluebook 21st edition compliance audit for law review manuscripts in DOCX format.
**Announce:** "Using bluebook-audit to run a systematic Bluebook compliance check."
## Overview
Seven-phase linear workflow: Extract -> Check -> Report -> Correct -> Verify -> Archive -> Cross-Refs
```
/bluebook-audit -> extract -> check -> report -> [USER REVIEWS] -> correct -> verify -> archive -> crossrefs
/bluebook-audit-fix -> diagnose -> route to {re-check, re-correct, re-verify}
```
## Phase Summary
| Phase | Responsibility | Gate |
|-------|---------------|------|
| Extract | Parse DOCX -> structured JSON with formatting | `footnotes_data.json` exists, all FNs extracted |
| Check | Mechanical checks → Gemini Batch per-footnote → Claude cross-footnote review | `audit_findings.json` exists, ALL FNs covered, three-layer merge complete |
| Report | Present findings to user for review | `AUDIT_REPORT.md` exists, user acknowledges |
| Correct | Apply fixes to DOCX via lxml | Corrected DOCX exists, fix counts match |
| Verify | Re-scan to confirm fixes applied | Zero remaining issues in re-scan |
| Archive | perma.cc URL archiving | All URLs archived, links written to DOCX |
| Cross-Refs | Convert supra/infra notes to NOTEREF fields | All cross-refs are auto-updating fields |
## How to Start
1. User provides a DOCX file path
2. Workflow creates `scratch/` directory for intermediate artifacts
3. Proceeds through phases sequentially
## Next Step
Read the entry command:
```
Read("commands/bluebook-audit.md") # relative to this skill's base directory
```
<EXTREMELY-IMPORTANT>
## Iron Law: ALL Footnotes Must Be Checked
**Every footnote in the document must be audited. No subsets. No sampling.**
Auditing only "major-severity" footnotes or a random sample guarantees missed errors. The formatted Gemini audit must cover ALL footnotes, not just previously flagged ones.
Skipping footnotes is NOT HELPFUL — missed errors go to publication and embarrass the user.
</EXTREMELY-IMPORTANT>
<EXTREMELY-IMPORTANT>
## Iron Law: Formatted Text for Gemini Audit
**NEVER send plain text to Gemini for typeface auditing. Always include formatting markup.**
Plain text produces 10-20x false positives because Gemini cannot see what is already italic/small caps/roman. Inline markup (`*italic*`, `[SC]small caps[/SC]`) reduces false positives from ~400 to ~20 for a 239-footnote document.
</EXTREMELY-IMPORTANT>
<EXTREMELY-IMPORTANT>
## Iron Law: Verify After Corrections
**After applying corrections, ALWAYS re-run the scanner to verify fixes were applied.**
NBSP characters, run boundaries, and cross-run text cause silent failures. A fix that "applied" in code may not have actually changed the DOCX. Re-scanning is mandatory.
</EXTREMELY-IMPORTANT>
<EXTREMELY-IMPORTANT>
## Iron Law: Mechanical Findings Override Gemini
**Never drop a mechanical finding because Gemini didn't flag it.**
Deterministic checks (signal italic, terminal periods, Id. chains) are 100% reliable. Gemini misses ~30% of signal formatting issues because it focuses on citation-level analysis and lacks a dedicated signal-checking output field. During merge/dedup, mechanical findings are authoritative for their rule categories. Gemini adds value only for judgment calls (source type classification, abbreviation tables).
Previous failure: Gemini reported FN103 as having only typeface issues on article titles, completely missing that "See also" was not italicized — which the mechanical checker caught.
</EXTREMELY-IMPORTANT>
<EXTREMELY-IMPORTANT>
## Iron Law: Source Type Classification Requires Human Review
**Gemini consistently misclassifies non-standard source types. Never auto-fix Gemini's typeface suggestions for SEC releases, executive orders, working papers, or regulatory materials.**
The hardest part of a Bluebook audit is determining the correct typeface for non-standard sources. Gemini defaults to "everything should be italic or small caps" but many source types are correctly roman:
- SEC releases/rules/concept releases → roman (regulatory material, Rule 14.6)
- Executive order titles → roman (Rule 14.7)
- Working paper series designations → roman (parenthetical)
- Company names in no-action letters → roman
The audit report MUST separate "verified fixes" (clear violations) from "judgment calls" (source type dependent) and include a "correct as-is" section documenting why Gemini's suggestions were rejected. See `references/audit-patterns.md` for the full source type reference table.
Previous failure: Gemini flagged 10+ items as needing italic/small caps that were actually correct as roman (SEC releases, exec orders, working paper designations). Without the source type reference table, these would have been incorrectly "fixed."
</EXTREMELY-IMPORTANT>
<EXTREMELY-IMPORTANT>
## Audit Facts
- Gemini hallucinates citation formats and fabricates citation details. Its output is a lead sheet, not a verdict — run the mechanical checker independently, merge results, and spot-check before applying anything. A Gemini suggestion applied unverified is an unverified claim applied as a fix.
- Fixes cascade: a correction in one phase creates new errors in dependent phases, and every phase catches a different error type. Re-run the affected scanner after every correction pass — "earlier phases were clean" says nothing about errors the fixes just introduced.
- One wrong supra reference invalidates the reader's trust in ALL footnotes. Sampling, eyeballing, or marking a footnote correct without checking the reporter/volume audits a subset and asserts compliance for the whole — a claim the audit never verified. Every footnote, every phase, regardless of document length.
</EXTREMELY-IMPORTANT>
<EXTREMELY-IMPORTANT>
## Delete & Restart
**If you sent plain text to Gemini instead of formatted text with footnote markers, DELETE the results and START OVER with properly formatted input.** Gemini cannot audit what it cannot parse.
</EXTREMELY-IMPORTANT>Related Skills
bluebook
This skill should be used when the user asks to “cite a case”, “format a citation”, “check Bluebook format”, “cite a statute”, “use id. or supra”, “format footnotes”, “cite a law review article”, or needs Bluebook 21st Edition citation guidance.
audit-verify
Phase 5: Verify all corrections were applied correctly
audit-report
Phase 3: Generate and present audit report for user review
audit-extract
Phase 1: Extract footnotes from DOCX with formatting annotations
audit-crossrefs
Phase 7: Convert hardcoded cross-references to auto-updating NOTEREF fields
audit-correct
Phase 4: Apply corrections to DOCX
audit-check
Phase 2: Run mechanical checks and Gemini formatted audit
audit-archive
Phase 6: Archive URLs via perma.cc
audit-fix-loop
Canonical doctrine for scored iterative improvement, and the generic fallback for ad-hoc 'iteratively improve / audit and fix / grade and improve / hill-climb quality / score and fix' requests that don't map to a domain workflow.
writing
This skill should be used when the user asks to 'write a paper', 'start a writing project', 'draft an article', 'write about', 'brainstorm writing topics', 'gather sources for a paper', 'what should I write about', or needs the writing workflow entry point for any writing task.
writing-validate
Validate draft sections cover all PRECIS claims before review.
writing-setup
Internal skill for creating PRECIS.md, OUTLINE.md, and ACTIVE_WORKFLOW.md. Called after brainstorm sources are gathered.