Feature Review
Workflow skill for PR-style feature review in Codex.
Required Shared Skills
Always apply:
policy-compliance-orderevidence-and-timestamp-conventionspolicy-audit-template-usagepr-context-artifactsacceptance-criteria-trackingremediation-handoff-atomic-planner
Use as needed:
pr-base-branch-merge-baserepo-automation-adapter
Role
- Review the feature branch relative to the correct base.
- Produce audit-grade artifacts, not code fixes.
- Prefer deterministic evidence from PR-context artifacts and exact diff anchors.
- Trigger remediation planning when blockers or unmet acceptance criteria exist.
Required Outputs
Write timestamped artifacts into the active feature folder:
policy-audit.<timestamp>.mdcode-review.<timestamp>.mdfeature-audit.<timestamp>.mdremediation-inputs.<timestamp>.mdwhen remediation is requiredremediation-plan.<timestamp>.mdwhen remediation is required
The final review report MUST end with these exact single-line fields:
REVIEW_STATUS: PASSorREVIEW_STATUS: REMEDIATION_REQUIREDFEATURE_FOLDER: <path>POLICY_AUDIT: <path>CODE_REVIEW: <path>FEATURE_AUDIT: <path>REMEDIATION_INPUTS: <path-or-NONE>REMEDIATION_PLAN: <path-or-NONE>
Each required review artifact MUST pass the matching validator command before review can be reported as complete:
- the
validate_orchestration_artifactsMCP tool withartifact_type: "policy-audit"andartifact_path: <path> - the
validate_orchestration_artifactsMCP tool withartifact_type: "code-review"andartifact_path: <path> - the
validate_orchestration_artifactsMCP tool withartifact_type: "feature-audit"andartifact_path: <path>
Review Flow
- Resolve the base branch.
- Use the supplied base when present.
- If the supplied base is missing or ambiguous, use
pr-base-branch-merge-base. - Do not default to the repository default branch unless merge-base resolution fails for all candidates.
- Load PR context from the canonical artifacts defined by
pr-context-artifacts. - If PR context is missing or stale, refresh it through
repo-automation-adapterusing the resolved base branch. - Determine the active feature folder deterministically from the scoping docs and PR context.
- Create the policy audit, code review, and feature audit.
- validate each artifact immediately after writing it
- Check off passing acceptance criteria in the authoritative requirement sources per
acceptance-criteria-tracking. - If remediation is required, create remediation inputs first and then hand off plan creation using
remediation-handoff-atomic-planner. - In the final report:
- set
REVIEW_STATUS: PASSonly when no remediation artifact is required, - set
REVIEW_STATUS: REMEDIATION_REQUIREDwhen remediation inputs or a remediation plan were required, - include every required artifact-path field exactly once.
- set
Enforced Remediation Handoff Contract
When remediation is required:
- create
remediation-inputs.<timestamp>.mdbefore any remediation planning handoff, - create the remediation plan target file on disk before delegating plan creation,
- automatically delegate remediation planning to
atomic-planner, - treat
remediation-inputs.<timestamp>.mdas the primary requirements source, - include the canonical PR-context summary and appendix, the review artifacts, and the original feature plan file(s) in the delegated context package,
- if the remediation planning handoff cannot be started or does not return a receipt, stop and report blocked state,
- do not claim review completion until the remediation plan file exists on disk.
Required Artifact Shapes
policy-audit.<timestamp>.md- MUST be copied from the canonical template and MUST NOT retain the template instruction block.
- MUST contain the canonical major headings and Appendix B command reference.
code-review.<timestamp>.md- MUST contain
## Executive Summary. - MUST contain
## Findings Table. - MUST contain a Markdown table header with
Severity | File | Location | Finding | Recommendation | Rationale | Evidence.
- MUST contain
feature-audit.<timestamp>.md- MUST contain
## Scope and Baseline. - MUST contain
## Acceptance Criteria Inventory. - MUST contain
## Acceptance Criteria Evaluation. - MUST contain
## Summary. - MUST contain
## Acceptance Criteria Check-off.
- MUST contain
Review Constraints
- Do not silently fix code during review.
- Prefer check-only commands.
- If a tool cannot be run, mark the related section as unverified or partial with a concrete reason.
- Do not claim completion until every required artifact exists on disk and its validator passes.
- Do not omit any required final result field from the review report.