CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

bun-macros

Evaluate JavaScript at bundle time and inline results. Use when optimizing compile-time code generation, embedding files, inlining environment variables, or executing code during the bundling process.

60

Quality

76%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

High

Do not use without reviewing

Fix and improve this skill with Tessl

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

Quality

Content

67%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.

A well-structured, code-heavy reference with strong actionability and a genuinely good conditional-reference mechanism. The main costs are token bloat from redundant and trivial examples that belong in reference files, and a progressive-disclosure section that points at bundle files that are not actually present.

Suggestions

Trim the six overlapping use-case examples down to two or three representative ones and move the rest (plus the trivial "Return Types" section) into `references/advanced-patterns.md` to cut the body's token footprint.

Ship the two referenced files (`references/advanced-patterns.md`, `references/debugging.md`) or remove the "When to Load References" section — the load triggers currently point at files that don't exist in the bundle.

Replace the undefined `parseSchemaToTypes(schema)` call in the Code Generation example with a complete, runnable implementation, and add a short post-build verification step (e.g. inspecting the inlined output in `dist/`).

DimensionReasoningScore

Conciseness

Sections are individually lean and code-first, but the ~310-line body carries redundancy: six similar use-case examples (env, git, embed, constants, files, codegen), a trivial "Return Types" section demonstrating `getString()`/`getNumber()`, and an `isDev()`/`randomId()` block showing concepts Claude already knows. Not anchor 2 (not padded prose), but clearly tightenable toward references.

3 / 5

Actionability

Mostly executable, copy-paste-ready guidance: complete macro files, the exact import attribute syntax, and the `bun build src/index.ts --outdir=dist` command. Below 5 due to minor gaps — the codegen example calls an undefined `parseSchemaToTypes(schema)` and `formatDate` relies on an unshown `as any` cast — making some examples pseudocode-adjacent.

4 / 5

Workflow Clarity

Quick Start gives an unambiguous path (write macro file, import with `{ type: "macro" }`, run `bun build`), and the "Common Errors" table plus "Error Handling" and "Debugging Macros" sections provide recovery guidance for failures. Macros are not destructive/batch operations, so no validation cap applies; below 5 because there is no explicit verify-the-inlined-output step after a build.

4 / 5

Progressive Disclosure

Good structure: clear section headers throughout, and a dedicated "When to Load References" section giving explicit load triggers for two one-level-deep references. Below 5 because the referenced files (`references/advanced-patterns.md`, `references/debugging.md`) do not exist in the bundle, and the long inline use-case catalog is content that could itself be split into those references.

4 / 5

Total

15

/

20

Passed

Description

76%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.

A strong description with a clear what, an explicit and specific when-clause, and concrete trigger phrases. Its main weaknesses are the absence of the most natural user-facing keywords ("Bun", "macro", "build time") and a what-clause that undersells the range of capabilities the skill actually covers.

Suggestions

Add the natural trigger terms users would say — "Bun", "macros", "build time" — e.g. "Use when the user mentions Bun macros, build-time code generation, or inlining values during bundling."

Broaden the what-clause to reflect the full capability set shown in the body (e.g. embedding files, git info, generating code at build time), not just evaluation and inlining.

Mention the distinctive import syntax trigger (`with { type: "macro" }`) or the `bun build` command so the description matches what users will paste or ask about.

DimensionReasoningScore

Specificity

"Evaluate JavaScript at bundle time and inline results" names the domain and concrete actions, and the when-clause adds "embedding files, inlining environment variables" — several specific actions with minor gaps (the macro mechanism and capabilities like git-info embedding are not named). More than the 1-2 actions of anchor 3, but not the comprehensive coverage of anchor 5.

4 / 5

Completeness

Clearly answers "what" ("Evaluate JavaScript at bundle time and inline results") and explicitly answers "when" with a "Use when..." clause listing concrete trigger phrases ("optimizing compile-time code generation, embedding files, inlining environment variables, or executing code during the bundling process"). Matches the anchor-5 example pattern exactly.

5 / 5

Trigger Term Quality

Relevant domain keywords are present ("compile-time code generation", "bundling process"), but the natural terms a user would actually say — "Bun", "macro", "build time" — are absent. Not 4 because common variations and synonyms are missing; not 2 because there are several genuinely relevant keywords rather than one or two generic ones.

3 / 5

Distinctiveness Conflict Risk

"bundle time" / "compile-time code generation" carves a fairly distinct niche with low overlap risk against unrelated skills. Below 5 because "Bun" is never named, leaving minor overlap risk with generic bundler-plugin or build-tooling skills; above 3 because the triggers are much more specific than a broad domain claim.

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