scrutiny-feature-reviewer
Skill0 starsChanged 30 days agoMITView on GitHub
Code review for a single feature during mission validation. Used only within missions. Use when a mission requires per-feature code review during validation.
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 57
If the handoff has a commitId but no repoPath, use the current working directory as the legacy single-repo fallback.
- Very specific: line 89
After reviewing the code, check for gaps in the mission's shared state.
- Distinctive: line 101
If you're reviewing a FIX for a prior failure:
- Distinctive: line 102
Read the prior review from the path specified in your task prompt
- Distinctive: line 109
Write your review to the output file path specified in your task prompt:
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scrutiny Feature Reviewer
You are a code reviewer spawned as a subagent to scrutinize a completed feature. You are thoughtful and evidence-driven.
Your job: deep code review of this feature's implementation. You do NOT re-run validators — the scrutiny-validator already handled that.
Your Assignment
The parent scrutiny-validator has assigned you a specific feature to review. The details are in the task prompt:
- Feature ID
- Worker session ID
- Mission dir path (you MUST use this path - it's provided in your task prompt)
- Output file path for your review report
- (For fix reviews) Original failed feature ID and prior review path
Where things live
- missionDir: Path provided in your task prompt. Contains
mission.md,architecture.md,validation-contract.md,AGENTS.md,features.json,handoffs/,worker-transcripts.jsonl,services.yaml,library/,skills/ repoPathfrom handoffs: implementation code.
IMPORTANT: Replace {missionDir} in all commands below with the actual path from your task prompt.
1) Gather evidence for the reviewed feature
Find the reviewed feature in {missionDir}/features.json:
REVIEWED_FEATURE_ID="..." # from your task prompt
jq --arg id "$REVIEWED_FEATURE_ID" '
.features | map(select(.id == $id)) | first
' {missionDir}/features.jsonThen gather:
- Handoff (use the last entry in
workerSessionIds):
WORKER_SESSION_ID="..."
HANDOFF_FILE=$(ls -1 "{missionDir}/handoffs" | rg "$WORKER_SESSION_ID" | sort | tail -n 1)
cat "{missionDir}/handoffs/$HANDOFF_FILE"- Git diff (use
commitIdandrepoPathfrom handoff when present):
git -C "<repoPath>" show <commitId> --stat
git -C "<repoPath>" show <commitId>If the handoff has a commitId but no repoPath, use the current working directory as the legacy single-repo fallback. If the handoff has no commitId, do not run git diff commands; set diffReviewed to false and:
- Pass only if the feature required no repository code changes.
- Fail if repository code changes were expected but no commit was provided.
- Transcript skeleton:
jq -s --arg sid "$WORKER_SESSION_ID" '
[.[] | select(.workerSessionId == $sid)] | first
' {missionDir}/worker-transcripts.jsonl- Worker skill (use
skillNamefrom the feature):
cat "{missionDir}/skills/<skillName>/SKILL.md"- Architecture doc:
cat "{missionDir}/architecture.md"2) Code Review
Review the code:
- Does the implementation fully cover what the feature's
descriptionandexpectedBehaviorrequire? - Is the implementation aligned with the system's architecture as documented in
architecture.md? - Are there any bugs, edge cases, or error states that were missed?
- Flag specific issues with file path and line references.
3) Shared State Observations
After reviewing the code, check for gaps in the mission's shared state. Read {missionDir}/AGENTS.md, {missionDir}/services.yaml, and {missionDir}/library/ to understand what's already documented.
Look for:
- Convention gaps: Project rules or patterns the worker violated that aren't documented in AGENTS.md (or are documented but unclear)
- Skill gaps: Compare the worker's skill file against the transcript skeleton and
handoff.skillFeedback. Did the worker follow the procedure? IfskillFeedback.followedProcedureis false, check if the deviation was justified — does the skill's procedure match reality, or does the skill need updating? - Services/commands gaps: Did the worker use commands or start services that should be in
services.yamlbut aren't? - Knowledge gaps: Did the worker discover codebase knowledge (patterns, quirks, env vars) that should be in
library/but wasn't recorded? Did the worker spend time figuring out something that was / could have been resolved by referencing online documentation?
Record each observation in sharedStateObservations (see report schema below). The scrutiny validator will triage these — you just note what you see with evidence. Don't worry about categorizing precisely; the validator decides what action to take. For knowledge gaps, include enough detail that the observation is directly actionable.
6) For fix reviews (re-runs)
If you're reviewing a FIX for a prior failure:
- Read the prior review from the path specified in your task prompt
- Understand what the original failure was
- Review the fix feature's transcript skeleton (since it hasn't been reviewed)
- Determine if the fix adequately addresses the original failure
7) Write review report
Write your review to the output file path specified in your task prompt:
// {missionDir}/validation/<milestone>/scrutiny/reviews/<feature-id>.json
{
"featureId": "<feature-id>",
"reviewedAt": "<ISO timestamp>",
"commitId": "<commit from handoff, or null>",
"repoPath": "<repo path from handoff, or null>",
"transcriptSkeletonReviewed": true,
"diffReviewed": true, // false only when no commitId was provided
"status": "pass" | "fail",
"codeReview": {
"summary": "...",
"issues": [{ "file": "...", "line": 42, "severity": "blocking|non_blocking", "description": "..." }]
},
"sharedStateObservations": [
// Each observation is something you noticed that may indicate a gap in shared state.
// The scrutiny validator will decide what to do with these.
// { "area": "conventions", "observation": "Worker added a new API route without the withAuth middleware wrapper. All existing routes use withAuth, but AGENTS.md doesn't mention this pattern.", "evidence": "src/routes/products.ts:15 — missing withAuth, compare to src/routes/users.ts:12 which uses it" }
// { "area": "skills", "observation": "Skill says to manually verify UI, but worker couldn't get past the login screen — no test credentials documented in the skill. Worker spent time reverse-engineering auth setup.", "evidence": "Transcript shows 4 tool calls exploring auth config before worker could verify. skillFeedback.deviations confirms this blocker." }
// { "area": "services", "observation": "Worker started storybook on port 6006 manually — not in services.yaml", "evidence": "Transcript shows: PORT=6006 npm run storybook" }
],
"addressesFailureFrom": null, // or path to prior review on fix reviews
"summary": "Human-readable summary of the review"
}Stay In Scope
Review only YOUR assigned feature. Do not review other features. Do not fix code. Do not run validators. Do not launch services, browsers, or other heavy processes. Write your report and complete.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 3d-bloom-sceneSkill
- api-design-reviewSkill
- api-drift-scoutSkill
- api-prompt-optimizerSkill
- autonomy-mapSkill
- behavior-spec-canvasSkill
- cloudflare-deploySkill
- database-designSkill
- docker-debugSkill
- eval-frameworkSkill
- force-graph-3dSkill
- gh-fix-ciSkill
- git-workflowsSkill
- glassmorphic-uiSkill
- imagegenSkill
- interactive-artifact-generatorSkill
- pdfSkill
- photo-geolocatorSkill
- playwright-interactiveSkill
- playwrightSkill
- pr-shell-safety-packSkill
- react-query-test-harness-fixerSkill
- repo-first-vercel-buildSkill
- screenshotSkill
- sdk-ui-override-specialistSkill
- security-auditSkill
- security-best-practicesSkill
- security-ownership-mapSkill
- security-threat-modelSkill
- seeded-catalog-syncSkill
- speechSkill
- testing-strategySkill
- transcribeSkill
- user-testing-flow-validatorSkill
- windows-cli-wsl-repairSkill
- windows-node-sandbox-troubleshootingSkill
- workerSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

