qinghonglin/paperdoctor/read-code
Claude Code and agent skill by qinghonglin/paperdoctor
- community
Checking that the SKILL.md file is still in the repository.
Verify paper claims with evidence_type "code" against the actual codebase. Use after read-txt to check if code matches what the paper says.
Install
npx vskill@latest install qinghonglin/paperdoctor/read-codeSKILL.md
The same SKILL.md was published earlier as qinghonglin/paperdoctor/read-code.
Verify Code Claims
Check each claim tagged evidence_type: "code" from read-txt against the actual codebase.
Workflow
Step 1: Load Claims
Filter to claims where evidence_type includes "code". These are the claims to verify.
Each claim's id, source, quote, claim, evidence_type fields should be copied as-is into the output — do not modify them.
Step 2: Read Code Index
This is the tree-sitter index from prepare-paper. Use it to locate relevant files, symbols, and config entries.
Step 3: Verify Each Code Claim
For each code claim, find the relevant code and judge whether it matches.
How to find code: Use Grep, Glob, and the code index. For hyperparameters, check config files first. For architecture claims, check class definitions and __init__ / forward methods.
For each claim, produce:
Field definitions (paper triple → fields):
| Field | When | Purpose | |
|---|---|---|---|
quote | always | The Where evidence. Must start with `path/to/file.ext:LINE` (or `:LINE-LINE`) followed by — short note about what the code shows. If the issue is "feature X is missing from the repo", anchor to the most relevant file at line 0, e.g. src/trainer/fgt_prediction_trainer.py:0 — no margin-loss entry point present. After the file:line prefix you may include the original paper sentence on a new line so the reviewer sees both ends of the comparison. Downstream tooling extracts the path:LINE prefix to wire the code viewer. | |
reason | warning/error only | The Why. Explanation of the discrepancy. | |
suggest | warning/error only | The How. One-sentence concrete fix the author can apply. |
Statuses:
| Status | Meaning | |
|---|---|---|
pass | Code matches the claim | |
warning | Code is related but differs in detail (e.g., paper says Adam, code uses AdamW) | |
error | Code contradicts the claim, or no implementation found in the repo |
When status is warning or error, reason should explain the discrepancy and suggest should propose a concrete fix (e.g., "Update the paper text to match the code, or change the code to AdamW to match the paper claim").
Step 4: Save Report
Output: {paper_dir}/reports/check_code.json
Coverage Rule
Every claim with `code` in evidence_type MUST appear in `results`. No claim may be silently skipped. Valid statuses are pass / warning / error. If a claim cannot be verified at all from the codebase (no relevant file found, repo too incomplete), use status: "warning" with quote like path/to/expected/file.ext:0 — file not in repo so the reviewer can still see what was being checked.
Tips
- Check config files (
.json,.yaml) first — most hyperparameters live there, not in Python code - Map paper terms to code terms (e.g., "learning rate" →
lr, "layers" →depth) - If the index has
config_entries, search those before grepping full files - A paper saying "Adam" when code uses "AdamW" is a
warning, not anerror
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/read-code/SKILL.md
Popularity
- Repository stars
- 25
- Repository forks
- 1
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/qinghonglin/paperdoctor/read-code)