npm
npm
Use for npm registry/account tasks: npm whoami, package availability, package reservation, publish, org checks, and auth debugging.
Auth
- Use
one-passwordfirst for secret rules. - Never run
opdirectly in the shell tool. - Known npm 1Password item:
npmjsonmy.1password.com. - The item may contain username/password/TOTP, not a stored npm token. That is fine.
- Run npm auth work inside one persistent tmux session. Reuse it on failure.
- Keep npm auth in a temp npmrc; delete it after the command.
- If hand-rolling, read
npmjsonce, keep secrets in shell variables, require a six-digitop item get npmjs --account my.1password.com --otp, write a temp npmrc, run all npm commands withNPM_CONFIG_USERCONFIG, then delete the npmrc and unset variables. - npm 11 prompt piping is brittle; avoid
printf ... | npm login --auth-type=legacy. - Avoid
expectfor npm login unless necessary; logs can echo prompts and are easy to get wrong. - Prefer the helper's registry API login path (
npm-profileloginCouch) for automation. - If auth shape is ambiguous or
npm whoamifails, stop and ask for the exact field label / credential fix. Do not probe more 1Password items or start another tmux session.
Package Reservation
More from steipete/agent-scripts
brave-search
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
847video-transcript-downloader
yt-dlp downloads: video, audio, subtitles, transcripts, clips, formats, playlists.
4901password
Set up and use 1Password CLI (op, one-password). Use when installing the CLI, enabling desktop app integration, signing in, selecting Peter's multi-account setup, or storing/reading/injecting/running secrets via op. Always use tmux for op commands.
308markdown-converter
Markitdown to Markdown: PDF, Office, HTML, data, OCR, audio, ZIP, YouTube.
155nano-banana-pro
Nano Banana 2/Gemini 3.1 Flash Image gen/edit: text-to-image, image-to-image, 512/1K/2K/4K, input-image workflows.
139swiftui-liquid-glass
SwiftUI iOS 26+ Liquid Glass: implement, adopt, refactor, review correctness/perf/design.
137