browser-use
Drive the built-in browser tool (Mixdog Browser Use) on a live web page.
Format, lint, apply structural rules, and clean up user-selected code with the tidy tool.
Claude Code
$ npx -y skills add tribgames/mixdog --skill code-tidy --agent claude-code
Codex
$ npx skills add tribgames/mixdog --skill code-tidy -a codex -y
Cursor
$ npx skills add tribgames/mixdog --skill code-tidy -a cursor -y
Gemini CLI
$ npx skills add tribgames/mixdog --skill code-tidy -a gemini-cli -y
GitHub Copilot
$ npx skills add tribgames/mixdog --skill code-tidy -a github-copilot -y
OpenCode
$ npx skills add tribgames/mixdog --skill code-tidy -a opencode -y
Windsurf
$ npx skills add tribgames/mixdog --skill code-tidy -a windsurf -y
name: code-tidy
description: Format, lint, apply structural rules, and clean up user-selected code with the tidy tool.
when_to_use: 'Tidy, format, lint, deslop, or clean up code; not new features or bug fixes.'
metadata:
requires: tidy
dependencies:
tools:
- type: tool
value: tidyLayers, cheapest and safest first: project formatters and linters through `tidy`, structural rule packs, then agent-level cleanup. Every layer preserves behavior and public API; this is not a bug hunt. The `tidy` schema owns action fields; this file owns scope, order, and boundaries.
found while cleaning is reported, never fixed in a cleanup edit.
user asks to add or rewrite one.
report-only stays read-only on every layer and lists what would change.
targeted edits, or report the limitation and ask before widening.
1. Scope comes from the user: named files, directories, a feature area resolved to confirmed paths, or an explicitly requested whole project; ask first when absent or ambiguous. Never infer it from a diff, branch, commit, or recent activity. 2. Recommend (do not require) committing existing work before an apply run; a dirty tree means preserve those edits. 3. Drop deleted, binary, generated, vendored files and lockfiles unless explicitly included; include new non-ignored files. Consumers and covering tests may be read; editing them outside the scope needs approval. 4. Pass the approved paths on every `scan`/`check`/`fix`; `paths:["."]` only for an explicitly requested whole project. 5. Review large scopes in bounded partitions once, keeping completion state; report blocked partitions without restarting finished work. Read per-rule and per-directory counts first, then page only relevant rows (`tidy action:'results'` filters). Truncation, timeouts, or scope leakage mark a partition **unfinished**, not clean; blocked checks stop dependent edits only.
1. `tidy action:'scan'` first (languages, engines used/missing, `installHint`); it never downloads. 2. Downloads are automatic under the default `auto` policy. Only when `tidy.downloads` is `ask` does a result carry `needsApproval`: ask once, listing engines and bytes, then re-call with `approveDownloads:true`; if declined, skip those engines and say so. 3. Engines run only through `tidy`, never installed by hand; report `installHint` and continue other checks. An ad-hoc `npx <engine>`, global binary, or package script is not verification. An engine `tidy` cannot resolve, or an unavailable structural engine (`check`/`fix` fail with a rebuild remedy; `scan` still works; retry with `structural:false`), leaves that check blocked, never clean. 4. Plan with `fix` without `apply:true`: the dry run is diagnostics and candidate files, not a frozen patch. For a restricted focus, avoid a combined apply that touches unrelated code. 5. Apply with `apply:true` once the plan is settled (skip it when the dry run proposes nothing), then review the actual changes. Rules without a fix are diagnostics for the agent layer. Keep the engine pass a distinct change set from semantic edits. On engine or structural failure, truncation, or a rejected edit, stop affected writes; a partial result is not success.
Read `references/agent-cleanup.md` first (it owns the ladder, lenses, slop, risk tiers, source-text guards and structural signals); also `references/test-suite-slop.md` when tests are in scope and `references/cleanup-report.md` for the report.
1. **Pin behavior (read-only).** Find the source-text guards a planned move can affect. A unit whose touched behavior no test covers gets only SAFE changes; report it instead of adding tests. 2. **Ladder, then lenses** on each selected source unit. Engine diagnostics point at units, not coverage. Findings need path+symbol evidence. Use history only when code, contracts, and tests leave intent unclear; unresolved intent blocks deletion. 3. **Apply by tier.** SAFE as one batch; CAREFUL one source unit at a time, each wired into its callers (never leave a new module nothing imports); RISKY is reported with its evidence and applied only after the user approves that item. Dead code follows `references/dead-code.md`. 4. Report correctness defects and out-of-scope changes; never fix them here. When principles cannot pick between two rewrites, apply neither and record both.
Use the shared evidence budget: scoped `tidy check`, plus behavioral checks and typechecking only where the edits can invalidate their contracts. Reuse valid passes. Attribute failures from evidence, not from whether the failing file was edited. A broken runner, or a skipped, failed or blocked check, leaves its scope unverified; say so, never count it as passed.
Only if checks fail and cannot be fixed: undo this run's edits with targeted patches that preserve prior or concurrent work, never `git checkout`, `reset`, `restore`, or `stash`; if the edits cannot be separated safely, leave them and report the blocker.
Trust-boundary validation, contracts (exports, routes, flags, columns, keys, event and wire names; a rename is RISKY even when the name is bad), the never-dead list, intentional complexity, directives and public or security docs, and the project's own idioms. The full list is in `references/agent-cleanup.md`.
Report once, after the last partition, using `references/cleanup-report.md`, with everything needing the user's decision in one list. Pause
Open-source desktop coding agent where a lead model plans and cheaper models handle search, edits and review.
Drive the built-in browser tool (Mixdog Browser Use) on a live web page.
Drive the built-in computer tool on the local Windows, macOS, or Linux desktop.
Create, edit, review, or redline a Word document (.docx/.dotx/.docm) with the office tool.
Retrieve and interpret prior sessions, decisions, and unfinished work.
Find, install, inspect, repair, or remove Mixdog-managed local GGUF models.
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration