agentleFS
khangledoanminhkhangledoanminh/agentskillslab/skills/repo-resurrection/SKILL.md

repo-resurrection

Skill1 starsChanged 3 months agoMITView on GitHub

Revive an abandoned repository: audit its state, restore the build environment, fix broken dependencies and tests, modernize code and tooling, generate documentation, and produce a migration plan to bring the project back to life. Use when inheriting a dead or broken project that needs to become buildable, testable, and maintainable again.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Document mọi decision: vì sao upgrade version X mà không phải Y.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Repo Resurrection

Hồi sinh repo chết theo thứ tự: audit → environment → dependencies → tests → code → docs → migration plan. Mỗi bước có exit criterion rõ.

Quy trình (7 bước)

  1. Audit: đọc README/docs cũ, last commit, CI config, lockfile. Chạy scripts/audit_state.py <repo> → trạng thái: build broken? tests? dependency age? docs dead links?
  2. Restore environment: dựng env chạy được (venv/container). Ghi lại chính xác steps + phiên bản tool — đây là deliverable quan trọng nhất.
  3. Fix dependencies: cập nhật package tới version build được + không vulnerable. Giữ lockfile mới.
  4. Repair tests: làm test suite chạy lại. Nếu test quá cũ không sửa được: viết characterization test mới covering core behavior.
  5. Modernize code: chỉ các thay đổi cần để build/test pass + security fixes. KHÔNG rewrite theo ý thích — giữ behavior.
  6. Generate docs: README mới (setup, run, test, architecture ngắn), docstring thiếu, changelog từ git history.
  7. Migration plan: roadmap từng giai đoạn (1: build/test xanh; 2: dependency current; 3: feature parity; 4: CI tự động) + risk từng giai đoạn.

Exit criteria

BướcCriterion
2make build/equivalent pass trong env mới
3Không dependency vulnerable đã biết (embedded CVE check)
4≥1 test suite chạy xanh
5Behavior test không đổi
6README mới tồn tại + setup chạy được từ README
7Migration plan written + review-ready

Nguyên tắc

  • Behavior preservation tuyệt đối — project sống lại, không biến thành project khác.
  • Document mọi decision: vì sao upgrade version X mà không phải Y.
  • Nếu repo quá lớn: resurrect core module trước, module còn lại trong migration plan.

Scripts

  • scripts/audit_state.py <repo> — báo cáo trạng thái repo cũ (last commit age, CI, deps, tests, docs).

References

  • AUDIT-CHECKLIST.md
  • MODERNIZATION-GUIDE.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.