dppdppd/the-boardgame-insert-toolkit/bit-refactor
Claude Code and agent skill by dppdppd/the-boardgame-insert-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Assess-patch-evaluate loop for refactoring the Boardgame Insert Toolkit OpenSCAD library
Install
npx vskill@latest install dppdppd/the-boardgame-insert-toolkit/bit-refactorSKILL.md
What I do
Define the full assess-patch-evaluate work loop for making changes to boardgame_insert_toolkit_lib.3.scad. This skill is loaded at the start of every refactor session and governs the methodology.
When to use me
Load this skill when:
- Starting a refactor work session on the BIT library
- Resuming work after a break (context may be stale)
- Uncertain about the correct workflow for a change
The Work Loop
Every change to the library follows this exact loop. No shortcuts.
Step 1: ASSESS (use @bit-assessor)
Invoke the bit-assessor agent. It will:
- Read
CLEANUP_PLAN.mdto find the next pending task - Read the relevant section of the library source
- Produce a patch specification:
- Exact task ID from the plan
- What to change (old code -> new code, or description of structural change)
- Which test files to use for verification
- Which render views are relevant
- What to look for in the before/after comparison
- Risk level (low/medium/high)
The assessor does NOT make changes. It only produces the spec.
Step 2: PATCH (use @bit-patcher)
Invoke the bit-patcher agent with the patch spec from step 1. It will:
- Render BEFORE baselines using
render_eval.sh - Make the exact code change specified
- Run a fast CSG compile check (
run_tests.sh --csg-only) - If CSG fails: fix the issue, re-check, document what went wrong
- Report what was changed and whether CSG passed
The patcher makes ONE logical change. Never batches multiple tasks.
Step 3: EVALUATE (use @bit-evaluator)
Invoke the bit-evaluator agent. It will:
- Render AFTER views matching the BEFORE baselines
- Read both before and after PNGs and compare them
- For refactors: verify geometry is IDENTICAL (no visible differences)
- For bugfixes: verify intended change is present AND nothing else changed
- Run broader regression if needed (2-3 key tests across feature areas)
- Report: PASS (proceed to commit), FAIL (describe what's wrong), or WARN (needs human review)
If FAIL: the patcher is re-invoked to fix the issue. The evaluator re-runs. If PASS: proceed to step 4.
Step 4: UPDATE DOCS
After every successful change, update ALL of these:
- `CLEANUP_PLAN.md`: Mark task done, update line numbers, add discoveries
- `AGENTS.md`: If the change affects architecture, parameters, or module layout
- Agent/skill files: If the workflow itself needs adjustment based on what was learned
This step is NOT optional. A stale plan is worse than no plan.
Step 5: COMMIT
Create a git commit with:
- One logical change per commit
- Message format:
refactor: <what>orfix: <what>orcleanup: <what> - Never mix refactors and bugfixes in one commit
Then return to Step 1 for the next task.
Key Project Paths
| Path | Purpose | |
|---|---|---|
boardgame_insert_toolkit_lib.3.scad | The library (THE target) | |
bit_functions_lib.3.scad | Helper functions library | |
CLEANUP_PLAN.md | Phased refactor plan with task status | |
AGENTS.md | Project reference, architecture, render commands | |
tests/run_tests.sh | Full test runner (CSG + STL + 7-view PNG) | |
tests/render_eval.sh | Targeted evaluation tool | |
tests/test_*.scad | 53+ test files | |
tests/renders/ | Generated PNGs | |
tests/renders/eval/ | Ad-hoc evaluation renders |
Render Commands Quick Reference
Evaluation Criteria by Change Type
| Change Type | Expected Outcome | Views to Check | |
|---|---|---|---|
| Dead code removal | Identical geometry | iso (any test) | |
| Extract to file scope | Identical geometry | iso, top (pattern/label tests) | |
| Parameterize module | Identical geometry | iso, front (relevant feature tests) | |
| Bug fix | Specific change only | views showing the bug | |
| Magic number rename | Identical geometry | iso (any test) | |
| Consolidate duplicates | Identical geometry | iso, top (tests using both variants) |
Anti-Patterns (DO NOT)
- Do NOT batch multiple tasks into one change
- Do NOT skip the BEFORE render baseline
- Do NOT skip updating CLEANUP_PLAN.md
- Do NOT mix refactors with bugfixes in one commit
- Do NOT assume a change is safe without rendering
- Do NOT update line numbers in the plan without verifying them
- Do NOT skip CSG regression even for "trivial" changes
Security
- Security scanPassed, 100 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 repositoryCheckingdocs/archive/opencode/skills/bit-refactor/SKILL.md
Popularity
- Repository stars
- 463
- Repository forks
- 62
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
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/dppdppd/the-boardgame-insert-toolkit/bit-refactor)