norbertsuski/sdd-toolkit/sdd-impl-review-ci
Claude Code and agent skill by norbertsuski/sdd-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Run implementation review non-interactively in CI against a PR: discovers the plan, checks drift/safety/patterns/test coverage, writes CONTEXT_ROOT/changes/<change-id>/reviews/impl-review.md, commits it to the PR branch, and posts a summary comment. Use whenever the request mentions CI, GitHub Actions, GHA, your AI coding assistant Action, automated PR review, or "review this PR in CI".
Install
npx vskill@latest install norbertsuski/sdd-toolkit/sdd-impl-review-ciSKILL.md
The same SKILL.md was published earlier as norbertsuski/sdd-toolkit/sdd-impl-review-ci.
Implementation Review (CI/CD)
Run inside GitHub Actions (typically via your AI coding assistant Action) on a pull request. Analyze the PR's changes against the plan it claims to implement. Emit an audit trail as a committed report file plus a concise PR comment.
This skill does not interact and does not edit code. No questions, no triage loop, no source edits. It reads, analyzes, writes one report file, commits it, posts inline review comments on flagged lines, and posts a summary PR comment. That's the whole job.
The review criteria — how to compare the implementation against the plan, how to grade each dimension, and how to shape findings — live in `references/impl-review-instructions.md`. Read that file once when this skill loads; Steps 1–5 orchestrate it (gather evidence, run checks, normalize findings) and point into it rather than restating the criteria. The steps below own only the harness mechanics: plan discovery, the diff, subagent dispatch, the report-file contract, the commit, and the inline/summary comment posting.
Operating context
Assume you're running non-interactively on an ephemeral Linux runner with:
- Git history —
origin/<base-ref>is fetched; the PR's merge-base is resolvable. - `gh` CLI — authenticated via
GH_TOKEN/GITHUB_TOKEN; can read PR metadata, post comments. - Project toolchain — installed before this skill runs (Node/pnpm, Python, Go, whatever the project uses). Test and lint commands should work.
- Environment variables —
PR_NUMBER,GITHUB_BASE_REF(base branch), plus anything the workflow exports. - Subagents — you can spawn
general-purposeagents for parallel evidence gathering.
No user is watching. Never ask the user a question — there's nobody to answer. If anything is ambiguous, pick the conservative interpretation and note it in the report.
Step 0: Find the plan
Create a task with the name "Impl-Review (CI)" and set its active form to "Discovering plan".
The plan is the ground truth — the review compares the PR against the plan's declared intent. No plan means no meaningful review.
Primary source: convention. Projects that use a plan-driven workflow keep plan files at $CONTEXT_ROOT/changes/<change-id>/plan.md in the PR branch — at the repo root, or, in a monorepo, under a workspace subtree. This CI harness has no interactive session to hand it a resolved CONTEXT_ROOT, so it discovers the plan directly from the PR diff via a literal directory-name glob (legacy-style search — matches the on-disk context/changes/ directory name anywhere under the tree, which covers a repo-root CONTEXT_ROOT and any monorepo subtree alike; a shell variable can't appear inside a git diff pathspec, so the glob below intentionally stays literal). Find the newest one that's part of this PR:
Reverse-lexicographic sort picks the most recently modified change folder (<change-id> slugs are typically date-prefixed for active work, and the alphabetic order is good enough as a tiebreaker; in a monorepo it also biases toward the workspace whose path sorts last, an acceptable tiebreaker).
Override: explicit PR body reference. If the PR description contains a line like Plan: $CONTEXT_ROOT/changes/<change-id>/plan.md, it wins over the convention. This handles bundled PRs, revived older plans, and PRs that reorganize plan files but implement a different one:
Graceful exit when no plan found. Most PRs in a mature repo aren't plan-driven (docs, chore commits, hotfixes). Don't fail the workflow — post a neutral comment and exit 0:
Record the resolved plan path — every later step references it.
Step 1: Load and parse the plan
Update the current task's active form to "Loading plan".
Read the plan file fully (no offset, no limit) and extract its commitments — planned file paths, Automated/Manual Verification, exclusions, architectural decisions — following "Read the plan as the baseline" in references/impl-review-instructions.md (plan anatomy and the five extraction targets). The PR is always reviewed as a whole — partial-phase CI reviews are error-prone without state files and rarely useful in practice.
Compute the diff
The three-dot range gives you the merge-base diff — what this PR actually adds, not everything that has happened since branch divergence.
Cross-reference changed files against planned files:
- In plan AND in diff → expected change; verify intent matches.
- In diff but NOT in plan → unplanned addition; check against the exclusions list, then flag as scope creep if not explicitly excluded.
- In plan but NOT in diff → possibly missing implementation; flag.
Don't pre-read every changed source file into your main context. Delegate that to the subagents below — keep the main context holding only the plan text and the diff summary.
Step 2: Parallel evidence gathering
Update the current task's active form to "Gathering evidence".
Spawn three subagents in parallel, each with targeted context. Don't dump the whole plan into all of them — each agent only needs what's relevant to its question. The judgment criteria each agent applies live in references/impl-review-instructions.md under "The review dimensions" — give each agent its inputs and point it at its dimension; it reports findings in the per-dimension shape the reference specifies.
Agent 1 — Plan drift detection
subagent_type: "general-purpose"
Give it: the extracted "Changes Required" text (per phase) and the list of planned file paths. It applies dimension 1 (Plan drift) — MATCH / DRIFT / MISSING / EXTRA per planned change.
Agent 2 — Safety, quality, and pattern compliance
subagent_type: "general-purpose"
Give it: the list of changed source files (exclude test files and the plan file itself) and the project root. It applies dimension 2 — security / performance / reliability / data safety, plus sibling-pattern comparison scaled to change size.
Agent 3 — Test coverage
subagent_type: "general-purpose"
Give it: the plan's Success Criteria section (extract the text before spawning), the diff file list split into source_files and test_files, the project root, and the "What We're NOT Doing" list. It applies dimension 3 — extract test commitments, match them to artifacts, scan for uncovered behavior, run the plan's test commands, and respect explicit opt-outs.
If a subagent's report gets unwieldy, ask it to return only the highest-severity findings, not the full investigation trace.
Step 3: Verify non-test automated checks
Update the current task's active form to "Verifying automated checks".
Agent 3 already ran the test-related Automated Verification commands. Now run everything else — lint, build, format-check, typecheck, any other non-test commands from the checkboxes. For each:
Record command, pass/fail, truncated output (first 40 and last 20 lines is usually enough). For how Manual Verification checkboxes are read and how failing checks map to grades, follow the reference's "Verify the success criteria".
Step 4: Grade each dimension
Update the current task's active form to "Grading".
Assign PASS / WARNING / FAIL to each of the seven dimensions and derive the overall verdict (APPROVED / NEEDS ATTENTION / REJECTED) using the rules in the reference's "Grade each dimension" and "Overall verdict".
Step 5: Compile findings
Update the current task's active form to "Compiling findings".
Normalize the subagents' output into a single findings list. Sort by severity (CRITICAL → WARNING → OBSERVATION). Cap at 10 total — consolidate related issues (e.g., "6 files use the wrong case convention" → one finding, not six). Apply the finding shape, impact grammar, and fix-options grammar from the reference's "Express the findings".
One harness-specific addition the reference doesn't carry: every finding in the saved report also gets a - **Decision**: PENDING field (downstream triage tooling fills it in). It's part of the output contract in Step 6 — don't omit it.
Step 6: Save the report
Update the current task's active form to "Saving report".
Derive the change directory from the resolved plan path — it's the plan's parent folder ($(dirname "$PLAN")), which resolves to $CONTEXT_ROOT/changes/<change-id> at the repo root, or the same shape nested under a workspace subtree in a monorepo (legacy example: projects/<app>/context/changes/<change-id>). Write the report to <change-dir>/reviews/impl-review.md. Also update <change-dir>/change.md in-place: set status: impl_reviewed and updated: <today> — the CI commit in Step 7 carries this back to the PR branch alongside the review.
The directory is derived from the plan, not chosen: the report goes in the `reviews/` folder beside the plan's `change.md` (`<…>/$CONTEXT_ROOT/changes/<change-id>/reviews/impl-review.md`). Do NOT write the report to .claude-pr/, .github/, the repo root, or any other location — even if your AI coding assistant Action's default prompt suggests one. Downstream triage tooling reads only from this derived path. Formatting must match the surrounding reviews: oxfmt-compatible (the project runs oxfmt --check . in CI).
Output contract (load-bearing)
The file must start with the HTML comment marker <!-- IMPL-REVIEW-REPORT --> on its first line, and must include - **Decision**: PENDING on every finding. Downstream tooling reads this shape to route the report into a triage workflow. Don't omit either.
Template
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sdd-impl-review-ci/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/norbertsuski/sdd-toolkit/sdd-impl-review-ci)