用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/flonat/claude-research --skill code-archaeology命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you need to audit a research project against the init-project-research template.
Use when you need to validate a paper's bibliography — cross-references \cite{} keys against .bib files or embedded \bibitem entries, finds missing/unused/typo'd keys, and checks every key against the Paperpile library via the local resolver. Deep verification mode spawns parallel agents for DOI/metadata validation at scale. Fix mode rekeys drifted keys to canonical and stages missing entries for Paperpile.
Use when you need to bootstrap a full research project with directory scaffold and Overleaf symlink.
基于 SOC 职业分类
正在显示 SKILL.md
| name | code-archaeology |
| description | Use when you need to review and understand old code, data, or analysis files. |
| allowed-tools | Bash(ls*), Bash(cp*), Bash(mkdir*), Bash(git*), Read, Write, Edit, Glob, Grep |
| argument-hint | ["project-path"] |
CRITICAL RULE: Never delete data or code files. Copy to legacy/, never move or delete originals.
Systematically review and understand old code, data, and analysis files.
Based on Scott Cunningham's workflow of reviving old projects - understanding what exists, documenting it, and making it safe to work with.
For formal audits with cross-language replication and referee reports, use the Referee 2 agent (.claude/agents/referee2-reviewer.md). This skill is for understanding and documenting existing code, not formal verification.
Explore the directory:
Understand the pipeline:
Document findings:
Establish safety:
Create audit report:
1. Never delete data. Under no circumstances.
2. Never delete programs. No do-files, no R scripts, nothing.
3. Stay in this folder. Can go down, not up.
4. Use a legacy folder. Move originals there for safekeeping.
5. Copy, don't move. When reorganising, always copy from legacy.
I'm returning to an old project after [TIME]. Please help me understand what's here.
1. Explore the directory and tell me what you find
2. Identify the main analysis scripts and their order
3. Map the data pipeline (inputs → processing → outputs)
4. Note any potential issues (missing files, unclear code, etc.)
5. Create a README documenting everything
Before making ANY changes, create a legacy/ folder and copy everything there.
Understand how data moves through the project:
When you find multiple versions of the same data:
After a code audit, you should have:
project/
├── README.md ← Project overview (generated)
├── AUDIT.md ← Audit findings and issues
├── CLAUDE.md ← Safety rules for this project
├── legacy/ ← Protected original files
├── docs/
│ └── data_dictionary.md
└── output/
└── audit_deck.pdf ← Visual summary
Initial exploration:
"Read all the .do/.R/.py files in this project and create a summary of what each script does, including inputs and outputs."
Data comparison:
"Compare dataset_v1.dta and dataset_v2.dta. Show me where they differ, with summary statistics and visualizations."
Documentation:
"Create a README.md that documents this project's structure, data sources, and how to reproduce the main results."
"Audit my Brexit replication project - I haven't touched it in 8 months. Tell me what's there, what state it's in, and what I need to do to pick it back up."