Publish the 0 Finance CLI to npm with the correct 2FA requirements.
Prerequisites
npm account with publish rights to publish agent-bank
A granular token that bypasses 2FA, stored in .env.skill
Built CLI artifacts in packages/cli/dist
Credentials
This skill reads credentials from .env.skill in the same directory.
Expected keys:
NPM_TOKEN — npm granular token with publish access and 2FA bypass enabled
NPM_SCOPE — optional npm scope (leave empty for unscoped)
Workflow
Load .env.skill and export NPM_TOKEN
Run npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
Run npm whoami to confirm auth
Build the CLI: pnpm --filter agent-bank build
Publish from packages/cli: npm publish --access public --workspaces=false
Verify publish: npm view agent-bank version
Common Issues
403 with 2FA: token lacks 2FA bypass — regenerate a granular token with bypass enabled
404 scope not found: scope permissions missing — ensure the token has publish access
Interactive login: avoid npm login in automation, use token instead
Completion Criteria
npm view agent-bank version returns the new version
CLI install works with bun add -g agent-bank
1---2name: npm-publish3description: npm-publish4---5# npm-publish67## What I Do89Publish the 0 Finance CLI to npm with the correct 2FA requirements.1011## Prerequisites1213- npm account with publish rights to publish `agent-bank`14- A granular token that bypasses 2FA, stored in `.env.skill`15- Built CLI artifacts in `packages/cli/dist`1617## Credentials1819This skill reads credentials from `.env.skill` in the same directory.2021Expected keys:2223- `NPM_TOKEN` — npm granular token with publish access and 2FA bypass enabled24- `NPM_SCOPE` — optional npm scope (leave empty for unscoped)2526## Workflow27281. Load `.env.skill` and export `NPM_TOKEN`292. Run `npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN`303. Run `npm whoami` to confirm auth314. Build the CLI: `pnpm --filter agent-bank build`325. Publish from `packages/cli`: `npm publish --access public --workspaces=false`336. Verify publish: `npm view agent-bank version`3435## Common Issues3637- **403 with 2FA**: token lacks 2FA bypass — regenerate a granular token with bypass enabled38- **404 scope not found**: scope permissions missing — ensure the token has publish access39- **Interactive login**: avoid `npm login` in automation, use token instead4041## Completion Criteria4243- `npm view agent-bank version` returns the new version44- CLI install works with `bun add -g agent-bank`
Run npx skillmds@latest add different-ai/npm-publish in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
npm-publish It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
different-ai (@different-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.