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
- ArcanEdge-AI/coding-agent-playbook-codexedited, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- ArcanEdge-AI/coding-agent-playbook-codex★ 3100% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- aws-local-preflightSkill
- feature-branch-lifecycleSkill
- handoffSkill
- legacy-path-retirementSkill
- local-ci-preflightSkill
- multi-role-repo-reviewSkill
- multi-session-coordinationSkill
- platform-documentationSkill
- production-api-integrationSkill
- production-architecture-reviewSkill
- production-database-integritySkill
- production-devops-releaseSkill
- production-documentation-onboardingSkill
- production-pass-orchestratorSkill
- production-performance-reviewSkill
- production-readiness-reportSkill
- production-reliability-observabilitySkill
- production-security-reviewSkill
- production-testing-qaSkill
- production-ux-accessibilitySkill
- reference-doc-routingSkill
- senior-code-reviewSkill
- session-cleanupSkill
- subagent-orchestrationSkill
- task-graph-orchestrationSkill
- technical-debt-auditorSkill
- worktree-lifecycleSkill
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
- Distinctive: line 50
Run the narrowest useful static checks when available.
- Distinctive: line 52
When remediation is authorized, fix safe in-scope issues first.
- Distinctive: line 58
Do not refactor behavior-heavy code unless the risk is Blocker or High.
- Distinctive: line 59
Run validation after edits.
- Distinctive: line 74
Do not change product behavior for style-only improvements.
- Distinctive: line 75
Do not rename public APIs unless required.
- Distinctive: line 76
Do not introduce new abstractions unless they reduce a specific production risk.
- Distinctive: line 77
Do not perform sweeping formatting changes unless the repository already enforces that formatter.
- Distinctive: line 79
Do not delete code unless it is clearly unused or safely replaced.
≈ “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.
Files
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.
- Inspect project conventions before editing.
- Identify lint, format, typecheck, and test commands.
- Run the narrowest useful static checks when available.
- Produce findings classified as Blocker, High, Medium, or Low.
- 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
- Do not refactor behavior-heavy code unless the risk is Blocker or High.
- Run validation after edits.
- 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
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
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.

