Skill / SKILL.md

Temps Split Module

gotempsh/temps

Mechanically split a large Rust source file (a "god file") into a module directory with no behaviour change - move-only commits, pub use re-exports that keep the public API, impl blocks spread across submodules, narrow pub(super)/pub(crate) visibility, a sibling tests.rs for oversized inline tests, and the rule-drift and test-count checks that prove nothing changed. Use when a file is over ~3,000 production lines, when inline tests push it past ~1,500 lines, or when asked to split or reorganise a module.
2 views 945 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Mechanically split a large Rust source file (a "god file") into a module directory with no behaviour change - move-only commits, pub use re-exports that keep the public API, impl blocks spread across submodules, narrow pub(super)/pub(crate) visibility, a sibling tests.rs for oversized inline tests, and the rule-drift and test-count checks that prove nothing changed. Use when a file is over ~3,000 production lines, when inline tests push it past ~1,500 lines, or when asked to split or reorganise a module.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/gotempsh/temps' skill-source

Use the complete skill-source/.agents/skills/temps-split-module directory with your client’s skill installer.

  • .agents/skills/temps-split-module

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory .agents/skills/temps-split-module

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
418935f59585ca6edc7dea2bcfcac684938e6ec540cb9f7dc9842de167c782fa
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills