mmdmcy/katrust/katrust-refactor
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Split oversized Rust main.rs, app.rs, server.rs, lib.rs, or other god modules into the consistent KatRust ownership structure without changing behavior. Use for existing Rust repositories that are difficult to navigate, contain mixed UI/domain/persistence/process responsibilities, or need to become digestible for humans and lower-context AI models.
Install
npx vskill@latest install mmdmcy/katrust/katrust-refactorSKILL.md
KatRust Refactor
Read references/standard.md before editing.
Workflow
- Confirm a clean or understood Git worktree. Preserve unrelated changes.
- Run tests and record the baseline. Do not refactor an already failing project without identifying the failure first.
- Run
cargo katrust inspectwhen available; otherwise list top-level items and file sizes withrgandwc -l. - Classify every item in the target god module as app, feature, interface, integration, persistence, security, test, or narrowly shared code.
- Write a capability map before moving code. Use product vocabulary already present in types, commands, routes, UI labels, and tests.
- Add contract tests for behavior that lacks protection.
- Move one responsibility cluster per checkpoint. Do not redesign logic while extracting it.
For large reviewed moves, scripts/extract_ranges.py may perform the mechanical copy/remove step from a hash-pinned JSON plan; semantic ownership must still be chosen before running it.
- Run formatting, compilation, and focused tests after every move.
- Minimize visibility. Prefer explicit imports and capability APIs over wildcard re-exports.
- Move tests beside their owner or into matching integration-test modules.
- Update
docs/architecture.mdwith ownership and dependency direction. - Finish only when the former god module owns one clear responsibility;
main.rsmust contain startup and wiring only.
Guardrails
- Split by semantic ownership, never every N lines.
- Keep external process and protocol code in integrations.
- Keep durable storage in persistence or feature repositories.
- Keep UI/CLI/HTTP delivery in interfaces.
- Do not create
utils.rs, speculative traits, registries, or runtime frameworks. - Do not commit, push, reset, or delete runtime data unless explicitly requested.
- Stop and report ambiguity when naming a capability would require inventing product behavior.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/katrust-refactor/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mmdmcy/katrust/katrust-refactor)