- Add queue-based matchmaking with Elo-proximity and 10s timeout - Procedural sound engine (SFX, voice announcer, 4-track music) - Sprite system refactored into 6 archetypes (standard, lobster, sheep, cyborg, blob, tank) - 42+ fight choreographies with themed/generic/wild card selection - 4 KO finish styles, super-speed mode, hyperdetail close-ups - Auth routes, JoinBout page, bot profile with stats - 7-tier ranking system (Baby through Legend) - Arena and challenge system expansions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
name, description, disable-model-invocation, allowed-tools, argument-hint
| name | description | disable-model-invocation | allowed-tools | argument-hint |
|---|---|---|---|---|
| refactor | Refactor code for quality, maintainability, and adherence to project standards | true | Read, Edit, Write, Glob, Grep, Bash | [file-or-area] |
Refactor the specified code ($ARGUMENTS) following Archipelago coding standards.
Checklist
Rust Backend
- No
unwrap()orexpect()— use?operator with context - Replace
#[allow(dead_code)]— either use it or remove it - Functions under 50 lines, single responsibility
- Custom error types per module with
thiserror tracingfor logging — noprintln!or secrets in logs- Split files over 500 lines into focused modules
- Run
cargo clippy --all-targets --all-featuresmentally and fix issues
Vue Frontend
- Extract ALL inline Tailwind to global classes in
neode-ui/src/style.css - Use semantic class names:
.glass-card,.info-card,.glass-button,.path-option-card - Replace ALL
.gradient-buttonwith.glass-button(gradient buttons are BANNED) - Replace ALL
.gradient-card/.gradient-card-darkwith.glass-cardor.path-option-card - Settings.vue is the gold standard — all screens should match its patterns
- Replace
anytypes with proper interfaces orunknown - Ensure
<script setup lang="ts">on all components - Remove dead code (unused imports, components like HelloWorld.vue)
- Remove all
TODO/FIXME— fix now or create GitHub issues - Consolidate
console.logcalls to use a logging utility - Split views over 800 LOC into sub-components
General
- No hardcoded paths (
/Users/dorian/...) - No hardcoded credentials — use env vars or secrets manager
- Comment WHY not WHAT
- Remove commented-out code entirely
After refactoring, verify the code still compiles/type-checks. For frontend: cd neode-ui && npm run type-check. Do NOT deploy — leave that to /deploy.