CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

custom-metrics

Emit and query Vercel Custom Metrics. Use proactively whenever you write or change server code that runs as a Vercel Function (route handlers, API routes, server actions, webhooks, scheduled jobs, queue consumers, AI or external API calls) to record outcomes and latency with metric() from @vercel/functions, even when the user did not ask for metrics. Also use when choosing metric names and attributes or querying emitted values with vc metrics.

Quality

93%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Critical

Do not install without reviewing

SKILL.md
Quality
Evals
Security

Quality

Content

88%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 content is highly actionable and well-sequenced: executable code, exact CLI commands, explicit verification steps, and an error-recovery checklist, all carrying Vercel-specific constraints Claude would not know. Its only weaknesses are mild — slight over-explanation of the signature parameters and inlining of query/troubleshooting detail that could live in a reference file.

Suggestions

Trim the parameter bullets under the metric() signature — the TypeScript types already convey the shape; keep only the non-obvious notes (emit 1 for summed increments, discovered tag keys become dimensions, do not await).

Move the 'If a metric is missing' troubleshooting checklist and the aggregation-mapping table into a short reference file (e.g. references/querying.md) and link to it from the body to improve progressive disclosure.

Compress the 'Use the right signal' section to a one-line pointer per alternative signal, since the distinctions between logs, spans, and Web Analytics events are largely knowledge Claude already has.

DimensionReasoningScore

Conciseness

The body is dense with non-obvious operational facts ('3.9.0 or later', '$1.20 per 1M', 'at most 100 times per invocation', '-a … deprecated shorthand') and avoids concept explanations Claude already knows, but the bullets under the TypeScript signature re-explain each parameter ('name identifies one stable measurement') and parts of the 'Use the right signal' section state generally known distinctions — minor trimmable over-explanation that fits level 4 rather than the every-token-earns-its-place level 5.

4 / 5

Actionability

Guidance is fully executable and copy-paste ready: 'pnpm add @vercel/functions', a complete POST handler with try/catch/finally emitting outcome counters and a duration, the exact 'metric(name: string, value: number, tags?: Record<string, string>): void' signature, and concrete CLI invocations like 'vc metrics orders.created --aggregation sum --group-by outcome --since 24h' covering the common counter, duration, grouped, and JSON cases.

5 / 5

Workflow Clarity

The sequence is stated up front ('emit a numeric sample with metric() → invoke the deployed function → discover and query the metric'), verification checkpoints are explicit ('Verify instrumentation through a deployed Vercel Function invocation, not local execution alone', 'Always inspect the exact metric first with vc metrics schema <name>'), and a numbered 5-step troubleshooting checklist provides a feedback loop for error recovery.

5 / 5

Progressive Disclosure

The single-file body is well organized into clearly headed sections with no buried or nested references, but at roughly 110 lines it exceeds the under-50-line simple-skill exception, and detail such as the aggregation table and the missing-metric troubleshooting checklist is inlined where a one-level reference file could carry it — good structure with minor organization gaps, fitting level 4 rather than the reference-splitting level 5.

4 / 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.

This is an exemplary description: it names concrete actions with the exact package, function, and CLI, gives explicit proactive and on-demand trigger conditions, and stays tightly scoped to Vercel Functions. Third-person imperative voice is used throughout with no person-penalty issues.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions with exact tooling — 'Emit and query Vercel Custom Metrics', 'record outcomes and latency with metric() from @vercel/functions', 'querying emitted values with vc metrics' — giving comprehensive coverage of the skill's capabilities; it clearly exceeds the level-4 anchor that permits coverage gaps.

5 / 5

Completeness

It explicitly answers both 'what' (emit with metric() from @vercel/functions, query with vc metrics) and 'when' ('Use proactively whenever you write or change server code that runs as a Vercel Function (…)' plus 'Also use when choosing metric names and attributes or querying emitted values'), with concrete trigger phrases matching the level-5 example pattern.

5 / 5

Trigger Term Quality

It comprehensively covers natural trigger terms and synonyms on both the emit side ('server code', 'route handlers, API routes, server actions, webhooks, scheduled jobs, queue consumers', 'outcomes and latency') and the query side ('custom metrics', 'vc metrics', 'metric names and attributes'), matching the comprehensive-synonyms anchor rather than the 'a few natural terms missing' level 4.

5 / 5

Distinctiveness Conflict Risk

The niche is sharply platform-scoped — 'Vercel Custom Metrics', 'Vercel Function', '@vercel/functions', 'vc metrics' — so it is clearly distinguishable from generic monitoring or document/file skills and unlikely to trigger the wrong skill.

5 / 5

Total

20

/

20

Passed

Validation

81%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 13 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

metadata_field

'metadata' should map string keys to string values

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

13

/

16

Passed

Repository

vercel/vercel-plugin

Path

skills/custom-metrics/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.