hoangnguyen0403/codebase-review
Review an entire codebase for architecture, engineering health, and exploitable risk; generate a prioritized remediation plan, an evidence-anchored system knowledge document, or both.
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill codebase-review
> [!IMPORTANT]
> Review an entire codebase for architecture, engineering health, and exploitable risk; generate a prioritized remediation plan, an evidence-anchored system knowledge document, or both.
Optional args: slug=<feature>, ticket=<id/url>, mode=interactive|autonomous|channel, channel=<id>, auto_continue=true|false, profile=business|hybrid|technical.
When the user asks to perform this workflow, execute the following steps:
> Goal: Map a codebase from evidence, expose systemic risk, and produce the review and/or knowledge artifact requested.
analysis=fast|deep and deliverable=review|knowledge|both; default to fast + review to preserve the existing audit behavior. Use deep for knowledge or both unless the user explicitly requests otherwise.package.json, go.mod, pubspec.yaml, pom.xml) and locate source, tests, docs, IaC, runtime config, entry points, data stores, and generated paths.common-architecture-audit, common-security-audit, common-owasp, and common-llm-security.trusted, semi-trusted, or untrusted; record missing or inaccessible evidence.trigger -> validation/auth -> state mutation -> side effect -> consumer. Map cross-cutting logging, caching, error handling, authentication, and authorization.fast: inspect largest non-generated files, changed hotspots, auth surfaces, execution/config chokepoints, and the highest-centrality modules.deep: also inspect service-to-service flows, state lifecycle, persistence/migrations, jobs/events, feature boundaries, architecture drift, compliance-sensitive paths, and LLM/agent runtime risks.reviewContext for the pass: analysisMode, promptInjectionRisk, delegationMode, assignedRoles, and false-positive controls used by the human or agent team.confirmed.confirmed, needs validation, and not enough evidence separate.design-solution with explicit security constraints and follow-up questions.review or both, write artifacts/codebase-review.md with engineering health, architecture, delivery risk, severity-ranked findings, evidence gaps, and phased remediation. Score from 100: Critical -15, High -8, Medium -3, Low -1; cap at 40 for any P0.knowledge or both, write docs/architecture/codebase-knowledge.md with system purpose, evidence/assumptions, component map, critical flows and state ownership, integrations/trust boundaries, interaction matrix, change cautions, risks, glossary, and coverage/next-read queue. Use Mermaid only when it clarifies a real relationship.artifacts/security-review.md with scope, trust boundaries, review context, runtime contract, findings, evidence gaps, source provenance, confidence, exploit path, control mapping, and handoff notes.partial, preserve the ordered next-read queue, and do not present the knowledge document as complete.Take hoangnguyen0403/codebase-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.