code-refactor-for-reproducibility
Installation
SKILL.md
Research Code Reproducibility Refactoring Tool
Workflow Overview
Follow this sequence when refactoring a research codebase:
- Analyze — identify reproducibility issues in existing code
- Refactor — apply documentation, parameterization, and error handling
- Specify environment — pin dependencies and create environment files
- Validate — run tests and verify behaviour is unchanged
Step 1: Analyze Code for Reproducibility Issues
Read each source file and check for the following problems. Document findings before making any changes.
Checklist: missing docstrings · hardcoded absolute paths · missing random seeds · bare except: clauses · unpinned imports · unexplained magic numbers