Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

audit-check

БесплатноБез исполняемых скриптовНе проверен

Phase 2: Run mechanical checks and Gemini formatted audit

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

Phase 2: Check (Mechanical + AI Audit)

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Two-stage checking: Python mechanical checks catch definite errors; Gemini batch audit catches judgment-call issues.

Stage 2a: Mechanical Checks (Python)

uv run python3 "${CLAUDE_SKILL_DIR}/../../../../skills/bluebook-audit/scripts/scan_formatting.py" --docx path/to/file.docx

Checks performed on ALL footnotes:

  1. Journal name small caps - Comprehensive pattern list (law reviews, finance journals, newspapers, periodicals, forums)
  2. Book title small caps - Detect italic book titles that should be small caps
  3. Id. chain validation - Rule 4.1 mechanical check (single-source predecessor)
  4. Signal italic consistency - All signals (see, cf., e.g.) must be italic
  5. Terminal period - Every footnote must end with a period
  6. Hereinafter consistency - Defined at first citation, used consistently after
  7. Author name supra format - Text before *supra* should be roman, not italic (unless it's a case name short form). Catches *Manne, supra* → should be Manne, *supra*
  8. Italic spillover - Trailing/leading spaces inside italic or small caps runs (e.g., *supra * should be *supra* ). These don't affect Word display but cause Gemini misparses

Stage 2a-ii: Bibliography drift

uv run python3 "${CLAUDE_SKILL_DIR}/../../../../skills/bluebook-audit/scripts/bib_gaps.py" \
  --docx path/to/file.docx --bib paper/references/sources.bib --out scratch/bib_additions.bib

make_bib_from_docx.py bootstraps a bib for a manuscript that has none; this is the counterpart for every round after the first. It reports article cites present in the footnotes and absent from the bib, and emits BibTeX for review.

Parsing is deterministic, not model-driven — a fabricated bib entry is worse than a missing one because it looks answered. A title containing a comma ("The Millennial Corporation: Strong Stakeholders, Weak Managers") cannot be separated from an author list positionally, so review the emitted entries before merging.

NBSP Handling

DOCX uses non-breaking spaces (\xa0) in abbreviations. ALL search functions must handle both \x20 and \xa0:

  • No.\xa02106, Feb.\xa07, Oct.\xa021
  • Wall St.\xa0J., Corp.\xa0Governance

Stage 2b: Gemini Batch Formatted Audit

Default: Use Gemini Batch API (50% cheaper, handles all footnotes in one job). Fallback to sync calls if batch is unavailable.

Step 1: Extract formatted footnotes

uv run python3 "${CLAUDE_SKILL_DIR}/../../../../skills/bluebook-audit/scripts/gemini_audit.py" --docx path/to/file.docx --extract-only

This outputs a JSON file mapping footnote numbers to formatted text with inline markup:

  • *text* = italic
  • [SC]text[/SC] = small caps
  • Plain text = roman

Step 2: Submit Gemini Batch Job

Build a JSONL file with one request per footnote, then submit via Batch API:

# Build JSONL (one line per footnote)
for fn_num, formatted_text in footnotes.items():
    request = {
        "custom_id": f"fn-{fn_num}",
        "body": {
            "contents": [{"parts": [{"text": PROMPT.format(fn_num=fn_num, formatted_text=formatted_text)}]}],
            "generationConfig": {"responseMimeType": "application/json", "temperature": 0.1}
        }
    }

# Submit batch job (see /gemini-vertex skill for full pattern)
# Use examples/batch_processor.py pattern — DO NOT guess API parameters

IMPORTANT: Follow the /gemini-vertex skill's Iron Law — read examples/batch_processor.py before writing batch code.

Fallback (sync): If batch is unavailable, use:

uv run python3 "${CLAUDE_SKILL_DIR}/../../../../skills/bluebook-audit/scripts/gemini_audit.py" --docx path/to/file.docx

Gemini Prompt Focuses On:

  • Source type classification (case, statute, article, book, newspaper, working paper, hearing, letter, regulation)
  • Typeface correctness per Rule 2 (italic vs small caps vs roman)
  • Abbreviation correctness per T6/T13
  • Short form validity (cases must not use supra)
## Iron Law: Audit ALL Footnotes

The Gemini audit MUST cover every footnote, not a subset. Auditing only "major" or "flagged" footnotes guarantees missed errors.

Previous failure: Auditing 45 of 239 footnotes missed 41 journal names needing small caps.

Stage 2c: Claude Cross-Footnote Review

Never trust a single agent. After Gemini's per-footnote audit, Claude reviews the full set for cross-footnote patterns that per-footnote analysis misses.

Claude receives:

  1. ALL formatted footnotes (fi
Полный SKILL.md на GitHub

Установить audit-check в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл audit-check?

Phase 2: Run mechanical checks and Gemini formatted audit

Как установить скилл audit-check?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл audit-check запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить audit-check с