/team-avatar:metalbendingfrom Team Avatar
Performs a strict code quality review focused on structural impurities like spaghetti conditionals, oversized files, useless wrappers, and misplaced logic. Pushes for ambitious restructuring that dramatically simplifies code without changing behavior.
Ships in Team Avatar. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Metal looks solid. Everyone said it could not be bent. Toph felt the small bits of earth still trapped inside the refined metal, and she bent the whole structure through those impurities. Review code the same way. A change that works and looks rigid still carries impurities: a branch bolted into the wrong flow, a file grown past what a reader can hold, a wrapper that only adds a hop. Find them, then bend the structure until it is simpler.
On Codex, read avatar-mode/references/codex.md for tool equivalents.
This is an unusually strict review of implementation quality, maintainability, abstraction quality, and codebase health. It does not hunt correctness bugs. earth-rumble runs this review in parallel with its correctness pass. Run this skill alone for a quality-only audit.
Above all, be ambitious about structure. Do not stop at local cleanup. Search for code judo moves. A code judo move is a restructuring that keeps behavior and makes the implementation dramatically simpler, smaller, more direct, and more elegant.
The top-level session running avatar-mode may dispatch the review to Toph with subagent_type: "team-avatar:toph" and references/quality-reviewer.md as her brief. Set model from the toph review line of the avatar-setup sheet (${CLAUDE_CONFIG_DIR:-~/.claude}/team-avatar-models.md on Claude Code, ${CODEX_HOME:-~/.codex}/team-avatar-models.md on Codex). The default is opus. Omit model when the line says inherit. When the line carries an effort, pass that level as the Agent tool's effort parameter.
Gather the change first. Run git diff <base>...HEAD (the base is main unless the repo says otherwise) and read the full contents of every changed file. Pass both to the reviewer in labeled sections, ### Git / diff output and ### Changed file contents.
Start from this baseline.
Perform a deep code quality audit of the current branch's changes. Rethink how to structure and implement the changes to meaningfully improve code quality without changing behavior. Improve abstractions and modularity, reduce spaghetti code, and improve succinctness and legibility. Be ambitious. If a clear path to a better implementation means restructuring some of the codebase, take it. Be thorough and rigorous. Measure twice, cut once.
Apply the baseline above, plus these rules.
Be ambitious about structural simplification.
Do not let a PR push a file from under 1000 lines to over 1000 lines without a very strong reason.
Do not allow spaghetti growth in existing code.
if statements in random places is a design problem, not a style nit.Bias toward cleaning the design, not just accepting working code.
Prefer direct, boring, maintainable code over hacky or magical code.
Push hard on type and boundary cleanliness when it affects maintainability.
unknown, any, and cast-heavy code when a clearer type boundary could exist.Keep logic in the canonical layer and reuse existing helpers.
Treat needless sequential orchestration and non-atomic updates as design smells when the cleaner structure is obvious.
any, unknown, or optional parameters that muddy the real contract.Do not settle for "maybe rename this" when the real issue is structural. Do not settle for a cleaner version of the same messy idea when a much simpler idea is plausible.
Be direct, serious, and demanding about quality. Do not be rude, and do not soften a major maintainability problem into a mild suggestion. If the code makes the codebase messier, say so. If the change missed a dramatic simplification, say that too.
Phrasings that work:
this pushes the file past 1k lines. can we decompose it first?this adds another special-case branch to an already busy flow. can it live behind its own abstraction?this works, but it makes the surrounding code more tangled. let's keep the behavior and restructure the implementation.this looks like feature logic leaking into a shared path. can we isolate it?this abstraction seems unnecessary. can we keep the direct flow?why does this need a cast or an optional here? can the boundary be explicit instead?this looks like a bespoke helper for something we already have. can we reuse the canonical one?there's a code judo move here that makes this much simpler. can we reframe it so these branches disappear?this refactor moves the complexity but does not delete it. can the model itself be simpler?Order findings this way.
Do not flood the review with low-value nits when larger structural issues exist. A few high-conviction comments beat a long list of cosmetic notes.
The deliverable is layered, never one monolithic file.
/tmp/<project>-metalbending/. It holds one summary report plus one detail report per subsystem or reviewer (01_<subsystem>.md, 02_<subsystem>.md, and so on).kyoshi-formation, this section overrides that skill's aggregation rules. Each reviewer's report is a detail file of the deliverable, not a raw dump to discard. Put the merged judgment in the summary, keep the details on disk, and link them.Do not approve because behavior seems correct. Approve only when the change has:
Treat these as presumptive blockers unless the author justifies them clearly:
When the bar is not met, leave explicit, actionable feedback and push for the cleaner decomposition.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tmcfarlane/team-avatar --plugin team-avatar58 skills in this plugin
/agni-kaiZuko's Agni Kai for bakeoffs. The formal firebending duel, where competing implementations fight under the same rules and a judge declares the winner. Use for arena, /arena, "arena this", "throw it in the arena", "bakeoff", or when one attempt at a nontrivial design or artifact would lock in the wrong shape. Spawns N parallel candidates at the same task, picks a base with a cross-judge, and grafts the strongest parts of the losers into it./avatar-helpAang showing a new friend around the team. Explains Team Avatar to a user, the roster and who owns what, how to invoke a skill on Claude Code and Codex, which skill fits a situation, and how to word a good prompt. Use for /avatar-help, "how do I use team avatar", "which skill should I use", "what can the team do", or a question about setup, routing, or a run that went wrong./Other plugins' skills for the same job