yogthos/clojure-lora-training/arch-refactor-rounds
Claude Code and agent skill by yogthos/clojure-lora-training
- community
Checking that the SKILL.md file is still in the repository.
Execute architectural refactoring in small, verified rounds. Each round targets 3-5 concrete, testable changes with import and test verification.
Install
npx vskill@latest install yogthos/clojure-lora-training/arch-refactor-roundsSKILL.md
Architectural Refactoring in Rounds
When cleaning up a codebase, work in small rounds of 3-5 concrete tasks. Each round is independently verifiable — imports work, tests pass. This keeps the codebase functional at all times and prevents large, unverifiable diffs.
Round Structure
Each round:
- 3-5 concrete tasks — specific files, specific changes, no ambiguity
- One task at a time — make the change, verify imports, move to next
- End-of-round verification — import all changed modules + run relevant tests
Task Categories (in priority order)
Priority order for early rounds:
- Create missing shared modules (models, types, constants that multiple modules import but that don't exist)
- Remove noise ([LEGACY] markers, empty files, dead docstrings)
- Centralize scattered concerns (env vars, config loading, logging setup)
- Fix import chains (ensure __init__.py files export what's actually used)
Later rounds:
- Consolidate duplication (merge similar classes, extract shared base)
- Fix design patterns (god objects, feature envy, tight coupling)
- Reorganize module boundaries (move files between packages)
Verification Pattern
After each task:
After each round:
Then run relevant tests. Add -p no:cacheprovider to every pytest invocation during a refactor — it disables the on-disk cache so a stale .pytest_cache can never mask an import failure or reuse a stale collected test:
Full-suite-per-round (when the suite is fast): on this project the full tests/unit suite (~837 tests, 5 skipped) runs quickly, so prefer running the FULL suite every round rather than just the changed modules — stronger regression coverage, and it's the same command as the session-end gate:
Session-end gate (non-negotiable): before declaring the refactor done, run the FULL unit suite and require zero failures. If spaCy (en_core_web_sm) is NOT installed, add --ignore=tests/unit/test_content_classifier.py --ignore=tests/unit/test_transfer.py to drop the spaCy-dependent tests (see Pitfalls); if spaCy IS installed, run everything.
Pitfalls
git push origin mainmay require human approval via the approval_provider. If blocked, tell the user explicitly and do not consider the session complete.- Tests in
test_content_classifier.pyandtest_transfer.pyrequire spaCy (en_core_web_sm). When spaCy isn't installed, skip those with--ignore=tests/unit/test_content_classifier.py --ignore=tests/unit/test_transfer.py.
What NOT to do in early rounds
- Don't refactor logic — only move/rename/delete dead code
- Don't "clean up" code you're not targeting — stay focused on the task list
- Don't skip verification — one broken import cascades
- Don't do more than 5 tasks per round — verify and commit before continuing
Security
- Security scanPassed, 95 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 repositoryChecking.dirge/skills/arch-refactor-rounds/SKILL.md
Popularity
- 7-day trend score
- 0
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/yogthos/clojure-lora-training/arch-refactor-rounds)