CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

factory-self-review

This skill directs an independent reviewer to assess a pushed branch against the work item and approved plan, apply security and quality gates, and distinguish blocking findings from follow-ups. It specifies the report and verdict process, then describes how to open a change request from the approved head and report the hand-off. It also sets conditions for when to stop and prohibits seeking human input during the review.

Quality

90%

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

Quality

Scored by GLM 5.3

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An exceptionally actionable, well-sequenced instruction skill: concrete git commands, named tools with arguments, explicit validation checkpoints, and error-recovery paths for every failure mode. The only weakness is conciseness — a handful of very long compound sentences in the Hand-off section could be tightened without losing information.

DimensionReasoningScore

Conciseness

The body is dense and assumes Claude's competence (no explanations of git, PRs, or review concepts), but a few spots could be trimmed — the Hand-off step 3 is a single very long compound sentence, and "Never report a terminal phase: the merge finishes it" slightly repeats the surrounding hand-off rules. It is not 5 because of these minor over-long passages; not 3 because there is no unnecessary concept explanation or padding.

4 / 5

Actionability

Fully executable guidance: copy-paste git commands (`git rev-parse --abbrev-ref HEAD`, `git merge-base HEAD origin/<default branch>`, `git ls-remote origin <branch>`), named tool calls with their arguments (`factory_record_review_verdict` with `verdict`, `reviewedHeadSha`, `findings`), and exact conventions for the change-request title and body (`Fixes #<n>`, `Refs #<n>`, `<sub>[Factory session](<url>)</sub>`). Edge cases (unpushed branch, moved head, change request never appearing under Sources) are all covered with concrete responses.

5 / 5

Workflow Clarity

Clear sequence (Guard → review bar → blocking/follow-up → checkout → report → verdict → hand-off) with explicit validation checkpoints: verify the branch exists on origin, record the head SHA, confirm `origin/<branch>` still points at the approved head before opening the change request, and poll until the change request appears under Sources. Error-recovery feedback loops are present ("If it moved, do not open anything: record a fresh review of the new head"; the fallback when the change request never appears). The workflow is not destructive or batch, so no cap applies.

5 / 5

Progressive Disclosure

No bundle files exist, and the heavy review-checklist material is appropriately delegated one level deep with a clearly signaled reference ("Load `factory-review` with `skill_read` and apply these parts of it exactly as written"). The body itself is well organized into headed sections, each earning its place, so navigation is easy and nothing that belongs in a separate file is inlined.

5 / 5

Total

19

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A specific, comprehensive description that names concrete actions for both verdict outcomes and carves out a distinct niche. Its weaknesses are the missing natural trigger phrase "self-review" and the absence of an explicit "Use when…" clause, leaving the when-condition embedded in the action sentence.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — "Review and test a Factory work item's pushed branch", "send it back to the build phase", "open the change request from the approved head", "report the outcome" — covering both verdict paths (request changes and approve) comprehensively. It is not a 4 because coverage of the workflow's outcomes is complete rather than having minor gaps.

5 / 5

Completeness

"What" is explicit (review/test the branch, send back to build or open the change request, report the outcome) and "when" is explicitly stated ("before any pull or merge request exists"), but the when is woven into the action clause rather than given as concrete standalone trigger phrases. It is not 3 because the when is explicitly stated, not merely implied; not 5 because it lacks a "Use when…" style clause with trigger phrases.

4 / 5

Trigger Term Quality

Good keyword coverage with natural in-domain terms ("Factory work item", "pushed branch", "pull or merge request", "change request"), but the most natural trigger phrase — "self-review", the phase name and skill name — is missing. It is not 3 because coverage is genuinely good, not merely "some relevant keywords"; not 5 because common variations are absent.

4 / 5

Distinctiveness Conflict Risk

"Factory work item", "build phase", and "card" establish a clear niche with distinct triggers; it would not fire for generic PR-review or code-review skills. Minimal conflict risk, matching the top anchor.

5 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

mastra-ai/mastra

Path

mastracode/factory/factory-skills/factory-self-review/SKILL.md

Reviewed

Table of Contents

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.