code-archaeology

Featured

Recover the structure, intent, and lineage of old code, data, or analysis files. Use when inherited or dormant research code must be understood before it is changed. Not for a quality review of already-understood code.

Data & Documents 144 stars 27 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
72
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Code Audit Skill **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. ## Purpose 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. ## When to Use - Returning to an old project after months/years - Taking over code from a coauthor - Before extending existing analysis - R&R requiring you to revisit old work ## When NOT to Use - **Brand new projects** — use project-safety skill instead to set up structure - **Formal code verification** — use the Referee 2 agent for cross-language replication - **Quick code questions** — just ask directly, no need for full audit ## Workflow 1. **Explore the directory**: - What files exist? - What's the structure? - When were things last modified? 2. **Understand the pipeline**: - What are the main scripts? - What order do they run in? - What data do they use? - What outputs do they produce? 3. **Document findings**: - Create/update README.md - Map data flows - Note dependencies 4. **Establish safety**: - Create legacy/ folder - Copy (don't move) originals - Se...

Details

Author
flonat
Repository
flonat/flonat-research
Created
7 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category