Guides

Use a coding agent to find and fix quality debt

Survey tests, code, accessibility, contracts, docs, dependencies, and security, then work only applicable findings.

Answers: use a coding agent to fix quality debt · Updated

SHORT ANSWER

Use the Quality workflow to inspect the project across quality categories, deduplicate findings, and either fix selected debt now, draft it for later, or consciously ignore it with a reason.

01

What Quality surveys

The scan follows the project’s actual stack and risk surface rather than imposing every possible tool.

  • Tests and coverage gaps
  • Code correctness and maintainability
  • Accessibility
  • API and data contracts
  • Documentation drift
  • Dependencies and security
02

Choose the execution mode

Guided mode lets the owner select categories. Automatic mode ranks applicable work. Review-first arms nothing; run-direct is explicit authority to start immediately.

  • Fix now for bounded, approved debt.
  • Draft when the finding is useful but not authorized.
  • Ignore only with a recorded reason.
03

Converge instead of looping

Every review cycle checks the snag log so fixed or rejected findings are not rediscovered. A full pass with nothing new is success.

TRY IT

Start with a bounded prompt

This prompt names the outcome and preserves Nightshift’s review boundary. Paste it into the supported coding host from the project you want to change.

Survey this project's applicable quality debt. Show me lint, types, tests, accessibility, contracts, documentation, dependencies, and security findings before I choose what to fix.
BOUNDARIES

What this workflow does not claim

  • Review-first discovery writes no fixes and must be explicitly promoted or run directly.
  • A finding may be ignored or parked when it is inapplicable or requires an owner decision.
SOURCES

Evidence and sources

These links support the released behavior, public outcomes, or problem language described on this page.

Versioned Quality skillThe released quality survey and disposition workflow.Open evidence ↗clear-quality-debt contractThe finite contract for project-owned lint, type, and test findings.Open evidence ↗Versioned workflow contractThe shipped one-item loop, decision boundary, gates, recovery, and clock-out behavior.Open evidence ↗
RELATED QUESTIONS

Continue from the question you have

fix lint and type errors automaticallyRead the answer →clean CI warnings automaticallyRead the answer →remove dead code safelyRead the answer →