monolith-cleanup

Installation
SKILL.md

Monolith Cleanup Guidelines

Use this skill after a monolithic file has been split into smaller modules.

Objective

Complete cleanup without changing behavior:

  • Archive the original monolithic file
  • Remove redundant module paths
  • Preserve existing public API access patterns
  • Verify the refactor tree is stable and buildable

Required Cleanup Steps

  1. Archive the original monolithic file before deleting it:
    • Copy or move it to src/_archive/
    • Rename with .bak suffix (example: src/_archive/foo.rs.bak)
  2. Delete (cull) the original monolithic source file from src/ once replacement modules are in place.
  3. Avoid duplicate module paths:
Related skills

More from ds-codi/project-memory-mcp

Installs
1
GitHub Stars
4
First Seen
Apr 1, 2026