Command Palette

Search for a command to run...

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

pincite

БесплатноЗапускает вложенные скриптыНе проверен

ALWAYS use when a law review manuscript's footnotes need page numbers, or when a page number already in one looks wrong — 'add pincites', 'pincite this…

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

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

Pincite

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)"

Supplies the page number for each footnote in a law review manuscript, and then verifies it — the model's own page number is never believed.

candidates  parse the .typ → a KIND per footnote, and for the `pdf` ones the claim
            they support plus the source PDF resolved through the BIBLIOGRAPHY
triage      per kind, what the author must actually do — including "nothing"
run         ask Gemini per candidate (Files API) for a page AND a verbatim quote
verify      re-find the quote in the PDF, derive the printed page from the
            document's own numbering, compare
report      the CONFIRMED pincites, ready to paste — plus a separate
            CONFLICTS section for rows that ALREADY carry a pin

And a hand-review loop for what the model could not settle:

review_build.py  one row per citation SITE → <root>/scratch/review-data.json,
                 plus the page copied to <root>/scratch/review/index.html: each
                 footnote with THIS site marked, beside its PDF opened at the
                 best-guess page
apply            the page's pincites.json export → the manuscript. `set` inserts
                 `, at N`; `keep` and `skip` edit nothing. DRY RUN by default

Kinds

Every footnote gets a kind. Classification runs on the footnote's own text through one table at the top of scripts/pincite.py (KIND_PATTERNS, first match wins) — except that resolution succeeding beats every label: a footnote whose source is on disk is pdf whatever its prose looks like.

kind disposition
pdf the Gemini pipeline — run, verify, report
legislative hearings, GAO, CRS — fetchable from govinfo as a PDF, then re-run candidates
case out of scope: needs Westlaw/Lexis STAR PAGINATION, which no PDF yields. Flag and stop
book scripts/gbooks.py — Google Books' print pagination, off a VERBATIM quote. See Books
web nothing to fetch — the perma.cc link IS the pin; a paragraph cite only if the journal asks
statute nothing to fetch — the section number IS the pin
regulation nothing to fetch — the section or Fed. Reg. page IS the pin (a Fed. Reg. PDF in --fedreg-dir resolves and becomes pdf)
short-form nothing here — inherits the parent cite's pin; Id. at N follows the preceding note
none explanatory text or an internal cross-reference (See infra Section II.B.)

none and short-form are NOT gaps. Neither is web, statute or regulation. On the first manuscript those five kinds were 138 of 262 footnotes — more than half the document — and a tool that reports them as missing pincites is reporting work that does not exist.

triage is the command that answers "what is left to do".

Already pinned — two forms, three traps

A footnote can already carry a pincite in either of two shapes, and only one of them says "at". has_pincite() in scripts/pincite.py covers both.

form example pinned at
at-form Kahan & Rock, supra note 8, at 1279 1279
journal-form 51 Rev. Econ. Stud. 393, 394--99 (1984) 394–99
journal-form 68 Fed. Reg. 6585, 6587--88 (Feb. 7, 2003) 6587–88

The journal form is the STANDARD Bluebook shape — <start page>, <pin page>, no marker word anywhere. Recognising only at N inflates the candidate set and a bulk apply then double-pins footnotes that were already correct.

Detecting the journal form is harder than it looks, because a naive \d+,\s*\d+ also matches three things that are not pincites:

trap example guard
thousands separator 90 Fed. Reg. 58,503 reads as 58, 503 a number with separators is ONE token, matched atomically; the pin separator is a comma plus WHITESPACE, which a thousands separator never has
release / order number Exec. Order No. 14,366, Release No.~89,372 reject a pair preceded by No. / No.~; the pin must also be ≥ the start
date Mar. 23, 2024, (Feb.~9, 2018) reject a 4-digit second number in 1900–2030

Two further guards: the pin is never less than the start page, and the two must be close (PIN_MAX_GAP, 1000) — numbers thousands apart are unrelated. Never "fix" a miss by stripping commas globally: that is precisely what manufactures the 58, 503 false pair the first guard exists to prevent.

candidates records the detected pin on the row (pin), because cite is truncated at 300 characters and a Fed. Reg. pin can sit past the cut — on the first manuscript two did.

All four stages re

Полный SKILL.md на GitHub

Установить pincite в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

assets/review/index.htmlassets/review/persist.jsassets/review/serve.pyscripts/gbooks.pyscripts/pincite.pyscripts/review_build.py

FAQ

Что делает скилл pincite?

ALWAYS use when a law review manuscript's footnotes need page numbers, or when a page number already in one looks wrong — 'add pincites', 'pincite this draft', 'the editors want pin cites', 'my footnotes have no page cites', 'fill in the at-page for these cites', 'find the page that supports this claim', 'check my pincites', 'what page does this source say that'. HAND REVIEW: 'review my pincites by hand', 'show me each footnote with its PDF', 'let me enter the page numbers myself', 'apply the pincites I entered'. STATUS: 'how many footnotes still need pincites', 'which cites are still missing page numbers', 'what's left to pincite', 'how many pin-cites are left'. WRONG PIN: 'the page number is wrong', 'this pin is off by a page', 'this pincite points at preprint pagination', 'why did this cite land on the wrong page'. Use proactively before any law review submission whose footnotes carry bare cites. NEGATIVE ROUTING: whether a PDF is the version of record, a preprint or proof, or the wrong document entirely is bib-manage — hand off rather than pinning against it, even mid-run; whether a cited source exists or says anything at all is source-verify; Bluebook FORM of a citation is bluebook or bluebook-audit; archiving URLs is permacc.

Как установить скилл pincite?

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

Скилл pincite запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить pincite с