AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Better Maintainability

skill-nicolasyusim-better-codebase-better-maintainability · by NicolasYusim

>-

No reviews yet
0 installs
16 views
0.0% view→install

Install

$ agentstack add skill-nicolasyusim-better-codebase-better-maintainability

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-nicolasyusim-better-codebase-better-maintainability)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
24d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Better Maintainability? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Make local code predictable to read and change

Reduce the amount of state, context, and control flow a maintainer must hold in mind. Preserve cohesive narratives and established domain language.

Own the local implementation

Own findings inside functions, classes, modules, and cohesive components: naming, control flow, state, side effects, abstraction level, responsibility, and local change cost.

Escalate cross-module dependency problems to better-architecture, repeated knowledge to better-duplication, and unnecessary layers or speculative generality to better-simplicity.

Review workflow

1. Follow behavior, not metrics

Trace representative inputs through state changes, branches, effects, errors, and outputs. Identify what a maintainer must know to make a safe change.

Use complexity scores, function length, nesting depth, parameter count, and lint warnings only to locate code worth reading. Never report a threshold violation without demonstrating impact.

2. Inspect comprehension risks

Investigate:

  • functions or classes with unrelated reasons to change;
  • deeply nested conditionals that hide the primary path;
  • control flow distributed across callbacks, flags, exceptions, or mutable state;
  • hidden I/O, global mutation, time, randomness, or logging in apparently pure operations;
  • names that conceal domain meaning, units, state, or side effects;
  • mixed abstraction levels, such as policy decisions interleaved with serialization details;
  • magic values whose meaning or ownership is unclear;
  • booleans or enums that permit invalid combinations;
  • broad exception handling that loses context or continues in an invalid state;
  • order-dependent methods or partially initialized objects;
  • comments that compensate for misleading structure or have drifted from behavior;
  • dead paths, stale compatibility branches, or unused parameters;
  • APIs whose return or mutation behavior surprises callers.

A long linear function can be clearer than ten tiny helpers. A short function can still hide dangerous state. Judge the reading and change path.

3. Identify the smallest clarification

Prefer:

  1. Renaming a misleading concept.
  2. Exposing units, states, or effects in types and signatures already used by the project.
  3. Guard clauses that reveal the primary path.
  4. Separating policy calculation from effects at a natural seam.
  5. Replacing invalid state combinations with an existing clearer representation.
  6. Extracting a coherent operation with a domain name.
  7. Removing dead or misleading code after proving it is unused.

Do not extract helpers that merely move lines, hide important sequence, or require readers to jump between files.

4. Validate changeability

Describe a realistic maintenance task and compare the change surface before and after. A maintainability improvement should reduce ambiguity, coordination, state, or unsafe edit locations—not just line count.

Evidence requirements

For each finding, cite exact lines and explain:

  • the behavior or change path being traced;
  • what is hidden, mixed, ambiguous, or order-dependent;
  • the credible defect or maintenance cost;
  • the smallest clarification;
  • behavior that must remain stable;
  • focused verification.

Use caller behavior, tests, state transitions, and effect boundaries as evidence. Exclude personal naming preferences unless the current name creates real ambiguity.

Implementation rules

When asked to implement:

  • add characterization tests before untangling weakly protected behavior;
  • preserve error, ordering, mutation, and side-effect semantics;
  • make one conceptual change per diff;
  • keep coherent operations together;
  • prefer local changes over new layers;
  • remove comments only when the code now expresses the same necessary information;
  • re-run callers and integration tests when signatures or effect boundaries move.

Standalone review output

When invoked directly, return:

  1. Scope and behavior traced — entry points, state, effects, and checks inspected.
  2. Findings — exact evidence, comprehension or change cost, confidence, change risk, and smallest clarification.
  3. Considered but rejected — tempting extractions, renames, or cleanups that would not improve changeability.
  4. Safe edit sequence — only when implementation or multi-step work is requested.
  5. Verification — commands run and unresolved behavior.

If the code is locally understandable and predictable in the inspected scope, state No actionable maintainability findings.

Guardrails

  • Never use function length, class size, nesting, or complexity score as a verdict by itself.
  • Never split a coherent function into micro-functions to satisfy an aesthetic rule.
  • Never replace domain language with generic technical names.
  • Never hide important control flow behind a clever abstraction.
  • Never turn explicit data flow into implicit mutable state.
  • Never mix behavior changes with readability refactoring without explicit approval.
  • Never apply a generic Clean Code checklist without repository-specific evidence.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.