Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

verify-before-npm-publish

Skill by vinta

Checks that the pangu npm release is ready, packs it, and runs the examples app against the tarball before publishing. It is for pangu maintainers who want proof the build installs and works like a real consumer's install.

  • Score 85
  • 4.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install verify-before-npm-publish

Built from the published package, never by AI.

git clone --depth 1 https://github.com/vinta/pangu.js /tmp/pangu.js && mkdir -p ~/.claude/skills && cp -r /tmp/pangu.js/.claude/skills/verify-before-npm-publish ~/.claude/skills/verify-before-npm-publish

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install verify-before-npm-publish in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a pre-publish check for the pangu npm package. It runs as one command that confirms the git working tree is clean and on master, that the version is not already tagged or on npm, and that tests, lint and typecheck pass. It then builds and packs the package, and checks the tarball's version, the layout of files under dist/, and whether any file shipped in the published version is missing.

It also temporarily points the examples app at the packed tarball instead of its published pangu pin, installs it, and runs every example check. These cover the CommonJS, ESM, CLI, browser and type checks. A trap restores the examples pin afterward, and the skill reports VERIFY OK or VERIFY FAILED. It is written for maintainers of pangu who want to confirm the build a user would install works before publishing.

Written from the project's SKILL.md and checked against it.

What it can do

  • Release readiness checksChecks for a clean master branch, an unused version tag, and no existing npm version.
  • Test, lint and typecheckRuns the npm test, lint and typecheck scripts before the release is packed.
  • Tarball packingBuilds the package and packs the exact tarball that would go to npm.
  • Dist layout checkFails if a file sits directly in dist/ instead of inside an entry folder.
  • Version consistency checkCompares the version in the tarball and in pangu.version with the release version.
  • Shipped file comparisonFails if any file shipped in the published version is missing from the new tarball.
  • Extension manifest checkChecks the Chrome extension manifest version against the last store release.
  • Examples run against tarballInstalls the packed tarball into the examples app and runs all of its verify checks.

What you need

  • Node.js and npm
  • git
  • A checkout of the pangu repository with the examples app
  • Headless Chromium for the browser check

Try asking

  • Check that the pangu release is ready to publish to npm
  • Pack pangu and run the examples app against the tarball
  • Verify the pangu tarball works before I run npm publish

Good to know

  • Only runs when the working tree is clean and on master
  • Fails if the release version is already tagged or on npm
  • Model invocation is disabled in its frontmatter

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/verify-before-npm-publish/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash(npm:*)Bash(node:*)Bash(mktemp:*)Bash(cp:*)Bash(ls:*)Bash(rm:*)Bash(tar:*)Bash(git diff:*)Bash(git show:*)Bash(git describe:*)Bash(sort:*)Bash(comm:*)

  • SKILL.md8 KB

Alternatives to verify-before-npm-publish

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

verify-before-npm-publish: common questions

Why test the packed tarball instead of the source?

The source says pangu's own build resolves src/ directly, so it misses problems such as a missing .js import extension or a file left out of the files list. The examples app consumes the tarball through node_modules and the exports map, which matches a real install.

What should I do if the result is VERIFY FAILED?

Do not publish. The trap restores the examples pin, so diagnose the message or the failure table, fix the problem, and rerun the skill.

Does this skill publish pangu to npm?

No. It checks and packs the release and reports VERIFY OK or VERIFY FAILED. The commands in the source do not include npm publish.

How do I install verify-before-npm-publish?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is verify-before-npm-publish free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is verify-before-npm-publish safe to use?

It scores 85 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to verify-before-npm-publish?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

verify-before-npm-publish Install

Add to stack

Loading.