skills/actions-npm/SKILL.md
Use when creating or debugging GitHub Actions workflows that publish npm packages with trusted publishing / OIDC. Triggers on npm publish in CI, ENEEDAUTH, E404 or E422 during publish, tag-triggered releases, setup-node auth behavior, or provenance issues in public vs private GitHub repositories.
npx skillsauth add jsonlee12138/prompts actions-npmInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
See assets/release-npm.yml — 可直接复制到 .github/workflows/ 使用。
trusted publishing 用 GitHub OIDC 替代长期有效的 NPM_TOKEN:
permissions.id-token: writeactions/setup-node 用 GitHub OIDC 身份换取发布凭证npm publish 使用该凭证发布不需要 NPM_TOKEN secret。
.github/workflows/id-token: writerelease-auth-sdk.ymlpackage.json.repository.url 必须匹配 GitHub 仓库 URLactions/setup-node@v611.5.1+actions/setup-node@v6 时,不要再手动设置 NODE_AUTH_TOKEN: ""。按实测,这种组合会导致 ENEEDAUTH;优先让 setup-node 自己处理发布凭证。npm notice Publishing to https://registry.npmjs.org/ 之后再报 E404,通常说明认证已经通过,但 npm 侧的包权限、scope 权限,或 trusted publisher 元数据仍不匹配。E422 ... Unsupported GitHub Actions source repository visibility: "private" 表示 private GitHub 仓库不支持 --provenance。此时去掉 --provenance,保留普通 trusted publishing 即可。npm publish --provenance --access publicnpm publish --access publicactions/setup-node@v6node-version: "24"registry-url: https://registry.npmjs.org/NPM_TOKENNODE_AUTH_TOKENdevelopment
Use when creating, editing, or validating Makefiles. Provides templates for Go, Node, Python, Docker, and Monorepo projects with self-documenting help targets. Also validates existing Makefiles against conventions. Triggers on: Makefile, makefile, make help, validate makefile, lint makefile.
development
Unified design workflow router for critique, accessibility review, developer handoff, design system work, UX copy, user research, and research synthesis. Use when users ask naturally for design feedback, mockup review, a11y audit, handoff specs, UX writing, research planning, research synthesis, or mention Figma, Pencil, or HTML design workflows and should not need to invoke separate sub-skills manually.
tools
TanStack (Router/Query/Form/Table) configuration guide for Vite + React projects. Covers Vite plugin setup, main.tsx registration, DevTools configuration, and editor settings. Use when setting up or reviewing TanStack config in a Vite project. Triggers on: vite-tanstack, tanstack config, tanstack router setup, tanstack query setup, tanstack form setup, tanstack table setup.
tools
Configure UnoCSS with unocss-preset-shadcn using a semi-automatic, framework-agnostic workflow. Use when setting up or updating UnoCSS + shadcn integration, deciding monorepo vs single-project component destinations, enforcing peerDependencies in monorepos, and requiring shadcn MCP + manual component creation mode.