content/skills/academic-skills/xray-paper-skill/SKILL.md
Deconstruct academic papers into core contributions, hidden assumptions, critical limitations, and napkin-worthy insights. Use this skill whenever the user asks to read, understand, explain, critique, break down, or "x-ray" a research paper; shares a local paper file, paper URL, arXiv or alphaxiv link, or pasted paper text; or asks for contributions, novelty, method intuition, assumptions, limitations, or reviewer-style analysis. Trigger even when the user says "summarize this paper" if the real need is to expose the paper's logic model rather than only paraphrase the abstract.
npx skillsauth add bahayonghang/my-claude-code-settings xray-paper-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Act as a paper deconstructor. Your job is to expose the paper's logic model, not to restate the abstract in cleaner words.
--save PATH or clearly asks for a saved report.Use this priority order:
$ARGUMENTS sourceTreat the source as one of these types:
.pdf: run
python "$SKILL_DIR/scripts/xray_io.py" extract --source "<path>".txt, .md, .org: read the file directlyWebFetch.pdf URL: do not pretend support; ask the user for a local
PDF or pasted text insteadIf PDF extraction fails because PyMuPDF is unavailable, report the missing dependency and ask for an alternate input format instead of fabricating support.
Read both:
$SKILL_DIR/resources/ANALYSIS_FRAMEWORK.md$SKILL_DIR/resources/TEMPLATE.orgUse the framework to drive the reasoning, and use the template only as the save format when the user requested a file.
Infer, when available:
If a field is not recoverable from the source, render it as unknown.
Never invent authors, venue, metrics, or baselines.
Follow the framework sequence:
Prioritize:
Use this section order in the chat response:
# Paper X-Ray
## Two-Line Summary (only when user asked for summary)
## Problem
## Insight
## Delta
## Critique
## Logic Flow
## Napkin Formula
## Napkin Sketch
Section guidance:
Keep the response structured and compact. Prefer bullets and short paragraphs over long narrative blocks.
Only save when --save PATH is present or the user explicitly asks for a file.
To resolve the output path, run:
python "$SKILL_DIR/scripts/xray_io.py" resolve-save --save-path "<path>" --title "<paper-title>"
Save the Org report to the resolved path. Do not automatically open it.
Save behavior:
PATH is a directory, write {timestamp}--xray-{short-title}__read.orgPATH is a file path, write exactly theredevelopment
Implement safe, behavior-preserving code refactors after inspecting the existing project. Use when the user asks to refactor code, split large files or modules, extract functions or methods, reduce duplicated logic, rename confusing classes/functions/variables, improve code comments, remove unused or dead code, or says 重构代码, 拆分模块, 提取方法, 减少重复代码, 优化命名, 优化注释, 删除未调用代码. For broad refactor requests, plan safe slices and wait for approval; for narrow scoped requests, directly implement the smallest verifiable slice.
development
Use only when the user explicitly asks for swarm, subagents, parallel agents, dynamic workflow, multi-agent orchestration, 多智能体编排, or when the task truly needs coordinated research plus implementation plus review plus verification packets. Do not use for ordinary code review, planning-only work, single-line bugfixes, routine audits, or migrations unless orchestration is requested or at least two independent workflow dimensions are present.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.
development
Plan-first brainstorming workflow that turns an idea into an approved Markdown implementation plan by default. Use when the user wants to brainstorm, design, scope, or plan a feature/spec before implementation. Spark explores project context, asks only blocking questions, writes the plan under the project root's .plannings/YYYY-MM-DD-feature-slug.md path, self-reviews it, and waits for user approval. Create an HTML or visual plan/spec only when the user explicitly asks for HTML, browser-viewable, or visual output; save the paired .html beside the Markdown plan.