Code Review
TL;DR
Use this skill to review code changes with deterministic scope, evidence,
severity, category, decision, and remediation rules. The skill is read-only:
it may inspect files, diffs, tests, logs, and CI output, but it does not edit the
review target. [CONFIG]
Deterministic Resources
assets/manifest.json declares the assets required by this skill. [CÓDIGO]
assets/activation-policy.json defines activation and refusal routing. [CÓDIGO]
assets/review-taxonomy.json defines fixed severities, categories, and
release decisions. [CÓDIGO]
assets/evidence-policy.json defines evidence tags and source requirements. [CÓDIGO]
assets/report-contract.json defines the JSON report shape. [CÓDIGO]
assets/source-boundary-policy.json defines allowed inputs and no-write
boundaries. [CÓDIGO]
scripts/check.sh runs the deterministic report validator against valid and
invalid fixtures. [CÓDIGO]
Activation
Activate only when the user asks to inspect code, a pull request, a patch, a
diff, changed files, implementation quality, or review comments for code. Do
not activate for generic product reviews, book reviews, course reviews, or
non-code critique unless the user supplies code artifacts. [CONFIG]
If no code, diff, PR, file path, or repository context is available, produce a
minimum-input request instead of inventing findings. [CONFIG]
Inputs
Accept one or more of the following:
- PR URL, branch name, commit range, staged diff, patch, or code excerpt.
- Relevant issue, requirement, acceptance criteria, test output, or CI result.
- Explicit review depth:
quick, standard, or deep.
- Caller-supplied review date if a dated report is required.
Review Procedure
- Establish scope:
- Identify files, line ranges, diff hunks, tests, and stated intent.
- Record unavailable artifacts in
minimum_inputs_missing.
- Do not rely on unstated intent or invisible files.
- Classify findings with the fixed taxonomy:
- Severities:
BLOCKER, MAJOR, MINOR, NIT.
- Categories:
correctness, security, tests, performance,
maintainability, accessibility, api_contract, observability,
style, positive.
- Gather evidence:
- Every code finding must cite
file, line, claim, and evidence_tag.
- Use
[CÓDIGO] for inspected code/diff/test/CI evidence.
- Use
[CONFIG] for repository policy, review standard, or acceptance
criteria supplied by the user.
- Use
[INFERENCIA] only for a reasoned risk that follows from cited code.
- Apply severity rules:
BLOCKER: likely correctness/security/data-loss failure, broken contract,
or required test/CI failure that should block merge.
MAJOR: material quality or risk issue that should be addressed before or
near merge but is not an immediate release blocker.
MINOR: useful improvement with limited risk.
NIT: style or readability preference that must not block merge unless it
violates a cited policy.
- Produce a decision:
request_changes when at least one BLOCKER exists.
approve_with_comments when only MAJOR, MINOR, or NIT findings exist.
approve when no blocking or material findings remain and positive
patterns are recorded.
needs_context when minimum input is missing.
- Validate:
- Run
bash skills/code-review/scripts/check.sh for the skill fixtures.
- Run
python3 -B scripts/validate-skill-dod.py --skill code-review before
marking the skill complete.
Output Contract
Preferred machine-checkable output is JSON following
assets/report-contract.json. Markdown reports must preserve the same sections:
# Code Review Report
## Scope
## Findings
## Positive Patterns
## Validation
## Decision
## Risks and Limits
Findings must be ordered by severity (BLOCKER, MAJOR, MINOR, NIT), then
file path, then line number. Finding IDs must be gapless as CR-NNN. [CONFIG]
Quality Criteria
Anti-Patterns
- Rubber-stamping PRs without reading the diff.
- Blocking a PR for a style preference owned by lint/format tooling.
- Saying "looks good" when required artifacts are missing.
- Fabricating files, tests, CI status, or hidden behavior.
- Echoing real secrets or sensitive values in review output.
- Using current time, web research, randomness, or remote assets unless the user
explicitly supplies that source and it is cited.
Related Skills
code-review-checklist for reusable checklist generation.
audit-security for deeper security-specific static audit.
quality-gatekeeper for release gate decision enforcement.
assumption-log for unresolved review assumptions.
Assumptions & Limits
- This skill reviews supplied evidence; it cannot prove behavior outside the
inspected code, diff, tests, or CI artifacts. [CONFIG]
- It may recommend tests, but it does not modify target code. [CONFIG]
- It must ask for missing minimum inputs rather than inventing review findings.
[CONFIG]
Source: JaviMontano/jm-adk-alfa — distributed by TomeVault.
1---2name: javimontano-jm-adk-alfa-code-review3description: Code Review4---56# Code Review78## TL;DR910Use this skill to review code changes with deterministic scope, evidence,11severity, category, decision, and remediation rules. The skill is read-only:12it may inspect files, diffs, tests, logs, and CI output, but it does not edit the13review target. [CONFIG]1415## Deterministic Resources1617- `assets/manifest.json` declares the assets required by this skill. [CÓDIGO]18- `assets/activation-policy.json` defines activation and refusal routing. [CÓDIGO]19- `assets/review-taxonomy.json` defines fixed severities, categories, and20 release decisions. [CÓDIGO]21- `assets/evidence-policy.json` defines evidence tags and source requirements. [CÓDIGO]22- `assets/report-contract.json` defines the JSON report shape. [CÓDIGO]23- `assets/source-boundary-policy.json` defines allowed inputs and no-write24 boundaries. [CÓDIGO]25- `scripts/check.sh` runs the deterministic report validator against valid and26 invalid fixtures. [CÓDIGO]2728## Activation2930Activate only when the user asks to inspect code, a pull request, a patch, a31diff, changed files, implementation quality, or review comments for code. Do32not activate for generic product reviews, book reviews, course reviews, or33non-code critique unless the user supplies code artifacts. [CONFIG]3435If no code, diff, PR, file path, or repository context is available, produce a36minimum-input request instead of inventing findings. [CONFIG]3738## Inputs3940Accept one or more of the following:4142- PR URL, branch name, commit range, staged diff, patch, or code excerpt.43- Relevant issue, requirement, acceptance criteria, test output, or CI result.44- Explicit review depth: `quick`, `standard`, or `deep`.45- Caller-supplied review date if a dated report is required.4647## Review Procedure48491. Establish scope:50 - Identify files, line ranges, diff hunks, tests, and stated intent.51 - Record unavailable artifacts in `minimum_inputs_missing`.52 - Do not rely on unstated intent or invisible files.532. Classify findings with the fixed taxonomy:54 - Severities: `BLOCKER`, `MAJOR`, `MINOR`, `NIT`.55 - Categories: `correctness`, `security`, `tests`, `performance`,56 `maintainability`, `accessibility`, `api_contract`, `observability`,57 `style`, `positive`.583. Gather evidence:59 - Every code finding must cite `file`, `line`, `claim`, and `evidence_tag`.60 - Use `[CÓDIGO]` for inspected code/diff/test/CI evidence.61 - Use `[CONFIG]` for repository policy, review standard, or acceptance62 criteria supplied by the user.63 - Use `[INFERENCIA]` only for a reasoned risk that follows from cited code.644. Apply severity rules:65 - `BLOCKER`: likely correctness/security/data-loss failure, broken contract,66 or required test/CI failure that should block merge.67 - `MAJOR`: material quality or risk issue that should be addressed before or68 near merge but is not an immediate release blocker.69 - `MINOR`: useful improvement with limited risk.70 - `NIT`: style or readability preference that must not block merge unless it71 violates a cited policy.725. Produce a decision:73 - `request_changes` when at least one `BLOCKER` exists.74 - `approve_with_comments` when only `MAJOR`, `MINOR`, or `NIT` findings exist.75 - `approve` when no blocking or material findings remain and positive76 patterns are recorded.77 - `needs_context` when minimum input is missing.786. Validate:79 - Run `bash skills/code-review/scripts/check.sh` for the skill fixtures.80 - Run `python3 -B scripts/validate-skill-dod.py --skill code-review` before81 marking the skill complete.8283## Output Contract8485Preferred machine-checkable output is JSON following86`assets/report-contract.json`. Markdown reports must preserve the same sections:87881. `# Code Review Report`892. `## Scope`903. `## Findings`914. `## Positive Patterns`925. `## Validation`936. `## Decision`947. `## Risks and Limits`9596Findings must be ordered by severity (`BLOCKER`, `MAJOR`, `MINOR`, `NIT`), then97file path, then line number. Finding IDs must be gapless as `CR-NNN`. [CONFIG]9899## Quality Criteria100101- [ ] Scope is explicit and source-bound.102- [ ] No finding lacks file/line evidence unless it is a documented103 context/input gap.104- [ ] Blocking decision matches the severity taxonomy.105- [ ] Style-only concerns are never treated as blockers without a cited policy.106- [ ] Clean-code reports include positive patterns and do not fabricate107 findings.108- [ ] All claims use `[CÓDIGO]`, `[CONFIG]`, `[DOC]`, `[INFERENCIA]`, or109 `[SUPUESTO]` as appropriate.110- [ ] Local deterministic checks pass.111112## Anti-Patterns113114- Rubber-stamping PRs without reading the diff.115- Blocking a PR for a style preference owned by lint/format tooling.116- Saying "looks good" when required artifacts are missing.117- Fabricating files, tests, CI status, or hidden behavior.118- Echoing real secrets or sensitive values in review output.119- Using current time, web research, randomness, or remote assets unless the user120 explicitly supplies that source and it is cited.121122## Related Skills123124- `code-review-checklist` for reusable checklist generation.125- `audit-security` for deeper security-specific static audit.126- `quality-gatekeeper` for release gate decision enforcement.127- `assumption-log` for unresolved review assumptions.128129## Assumptions & Limits130131- This skill reviews supplied evidence; it cannot prove behavior outside the132 inspected code, diff, tests, or CI artifacts. [CONFIG]133- It may recommend tests, but it does not modify target code. [CONFIG]134- It must ask for missing minimum inputs rather than inventing review findings.135 [CONFIG]136137---138> Source: [JaviMontano/jm-adk-alfa](https://github.com/JaviMontano/jm-adk-alfa) — distributed by [TomeVault](https://tomevault.io).139<!-- tomevault:4.0:skill_md:2026-06-16 -->