- Protocol: 10 context categories (apps, system, network, bitcoin, media, files, notes, search, ai-local, wallet) - ContextBroker: real data wiring for all categories with sanitization - Permissions: user toggles for all categories in Settings - Nginx: Claude API, OpenRouter, SearXNG proxy pass-through - Actions: launch-app, search-web, install-app handlers - Chat.vue: loading state + connection indicator - Integration test page: test-aiui.html 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.