Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add siarhei-belavus/agent-public --skill review-code-maintainabilitygit clone --depth 1 https://github.com/siarhei-belavus/agent-publicWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/siarhei-belavus/agent-public/review-code-maintainability)<a href="https://agentmods.dev/skills/siarhei-belavus/agent-public/review-code-maintainability"><img src="https://agentmods.dev/badge/skills/siarhei-belavus/agent-public/review-code-maintainability.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01893 |
| Opus 5 | $0.00018 | $0.00946 |
| Sonnet 5 | $0.00007 | $0.00379 |
| Haiku 4.5 | $0.00004 | $0.00189 |
Grade A, and why
review-code-maintainability scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
review-code-maintainability
Phase 2 code review. Judge whether the change is easy to evolve safely, easy for a human to navigate, and free of avoidable slop.
This is not a style pass. Look for real future-change pressure.
Read first
../references/task-packet-contract.md../references/persistent-artifacts-contract.md../references/review-phases-contract.md../references/compatibility-policy.md../references/ownership-and-reuse-policy.md../references/final-state-authoring-policy.md../references/initiative-workflow-contract.mdwhen reviewing an initiative child packet../../references/communication-mode.md- relevant tracked
AGENTS.mdchain - applicable
AGENTS.override.mdonly if local execution constraints matter - current task packet:
CODE_REVIEW.md,AMENDMENTS.md,PLAN.md, optionalPLAN_SATISFACTION_REVIEW.mdfor unresolvedPS#detail
Core scope
Check:
- maintainability
- evolvability
- anti-slop
- human complexity
- ownership clarity
- change amplification
- hidden coupling
- speculative abstractions
- needless indirection
- navigation cost for the next human/agent
- final-state coherence in canonical code/docs/contracts
Allowed fallback:
- raise a correctness/regression finding if you encounter one while doing this pass
Core workflow
- Establish review scope.
- Read the thin handoff from phase 1:
CODE_REVIEW.mdas the primary rollup source,AMENDMENTS.mdas required companion, andPLAN.mdfor original intent / owner-boundary context. - Read
PLAN_SATISFACTION_REVIEW.mdonly when an unresolvedPS#needs more detail. - Identify the exact implementation commit under review, the exact diff from that commit, changed boundaries, and the modules that now own the behavior.
- If the lead did not provide the commit hash and the workspace is dirty, stop and ask which commit is the review target instead of guessing from a floating workspace.
- If the workspace has drift beyond the named commit, review the named commit and call out the drift explicitly so the lead can re-anchor the review.
- Read the thin handoff from phase 1:
- Run a maintainability pass.
- Look for duplication, hidden coupling, scattered sources of truth, and logic that will drift if changed in more than one place.
- Call out design debt only when it creates a realistic future bug surface or makes the new behavior harder to evolve safely.
- Run a human maintainability pass.
- Judge how quickly a human can find the owner code, rebuild the mental model, and make a safe edit without holding too much hidden context in working memory.
- Treat high navigation cost, scattered logic, and heavy cross-file recall as maintainability problems.
- Run an architecture-drift pass.
- Check whether the change weakens module boundaries, introduces a second source of truth, leaks internal invariants across APIs, or increases change amplification.
- Prefer findings that explain future breakage pressure:
this works, but every future change now has to update three places.
- Run an ownership-and-reuse pass.
- Flag parallel same-purpose entities unless the new boundary is explicit and materially non-overlapping.
- Run a final-state-authoring pass.
- Flag dual vocabularies, dual status models, or dual owner semantics that survive inside canonical code/docs/contracts.
- Flag files that read like migration notes, patch notes, or append-only overlays when one current model should be obvious.
- Flag implementations that keep old/new same-purpose paths alive when no real external boundary requires that residue.
- Flag changes that should have reused the current owner after a small tidy-first refactor.
- Flag designs where one invariant or behavior now has multiple owners.
- Flag implementations that require coordinated edits across same-purpose modules to keep one behavior correct.
- Run an anti-slop pass.
- Flag generic abstractions without leverage.
- Flag speculative extensibility that is not earning its complexity today.
- Flag helper or adapter sprawl that makes ownership harder to see.
- Flag AI-shaped indirection, duplicated glue, or ceremonial wrappers that do not reduce real risk.
- Flag prose/config/code duplication pressure that nudges the system toward multiple sources of truth.
- Flag internal-only backward-compatibility scaffolding as unnecessary complexity unless the human explicitly required it for a real external boundary.
- Check tests as maintenance evidence when relevant.
- If the new structure makes correctness harder to prove or leaves fragile behavior weakly tested, treat that as a maintainability finding.
- Write or update
MAINTAINABILITY_REVIEW.md.- Emit only concrete
M#findings with real future-change pressure.
- Emit only concrete
- Update
CODE_REVIEW.mdwith the fixed rollup fields this phase owns.
Maintainability verdict:strong,acceptable, orfragile- unresolved
M# - rerun notes
- latest rolled-up status if the phase-2 verdict or follow-up status changed
- keep key dispositions already decided in
AMENDMENTS.mdcurrent when new review dispositions were resolved after phase 1
- If the review exposes durable semantic/navigation residue, append it to
ARTIFACT_CANDIDATES.md. - Update
INDEX.mdif packet status changes.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 179 lines · 37 tokens per session scan A 9ba65ed5e2e5
review-code-maintainability is a skill published in the GitHub repository siarhei-belavus/agent-public (2 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 1,893 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
agent-teams-simplify-and-harden
Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…