CtrlK
BlogDocsLog inGet started
Tessl Logo

factory-function-composition

Factory function patterns to compose clients and services. Use when wrapping resources with domain methods or refactoring mixed client/service/method options.

67

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

85%

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

The content is highly actionable and well-structured, with concrete templates, clear sequencing, and sound progressive disclosure verified against the real bundle files. The only real weakness is moderate verbosity in the Benefits/Mental-Model and Go-to-Definition prose.

Suggestions

Trim the generic 'Benefits' and 'Mental Model' sections, which restate dependency-injection advantages Claude already knows; keep only the codebase-specific conventions.

Tighten the prose around the Go-to-Definition and structural-typing explanations to reduce padding while retaining the navigable-rule guidance.

DimensionReasoningScore

Conciseness

The body is mostly efficient and teaches codebase-specific conventions, but the 'Benefits' and 'Mental Model' sections restate generic dependency-injection advantages Claude already knows and some Go-to-Definition prose could be tightened, fitting the 'mostly efficient but includes some unnecessary explanation' anchor.

2 / 3

Actionability

Extensive concrete bad/good anti-pattern pairs, a copy-paste-ready four-zone template, and a decision-rule table give directly actionable guidance; the // ... body placeholders are appropriate for pattern templates, matching the 'fully executable/specific examples' anchor.

3 / 3

Workflow Clarity

The construction chain (createClient -> createService -> method) and the explicit four-zone internal ordering are clearly sequenced, and no destructive/batch operations require validation checkpoints, so the simple-skill allowance applies.

3 / 3

Progressive Disclosure

A well-organized overview keeps the core pattern inline and signals one-level-deep references clearly; both bundle files in references/ exist and are linked under 'Load on demand', matching the clear-overview-with-well-signaled-references anchor.

3 / 3

Total

11

/

12

Passed

Description

77%

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 strong and complete, with an explicit what-and-when structure and concrete domain actions. It is held back slightly by trigger phrasing that reads as implementation jargon and by overlap risk with a sibling refactoring skill.

Suggestions

Add user-natural trigger phrases (e.g., 'separate client and method options', 'wrap a client with service methods') alongside the implementation-level phrasing to broaden when-clause matching.

Sharpen distinctiveness from the sibling refactoring skill by leading the when-clause with the factory/composition trigger rather than 'refactoring mixed options'.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'compose clients and services', 'wrapping resources with domain methods', and 'refactoring mixed client/service/method options' — matching the multiple-specific-actions anchor rather than the single-action score-2 anchor.

3 / 3

Completeness

Explicitly answers both 'what' (factory function patterns to compose clients and services) and 'when' (an explicit 'Use when wrapping... or refactoring...' clause), so it is not capped at 2 by the missing-trigger guideline.

3 / 3

Trigger Term Quality

Relevant developer keywords appear (factory function, compose, wrap, refactor), but the when-clause leans implementation-internal ('mixed client/service/method options') instead of user-natural phrasing and omits common variations, fitting the 'some relevant keywords but missing common variations' anchor.

2 / 3

Distinctiveness Conflict Risk

The factory-composition niche is distinct, but the 'refactoring mixed client/service/method options' trigger overlaps a sibling refactoring skill referenced in the body, matching the 'somewhat specific but could still overlap' anchor rather than a conflict-free niche.

2 / 3

Total

10

/

12

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.

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

relative_links

Relative link issues: 6 suspicious

Warning

Total

15

/

16

Passed

Repository
EpicenterHQ/epicenter
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.