Identify the refactoring goal (clarity, modularity, performance, API stability).
Ensure tests exist for current behavior (add if missing).
Refactor in small steps; run tests after each step.
Remove dead code (trust git history).
Run ruff and ensure the pipeline still runs.
Update docs if interfaces change.
Guardrails
Do not change scientific behavior unless requested.
If behavior must change, document the change and update tests.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: reblocke-forensic-metascience-refactor-and-clean3description: Procedure4---56## Procedure71. Identify the refactoring goal (clarity, modularity, performance, API stability).82. Ensure tests exist for current behavior (add if missing).93. Refactor in small steps; run tests after each step.104. Remove dead code (trust git history).115. Run `ruff` and ensure the pipeline still runs.126. Update docs if interfaces change.1314## Guardrails15- Do not change scientific behavior unless requested.16- If behavior must change, document the change and update tests.1718---19> Converted and distributed by [TomeVault](https://tomevault.io/claim/reblocke) — claim your Tome and manage your conversions.20<!-- tomevault:4.0:skill_md:2026-04-15 -->
Run npx skillmds@latest add tomevault-io/reblocke-forensic-metascience-refactor-and-clean in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Procedure It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.