CiteCheck
CLAUDE.md63 starsChanged 6 months agoMITView on GitHub
CiteCheck is a Python CLI tool and agent skill for verifying academic paper citations. This repository contains both the installable Python package (pip install CiteCheck) and the agent skill definitions. Load this context when working on: - The citecheck Python package (src/citecheck/) - The agent skill definitions (skills/, references/) - CLI behavior, parsing logic, or report generation - Bug fixes or feature additions to the citation verification pipeline
- Installs packages
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
All CLI output uses stderr for diagnostics, stdout for structured data
- Very specific: line 65
If adding new CLI flags, update both cli.py and README.md
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CiteCheck — Project Context for Claude Code
CiteCheck is a Python CLI tool and agent skill for verifying academic paper citations. This repository contains both the installable Python package (pip install CiteCheck) and the agent skill definitions.
When This Context Applies
Load this context when working on:
- The
citecheckPython package (src/citecheck/) - The agent skill definitions (
skills/,references/) - CLI behavior, parsing logic, or report generation
- Bug fixes or feature additions to the citation verification pipeline
Project Structure
CiteCheck/
├── src/citecheck/ # Python package source
│ ├── cli.py # CLI entry point
│ ├── parser.py # LaTeX / PDF dispatcher
│ ├── bibtex_parser.py # BibTeX .bib parser
│ ├── pdf_parser.py # PDF text extraction
│ ├── verifier.py # Crossref / Semantic Scholar verification
│ ├── matcher.py # Thematic & semantic scoring (heuristic + LLM)
│ ├── reporter.py # Markdown report generator
│ └── models.py # Shared dataclasses
├── skills/citecheck/ # Agent skill (cross-platform)
│ └── SKILL.md # Skill entry point
├── references/ # Skill reference docs
│ ├── format-check-rules.md
│ ├── api-reference.md
│ └── semantic-matching-prompt.md
├── scripts/ # Standalone utility scripts
├── tests/ # pytest suite
├── examples/ # Example outputs
├── pyproject.toml # Package config
└── README.md # Human-facing docsArchitecture Decisions
- LaTeX-first, PDF-fallback:
.tex+.bibparsing is precise; PDF extraction is lossy - Skill vs CLI separation: The CLI handles parsing/format/querying; the agent (Claude) handles thematic/semantic evaluation using its own reasoning
- Zero mandatory API keys: Crossref and Semantic Scholar are public APIs; LLM matching is optional (
--api-key) or delegated to the agent - Models extracted to
models.py: Prevents circular imports betweenparser.py,bibtex_parser.py, andpdf_parser.py
Code Style
- Python 3.10+ with type hints
pathlib.Pathfor all file operations- Dataclasses for data models (
citecheck.models) - Lazy imports in
parser.pyto avoid circular dependencies - All CLI output uses stderr for diagnostics, stdout for structured data
Testing
pip install -e ".[dev]"
pytest tests/Contributing Notes
- Any change to
skills/citecheck/SKILL.mdmust remain agent-agnostic (no "Claude"-specific language) - Skill content should work across Claude Code, Codex, OpenClaw, Hermes, and Gemini CLI
- If adding new CLI flags, update both
cli.pyandREADME.md
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.

