用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/alaliqing/claude-paper --skill study命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use this skill when the user wants to read, study, analyze, or deeply understand a research paper (PDF).
Use this for a quick summary of a research paper's core ideas and key points. Use when you want to quickly understand a paper without deep study materials. Triggers on PDF paths, arXiv URLs, or paper URLs.
Start the Claude Paper web viewer to browse and study papers
基于 SOC 职业分类
正在显示 SKILL.md
| name | study |
| description | Use this skill when the user wants to read, study, analyze, or deeply understand a research paper (PDF). |
| disable-model-invocation | false |
| allowed-tools | Bash, Write, Edit, Read |
Invoke this skill with a paper PDF path.
Language Detection: Detect the user's language from their input and generate ALL materials in that language.
Primary Objective: Facilitate deep conceptual understanding and research-level thinking.
Secondary Objective: Create a structured, reusable paper knowledge system.
This workflow is not just for summarizing — it builds a learning environment around the paper.
if [ ! -f "${CLAUDE_PLUGIN_ROOT}/.installed" ]; then
echo "First run - installing dependencies..."
cd "${CLAUDE_PLUGIN_ROOT}"
npm install || exit 1
# Install Python dependencies for image extraction
python3 -m pip install pymupdf --user 2>/dev/null || pip3 install pymupdf --user 2>/dev/null || echo "Warning: Failed to install pymupdf"
touch "${CLAUDE_PLUGIN_ROOT}/.installed"
echo "Dependencies installed!"
fi
Recommended:
Supports multiple input formats:
~/Downloads/paper.pdfhttps://arxiv.org/pdf/1706.03762.pdfhttps://arxiv.org/abs/1706.03762USER_INPUT="<user-input>"
# Check if input is a URL (starts with http:// or https://)
if [[ "$USER_INPUT" =~ ^https?:// ]]; then
# Download PDF from URL
INPUT_PATH=$(node ${CLAUDE_PLUGIN_ROOT}/skills/study/scripts/download-pdf.cjs "$USER_INPUT")
else
# Use local path directly
INPUT_PATH="$USER_INPUT"
fi
For URLs, the download script will:
/tmp/claude-paper-downloads//abs/ URLs to PDF URLs automaticallyFor local paths, use the path directly without downloading.
Extract structured information:
PARSE_OUTPUT_DIR=$(mktemp -d)
node ${CLAUDE_PLUGIN_ROOT}/skills/study/scripts/parse-pdf.js \
"$INPUT_PATH" \
--output-dir "$PARSE_OUTPUT_DIR"
The command prints a small, strict JSON summary to stdout and writes:
meta.json — title, authors, abstract, links, page count, and a context-safe content previewpaper.txt — complete extracted text without the 50k preview limitUse paper.txt as the source for generating materials. Search it and read relevant sections as needed; do not treat meta.json.content as the complete paper when contentTruncated is true.
After choosing {paper-slug}, create the paper directory and copy both parser artifacts plus the original PDF:
mkdir -p ~/claude-papers/papers/{paper-slug}
cp "<metaPath-from-parser-output>" ~/claude-papers/papers/{paper-slug}/meta.json
cp "<fullTextPath-from-parser-output>" ~/claude-papers/papers/{paper-slug}/paper.txt
cp "$INPUT_PATH" ~/claude-papers/papers/{paper-slug}/paper.pdf
Generate exactly 2 tags in Step 2.5 and add them to the saved meta.json.
Fallback: If structured parsing fails, extract raw text and continue with degraded structure.
Before generating any files, evaluate:
Difficulty Level
Paper Nature
Methodological Complexity
This assessment determines:
Before generating files, infer exactly 2 tags from semantic understanding of the paper.
Rules:
paper, research, ai, mlExamples:
machine translation, self-attention3d detection, bev transformerprotein folding, structure predictionPersist these 2 tags in both locations:
~/claude-papers/papers/{paper-slug}/meta.json as tags~/claude-papers/index.json entry as tagsCreate folder:
~/claude-papers/papers/{paper-slug}/
15 questions:
Use this format:
### Question
<details>
<summary>Answer</summary>
Detailed explanation.
</details>
---
Include:
At least one runnable demo must be created.
All code demos must be placed in:
~/claude-papers/papers/{paper-slug}/code/
Create the code directory first:
mkdir -p ~/claude-papers/papers/{paper-slug}/code
Guidelines:
Possible types:
Name descriptively:
Avoid generic names.
Create a single self-contained HTML file for interactively exploring the paper's core concepts.
Output path:
~/claude-papers/papers/{paper-slug}/index.html
Choose the interaction pattern that best fits the paper — architecture diagrams, parameter explorers, result dashboards, formula breakdowns, comparison matrices, etc. Let the paper's content dictate the format rather than forcing a fixed layout, focusing on the core ideas of the paper.
Every interactive control (slider, toggle, dropdown) should visibly change the visualization. Include brief explanatory text alongside interactive elements to teach concepts.
mkdir -p ~/claude-papers/papers/{paper-slug}/images
python3 ${CLAUDE_PLUGIN_ROOT}/skills/study/scripts/extract-images.py \
paper.pdf \
~/claude-papers/papers/{paper-slug}/images
Rename key images descriptively:
CRITICAL: Read existing index.json first, then append the new paper. Never overwrite the entire file.
If index.json does not exist, create:
{"papers": []}
Append new entry to the papers array:
{
"id": "paper-slug",
"title": "Paper Title",
"slug": "paper-slug",
"authors": ["Author 1", "Author 2"],
"abstract": "Paper abstract...",
"year": 2024,
"date": "2024-01-01",
"tags": ["tag-1", "tag-2"],
"githubLinks": ["https://github.com/..."],
"codeLinks": ["https://..."]
}
IMPORTANT: The index.json file must be located at:
~/claude-papers/index.json
Invoke:
/claude-paper:webui
After all files are generated:
Ask:
Allow user to:
Generate a new file inside the same folder:
Examples:
If iterated:
Create:
This makes the paper folder a growing knowledge node.