with one click
code-review-and-quality
Multi-axis code review with optional strict maintainability mode. Use before merging any change—human, agent, or automation output.
Menu
Multi-axis code review with optional strict maintainability mode. Use before merging any change—human, agent, or automation output.
Daily research agent for
Weekly research agent for
Daily research agent for
Build, run, and secure Docker containers with current best practices. Use for Dockerfile review, multi-stage builds, Compose orchestration, image hardening, and CI/CD integration.
Operate GitHub repositories, workflows, and PRs efficiently. Use for Actions optimization, PR hygiene, repo maintenance, and team collaboration patterns.
Deploy, manage, and troubleshoot Kubernetes workloads. Use for manifest review, Helm chart validation, resource tuning, RBAC, and cluster operations.
| name | code-review-and-quality |
| description | Multi-axis code review with optional strict maintainability mode. Use before merging any change—human, agent, or automation output. |
When this skill is invoked in Pi, treat the user's current request and any skill arguments as the task input. Do not treat this file as the task by itself.
Before applying the skill, establish only the context needed for the request:
Operate conservatively: avoid broad scans, large reads, subagents, or parallel fanout unless the user's requested depth clearly requires them.
Adapted from addyosmani/agent-skills (MIT), commit 82ceff41ed4d3c644e3dcca8a0514390b2911223.
Review changes across five axes: correctness, readability, architecture, security, and performance. Standard mode asks whether the change improves the codebase without avoidable risk. Strict maintainability mode adds structural ambition: hunt for simplifications that delete complexity, not just rearrange it.
| Mode | Goal | When |
|---|---|---|
| Standard | Correct, safe, readable change | Default for most PRs |
| Strict maintainability | Ambitious structural quality; block spaghetti and unjustified sprawl | Large refactors, messy diffs, subagent thermo-style review |
Strict mode baseline: Rethink structure without changing behavior. Improve abstractions, modularity, and legibility. If a code-judo move could delete whole branches or layers, push for it.
In strict mode, also ask: Is the implementation direct, or special-case spaghetti? Any thin wrappers or pass-through helpers that add indirection without clarity?
In strict mode, also ask:
What changed, why, and what proof should exist.
Prefer concrete findings over style. In strict mode, prioritize:
Strict questions (when applicable):
any, unknown, or optionality hiding the real invariant?Critical: security, broken behavior, data lossRequired: must fix before mergeOptional: worthwhile, not blockingNit: cosmeticFYI: context onlyStrict mode: do not soften structural issues into nits. Be direct; skip cosmetic floods when structural problems exist.
Targeted tests, relevant suite, build/typecheck, manual checks for UI/ops.
Standard: no critical/required issues unresolved; relevant tests and build pass.
Strict: behavior correct is not enough. Presumptive blockers unless clearly justified:
## Findings
- Critical: ...
- Required: ...
- Optional: ...
## Verification
- Tests: ...
- Build: ...
- Manual: ...
| Excuse | Counter |
|---|---|
| "Tests pass, so it is fine" | Tests are necessary, not sufficient for architecture, security, or maintainability. |
| "Too small for full review" | Small changes can have large effects. |
| "I know this code" | Familiarity hides blind spots. |
| "AI-generated code is probably okay" | AI output needs more scrutiny—it is often plausible and wrong. |
| "We can clean up later" | Deferred cleanup rarely happens. |
| (Strict) "It works, ship it" | Working code that worsens structure is a maintainability regression. |
When invoked as a Task subagent, the parent supplies ### Git / diff output and ### Changed file contents. Apply this skill to that input only; trace cross-file impact at module boundaries. Do not spawn nested subagents unless asked.
Typical parent flow: parallel shell + explore tasks for diff and file contents, then invoke code-reviewer in strict mode with labeled sections.