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

trusted-publishing

Skill by assistant-ui

Configures npm trusted publishing (OIDC) and locks down publishing access for new publishable packages in the assistant-ui monorepo. Built for maintainers who add a public package under packages/* or fix an OIDC authorization error during a release.

  • Score 89
  • 13k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install trusted-publishing

Built from the published package, never by AI.

git clone --depth 1 https://github.com/assistant-ui/assistant-ui /tmp/assistant-ui && mkdir -p ~/.claude/skills && cp -r /tmp/assistant-ui/.claude/skills/trusted-publishing ~/.claude/skills/trusted-publishing

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

Step-by-step: install trusted-publishing in Claude Code

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

About

The trusted-publishing skill sets up npm trusted publishing (OIDC) and locks down publishing access for a newly added publishable package in the assistant-ui monorepo. It explains that public packages under packages/* publish from the npm-publish.yaml GitHub Actions workflow with no long-lived npm tokens, and that each package needs its own trust entry on npm before its first release. It gives the npm trust github and npm access set mfa=publish commands, with website steps as a fallback.

The skill also covers brand-new package names, which must be published once by hand before npm stores the settings. Its checklist includes a patch changeset that names the new package and a stable semver version. It is aimed at maintainers of the assistant-ui repository who add or repair publishable packages, including cases where a release fails with an OIDC authorization error.

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

What it can do

  • Configure trusted publishingCreates the npm trust entry for a package that points to the npm-publish.yaml GitHub Actions workflow.
  • Disallow tokensSets publishing access to require two-factor authentication and disallow tokens, using npm access set mfa=publish.
  • Handle first publishWalks through publishing a brand-new package name by hand once, then applying the trust settings.
  • Verify settingsShows how to check the trust entry with npm trust list and the mfa status with npm access get status.
  • Release checklistLists steps for a new package, including a patch changeset naming the package and a stable version number.

What you need

  • npm 11.10.0 or newer
  • npm account with interactive 2FA access
  • Maintainer access to the assistant-ui GitHub repository

Try asking

  • Set up trusted publishing for my new package under packages/
  • My release failed with an npm OIDC authorization error. How do I fix it?
  • Disallow npm tokens for a package and require two-factor authentication

Good to know

  • The npm trust and npm access commands need an interactive 2FA OTP and cannot run unattended.
  • A brand-new package name must be published by hand once before the npm settings can be applied.
  • Prerelease versions make the release workflow fail the entire run.

Security check

A

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

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

Inside the skill

  • SKILL.md6 KB

Alternatives to trusted-publishing

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

trusted-publishing: common questions

Does a new package in packages/* publish automatically?

Not without setup. The source says a new package needs trusted publishing configured on npm first, or the release fails that package's publish with an OIDC authorization error.

Are long-lived npm tokens used for publishing?

No. The source says every public package in this monorepo publishes through trusted publishing (OIDC) and that there are no long-lived npm tokens.

Can I use a prerelease version for the first release?

The source advises against it. It says npm-publish.yaml calls setFailed on prerelease versions and fails the entire release run.

How do I install trusted-publishing?

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

Is trusted-publishing free?

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

Is trusted-publishing safe to use?

It scores 89 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 trusted-publishing?

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

trusted-publishing Install

Add to stack

Loading.