Loading...
Loading...
AI SDLC code review workflow. Use when an AI assistant is asked to review a diff, PR, branch, commit, staged changes, or completed implementation against SDD requirements, tests, API contracts, security, and scope discipline. Supports `--quick-flow` for fast assumption-driven execution and `--full-flow` for question-driven verified execution.
npx skill4agent add mikegorelikoff/ai-sdlc-harness ai-sdlc-code-reviewInternal AI SDLC skill, not client-facing by default. Every rule below is important to follow. None of it can be skipped. Before producing the final artifact, confirm required inputs, target audience, missing facts, output format, and constraints when they are unclear. Do not invent missing information. Ask concise clarification questions when required inputs are absent.
ai-sdlc-code-reviewTBDNot providedAssumption--quick-flow--full-flow--full-flow--quick-flow--quick-flowdecision-log.md--quick-flow--full-flow--full-flow--full-flowspecs-refiniment/<feature-name>/<file.md>ai-sdlc-handoff/v1resultblockersnext_requirednext_optionalreasoncommandexpected_artifactsummary.txt*-summary.txt_ai_sdlcspecs-refiniment/<feature-name>/decision-log.mdspecs/<feature-name>/decision-log.md# Decision Log
| ID | Date | Status | Owner | Decision | Context/Evidence | Options Considered | Affected Artifacts | Validation/Trace Links |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| DEC-001 | YYYY-MM-DD | proposed / accepted / superseded / rejected | role or name | concise decision | source facts, artifact links, or evidence | option A; option B; recommended default | affected docs, tasks, code, tests, or rollout notes | requirement IDs, test IDs, validation commands, PRs, commits, or tickets |specs/specs/specs-refiniment/<feature-name>/<file.md>specs-refiniment/<feature-name>/<file.md>specs/specs-refiniment/<feature-name>/_ai_sdlc/state.toonspecs/<feature-name>/_ai_sdlc/state.toonpython3 skills/_shared/state_machine.py check --feature <feature-name> --skill <this-skill-name> --workspace <refinement|implementation> --quick-flow|--full-flowbegincomplete--artifacts <path>--decision-ref DEC-###--full-flow--quick-flow--assumption "..."--decision-ref DEC-###decision-log.mdpython3 skills/_shared/state_machine.py status --feature <feature-name> --workspace <refinement|implementation> --format toonstate.toonartifact_metadataai-sdlc-artifact-metadata/v1featureartifactpathworkspaceskillflow_modestate_filedecision_logstatusownercreated_atupdated_attrace_idsrelated_artifactsvalidationmetatagsmetatagsai-sdlcrefinementimplementationdraftreviewapprovedvalidated--quick-flowflow_mode: quick--full-flowflow_mode: fullstatusvalidationtrace_idsrelated_artifactsdecision-log.mdstate.toonspecs-refiniment/_ai_sdlc/specs-index.toonspecs/_ai_sdlc/specs-index.toonspecs-refiniment/specs-index.mdspecs/specs-index.mdpython3 skills/_shared/ai_sdlc_specs_index.py --workspace <refinement|implementation> --quick-flow|--full-flow--quick-flowspecs-index.toon--full-flowspecs-index.toonspecs-index.mdreferences/review-checklist.mdscripts/review_readiness.py--quick-flow--full-flowpython3 skills/ai-sdlc-code-review/scripts/review_readiness.py --quick-flowpython3 skills/ai-sdlc-code-review/scripts/review_readiness.py --full-flow --spec specs/<feature-name>--base <branch-or-commit>--full-repo--basegit status --shortgit diff --statgit diff --cachedgit diffgit diff <base>...HEADrequirements.mddesign.mdtest-cases.mdqa.mdtasks.md_ai_sdlc/plan.toonplan.mdreferences/review-checklist.mdreview$ai-sdlc-security-testingFindings:
- [CRITICAL|HIGH|MEDIUM|LOW] path:line - concise issue statement.
Why it matters: concrete failure, regression, or maintenance risk.
What should change: specific fix or test.
Open questions:
- Only blockers or assumptions that affect correctness, scope, or severity.
Validation gaps:
- Missing, failed, skipped, or stale checks.
Secondary observations:
- Deep-audit mode only; material non-blocking observations.
Summary:
- Brief change summary after findings.Findings:
- [HIGH] internal/service/orders.go:218 - Accepted orders can be repriced after execution because the status guard excludes only cancelled orders.
Why it matters: A borrower could see a different rate after the lender accepted the order, violating the order contract.
What should change: Reject repricing unless the order is still in draft or requested state, and add a service test for accepted orders.Findings:
- None found.
Validation gaps:
- `go test ./internal/service` was not run, so service-level regressions remain unverified.
Summary:
- Reviewed the staged service diff against `specs/NNN-feature-name`; no material defects found.Looks good. Nice cleanup.target unclear$ai-sdlc-security-testing$ai-sdlc-validationtasks.md