一键导入
create-paper-summary
Create markdown summaries for PDF papers (creates BibTeX first if needed)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create markdown summaries for PDF papers (creates BibTeX first if needed)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user wants to convert a project's `paper/` directory into a git submodule pointing at a separate paper repo (typically for Overleaf linking). Handles removing any existing tracked `paper/` content, adding the submodule, writing a standardized README inside the submodule, and updating the parent repo's README.
Clean up PDF filenames by removing spaces, em dashes, and special characters
Create BibTeX entries from PDF papers and add to main.bib
Create a new Python script following project best practices. $ARGUMENTS
Clean README.md files in the entire repository or specified directories. $ARGUMENTS
Use when updating or replacing the writing style configuration for the paper-writing pipeline, targeting a new venue, audience, or style preferences.
| name | create-paper-summary |
| description | Create markdown summaries for PDF papers (creates BibTeX first if needed) |
| argument-hint | <path/to/pdf-or-directory> |
| disable-model-invocation | true |
Create markdown summaries for academic PDFs.
$ARGUMENTS
@.claude/reference/summary-format.md @.claude/reference/bibtex-format.md
If $ARGUMENTS empty: Ask user for path that contains the PDFs(e.g., lit_review/papers/).
If $ARGUMENTS provided: Use path; resolve relative paths from project root.
Single file: Verify exists and is .pdf; note subdirectory relative to lit_review/papers/.
Directory: Recursively find all .pdf files; note each file's subdirectory.
Build list with full path and relative subdirectory. Report count; if zero, inform user and stop.
paper/main.bib; create lookup with normalized author+year → full entry data (key, title, authors, venue, year, DOI). Report count of existing entries.fetchbib skill to create one, then reload main.bib. Record BibTeX key.lit_review/paper_summaries/{subdirectory}/{BibTeXKey}.md already exists → mark as skip or processFor each PDF marked process:
Use the pdf-extraction skill strategically:
Start with first page (contains title, authors, abstract):
.claude/skills/pdf-extraction/scripts/pdf_extract.sh first "{pdf_path}" 1
Locate key sections by searching:
.claude/skills/pdf-extraction/scripts/pdf_extract.sh search-pages "{pdf_path}" "Method"
.claude/skills/pdf-extraction/scripts/pdf_extract.sh search-pages "{pdf_path}" "Results"
.claude/skills/pdf-extraction/scripts/pdf_extract.sh search-pages "{pdf_path}" "Limitation"
.claude/skills/pdf-extraction/scripts/pdf_extract.sh search-pages "{pdf_path}" "Discussion"
.claude/skills/pdf-extraction/scripts/pdf_extract.sh search-pages "{pdf_path}" "Conclusion"
Extract only the pages containing those sections:
.claude/skills/pdf-extraction/scripts/pdf_extract.sh page "{pdf_path}" {page_num}
Or use range for consecutive pages:
.claude/skills/pdf-extraction/scripts/pdf_extract.sh range "{pdf_path}" {start} {end}
Token Budget: Aim for ~4-6 pages of content per paper maximum.
For short papers (<8 pages): May extract the whole thing:
.claude/skills/pdf-extraction/scripts/pdf_extract.sh all "{pdf_path}"
Never extract the full PDF for papers >8 pages. Target specific sections.
From matching entry: Authors (comma-separated), Title, Year, Publication venue, DOI, BibTeX Key.
Per @.claude/reference/summary-format.md:
Main Takeaways (max 5 bullets):
Methodological Approach (max 4 bullets):
Limitations (max 4 bullets):
lit_review/paper_summaries/{subdirectory}/lit_review/paper_summaries/{subdirectory}/{BibTeXKey}.md using the template from @.claude/reference/summary-format.md/compact Compacting after 5 paper summaries. PRESERVE: (1) Task: creating paper summaries using /create-paper-summary command, (2) papers processed with output paths, (3) papers remaining to process, (4) any warnings/errors, (5) BibTeX state. DISCARD: All extracted PDF text content. Replace PDF extractions with: "Summarized: [filename] → [output_path]".
Paper Summary Creation Summary
==============================
PDFs found: {total}
Skipped (summary exists): {skipped}
New summaries created: {created}
BibTeX entries created: {bib_created}
New summaries:
- {path1}
- {path2}
Warnings (if any):
- {filename}: {warning}
Report error "Could not read PDF: {filename}", skip file, continue.
- **DOI:** Not available
- **URL:** [{url}]({url})
If no URL either, just - **DOI:** Not available.
If paper lacks distinct sections: describe general approach for methodology; note "Not explicitly discussed" for limitations and infer obvious ones.
Highlight that this work has not been peer-reviewed. Consider this fact when summarizing main takeaways and limitations.
Main takeaways = synthesis findings; Methodology = review protocol; Limitations = gaps in reviewed literature.
If filename doesn't match any entry after normalization: search by title keywords as fallback; if still no match, create entry first.