agentleFS
ArcanEdge-AIArcanEdge-AI/coding-agent-playbook-claude-code/skills/production-code-quality/SKILL.md

production-code-quality

Skill0 starsChanged 4 months agoMITView on GitHub

Audit and improve code quality and maintainability during a production-readiness pass. Use when reviewing dead code, unused imports, lint errors, type errors, duplication, complexity, naming, formatting, debug artifacts, hardcoded values, fragile assumptions, and maintainability risks before release.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the narrowest useful static checks when available.

    line 50
  2. Distinctive:

    When remediation is authorized, fix safe in-scope issues first.

    line 52
  3. Distinctive:

    Do not refactor behavior-heavy code unless the risk is Blocker or High.

    line 58
  4. Distinctive:

    Run validation after edits.

    line 59
  5. Distinctive:

    Do not change product behavior for style-only improvements.

    line 74
  6. Distinctive:

    Do not rename public APIs unless required.

    line 75
  7. Distinctive:

    Do not introduce new abstractions unless they reduce a specific production risk.

    line 76
  8. Distinctive:

    Do not perform sweeping formatting changes unless the repository already enforces that formatter.

    line 77
  9. Distinctive:

    Do not delete code unless it is clearly unused or safely replaced.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Production Code Quality

Core purpose

Identify and safely improve maintainability risks without changing product behavior.

Use this skill when

  • The production pass needs a code quality review.
  • The repository has lint errors, type errors, duplication, dead code, or unclear implementation patterns.
  • The user wants maintainability improved before release.

Do not use this skill when

  • The issue is primarily security, database, DevOps, API, or performance related.
  • The requested change requires a broad architectural rewrite.
  • The user only wants a feature implemented.

Check for

  • Dead code
  • Unused files
  • Unused imports
  • Unused variables
  • Unused dependencies
  • Debug statements
  • Temporary console logging
  • Commented-out experimental code
  • Duplicated logic
  • Overly complex functions, classes, components, or modules
  • Poor naming
  • Inconsistent formatting
  • Type errors
  • Lint errors
  • Hardcoded values
  • Fragile assumptions
  • Production-impacting TODOs or FIXMEs

Default workflow

Resolve the task mode first: assessment-only work reports findings without source, test, or repository-document edits; authorized remediation applies only in-scope fixes. Release, production, and destructive operations retain their separate authority requirements.

  1. Inspect project conventions before editing.
  2. Identify lint, format, typecheck, and test commands.
  3. Run the narrowest useful static checks when available.
  4. Produce findings classified as Blocker, High, Medium, or Low.
  5. When remediation is authorized, fix safe in-scope issues first; assessment-only requests report recommendations:
    • unused imports
    • obvious dead code
    • debug logs
    • lint-safe formatting
    • type-safe cleanup
  6. Do not refactor behavior-heavy code unless the risk is Blocker or High.
  7. Run validation after edits.
  8. Record the findings in the requested deliverable; update project readiness/risk files only when those artifacts are in scope.

Severity guidance

Classify as Blocker when code quality issues prevent build, test, or runtime execution.

Classify as High when maintainability issues create serious production risk, such as fragile core flows, widespread type unsafety in critical paths, or debug behavior that leaks data.

Classify as Medium when cleanup is important but not release-blocking.

Classify as Low when the issue is cosmetic or future-facing.

Guardrails

  • Do not change product behavior for style-only improvements.
  • Do not rename public APIs unless required.
  • Do not introduce new abstractions unless they reduce a specific production risk.
  • Do not perform sweeping formatting changes unless the repository already enforces that formatter.
  • Preserve repository conventions.
  • Do not delete code unless it is clearly unused or safely replaced.

Deliverables

Include the following in the requested assessment response or report. Update repository readiness files only when those artifacts are requested or part of authorized remediation:

  • Code quality findings
  • Safe cleanup changes
  • Validation results
  • Deferred refactor list
  • Files changed and reasons

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.