CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

json-safety

Use when reviewing scripts, client components, bundles, or runtime behavior related to Parse JSON safely with error handling. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.

Quality

60%

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/json-safety/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

53%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 clean, well-organized overview that correctly defers detail to a real one-level-deep reference, but it front-loads a concept explanation Claude already knows (duplicated within the body and again verbatim in rule.md) and provides no executable fix pattern or verification loop for a batch "fix all calls" workflow.

Suggestions

Delete the opening concept-explanation paragraph (or collapse it into the Quick Reference bullets) — it repeats what Claude already knows, duplicates Quick Reference bullet 1, and appears verbatim in rule.md's "Why It Matters" section.

Show the core safeParse try/catch pattern inline in the Fix section (a few lines of code) so the fix is executable without opening the reference.

Add an explicit verification checkpoint to the workflow (e.g., "After fixing, re-run the affected browser flow and confirm the fallback path executes on malformed input").

DimensionReasoningScore

Conciseness

The opening paragraph explains that "JSON.parse() on invalid input throws a SyntaxError" and that API/localStorage/user data can be malformed — a basic concept Claude already knows — and the Quick Reference bullet "JSON.parse() throws a SyntaxError on invalid input — always use try/catch" repeats the same fact within six lines. Not 4 because a full redundant paragraph plus a duplicated bullet is more than a minor trim; not 2 because the rest of the body (Check/Fix/Code Review sections and the reference pointer) is tight.

3 / 5

Actionability

"Find all JSON.parse() calls in this file and check whether each one is wrapped in try/catch and whether the result is validated before use" is concrete and greppable, but the body contains no executable code or fix pattern — "Add try/catch error handling to all JSON.parse() calls and add shape validation" names the fix without showing it, with all examples deferred to references/rule.md. Not 4 because there is no copy-paste-ready guidance in the body; not 2 because the Check instruction and Quick Reference facts (stringify edge cases, Zod/Valibot) are specific.

3 / 5

Workflow Clarity

Check → Fix → Explain → Code Review forms a coherent sequence, but there is no validation checkpoint: the workflow fixes "all JSON.parse() calls" (a batch edit) with no verify step in the body — verification is only gestured at ("state how the change should be verified in the browser"). Per the rubric's batch-operation cap this cannot exceed 3; not 4 because an explicit fix-then-verify feedback loop is missing.

3 / 5

Progressive Disclosure

"For full implementation details, code examples, and framework-specific guidance, see `references/rule.md`" is a clearly signaled, one-level-deep pointer to a real bundle file, and the body is a well-organized overview. Not 5 because the opening paragraph is duplicated verbatim in rule.md's "Why It Matters" section, so the overview/reference split is not clean; not 3 because structure, signaling, and navigation are otherwise strong.

4 / 5

Total

13

/

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 an explicit when-clause but buries the 'what' in a title-cased rule name mid-sentence, leaving capability, trigger terms, and distinctiveness all at mid-level. Natural user-facing trigger terms (JSON.parse, try/catch, validation) are absent in favor of generic reviewing boilerplate shared with sibling rules.

Suggestions

State the skill's core capability in its own clause before the trigger (e.g., "Reviews JavaScript for unsafe JSON.parse() usage and guides safe parsing with try/catch, shape validation, and schema libraries") so the 'what' is explicit rather than embedded in a rule title.

Add natural trigger terms users would actually say: "JSON.parse", "try/catch", "parse error", "safeParse", "localStorage/API response validation".

Differentiate from sibling review rules by leading with the JSON-parsing niche (e.g., "Use when a script parses JSON from APIs, localStorage, or user input") instead of the generic "reviewing scripts, client components, bundles" preamble.

DimensionReasoningScore

Specificity

"reviewing scripts, client components, bundles, or runtime behavior" and "Inspect both source code and the browser execution path" name the domain plus 1-2 concrete actions, but the core capability is conveyed only via the embedded title-cased phrase "Parse JSON safely with error handling" rather than explicit capability verbs. It is not 4 because it lists fewer than the several specific actions of that anchor, and not 2 because it goes beyond merely naming a domain by including concrete inspect actions.

3 / 5

Completeness

"Use when reviewing scripts, client components, bundles, or runtime behavior..." is an explicit when-clause, but the 'what' is only weakly implied by the title-cased phrase "related to Parse JSON safely with error handling" embedded mid-sentence — the skill's actual capability is never stated as its own clause. Not 4 because the what is not clearly and separately stated as in that anchor's example; not 2 because both elements exist and the when is explicit.

3 / 5

Trigger Term Quality

Relevant keywords are present ("scripts", "client components", "JSON", "error handling", "browser execution path"), but the natural phrases a user would actually say — "JSON.parse", "try/catch", "parse error", "safeParse", "validate localStorage/API responses" — are missing. Anchor 3 (some relevant keywords, missing common variations and synonyms) is the best fit; 4 would require fuller natural-term coverage.

3 / 5

Distinctiveness Conflict Risk

"reviewing scripts, client components, bundles, or runtime behavior" is generic boilerplate that would match most code-review requests, so distinctiveness rests solely on "Parse JSON safely with error handling", which could still overlap with adjacent frontend rules (error handling, runtime crashes). Not 4 because the broad reviewing preamble creates more than minor overlap risk; not 2 because the JSON-parsing niche is explicitly named.

3 / 5

Total

12

/

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/json-safety/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.