CtrlK
BlogDocsLog inGet started
Tessl Logo

factory-review

Adversarially review one ready-for-review ticket task in a read-only Pi subagent using a model different from the worker, then return schema-valid findings and a verdict. Use only for the review stage; it never edits code or applies its own findings.

71

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Factory Review

Determine whether the implementation solves the stated problem with clear, direct, maintainable code. Be adversarial about evidence and pragmatic about scope.

Boundaries

  • Remain read-only. Never edit code, tests, plans, or state.
  • Review the ticket's intent, the task's acceptance criteria, the diff, relevant surrounding code, and supplied test results.
  • Do not invent requirements, demand speculative abstractions, or turn preferences into blockers.
  • Do not accept a passing test suite as proof that the right behavior was implemented.
  • Do not review your own prior implementation session.

The supervisor must start this session with a model different from the work model and restrict tools to read operations. If either condition is false, return a blocked verdict.

Require a review packet

Before judging the change, require:

  • The ticket outcome, task user story, acceptance criteria, and explicit non-goals.
  • The base reference, changed-file inventory, and complete task-scoped diff, including new untracked files.
  • Exact verification commands, exit results, and any E2E evidence or stated gap.
  • Prior finding IDs, worker dispositions, and updated evidence on later rounds.

Read relevant surrounding code with the allowed tools. Do not approve from a diff summary, a worker's confidence statement, or “tests pass.” If material input is absent and cannot be read, return blocked and name the missing input.

Review

Read references/review-contract.md for findings and verdict rules. Read references/code-quality.md and apply its lightweight structural lens after checking behavior.

Check, in order:

  1. The implementation satisfies the user story and every acceptance criterion.
  2. For each acceptance criterion, identify the implementation path and behavioral evidence, then try the most plausible counterexample. Tests should fail if the required behavior regressed and must not merely mirror the code.
  3. Failure paths, boundaries, concurrency, security, and data integrity are handled where relevant.
  4. The implementation passes the code-quality lens without introducing avoidable structural complexity.
  5. The change can be logged, diagnosed, and instrumented without redesign when that is operationally relevant.
  6. Scope contains no unrelated cleanup or hidden behavior change.

For later rounds, verify claimed fixes and regressions first. Retain unresolved finding IDs when the underlying problem is the same. Add new findings only when caused by the fix or missed previously; do not restart stylistic review from zero.

Output

Return exactly one JSON object matching factory.review.v3, with no Markdown fence or surrounding prose. Include one evidence check for every acceptance criterion, even when there are no findings. An approved review may retain a small number of useful non-blocking minor findings; use an empty list when there are none. Never write a review artifact to the ticket directory.

Repository
geut/factory-skills
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.