# code-review-and-quality

Adopt this skill: https://proskills.md/skills/other/bnalwalid-walidforge-skills-skills-code-review-and-quality

Page: https://proskills.md/skills/other/bnalwalid-walidforge-skills-skills-code-review-and-quality
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/code-review-and-quality/SKILL.md
size: 4514
upstream: https://github.com/bnalwalid/walidforge-skills/blob/main/skills/code-review-and-quality/SKILL.md

```text
---
name: code-review-and-quality
description: Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.
---

# Review Consequences Before Cosmetics

## Overview

Review an actual change against its intended behavior, architectural boundaries and evidence. Findings must explain a concrete consequence and point to the responsible code.

## When to Use

Use for a diff, pull request or pre-merge review. Review-only scope leaves implementation unchanged unless fixes are also requested.

## Process

### Establish scope and contract

Read the diff, surrounding ownership boundaries, requirements and relevant tests. Identify changed behavior rather than reviewing every file equally. If source or execution is unavailable, state that limit. Author claims and CI badges are evidence to inspect, not guarantees.

### Review across the affected axes

Inspect correctness, readability, architecture, security and performance. Cover the axes implicated by the change; do not manufacture findings to fill headings. Follow input from trust boundary to storage/output, inspect authorization and concurrency, and assess whether the structure puts rules in their intended owner.

For backend changes, examine atomic writes, query bounds and retries. For UI, examine stale responses, optimistic rollback and focus. For mobile, examine process interruption, account isolation and installed clients. For delivery, inspect credential scope, promoted artifact identity and data-aware recovery.

### Verify the verification story

Read assertions before treating a suite as proof. Match tests to acceptance criteria and important failure modes. Confirm commands and available results; execute focused checks when the review environment permits it. Never say tests passed because the author said so. Identify untested boundaries such as concurrency against real persistence or native lifecycle.

### Write findings by consequence

Each finding includes severity, exact location, triggering condition, resulting failure and a concrete remedy or decision. Keep repository-compatible labels:

| Label | Meaning |
|---|---|
| **Critical:** | Merge-blocking vulnerability, data loss or broken core behavior |
| **Required:** | A demonstrated contract or maintainability defect needing correction |
| **Optional:** / **Consider:** | An improvement with an explicit tradeoff |
| **Nit:** | An optional cosmetic preference |
| **FYI** | Relevant information requiring no change |

Required is the explicit form of previously unprefixed required comments. Lead with high-impact, high-confidence findings. Distinguish a verified failure, a reasoned risk and an unanswered question. Avoid hypothetical issues that the contract rules out or repeated reports of one underlying defect.

### Deliver a bounded verdict

State whether the change is ready within the reviewed scope, list blockers and identify evidence needed to resolve them. A review verdict does not execute merge or release. If no substantive findings remain, say so and report residual test limits without inventing praise or certification.

For broader controls consult the shared security/performance references only where the affected boundary warrants them. Independent reviewers can help when orchestration is available and authorized; the skill itself does not mandate additional models or external transmission.

## Common Rationalizations

| Shortcut | Correction |
|---|---|
| Five axes require five criticisms | Review each relevant axis and report only supported findings. |
| The CI badge proves this diff | Verify which revision and checks the result covers. |

## Red Flags

- Cosmetic comments bury a data-loss finding.
- A finding has no triggering condition or location.
- A hypothetical concern is stated as an observed exploit.

## Verification

- [ ] The review uses the actual diff and intended contract.
- [ ] Findings use severity labels and concrete consequences.
- [ ] Input security and applicable domain boundaries were examined.
- [ ] The verdict identifies blockers, executed evidence and limits.

## Relevant Resources

Use [security checks](../../references/security-checklist.md) and [performance checks](../../references/performance-checklist.md) for applicable deeper review.
```

## File: README.md
upstream: https://github.com/bnalwalid/walidforge-skills/blob/main/README.md

````text
![WalidForge — Understand. Build. Verify.](assets/walidforge-banner.png)

# WalidForge

**Understand your project. Make the change. Show the proof.**

WalidForge brings backend, frontend, mobile and DevOps workflows into one portable
skill pack. Define the outcome, choose the simplest suitable design, deliver in
small slices, and verify the failure paths before calling the work complete.

