CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

factory-gitlab-review

Review a GitLab merge request for a Factory work item using brokered source-control tools

Quality

71%

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-gitlab-review/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

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

The content is an exceptionally rigorous, fully actionable review workflow with explicit validation and recovery loops for every failure path — top-anchor actionability and workflow clarity. Its weaknesses are density and structure: heavy redundancy inflates token cost, and long format specifications that belong in dedicated reference files are inlined into a monolithic document.

Suggestions

Move the test-report table specification and the verdict body format (severity scale, findings table, required-changes rules) into reference files (e.g. references/test-report.md, references/verdict-format.md), keeping a short inline summary with clear links.

Consolidate the repeated stale-head/moved-head and mismatch-handling rules into one stated policy referenced from each step, cutting the restatement in steps 1, 4, and the verdict section.

Extract the externalId decoding rationale and source citations (gitlab/rules.ts:481, gitlab/routes.ts:94) into a reference note; the inline justification is long and rarely needed.

DimensionReasoningScore

Conciseness

The body never explains concepts Claude already knows — every sentence is operational policy — but it is a ~19KB wall of dense prose with noticeable repetition: head-change/stale-commitId handling appears in steps 1, 4, and the verdict section; test-report rules and 'do not publish on mismatch' are each restated multiple times within single paragraphs. This lands at anchor 3 ('mostly efficient but could be tightened') rather than 2, because the padding is redundancy rather than concept explanation, and rather than 4 because step 4 in particular needs substantial tightening.

3 / 5

Actionability

Guidance is fully concrete and executable for an instruction-only skill: named tool calls (`source_control_get_change_request`, `factory_review_source`, `factory_record_review_verdict`), copy-paste commands (`git rev-parse HEAD`, `env -u GH_TOKEN -u GITHUB_TOKEN -u GITLAB_TOKEN ...`, `pnpm turbo build --filter <pkg>^...`, `git status --porcelain`), and exact output formats (verdict line template, test-report table columns, footer `<sub>[Factory](<sessionUrl>)</sub>`). This matches the top anchor: specific, ready-to-run instructions covering the common cases, with no pseudocode.

5 / 5

Workflow Clarity

The five-step review pass is explicitly sequenced with validation checkpoints throughout: checkout refresh and head-SHA verification before diffing (step 1), `git status --porcelain` checks before and after tests with drift handling (step 4), an adversarial self-review gate before approval (step 5), and the in-run cross-check with stop-and-recheck loops on mismatch or stale `commitId`. Feedback loops (refresh → re-verify → re-run gates) are stated for every failure path, matching the top anchor exactly.

5 / 5

Progressive Disclosure

The body has real section structure (## Security and scope, ## Review pass, ## Verdict and handoff) and numbered steps, but this is a 19KB monolith where long self-contained specifications — the test-report table format, the verdict body format, the externalId/cross-check decoding logic with source-file citations like `gitlab/rules.ts:481` — are inlined rather than split into reference files. The only file reference (`references/categories/README.md` of the separate `factory-review` skill) points outside this bundle, which has no files of its own. This fits anchor 3 ('some structure but content that should be separate is inline') rather than 4, since the format specifications are exactly the material that belongs in one-level-deep reference files.

3 / 5

Total

16

/

20

Passed

Description

53%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 is short, accurate, and defines a distinct niche, with a clear 'what' anchored by specific platform terms. Its main weakness is the complete absence of 'when to use' trigger guidance, plus thin trigger vocabulary (no 'MR', 'code review') and single-action coverage of what is actually a multi-step review workflow.

Suggestions

Add an explicit trigger clause, e.g. 'Use when a Factory work item in the review phase has a GitLab merge request to review, when the user asks to review an MR or code review on the bound repository, or when the factory-phase signal shows role="review".'

Broaden natural trigger terms to include the variations users actually say — 'MR', 'code review', 'diff review' — alongside 'GitLab merge request'.

Mention the skill's other concrete actions (publish an evidence-based verdict, run and post a test report, record the verdict on the card) so the capability list is more comprehensive.

DimensionReasoningScore

Specificity

"Review a GitLab merge request for a Factory work item using brokered source-control tools" names the domain (GitLab MR review within Factory) and one concrete action (review an MR), but coverage stops there — no mention of publishing verdicts, recording results, or test reporting, matching the '1-2 concrete actions, not comprehensive' anchor. It is above anchor 2 because 'review a merge request' is a specific action, not a generic verb like 'processes', but below anchor 4 because only one action is listed.

3 / 5

Completeness

The 'what' is clear (review a GitLab MR for a Factory work item via brokered source-control tools), but there is no 'Use when...' clause or equivalent trigger guidance anywhere, capping completeness at 3 per the judging guidelines. It is not a 4 because the 'when' is entirely absent rather than merely implicit, and not a 2 because the 'what' half is concrete and specific.

3 / 5

Trigger Term Quality

Natural keywords present are "GitLab", "merge request", and "review", which a user in this environment would say, but common variations like "MR", "code review", or "diff" are missing, and "Factory work item" plus "brokered source-control tools" are internal jargon rather than user-spoken trigger phrases. This sits at anchor 3 ('some relevant keywords but missing common variations') rather than 4, since keyword coverage is thin for a one-sentence description.

3 / 5

Distinctiveness Conflict Risk

The pairing of "Factory work item" with "brokered source-control tools" carves out a clear niche with minimal conflict against unrelated skills, sitting between anchors 4 and 5. It stays at 4 rather than 5 because "Review a GitLab merge request" on its own would overlap with any generic MR/code-review skill, and the absence of a 'when' clause leaves that boundary unstated.

4 / 5

Total

13

/

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 possibly missing (references/categories/README.md), 1 deeper-than-1-level

Warning

Total

15

/

16

Passed

Repository

mastra-ai/mastra

Path

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