CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

scheduler-yield

Use when reviewing JavaScript that performs synchronous loops over large datasets, recursive tree traversals, or bulk DOM updates that may exceed 50 ms on mid-range devices.

Quality

62%

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 ./skills/scheduler-yield/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

57%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 follows a good progressive-disclosure pattern: a tight overview pointing to a single real reference file containing the full implementation. Its weaknesses are redundancy — the 50 ms/INP rationale is stated twice and Check/Code Review overlap — and the absence of any inline validation step or minimal executable snippet, leaving the reader dependent on the reference for both code and verification.

Suggestions

Merge the duplicated 50 ms/INP rationale (stated verbatim in both the intro and Quick Reference) into a single location, and fold the overlapping 'Check' and 'Code Review' sections into one section.

Add a minimal inline yield-loop snippet or a one-line verification checkpoint (e.g., 'confirm no red Long Task markers in the DevTools Performance panel after refactoring') so the body is executable without opening the reference.

Sequence the sections as an explicit workflow (identify → refactor → verify) rather than parallel Check/Fix/Explain/Code Review modes.

DimensionReasoningScore

Conciseness

The body is lean overall, but the intro paragraph and the first Quick Reference bullet both state 'tasks longer than 50 ms block input and hurt INP' nearly verbatim, and the 'Check' and 'Code Review' sections substantially duplicate each other (both instruct finding loops that could exceed 50 ms). This duplication is more than the 'minor instances' of anchor 4, fitting 'mostly efficient but could be tightened'.

3 / 5

Actionability

The body names the API (scheduler.yield()), the fallback mechanism (MessageChannel), the threshold (50 ms), and applicable scenarios, and clearly defers implementation to references/rule.md — but it contains no inline code, commands, or concrete refactoring steps, matching 'some concrete guidance but incomplete'. It is not anchor 2 because specific technical direction and a real pointer to executable code are given.

3 / 5

Workflow Clarity

Check followed by Fix provides a rough sequence, but the four sections (Check/Fix/Explain/Code Review) read as parallel usage modes rather than a sequenced workflow, and no validation checkpoint (e.g., verify no long tasks remain via the Performance panel) appears in the body — verification exists only in references/rule.md. This fits 'sequence present but checkpoints missing or implicit'.

3 / 5

Progressive Disclosure

The body is a concise overview that appropriately splits detail into a single, well-signaled, one-level-deep reference ('For full implementation details, code examples, and framework-specific guidance, see references/rule.md'), and that bundle file exists with the promised content (full executable code, chunk-sizing guidance, verification steps). This matches 'clear overview with well-signaled one-level-deep references; content appropriately split'.

5 / 5

Total

14

/

20

Passed

Description

50%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 has a strong, specific 'when' clause with concrete scenario triggers, but it completely omits the 'what' — the capability it provides (yielding via scheduler.yield() with a MessageChannel fallback) is never stated. It also misses the most natural user phrasings for this problem domain such as 'long tasks', 'main thread', and 'freezes'. Adding an explicit capability statement and those trigger synonyms would lift it substantially.

Suggestions

State the 'what' explicitly, e.g. 'Refactors long-running JavaScript tasks to yield to the browser between chunks using scheduler.yield() with a MessageChannel fallback. Use when reviewing JavaScript that performs synchronous loops...' so both capability and trigger are present.

Add natural trigger synonyms users would actually say: 'long tasks', 'main thread blocked', 'freezes/hangs during heavy computation', and 'INP', rather than only the technical scenario phrasing.

Consider mentioning the Web Worker alternative boundary ('for CPU-bound work use a Web Worker instead') to sharpen distinctiveness from adjacent performance skills.

DimensionReasoningScore

Specificity

The description uses concrete scenario language ('synchronous loops over large datasets, recursive tree traversals, or bulk DOM updates that may exceed 50 ms on mid-range devices'), but never states what the skill itself does. It sits above anchor 3 (which covers only 1-2 concrete actions) but below anchor 5, which requires the skill's concrete actions to be comprehensively listed.

4 / 5

Completeness

The description is entirely a 'Use when...' trigger clause with no statement of what the skill does (e.g., refactor long tasks to yield via scheduler.yield() with a MessageChannel fallback), which matches anchor 2: 'only when is present without what'. It cannot score 3 or higher because no capability is explicitly stated, and scoring must not infer intentions.

2 / 5

Trigger Term Quality

Relevant keywords like 'synchronous loops', 'tree traversals', and 'bulk DOM updates' are present, but the natural terms users would most plausibly say for this problem — 'long tasks', 'main thread blocked', 'INP', 'page freezes/unresponsive' — are all missing, matching the anchor for 'missing common variations or synonyms' rather than 'a few natural terms missing'.

3 / 5

Distinctiveness Conflict Risk

The 50 ms threshold and specific scenario list (data loops, tree traversals, bulk DOM updates) carve out a fairly distinct niche, but adjacent JavaScript-performance skills (e.g., Web Worker offloading or general render-performance review) could plausibly trigger on the same phrasing, matching 'mostly distinct; minor overlap risk'.

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

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository

thedaviddias/Front-End-Checklist

Path

skills/scheduler-yield/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.