Maintained by [bnalwalid](https://github.com/bnalwalid). Repository:
[bnalwalid/walidforge-skills](https://github.com/bnalwalid/walidforge-skills).

> Engineering defaults: [document the architecture before implementation](docs/walidforge-style.md), choose boundaries from project constraints, and show evidence for the delivered behavior. All stacks are welcome.

## Learn the workflow

Read the [complete user guide](docs/user-guide.md) for installation choices, all
25 skills, practical examples, Doctor/Compass usage, change review and
troubleshooting. Start with [the quick start](docs/user-guide.md#quick-start)
for your first task.

## Start with your project

From this checkout, inspect the project you want to work on:

```bash
node scripts/forge.js doctor /path/to/your-project
node scripts/forge.js doctor /path/to/your-project --json
```

Project Doctor reports observed stack markers, declared check commands, candidate
commands and metadata conflicts. It uses Node built-ins with no dependencies,
network calls, project-script execution or target writes. A discovered command
is not a test result; review it against your README and CI before running it.

It recognizes common markers for JavaScript/TypeScript, PHP, Python, Go, Rust,
Ruby, JVM, .NET, Dart/Flutter, Swift, containers and Terraform at the selected
root. Nested packages and unsupported stacks need manual discovery.

Then ask your agent for the outcome you need: understand code, fix a failure,
build a feature, improve a boundary, prepare a release or explain a concept.
No catalog memorization is required. See the
[Developer Handbook](docs/developer-handbook.md) for daily tasks, supported
markers, command provenance and limits.

## Plan a change with evidence

Change Compass links a feature or bug request to candidate source files, tests and
possible direct consumers, then produces decision questions and a verification
plan using Project Doctor command provenance:

```bash
node scripts/forge.js compass /path/to/project --intent "fix duplicate invoice" --kind bug
node scripts/forge.js compass /path/to/project --intent "add account permissions" --json
```

It runs locally without a model account or network. Matching is lexical: include
identifiers used by your project. Candidates require inspection, and no suggested
command is executed. See [Change Compass](docs/change-compass.md) for the contract,
coverage limits and what the report can establish. Save its JSON output before
implementation, then use `--review --baseline /path/to/snapshot.json` to compare
Git changes with the saved candidate paths. Review does not claim tests passed.

## How WalidForge earns trust

- **Project evidence before assumptions:** work from the actual stack, owner and
  canonical commands, including legacy projects and monorepos.
- **Proportionate workflows:** keep routine changes focused; deepen checks for
  data, permissions, concurrency, device lifecycle and release risks.
- **An outcome-to-evidence handoff:** report what changed, the consequential
  decision, executed checks, remaining limits and the next unfinished action.
- **Evaluated decisions:** structural and routing checks plus realistic behavioral
  scenarios; report which tiers actually ran.

These are design choices you can inspect and test, not a claim that no other
project shares them or that every platform has been validated.

## Four engineering perspectives

| Domain | Decisions covered | Entry skill |
|---|---|---|
| Backend | Atomic invariants, tenant boundaries, bounded queries, durable delivery and compatible migrations | [API and interface design](skills/api-and-interface-design/SKILL.md) |
| Frontend | Component boundaries, state ownership, stale requests, accessible interaction and runtime verification | [Frontend UI engineering](skills/frontend-ui-engineering/SKILL.md) |
| Mobile | Offline intent, process recreation, account isolation, native interaction and installed-client compatibility | [Native mobile delivery](skills/frontend-ui-engineering/SKILL.md#design-native-lifecycle-explicitly) |
| DevOps | Infrastructure plans, privilege separation, artifact promotion, release signals and data-aware recovery | [CI/CD and automation](skills/ci-cd-and-automation/SKILL.md) |

Use the project's existing stack. Load the relevant workflow when needed. A simple
change should not introduce an elaborate architecture, and a risky change should
not hide behind a green build.

## Install

The commands below target `bnalwalid/walidforge-skills`. Choose an installation
that matches your host and verify which resources it carries.

For hosts supported by the skills installer:

```bash
npx skills add bnalwalid/walidforge-skills
```

For a complete local checkout, including shared references and adapters:

```bash
git clone https://github.com/bnalwalid/walidforge-skills.git
cd walidforge-skills
```

Per-skill installs may omit the shared `references/` directory. Use a whole-repo
integration when a workflow needs those checklists. See
[getting started](docs/getting-started.md),
[Codex setup](docs/codex-setup.md), and
[other host commands](docs/other-hosts.md).

## The workflow

Define → Plan → Build → Verify → Review → Ship.

Lifecycle wrappers expose `/spec`, `/plan`, `/build`, `/test`, `/review`, `/ship`,
`/constraints`, `/code-simplify` and `/webperf` where the host supports them.
Other hosts discover the full skill names directly. Do not assume installation
of individual skills also installs command wrappers or shared reference files.

| Phase | Skills |
|---|---|
| Define | [interview-me](skills/interview-me/SKILL.md), [idea-refine](skills/idea-refine/SKILL.md), [spec-driven-development](skills/spec-driven-development/SKILL.md), [constraint-driven-development](skills/constraint-driven-development/SKILL.md) |
| Plan | [planning-and-task-breakdown](skills/planning-and-task-breakdown/SKILL.md), [context-engineering](skills/context-engineering/SKILL.md) |
| Build | [incremental-implementation](skills/incremental-implementation/SKILL.md), [source-driven-development](skills/source-driven-development/SKILL.md), [doubt-driven-development](skills/doubt-driven-development/SKILL.md), [api-and-interface-design](skills/api-and-interface-design/SKILL.md), [frontend-ui-engineering](skills/frontend-ui-engineering/SKILL.md) |
| Verify | [test-driven-development](skills/test-driven-development/SKILL.md), [debugging-and-error-recovery](skills/debugging-and-error-recovery/SKILL.md), [browser-testing-with-devtools](skills/browser-testing-with-devtools/SKILL.md) |
| Review | [code-review-and-quality](skills/code-review-and-quality/SKILL.md), [code-simplification](skills/code-simplification/SKILL.md), [security-and-hardening](skills/security-and-hardening/SKILL.md), [performance-optimization](skills/performance-optimization/SKILL.md) |
| Operate and ship | [ci-cd-and-automation](skills/ci-cd-and-automation/SKILL.md), [observability-and-instrumentation](skills/observability-and-instrumentation/SKILL.md), [shipping-and-launch](skills/shipping-and-launch/SKILL.md), [git-workflow-and-versioning](skills/git-workflow-and-versioning/SKILL.md), [deprecation-and-migration](skills/deprecation-and-migration/SKILL.md), [documentation-and-adrs](skills/documentation-and-adrs/SKILL.md) |
| Discovery | [using-agent-skills](skills/using-agent-skills/SKILL.md) |

The pack includes 25 skills and four focused review personas. Published skill IDs
stay stable; plugin namespaces and marketplace identity use `walidforge-skills`.

## What counts as done

Requirements are explicit. Decisions name their constraints and tra
````
