CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

factory-review

Review a pull request for a Factory work item — history and context first, then a verdict published on the PR — and mark the review complete

Quality

75%

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

Fix and improve this skill with Tessl

tessl review fix ./mastracode/factory/factory-skills/factory-review/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

81%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.

This is a strong procedural skill: fully executable commands, explicit validation gates with feedback loops, and a genuine on-demand reference bundle for category guidance. Its main weakness is token efficiency — the ~280-line body restates several rules (head-moved checks, author-identity handling, injection policy) in multiple places, and some long blocks would serve better as reference files.

Suggestions

Consolidate rules that currently appear in multiple phases — head-moved verification, author-identity mismatch, injection handling — into a single section each phase refers to once.

Move the publishing mechanics (edit-vs-new-verdict matrix, comment fallback, follow-up-PR procedure) into a reference file like `references/publishing.md`, keeping SKILL.md to the core six-phase flow.

Trim the Behavior Rules section to only rules not already enforced where they are used, cutting the restatement of security and verdict rules.

DimensionReasoningScore

Conciseness

The body is dense operational guidance that assumes Claude's competence — no concept explanations, no padding — but at ~280 lines it visibly repeats itself: the head-moved check appears in Phase 3, Phase 6, and the publish gate; the author-identity mismatch handling is explained twice; the security and verdict rules are restated in the Behavior Rules section. Mostly efficient but several sections could be tightened, matching the level-3 anchor rather than 4.

3 / 5

Actionability

Fully executable throughout: exact gh commands with flags (`gh pr view <number> --json ...`, `gh api graphql -f query='...'`), a concrete test-report and verdict-body template, exact file paths (`.artifacts/factory-review/pr-<number>-<headSha>.md`), copy-paste fallbacks, and precise edit-vs-new-verdict decision rules. Not below 5: the common cases (approve, request changes, mismatch, conflict, fallback) are each covered with a specific command.

5 / 5

Workflow Clarity

A clear six-phase sequence with explicit validation checkpoints and feedback loops everywhere they matter: wait-and-poll for pending bots, credential stripping before test runs, `git status --porcelain` drift checks, the head-moved gate before publishing, a file gate on the body (`head -n1`, SHA match) before posting, the adversarial check before approve, and a re-run-and-retry loop on verdict rejection or head movement. Matches the level-5 anchor with error-recovery loops for a complex outward-facing process.

5 / 5

Progressive Disclosure

The bundle is real and well-wired: the body directs loading `references/categories/README.md` before opening the diff, which indexes 16 category pages loaded on demand, and `references/archaeology.md` for command recipes — one level deep, clearly signaled. Not 5 because SKILL.md itself carries long inlined blocks (the full security policy, publishing mechanics, follow-up-PR procedure) that belong in reference files, and `archaeology.md` is reached via the category pages (a second hop) as well as directly.

4 / 5

Total

17

/

20

Passed

Description

58%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.

The description communicates a clear, multi-action purpose anchored to a distinct Factory niche, but it entirely lacks an explicit 'when to use' clause and natural trigger variations. Adding a 'Use when...' clause with user-facing phrasing (PR review, code review, Factory review pass) would raise both completeness and trigger-term quality.

Suggestions

Add an explicit trigger clause, e.g. 'Use when a Factory work item's PR-review phase requests a review, or when asked to review or code-review a pull request bound to a Factory card.'

Include natural trigger variations users actually say — 'PR review', 'code review', 'review this pull request' — so the skill fires on informal phrasing.

State the when-condition's boundary explicitly (e.g. 'Not for GitLab merge requests — those use factory-gitlab-review') to sharpen distinctiveness against sibling skills.

DimensionReasoningScore

Specificity

The description names several concrete actions — "Review a pull request", "history and context first", "a verdict published on the PR", "mark the review complete" — giving a real picture of the skill's behavior. It falls short of 5 because the actions are high-level pass descriptions rather than the comprehensive, fine-grained action list of the top anchor, and short of 3 only in the sense that four distinct actions exceed the '1-2 concrete actions' bar.

4 / 5

Completeness

The 'what' is clear (review a PR with history/context first, publish a verdict, mark complete), but there is no 'Use when...' clause or equivalent explicit trigger guidance — "for a Factory work item" only weakly implies the triggering situation, which caps this dimension at 3 per the judging guidelines. Not 4 because the when-condition is implied rather than stated.

3 / 5

Trigger Term Quality

It contains relevant natural keywords ("Review a pull request", "Factory work item", "verdict") but misses common variations and synonyms users would say — "PR", "code review", "review this PR". Not 4 because coverage stops at the formal phrasing with no variation; not 2 because the keywords present are genuinely natural, not jargon-only.

3 / 5

Distinctiveness Conflict Risk

"Factory work item" carves out a distinct niche with Factory-specific triggers (record-review-verdict flow), keeping conflict risk low. Not 5 because "Review a pull request" alone overlaps generic code-review skills and could fire in a non-Factory context; not 3 because the Factory framing makes accidental triggering for a different skill unlikely.

4 / 5

Total

14

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

referenced_paths_exist

Referenced path issues: 1 deeper-than-1-level

Warning

Total

15

/

16

Passed

Repository

mastra-ai/mastra

Path

mastracode/factory/factory-skills/factory-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.