CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

magic-web-error-logging

Enforce Magic Web structured business error logging when adding, changing, migrating, or reviewing `logger.error` calls in `src`, `enterprise/src`, or `customer/src`, including catch blocks, callbacks, ErrorBoundaries, workers, WebSocket/storage flows, and logger adapters. Use to choose `eventKey/errorKind/error/message/context`, preserve historical diagnostics, prevent unsafe payloads, and verify the JS probe plus `/log-report` behavior.

Quality

94%

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

86%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 tight, highly actionable rulebook: concrete code shape, field-level rules, explicit scope discipline, a prioritized review checklist, and executable verification commands, with detail correctly pushed to two clearly-signaled reference files. Its only weaknesses are minor redundancy of the diagnostics-preservation rules across sections and the absence of an explicit fix-and-re-run feedback loop in the verification workflow.

Suggestions

Consolidate the diagnostics-preservation rules that currently appear in Required Workflow step 4, Review Mode items 1-2, and Done Criteria into one authoritative section, referencing it from the others, to remove redundant tokens.

Add an explicit feedback loop to the Verification section, e.g. 'If vitest or the diff review fails, fix the mapping (dropped error value, unbounded context, wrong field) and re-run before proceeding.'

Trim second-order bullets such as the duplicated raw-evidence/size-limit guidance in the `context` and comment rules, keeping one statement of each rule.

DimensionReasoningScore

Conciseness

The body is dense and rule-driven with no explanation of concepts Claude already knows — sections like "Put the stable failure scenario in `eventKey`" and the Scope Discipline bullets are pure project-specific instruction. However, preservation rules repeat across the Required Workflow ("Audit information preservation"), Review Mode items 1–2, and Done Criteria ("preserves all justified historical diagnostics"), which is minor redundancy that could be trimmed. This matches the 4 anchor ('efficient; minor instances ... that could be trimmed') rather than 5, where every token would earn its place with no restatement.

4 / 5

Actionability

The body gives a copy-paste-ready structured call (the `logger.error({...})` TypeScript block), a concrete errorKind vocabulary block, exact source-of-truth file paths, and executable verification commands (`rg -n "logger\.error" <touched-files>`, `corepack pnpm exec vitest run --config ./vitest.config.ts <focused-tests>`, `git diff --check`) plus a manual checklist. Guidance covers the common cases (catch, callback, adapter, review mode) exactly as the 5 anchor requires; the 4 anchor's 'minor gaps' does not apply.

5 / 5

Workflow Clarity

The Required Workflow provides a clear 6-step sequence with explicit validation checkpoints (step 6, the Verification section with commands and a manual checklist, and Done Criteria as a completion gate). It falls short of the 5 anchor because there is no explicit error-recovery feedback loop — nothing says what to do when `vitest run` or the diff review fails (fix and re-run), and the review-priority list in Review Mode is not tied back into the workflow. It clearly exceeds the 3 anchor, where checkpoints are missing or implicit.

4 / 5

Progressive Disclosure

SKILL.md acts as a well-organized overview and correctly splits detail into two one-level-deep references: "Read [references/contract.md](references/contract.md) when deciding field behavior, Provider visibility, serialization, or sensitive-data boundaries" and "Read [references/examples.md](references/examples.md) when migrating legacy calls, handling callbacks, or reviewing a proposed log change" — both condition-signaled, both verified to exist, and neither references further files. The bundle contains only these two reference files (no scripts/assets), and all body references resolve, matching the 5 anchor.

5 / 5

Total

18

/

20

Passed

Description

100%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 exemplary: third-person voice, explicit what-and-when structure, comprehensive concrete actions, and niche-specific trigger terms (logger.error, catch blocks, ErrorBoundaries, eventKey/errorKind, /log-report) that a user would naturally say. No vague fluff or over-claims are present.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — "Enforce Magic Web structured business error logging when adding, changing, migrating, or reviewing `logger.error` calls", "choose `eventKey/errorKind/error/message/context`", "preserve historical diagnostics, prevent unsafe payloads, and verify the JS probe plus `/log-report` behavior" — with named scopes (src, enterprise/src, customer/src) and contexts (catch blocks, callbacks, ErrorBoundaries, workers, WebSocket/storage flows). This matches the 5 anchor (multiple specific concrete actions, comprehensive coverage) and exceeds the 4 anchor, which only expects 'several specific actions with minor gaps' — no meaningful action is missing.

5 / 5

Completeness

It explicitly answers both parts: what ("Enforce ... structured business error logging ... choose `eventKey/errorKind/error/message/context`, preserve historical diagnostics, prevent unsafe payloads, and verify the JS probe plus `/log-report` behavior") and when ("when adding, changing, migrating, or reviewing `logger.error` calls in `src`, `enterprise/src`, or `customer/src`"). The 'when' clause is explicit with concrete trigger contexts, matching the 5 anchor exactly; the 4 anchor's weaker 'when could be more explicit' does not apply.

5 / 5

Trigger Term Quality

It comprehensively covers natural terms a developer in this codebase would say when needing the skill: "`logger.error` calls", "error logging", "catch blocks", "callbacks", "ErrorBoundaries", "workers", "WebSocket/storage flows", "logger adapters", plus the concrete field names and `/log-report`. These are the actual phrases that would appear in a request; not the 4 anchor, because no commonly used variation in this niche is missing.

5 / 5

Distinctiveness Conflict Risk

The description occupies a clear niche — Magic Web structured error logging with project-specific field names (`eventKey`, `errorKind`), source paths, the JS probe, and `POST /log-report` — so it is unlikely to trigger for unrelated logging or general error-handling skills. It matches the 5 anchor ('clear niche with distinct triggers; minimal conflict risk') rather than the 4 anchor, which still anticipates overlap with closely related skills.

5 / 5

Total

20

/

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

dtyq/magic

Path

frontend/magic-web/.agents/skills/magic-web-error-logging/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.