ワンクリックで
stellar-code-quality-review
// Strict maintainability review — abstraction quality, file size, spaghetti growth. Use for a stellar code quality review, deep quality audit, or harsh maintainability review.
// Strict maintainability review — abstraction quality, file size, spaghetti growth. Use for a stellar code quality review, deep quality audit, or harsh maintainability review.
Runs Cypher, inspects the schema / data model via `neo4j-cli query :schema`, manages Neo4j Aura, Neo4j connection (dbms) and embedding-provider credentials, manages local Neo4j Docker containers (create / list / get / start / stop / delete, including ephemeral runs that emit a .env for `query --env`), and installs the embedded self-skill or any curated catalog skill from neo4j-contrib/neo4j-skills into supported AI agents. Use when the user wants to execute or pipe Cypher, inspect/view/introspect the schema or generate a data model (labels, relationship types, properties) via `:schema`, embed text inline as a parameter, list/create/get/delete/provision/resize Aura instances or tenants, manage Aura Agents, manage Aura/dbms/embed credentials, run / start / stop a local Neo4j Docker container, install/remove/list/refresh agent skills (self or catalog), or self-update the neo4j-cli binary via `neo4j-cli update`. Skip for Cypher syntax, Neo4j drivers, Kubernetes, Neo4j Browser, or other databases.
Fixture CLI for golden-file tests. Trigger when render code changes.
| name | stellar-code-quality-review |
| description | Strict maintainability review — abstraction quality, file size, spaghetti growth. Use for a stellar code quality review, deep quality audit, or harsh maintainability review. |
| disable-model-invocation | true |
Unusually strict review of implementation quality, maintainability, and abstraction health. Push for ambitious restructurings — "code judo" moves that preserve behavior while making the code dramatically simpler, smaller, and more direct. Delete complexity; don't rearrange it.
Deep code-quality audit of the current branch. Rethink structure to improve quality without changing behavior. Improve abstractions, modularity, succinctness, legibility. Be ambitious — if restructuring the codebase yields a clearly better implementation, go for it. Measure twice, cut once.
Be ambitious about structural simplification. Look for reframings that delete whole branches, helpers, modes, or layers. Prefer the solution that feels inevitable in hindsight. If you can delete complexity instead of moving it, push for that.
Don't let a file cross 1k lines without strong reason. Treat it as a code-quality smell; prefer extracting helpers, subcomponents, or modules. Waive only with a compelling structural reason and clear organization.
No spaghetti growth in existing code. Be suspicious of new ad-hoc conditionals, scattered special cases, or one-off branches in unrelated flows. Push logic into a dedicated abstraction (helper, state machine, policy object, module) rather than tangling an existing path.
Clean the design, don't just accept working code. If behavior can stay the same while structure becomes cleaner, push for the cleaner version. Prefer removing moving pieces over spreading complexity around.
Prefer direct, boring, maintainable code over hacky or magical code. Flag thin abstractions, identity wrappers, pass-through helpers, and generic mechanisms that hide simple data-shape assumptions.
Push on type and boundary cleanliness. Question unnecessary optionality, unknown, any, or cast-heavy code. Prefer explicit typed models. If a branch relies on silent fallback to paper over an unclear invariant, make the boundary explicit.
Keep logic in the canonical layer; reuse existing helpers. Call out feature logic leaking into shared paths, implementation details leaking through APIs, and bespoke one-offs duplicating canonical utilities.
Flag unnecessary sequential orchestration and non-atomic updates. If independent work is serialized for no reason, ask for parallelism. If related updates can leave state half-applied, push for atomicity. Don't micro-optimize, but flag avoidable brittleness.
any/unknown/optional params.Don't settle for "rename this" feedback when the issue is structural. Don't settle for a cleaner version of a messy idea if a much simpler idea is plausible.
Direct, serious, demanding. Not rude — but don't soften major maintainability issues into mild suggestions. If the code makes the codebase messier, say so.
Good phrases:
this pushes the file past 1k lines. can we decompose this first?this adds another special-case branch into an already busy flow. can we move this behind its own abstraction?this works, but makes the surrounding code more spaghetti. let's keep the behavior and restructure the implementation.feels like feature logic leaking into a shared path. can we isolate it?this abstraction seems unnecessary. can we keep the direct flow?why the cast/optional here? can we make the boundary explicit instead?looks like a bespoke helper for something we already have. can we reuse the canonical one?i think there's a code-judo move here. can we reframe this so these branches disappear?this refactor moves complexity around without deleting it. can we make the model itself simpler?Priority order:
Prefer a small number of high-conviction comments over many cosmetic nits.
Don't approve merely because behavior seems correct. Required:
Presumptive blockers unless justified:
If unmet, leave explicit, actionable feedback and push for cleaner decomposition.