# Code Review And Quality

> Conduct multi-axis code review. Use before merging code written by an agent or human, when assessing diffs for correctness, maintainability, security, tests, observability, and contract risk.

- **Type:** Skill
- **Install:** `agentstack add skill-hsienw-ai-agent-engineering-playbook-code-review-and-quality`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [HsienW](https://agentstack.voostack.com/s/hsienw)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [HsienW](https://github.com/HsienW)
- **Source:** https://github.com/HsienW/ai-agent-engineering-playbook/tree/master/skills-delivery-practices/code-review-and-quality

## Install

```sh
agentstack add skill-hsienw-ai-agent-engineering-playbook-code-review-and-quality
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Code Review and Quality

## Skill Interface

- Name: code-review-and-quality.
- Description: Conduct multi-axis code review for correctness, maintainability, security, tests, observability, and contract risk before merging agent-written or human-written code.
- Parameters: Diff or files under review, stated requirements, affected contracts, relevant tests, risk areas, and any verification output already produced.
- Instructions: Use this skill when the user asks for a review or when assessing merge readiness. Lead with findings, prioritize concrete bugs and regressions, cite file and line evidence, and separate unverified checks from failed checks.

Review for bugs first. Summaries are secondary to findings with evidence.

## Review Order

1. Correctness: Does the implementation satisfy the requirement in real edge
   cases?
2. Contract safety: Did public APIs, events, schemas, errors, or state machines
   change safely?
3. Security: Are untrusted inputs, credentials, authorization, and data exposure
   handled correctly?
4. Reliability: Are timeouts, retries, cancellation, concurrency, and partial
   failure handled?
5. Tests: Do tests prove the new behavior and protect important regressions?
6. Maintainability: Is the code simple, local, readable, and consistent with
   nearby patterns?
7. Observability: Can production behavior be diagnosed without leaking secrets?

## Severity

- Blocker: security issue, data loss, contract break, build failure, core flow
  failure, or a change that cannot safely ship.
- Major: likely edge-case failure, incomplete error handling, missing regression
  test for meaningful behavior, or responsibility drift across layers.
- Minor: naming, duplication, readability, or low-risk maintainability issue.

## Finding Format

For every finding include:

- Severity.
- File and line when available.
- Problem.
- Triggering scenario.
- Consequence.
- Suggested fix.
- Related contract, requirement, or invariant.

## Review Discipline

- Do not review only the happy path.
- Do not assume generated code is correct.
- Do not request broad refactors when a local fix is enough.
- Do not mark a concern as resolved without evidence.
- Call out unexecuted verification separately from failed verification.

## No Findings

If no issues are found, state that clearly and list residual risk, such as
untested live integrations, missing load tests, or unavailable environment
checks.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [HsienW](https://github.com/HsienW)
- **Source:** [HsienW/ai-agent-engineering-playbook](https://github.com/HsienW/ai-agent-engineering-playbook)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-hsienw-ai-agent-engineering-playbook-code-review-and-quality
- Seller: https://agentstack.voostack.com/s/hsienw
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
