Prompt file imported from betsyherbert/cortical_development (
.cursor/commands/cleanup-file-integrated.md). Copyright stays with the author.
Clean up the currently open Python file in an integration-safe way.
Scope:
- primary focus on this file
- you may read and modify other files if needed to preserve compatibility
Allowed changes:
- simplify logic
- improve naming
- refactor internal structure
- change function or class interfaces IF:
- all call sites are updated
- behavior is preserved
Constraints:
- scientific behavior must not change
- diffs must remain readable
- no architectural redesigns
Process:
- Identify any interface changes required.
- Update all dependent code.
- Run relevant tests if available.
Output:
- Summary of changes
- List of files modified
- Confirmation that compatibility was preserved
