CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

bun-test-mocking

Use for mock functions in Bun tests, spyOn, mock.module, implementations, and test doubles.

64

Quality

80%

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

Fix and improve this skill with Tessl

tessl review fix ./plugins/bun/skills/bun-test-mocking/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

78%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 body is a strong, executable reference: copy-paste-ready Bun mocking examples covering the common cases with assertion-based validation and a troubleshooting table. Its main weakness is progressive disclosure — the two referenced files are missing from the bundle and a fair amount of API detail is inlined that the skill itself routes to those references.

Suggestions

Create references/mock-api.md and references/module-mocking.md (or remove the "When to Load References" section) so the signaled references resolve to real files.

Move the bulk of the per-method API catalog (Mock Return Values, Mock Assertions, Mock Properties) into references/mock-api.md, keeping only a representative quick-start example in SKILL.md to reduce inlined duplication.

Trim obvious inline code comments (e.g. "// Still works", "// Now imports use mocked version") that restate what the assertion on the next line already shows.

DimensionReasoningScore

Conciseness

The body is code-forward with minimal prose and does not over-explain what mocking is; a few inline comments (e.g. "// Still works", "// Now imports use mocked version") and some fully-inlined API detail could be trimmed, fitting the efficient-but-minor-overexplanation score-4 anchor rather than the lean score-5.

4 / 5

Actionability

Provides complete, copy-paste-ready TypeScript examples across the common cases (mock functions, return values, spies, mock.module, fetch/console/class mocking) with real assertions, matching the fully-executable score-5 anchor.

5 / 5

Workflow Clarity

Examples follow clear setup → call → assert sequences where assertions act as validation, and the Common Errors table gives error-recovery guidance; there is no explicit validate-fix-retry loop, but mocking is not a destructive/batch operation so the score-3 cap does not apply, landing at 4.

4 / 5

Progressive Disclosure

Sections are well-organized and the "When to Load References" block clearly signals references/mock-api.md and references/module-mocking.md, but those files do not exist in the bundle (the references/ directory is absent), so navigation is broken; additionally, much of the inlined API reference (return values, assertions, properties) duplicates what the skill says belongs in mock-api.md, fitting the score-3 anchor.

3 / 5

Total

16

/

20

Passed

Description

75%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 concise, third-person, and names concrete Bun mocking APIs with an explicit "Use for" trigger, covering both what and when. It is held at 4 across dimensions by minor synonym gaps and slight overlap with general test-mocking skills.

DimensionReasoningScore

Specificity

Names the domain (Bun tests) and several concrete capabilities — "mock functions", "spyOn", "mock.module", "implementations", "test doubles" — listing multiple specific actions with only minor coverage gaps, which fits the score-4 anchor rather than the comprehensive score-5 example.

4 / 5

Completeness

The "Use for ..." clause provides explicit trigger guidance ("when") and the enumerated capabilities answer "what", satisfying both; the "when" is somewhat merged with the capability list and could be more explicit, matching score 4 rather than the fully separate what/when of score 5.

4 / 5

Trigger Term Quality

Includes natural and technical terms a user would say ("mock functions in Bun tests", "test doubles", "spyOn") with good keyword coverage; a few natural synonyms like "stub" or "mocking" are missing, so it sits at 4 rather than 5.

4 / 5

Distinctiveness Conflict Risk

"mock functions in Bun tests" carves a clear runtime-specific niche with minimal conflict risk; minor overlap remains with a general or Jest-compatible test-mocking skill, placing it at 4 rather than the minimal-risk score 5.

4 / 5

Total

16

/

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: 2 missing

Warning

Total

15

/

16

Passed

Repository

secondsky/claude-skills

Path

plugins/bun/skills/bun-test-mocking/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.