CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

npx-package

Provides patterns for building TypeScript CLI tools distributed via npx - package structure, the bin entry point and shebang, ESM-ready tsconfig, argument parsing, output and exit codes, local testing, and npm publishing. Use when the user asks to "create an npx package", "build a CLI tool with TypeScript", "set up a Node.js CLI", "publish an npm package", "configure package.json bin field", "add CLI argument parsing", or "create an executable npm package", or when writing TypeScript code for a command-line tool distributed via npx. Does not cover general TypeScript style, type design, or non-CLI project layout - see the typescript skill for those.

74

Quality

93%

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.

A strong, highly actionable skill body: complete executable artifacts, a sensible build-to-publish sequence, and clean delegation of advanced material to two well-organized reference files. The only weaknesses are minor redundancy between the JSON examples and their explanation tables, a few restatements of basics Claude already knows, and the absence of an explicit build/publish failure feedback loop.

Suggestions

Trim the 'Key fields' table and 'Key settings' bullets, or fold only the non-obvious notes (e.g., why module/moduleResolution must be Node16) into them — the package.json and tsconfig JSON blocks already make the literal field values visible.

Cut or shorten well-known basics such as the stdout-vs-stderr rule and the exit-code comments (process.exit(0); // success), keeping only the project-specific convention (exit code 2 for argument misuse).

Add an explicit feedback loop for the build/publish sequence, e.g., a short 'if build fails, check the Common Mistakes table, fix, and re-run npm run build' step and a post-publish smoke test (npx my-cli --help) before considering the release done.

DimensionReasoningScore

Conciseness

The body is lean and example-driven with essentially no padding, but contains minor trimmable redundancy: the "Key fields" table and "Key settings" bullets restate what the adjacent package.json/tsconfig JSON blocks already show, and lines like "Program output (data, results) goes to stdout via console.log(); diagnostics ... go to stderr" plus commented exit codes ("process.exit(0); // success") re-explain basics Claude already knows. These are minor instances of over-explanation rather than a pattern, fitting the anchor-4 'efficient; minor instances of over-explanation' better than anchor 3.

4 / 5

Actionability

Fully executable, copy-paste-ready guidance throughout: complete package.json and tsconfig.json, a shebang'd entry point, a working run() command router and getFlag() helper, ANSI color helpers, and exact bash commands for build, local testing (npm link / npx .), publishing, and versioning. The Common Mistakes table provides concrete fixes for the common failure modes, covering the typical cases.

5 / 5

Workflow Clarity

Sections follow the real build sequence (structure → config → entry point → build → local test → publish → version) with a local-test checkpoint before publishing and a mistakes/troubleshooting table for error recovery. However, there is no explicit validate-then-fix feedback loop (e.g., what to do when the build fails or the published package misbehaves), so it falls short of the anchor-5 explicit validation/feedback-loop pattern while being clearly better than anchor 3.

4 / 5

Progressive Disclosure

Core setup lives inline while advanced topics (commander parsing, interactive prompts, spinners, HTTP, tsup bundling, dual CJS/ESM, CI/CD publishing, provenance) are delegated to two real, one-level-deep reference files, each well-signaled with a content summary in the Additional Resources section. The in-body link references/patterns.md#argument-parsing-with-commander resolves to an actual heading in the bundle. This matches the anchor for a clear overview with well-signaled one-level-deep references and easy navigation.

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.

An exemplary description: third-person voice, concrete enumerated coverage of the domain, explicit and varied trigger phrases, and an explicit scope boundary that disambiguates it from the general typescript skill. No changes needed.

DimensionReasoningScore

Specificity

The description enumerates concrete, specific topics — "package structure, the bin entry point and shebang, ESM-ready tsconfig, argument parsing, output and exit codes, local testing, and npm publishing" — comprehensively covering the TypeScript npx CLI lifecycle. This matches the anchor for multiple specific concrete actions with comprehensive coverage, with no real gaps that would justify a 4.

5 / 5

Completeness

It explicitly answers both what ("Provides patterns for building TypeScript CLI tools distributed via npx - package structure, ... npm publishing") and when ("Use when the user asks to ... or when writing TypeScript code for a command-line tool distributed via npx") with concrete trigger phrases. Both halves are fully explicit, matching the anchor-5 example pattern; a 4 would require the 'when' to be less explicit, which it is not.

5 / 5

Trigger Term Quality

Trigger phrases are natural user utterances with good synonym coverage: "create an npx package", "build a CLI tool with TypeScript", "set up a Node.js CLI", "publish an npm package", "configure package.json bin field", "add CLI argument parsing", "create an executable npm package". This comprehensively covers the natural terms users would say, matching the top anchor.

5 / 5

Distinctiveness Conflict Risk

A clear niche (TypeScript CLI tools distributed via npx) with an explicit boundary against the nearest competing skill: "Does not cover general TypeScript style, type design, or non-CLI project layout - see the typescript skill for those". This explicit disambiguation keeps conflict risk minimal.

5 / 5

Total

20

/

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

frontmatter_unknown_keys

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

Warning

Total

15

/

16

Passed

Repository

provectus/awos-recruitment

Path

.claude/skills/npx-package/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.