- Home
- Skills
- Code Quality & Review
- Code Health Auditor
Works with the AI Agents you already use
Code Health Auditor
Find material code and architecture risks, separate evidence from opinion, and plan safer, higher-impact remediation.
$9.99
Code Health Auditor
Example session with this skill installed
Audit this small service using only the supplied fictional evidence. It has 42 modules; OrderService is 1,200 lines and handles API parsing, database queries, retries, and email notifications. Three controllers duplicate authorization checks. Unit coverage is 28%, but no test results are included. A recent deployment had two timeouts; logs show repeated database retries but no trace IDs. Please separate observed facts from hypotheses, prioritize issues by risk and confidence, and give a safe 30-day remediation plan. Do not claim you inspected source files or ran tests.
- Read your context and instructions
- Compiled the code health auditor
Code health assessment
Scope: This review uses only the fictional facts in the prompt. No repository, source code, test suite, or runtime telemetry was inspected. The findings below are signals to verify, not confirmed defects.
Executive summary
The strongest near-term concerns are duplicated authorization logic, mixed responsibilities in OrderService, and a timeout/retry pattern that may amplify database load. Limited unit coverage and missing trace IDs reduce confidence during changes and incident investigation. Start with evidence collection and small changes that preserve behavior.
Findings
| Priority | Evidence provided | Assessment | Confidence | Validation |
|---|---|---|---|---|
| High | Three controllers duplicate authorization checks | Policy drift or inconsistent enforcement is possible; duplication alone does not prove a bypass | Medium | Compare checks and tests across routes; confirm centralized policy expectations |
| High | Recent timeouts and repeated database retries | Retry amplification or slow queries may contribute; causality is unverified | Low–medium | Correlate timestamps, request IDs, DB metrics, query latency, and retry policy |
| Medium | OrderService is 1,200 lines and handles parsing, queries, retries, email | High change coupling and difficult testing are plausible | Medium | Map responsibilities, change hotspots, dependencies, and side effects |
| Medium | Unit coverage reported at 28% | Coverage is low by the supplied measure, but coverage percentage alone does not indicate test quality | High for reported value; low for impact | Identify critical paths and assertion quality; inspect test gaps |
| Medium | Logs lack trace IDs | Cross-component request diagnosis may be difficult | High if prompt is accurate | Check logging context propagation and available correlation fields |
30-day remediation roadmap
Days 1–5: Establish evidence. Confirm route inventory, authorization policy, timeout rates, database saturation, retry counts, and affected customer journeys. Add temporary correlation IDs if approved. Capture a baseline for errors, latency, and query load.
Days 6–12: Contain operational risk. Review retry limits, exponential backoff, jitter, timeouts, and idempotency with service owners. Add tests for expected retry behavior. Do not simply disable retries or raise timeouts without understanding downstream impact.
Days 13–20: Reduce policy drift. Compare the three controller checks against a shared authorization policy. Add regression tests for allowed and denied cases, including tenant boundaries. Centralize only after behavior is understood and reviewed by the security owner.
Days 21–30: Improve changeability. Select one cohesive OrderService responsibility, such as notification delivery, and define a seam with explicit inputs and side effects. Refactor behind behavior-preserving tests. Expand tests around critical order flows rather than chasing a coverage target alone.
Guardrails
- Require reviewer ownership for authorization changes.
- Keep changes small, feature-flagged where practical, and reversible.
- Compare baseline latency, error rates, and database load after rollout.
- Do not label a concern a vulnerability or root cause until reproduced or independently verified.
Next steps
Request representative source excerpts, route/test inventory, relevant sanitized logs and traces, and architecture intent. Confirm product criticality and recent change history. Re-rank findings after evidence review, then assign owners and validation criteria.
Connects securely to your tools. The creator never sees your data.
About this skill
Code Health Auditor
Assess codebases and engineering artifacts for technical debt and architectural problems that materially affect defect risk, security, reliability, performance, change cost, delivery speed, or scale. Review modules, dependencies, data access, interfaces, errors, concurrency, configuration, tests, observability, build/deploy practices, and architecture fit against the stated intent and product criticality.
The audit separates verified defects, probable defects, architecture concerns, maintainability debt, security and reliability risks, performance hypotheses, testability gaps, documentation issues, intentional tradeoffs, style preferences, and unknowns. Findings include evidence, affected scope, impact, confidence, priority, remediation options, dependencies, and validation steps. The result is a risk-ranked report and pragmatic remediation roadmap with quick wins, sequencing, owners, and prevention measures.
This skill does not claim to execute builds or tests, inspect files, access repositories, or verify runtime behavior unless that evidence or access is explicitly provided. It does not present taste as fact or infer security incidents from style issues. Confirm findings with maintainers and validate changes through appropriate tests and production safeguards.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scanned
Verified clean 9 days ago
- Passed all security checks, Safe to install