CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

modular-ds-utilities

Use when: extracting, reusing, or naming hooks, state management, or other component-agnostic behavior in Primer React, or when a component's behavior hook wraps a native element with built-in behavior such as `<dialog>`. Covers the compound behavior-hook pattern (prop-getters), the controlled component contract for wrapping native elements, the difference between a component's own hook and a generic reusable utility, naming conventions, and where utilities live in the package.

Quality

90%

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

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

A high-quality, expert-level body: actionable code and exact repo-specific facts throughout, clear conditional decision rules, and well-signaled cross-references. The main improvement opportunities are deduplicating the key-clobbering explanation and splitting some inline material (dialog invariants, Tabs precedent) into reference files for leaner loading.

DimensionReasoningScore

Conciseness

The body is dense with project-specific knowledge Claude cannot infer (repo paths, Tabs precedent, package subpaths, hydration caveats) and explains virtually nothing generic, so it largely assumes competence. It is not a 5 because the key-clobbering hazard is explained four times (code comment at the getRootProps getter, the "Spread prop-getters last" paragraph, the dedicated "Getters must not return keys they have no value for" section, and the Tabs precedent) and the 70-line commented example could be trimmed.

4 / 5

Actionability

Guidance is fully executable: a complete copy-adaptable useDialog implementation demonstrating the pattern, exact file locations ("packages/react/src/hooks/", "packages/react/src/experimental/<Component>/use<Component>.ts"), named precedents ("experimental/Tabs/Tabs.tsx", "hooks/useFocusZone.hookDocs.json"), and concrete commands/keywords to search for. The common cases (write a compound hook, place a utility, name it, decide public vs internal) are each covered with specifics.

5 / 5

Workflow Clarity

Decision flows are explicit and conditional — "Before naming, search the repo for existing hooks… If a conflict exists, the new compound hook takes the `use<Component>` name", the public-hook bar with "If in doubt, keep it internal", and "surface it and stop" for export subpaths — and the controlled `<dialog>` contract is a numbered 1–6 sequence of invariants. It falls short of 5 because the overall process (search → classify → implement → name → place → publish) is never assembled into one ordered workflow, leaving the reader to sequence the sections themselves.

4 / 5

Progressive Disclosure

The body is well-structured with clear section headers, and every external pointer is explicitly signaled ("see the `modular-ds-accessibility-contract` skill", "contributor-docs/style.md", the base-components pitch issue, the `deprecations` skill). It is not a 5 because the skill is ~160 lines with no bundle files at all — the long code example, the Tabs precedent, and the controlled-component contract are candidates for one-level-deep reference files that would keep the overview leaner.

4 / 5

Total

17

/

20

Passed

Description

92%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 strong description with an explicit Use-when clause, concrete trigger phrases, and a precise enumeration of what the skill covers, all in third person. Keyword coverage is good but could add a few natural synonyms (custom hook, shared hook, utility) to reach the top trigger-term anchor.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities — "extracting, reusing, or naming hooks, state management", "the compound behavior-hook pattern (prop-getters)", "the controlled component contract for wrapping native elements", "naming conventions, and where utilities live in the package" — with comprehensive coverage of the skill's scope. It sits at the top anchor rather than 4 because nothing material in the skill's scope is left unmentioned.

5 / 5

Completeness

It explicitly answers both questions: "Use when: extracting, reusing, or naming hooks… or when a component's behavior hook wraps a native element with built-in behavior such as `<dialog>`" gives concrete when-triggers, and "Covers the compound behavior-hook pattern (prop-getters), the controlled component contract…" states exactly what the skill does. This matches the top anchor; the 4 anchor's "'when' could be more explicit" does not apply here.

5 / 5

Trigger Term Quality

Good natural trigger coverage: "hooks", "state management", "naming", "native element", "<dialog>", "prop-getters", "Primer React" are phrases a user of this codebase would plausibly say. It falls short of the 5 anchor because common synonyms a user might naturally say (e.g. "custom hook", "shared hook", "utility") are not present as trigger phrasing.

4 / 5

Distinctiveness Conflict Risk

The description stakes out a clear niche — component-agnostic utilities and behavior hooks in Primer React — with distinct triggers (prop-getters, `<dialog>` wrapping, hook naming), so it is unlikely to fire for unrelated skills. The Primer React scoping keeps even the broadest phrase ("state management") from creating meaningful overlap.

5 / 5

Total

19

/

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

primer/react

Path

.agents/skills/modular-ds-utilities/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.