CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

factory-doctor

Checks a repo's factory setup read-only and says how to fix what is wrong. Covers factory.yaml, core.lock, labels, hooks, the verify command and gh login, each reported ok, warn, fail or n/a with a one-line fix. Use when the user says "/factory-doctor", "factory doctor", "check the factory setup" or "why does the factory not start", after factory-init or factory-update, before a lead's first run, or when a factory command fails on something that looks like setup. Also shows which settings a project runs with and where each comes from ("show the factory settings"). Changes nothing.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Quality

Content

88%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 a strong operational manual: exact commands with options and exit codes, a complete per-check interpretation table with fixes, explicit safety rules (read-only, credential redaction with exact redaction text, hook wiring forms), and well-marked failure paths. Its only weaknesses are minor duplication of fix/redaction guidance across sections and reference-grade rule detail (hook matchers, YAML subset) inlined in a single long file rather than split out.

Suggestions

Consolidate the duplicated core-file fix guidance (the core.lock table row and section 3 both explain 'factory-update or a PR upstream') into one location, e.g. a single 'Fixing a core file' note that the other mentions by name.

Move the detailed hook-wiring matcher rules and the YAML-subset grammar into a references/ file (e.g. references/hook-wiring.md, references/yaml-subset.md), keeping a short summary and the exact accepted command forms in SKILL.md.

DimensionReasoningScore

Conciseness

The body is dense and project-specific with no explanation of concepts Claude already knows — "sh .factory/bin/factory-doctor" with a full option list, exit codes, and a check table. It is not a 5 because some rules are stated twice (the core-file fix guidance appears in the core.lock table row and again in section 3, and redaction is described both in the No-secrets rule and the helper's behavior) and the factory.yaml table row packs a paragraph-length rule into one cell that could be tightened. It is above the score-3 anchor because there is no unnecessary explanation or padding, only minor duplication.

4 / 5

Actionability

Guidance is fully executable: exact commands ("sh .factory/bin/factory-doctor", three concrete "factory-settings" invocations with prefix and flag examples), the complete option set, exit codes, the exact accepted hook command forms ("sh \"$CLAUDE_PROJECT_DIR\"/.factory/hooks/<file>"), and a per-check table of typical fixes. Copy-paste-ready commands plus explicit edge-case handling ("--source <factory source>" for the labels check, agent-token mode) match the score-5 anchor; there are no gaps that would place it at 4.

5 / 5

Workflow Clarity

The workflow is a clear numbered sequence — "1. Run it", "2. Read the report", "3. Tell the person" — with explicit checkpoints (exit codes 0/1/2/64 as decision points) and error-recovery paths: "If something credential-like still shows up, stop and tell the person", "a factory.yaml the doctor would fail gives one line pointing here... so run the doctor first", and n/a semantics for agent shells. The skill is read-only, so the destructive-operation cap does not apply; the failure handling matches the score-5 anchor's feedback loops rather than the score-4 'minor validation gaps'.

5 / 5

Progressive Disclosure

No bundle files exist (references/, scripts/, assets/ are absent), and the body is well-organized with clear section headers and precise one-level-deep pointers to repo docs ("the factory repo's docs/factory-yaml.md › ci.external", "docs/agent-tokens.md"). It falls short of the score-5 anchor because at ~120 lines the reference-grade detail (the full hook-wiring matcher rules and the YAML-subset grammar) is inlined in SKILL.md rather than split into reference files; it is above the score-3 anchor because the structure is clear and the external pointers are precisely signaled, not buried.

4 / 5

Total

18

/

20

Passed

Description

100%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 exemplary: it states the concrete capability set (all checks, statuses, one-line fixes, settings provenance), gives explicit 'Use when' triggers as literal user phrases including the slash command, marks a distinct niche, and closes with a safety guarantee ('Changes nothing'). Both the 'what' and 'when' halves are maximally explicit with no padding.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions with comprehensive coverage: "Checks a repo's factory setup read-only and says how to fix what is wrong", "Covers factory.yaml, core.lock, labels, hooks, the verify command and gh login, each reported ok, warn, fail or n/a with a one-line fix", and "shows which settings a project runs with and where each comes from". It names every check target, the output statuses, and the fix format, matching the 'multiple specific concrete actions; comprehensive coverage' anchor rather than the score-4 anchor's 'minor gaps in coverage'.

5 / 5

Completeness

It explicitly answers both: what ("Checks a repo's factory setup read-only... each reported ok, warn, fail or n/a with a one-line fix... Changes nothing") and when ("Use when the user says \"/factory-doctor\", \"factory doctor\"... or when a factory command fails on something that looks like setup"). Both halves are present with concrete trigger phrases, matching the score-5 anchor exactly; the score-4 anchor's 'when could be more explicit' does not apply.

5 / 5

Trigger Term Quality

Trigger terms are given as literal user utterances: "/factory-doctor", "factory doctor", "check the factory setup", "why does the factory not start", and "show the factory settings", plus situational triggers ("after factory-init or factory-update", "before a lead's first run", "when a factory command fails on something that looks like setup"). This covers the slash command, plain-noun phrase, request phrasing, and question form — comprehensive including synonyms, exceeding the score-4 anchor's 'a few natural terms missing'.

5 / 5

Distinctiveness Conflict Risk

It carves out a clear niche — factory setup diagnostics — anchored by domain-specific artifacts ("factory.yaml, core.lock, labels, hooks") and a named command ("/factory-doctor"), with read-only scope disambiguating it from fix/init skills. Triggers are unique to this niche with minimal conflict risk, matching the score-5 anchor rather than the score-4 'minor overlap risk with closely related skills'.

5 / 5

Total

20

/

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

filiplh/vervanging

Path

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