refactor(verify): add read-only mode, widen trigger, extract citation anchors#25
Conversation
Removes platform-specific subsections (Claude Code, Cowork, other agents) in favor of a single `npx skills add` primary path plus a zip upload fallback. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… anchors - Widen skill description to trigger on any PDF/office doc/image/URL task, not just /verify — positions the skill as the document-reading default over Read, pdfplumber, Tesseract, etc. - Add §1 read-only vs verify mode split; adds fast path (§2 read-only) that skips the citation pipeline for pure text-extraction requests - Add "Tool precedence" section explicitly listing forbidden alternatives - Extract ~150-line citation anchor reference (truncation strategies, anti-patterns, failure mode table) to rules/citation-anchors.md; SKILL.md now holds concise rules and pointers only - Add --claim and --model flags to verify CLI command examples - Improve final summary line format with emoji counts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
PR Review Overall this is a solid, well-motivated refactor. Extraction to rules/citation-anchors.md and the read-only fast path are both clear wins. A few issues worth addressing before merge. ISSUES
The new headings make Agent Skills a sibling of Install with nothing under Install, leaving an empty section. The zip upload numbered list is orphaned by a bare "Or" fragment, and the deleted step 4 was the only line telling readers what to do after uploading. Either consolidate the headings or restore that payoff sentence.
The old README noted that SKILL.md works with any agent that supports Markdown instructions. Still true and still in AGENTS.md, but gone from the public README. A single line under the zip path would restore discoverability without bloat.
The description frontmatter is consumed by skill loaders for trigger matching. The sentence "Preferred over Read, pdfplumber, python-docx, openpyxl, and Tesseract..." is instruction content, not a trigger condition. The Tool Precedence section in the body covers this adequately — trim the description back to trigger conditions only to avoid confusing loaders that do strict semantic matching.
The fast-path follow-up note says the .deepcitation output file is still valid without re-running prepare. This is only safe within the same session on the same document. Add a qualifier: only if the same document was used and the output file still exists. Otherwise agents may silently skip prepare on stale or absent output.
"Your own model name as a human-readable string" is ambiguous — model ID (e.g. claude-sonnet-4-6) or display label? A concrete example and a note to omit the flag when the agent cannot determine its identifier would close the gap. MINOR NITS
WHAT WORKS WELL
|
…rim, resume guard, --model example, nits
- Fix: README — restore Install subsections (CLI/IDE + claude.ai Skills), add step 4 payoff, restore with-other-agents line
- Fix: SKILL.md description — remove instruction prose ("Preferred over...") from frontmatter trigger field; Tool Precedence section in body covers it
- Fix: read-only resume qualifier — guard re-use of .deepcitation output on same-document + file-exists condition; otherwise re-run prepare
- Fix: --model spec — add concrete examples (claude-sonnet-4-6, gpt-4o, gemini-2.5-pro) and note to omit when model ID is unknown
- Nit: sync citation-anchors.md trigger list in SKILL.md — add missing "feels wrong" condition
- Nit: citation-anchors.md — add note that packages/deepcitation/docs/agents/ paths are in a separate package
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
/verify. Adds explicit "Tool precedence" section listing forbidden alternatives (Readfor PDFs,pdfplumber,python-docx,Tesseract, etc.) so agents default todeepcitation preparefor all document work.prepare+ content delivery, skipping the full citation pipeline. Prevents agents from bailing toRead/pdfplumberwhen the task is just "summarize this PDF."rules/citation-anchors.md. SKILL.md now holds concise rules + pointer; the heavy reference is lazy-loaded only when needed. Consistent with existingrules/auth.mdandrules/cloud-sandbox-constraints.mdpattern.--claimand--modeladded toverifycommand examples, with guidance on how to choose a claim label.✅ N verified ⚠️ N partial ❌ N not found) instead of the old prose form.npx skills addprimary path + zip upload fallback.Test plan
prepare, reads.deepcitation/*.txt, returns content without citation markers, noverifycall/verify [claim] [doc]— confirm full §1→§4 pipeline runs as beforepreparerules/citation-anchors.mdis referenced from SKILL.md and contains the full truncation/anti-pattern content--claim/--modelflags appear in the verify command output