Agent skill
refactoring-03-config-reproducibility
Use when improving run configuration, seeding, and reproducibility for Python research code.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/refactoring-03-config-reproducibility
SKILL.md
Refactoring 03: Config and Reproducibility
Goal
Make experiments reproducible by centralizing configuration, controlling randomness, and recording run metadata.
Sequence
- Order: 03
- Previous: refactoring-02-dependencies-env
- Next: refactoring-04-data-io-validation
Workflow
- Centralize runtime parameters into a config object or file (YAML/TOML/argparse).
- Success: All run parameters are set through a single config surface.
- Seed all RNGs (Python, NumPy, framework) and make the seed a first class parameter.
- Success: Runs are repeatable with the same seed.
- Record metadata: config snapshot, git commit hash, and environment info with outputs.
- Success: Each run output includes config and environment metadata.
- Create a consistent output directory layout for artifacts and metrics.
- Success: Outputs follow a documented directory structure.
- Remove hidden global state and implicit defaults where possible.
- Success: Behavior is driven by explicit parameters.
Guardrails
- Keep config changes backward compatible when possible.
- Do not add heavy config frameworks unless required.
- Favor explicit parameters over environment variables.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?