Npm

From intentic/intentic · View interactive version

Npm is an AI agent skill from the GitHub repository intentic/intentic. Publish and manage packages on the npm registry (npmjs.com), publish, dist-tags, deprecate, owners, download stats, private installs. Use when the user asks to publish, release or manage an npm package, or to inspect the registry.

How to use this skill

Skill file

npm (connected)

The npm CLI is already authenticated for $NPM_REGISTRY_URL (it stands in for https://registry.npmjs.org): pass

--registry "$NPM_REGISTRY_URL" on the commands that need the login, as below (the token also sits in $NPM_TOKEN for curl).

2FA / one-time codes

When a write is refused with an OTP/one-time-password error, mint a code and retry in one step:

npm publish --registry "$NPM_REGISTRY_URL" --otp "$(otp ${id})". Codes die within seconds: mint at the moment of use, never ahead, and

never ask the user for a code before trying otp ${id}.

If otp ${id} says no TOTP secret is stored: the account is on WebAuthn. When the npmjs.com browser is

connected (its skill exists beside this one), take the web path: navigate to the https://www.npmjs.com/auth/...

URL the CLI prints (or the publish's approval link) in that browser; its passkey answers the 2FA step by

itself. Only with neither the TOTP secret nor that browser connected do you stop and ask the user.

Failure modes worth naming

days): ask for a fresh one with capabilities request ${id} --reconnect --why "npm refuses the token (401)",

which puts a masked field for it in the owner's chat and continues the conversation once it is in, rather

than retrying.

approve it in the connected npmjs.com browser, or report the staged state if that browser isn't connected.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.