[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75B37YMYG7TK3NXCV172GQR":3,"skill-same:01M75B37YMYG7TK3NXCV172GQR":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75B37YMYG7TK3NXCV172GQR","trustci",null,"Register npm Trusted Publishers (npm trust) for every public package in a repository or monorepo with the trustci CLI, for GitHub Actions, GitLab CI\u002FCD or CircleCI. Use when the user wants to set up npm trusted publishing \u002F OIDC publishing, run or preview `npm trust github|gitlab|circleci` across workspace packages, list the current trusted publishers, or mentions trustci.","hideokamoto\u002Ftrustci","hideokamoto","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6883571?v=4","01M75B35HRTWCDN95ZXKVXBQZQ","Hidetaka Okamoto","01M75B35JACRB6Y5KT967KM3NE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhideokamoto\u002Ftrustci\u002Fblob\u002Fmain\u002Fskills\u002Ftrustci\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: trustci\ndescription: Register npm Trusted Publishers (npm trust) for every public package in a repository or monorepo with the trustci CLI, for GitHub Actions, GitLab CI\u002FCD or CircleCI. Use when the user wants to set up npm trusted publishing \u002F OIDC publishing, run or preview `npm trust github|gitlab|circleci` across workspace packages, list the current trusted publishers, or mentions trustci.\nlicense: MIT\ncompatibility: Requires npm 11.15.0+ and Node 22.14.0+, network access to the npm registry, and an npm account with 2FA and write access to the packages.\n---\n\n# trustci\n\ntrustci finds every public package in the workspace and runs\n`npm trust \u003Cprovider> \u003Cpackage> …` for each. Full docs: https:\u002F\u002Ftrustci.hidetaka.dev\n\n## Ground rules\n\n- Registering a trusted publisher changes the package's settings on the npm\n  registry. Always run `--dry-run` first, show the printed commands to the user,\n  and run the real command only after they confirm.\n- Run trustci from the repository root; workspace detection starts from the\n  current directory.\n- A real run asks `Proceed? [y\u002FN]` and stops when stdin is not a terminal, so in\n  an agent shell it needs `-y`. `-y` is also passed to `npm trust`. Only add it\n  after the user has confirmed the dry-run output.\n- npm itself requires 2FA on the account and write access to each package. The\n  first `npm trust` call requires 2FA, which the user has to complete. Tokens with \"bypass 2FA\" and username\u002Fpassword logins do not work.\n- At least one of `--allow-publish` \u002F `--allow-stage-publish` is required. Use\n  `--allow-publish` unless the user asks for staged publishing.\n\n## Steps\n\n1. Check `npm --version` (11.15.0 or later) and `node --version` (22.14.0 or later).\n   With `--dry-run` an older version is only a warning.\n2. Identify the CI provider and the publishing workflow from the repository:\n   - `.github\u002Fworkflows\u002F*.yml` → `github`; `--file` is the workflow file name\n     (e.g. `release.yml`), `--repo` is `owner\u002Frepo`.\n   - `.gitlab-ci.yml` → `gitlab`; `--project` is `group\u002Fproject`, `--file` is the\n     CI file path.\n   - `.circleci\u002Fconfig.yml`, or a CircleCI config sourced from another repository\n     → `circleci` (see below).\n   - If the job publishes from a protected environment, pass it with `--env`\n     (github \u002F gitlab only).\n   Ask the user when the provider or workflow is ambiguous; do not guess.\n3. Preview:\n\n   ```bash\n   npx trustci --dry-run --provider github --repo owner\u002Frepo --file release.yml --allow-publish\n   ```\n\n   Narrow the targets with `--only '\u003Cglob>'` \u002F `--exclude '\u003Cglob>'` (repeatable,\n   matched against the whole package name, `*` also matches `\u002F`; quote them).\n4. After the user confirms, run the command printed on the last line of the dry-run\n   output (`# To register, run …`), or hand it to the user when they have to run it\n   (e.g. for 2FA). It is the flags you passed, without `--dry-run`, plus `-y`. Do\n   not copy UUIDs or `--vcs-origin` from the `npm trust` lines into it: trustci\n   resolves them again. `--circle-token` is left out; never add the token back.\n   Packages not yet published to the registry are skipped with a warning (npm can\n   only configure packages that already exist); report them to the user.\n5. Verify with `npx trustci list` (every public package) or\n   `npx trustci list \u003Cpackage>`.\n\n## CircleCI\n\n`npm trust circleci` needs `--org-id`, `--project-id`, `--pipeline-definition-id`\nand `--vcs-origin`. trustci fills in missing ones:\n\n- `--vcs-origin` (`host\u002Fowner\u002Frepo`) comes from the root `package.json`\n  `repository`, then `git remote get-url origin`.\n- Missing UUIDs are fetched from the CircleCI API v2 (read-only, also under\n  `--dry-run`). The token comes from `--circle-token`, `CIRCLE_TOKEN`,\n  `CIRCLECI_TOKEN`, `CIRCLE_CLI_TOKEN`, `CIRCLECI_CLI_TOKEN`, or\n  `~\u002F.circleci\u002Fcli.yml`, in that order. The OS keychain is not read. Never print\n  or echo the token.\n- When the project has several pipeline definitions, trustci stops and lists\n  them. Re-run with `--file \u003Cconfig path or definition name>` chosen from that\n  list. `--file` is not passed to `npm trust`.\n- `--context-id \u003Cuuid>` (repeatable) is passed through: the trusted publisher\n  then also has to match those CircleCI context IDs.\n\n```bash\nnpx trustci --dry-run --provider circleci --allow-publish\nnpx trustci --dry-run --provider circleci --allow-publish --file .circleci\u002Fconfig.yml\n```\n\n## Workspace detection\n\nPackages come from the first of `pnpm-workspace.yaml`, `package.json`\n`workspaces`, or `lerna.json`; with none of them, the root `package.json` is\ntreated as a single package. `\"private\": true` packages are always excluded.\n\nRun `npx trustci --help` for the full flag list.\n","# trustci\n\ntrustci finds every public package in the workspace and runs\n`npm trust \u003Cprovider> \u003Cpackage> …` for each. Full docs: https:\u002F\u002Ftrustci.hidetaka.dev\n\n## Ground rules\n\n- Registering a trusted publisher changes the package's settings on the npm\n  registry. Always run `--dry-run` first, show the printed commands to the user,\n  and run the real command only after they confirm.\n- Run trustci from the repository root; workspace detection starts from the\n  current directory.\n- A real run asks `Proceed? [y\u002FN]` and stops when stdin is not a terminal, so in\n  an agent shell it needs `-y`. `-y` is also passed to `npm trust`. Only add it\n  after the user has confirmed the dry-run output.\n- npm itself requires 2FA on the account and write access to each package. The\n  first `npm trust` call requires 2FA, which the user has to complete. Tokens with \"bypass 2FA\" and username\u002Fpassword logins do not work.\n- At least one of `--allow-publish` \u002F `--allow-stage-publish` is required. Use\n  `--allow-publish` unless the user asks for staged publishing.\n\n## Steps\n\n1. Check `npm --version` (11.15.0 or later) and `node --version` (22.14.0 or later).\n   With `--dry-run` an older version is only a warning.\n2. Identify the CI provider and the publishing workflow from the repository:\n   - `.github\u002Fworkflows\u002F*.yml` → `github`; `--file` is the workflow file name\n     (e.g. `release.yml`), `--repo` is `owner\u002Frepo`.\n   - `.gitlab-ci.yml` → `gitlab`; `--project` is `group\u002Fproject`, `--file` is the\n     CI file path.\n   - `.circleci\u002Fconfig.yml`, or a CircleCI config sourced from another repository\n     → `circleci` (see below).\n   - If the job publishes from a protected environment, pass it with `--env`\n     (github \u002F gitlab only).\n   Ask the user when the provider or workflow is ambiguous; do not guess.\n3. Preview:\n\n   ```bash\n   npx trustci --dry-run --provider github --repo owner\u002Frepo --file release.yml --allow-publish\n   ```\n\n   Narrow the targets with `--only '\u003Cglob>'` \u002F `--exclude '\u003Cglob>'` (repeatable,\n   matched against the whole package name, `*` also matches `\u002F`; quote them).\n4. After the user confirms, run the command printed on the last line of the dry-run\n   output (`# To register, run …`), or hand it to the user when they have to run it\n   (e.g. for 2FA). It is the flags you passed, without `--dry-run`, plus `-y`. Do\n   not copy UUIDs or `--vcs-origin` from the `npm trust` lines into it: trustci\n   resolves them again. `--circle-token` is left out; never add the token back.\n   Packages not yet published to the registry are skipped with a warning (npm can\n   only configure packages that already exist); report them to the user.\n5. Verify with `npx trustci list` (every public package) or\n   `npx trustci list \u003Cpackage>`.\n\n## CircleCI\n\n`npm trust circleci` needs `--org-id`, `--project-id`, `--pipeline-definition-id`\nand `--vcs-origin`. trustci fills in missing ones:\n\n- `--vcs-origin` (`host\u002Fowner\u002Frepo`) comes from the root `package.json`\n  `repository`, then `git remote get-url origin`.\n- Missing UUIDs are fetched from the CircleCI API v2 (read-only, also under\n  `--dry-run`). The token comes from `--circle-token`, `CIRCLE_TOKEN`,\n  `CIRCLECI_TOKEN`, `CIRCLE_CLI_TOKEN`, `CIRCLECI_CLI_TOKEN`, or\n  `~\u002F.circleci\u002Fcli.yml`, in that order. The OS keychain is not read. Never print\n  or echo the token.\n- When the project has several pipeline definitions, trustci stops and lists\n  them. Re-run with `--file \u003Cconfig path or definition name>` chosen from that\n  list. `--file` is not passed to `npm trust`.\n- `--context-id \u003Cuuid>` (repeatable) is passed through: the trusted publisher\n  then also has to match those CircleCI context IDs.\n\n```bash\nnpx trustci --dry-run --provider circleci --allow-publish\nnpx trustci --dry-run --provider circleci --allow-publish --file .circleci\u002Fconfig.yml\n```\n\n## Workspace detection\n\nPackages come from the first of `pnpm-workspace.yaml`, `package.json`\n`workspaces`, or `lerna.json`; with none of them, the root `package.json` is\ntreated as a single package. `\"private\": true` packages are always excluded.\n\nRun `npx trustci --help` for the full flag list.\n",{"name":5,"license":15,"description":7,"compatibility":24},"Requires npm 11.15.0+ and Node 22.14.0+, network access to the npm registry, and an npm account with 2FA and write access to the packages.","main","e23bea9600c28ce72d54c011744e55d9d4f8752d","skills\u002Ftrustci","https:\u002F\u002Fgithub.com\u002Fhideokamoto\u002Ftrustci","https:\u002F\u002Fgithub.com\u002Fhideokamoto","https:\u002F\u002Fwp-kyoto.net\u002F","Alexa Champion \u002F AWS Samurai 2017","2026-10-21 22:04:55",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add hideokamoto\u002Ftrustci --skill trustci",{"tool":39,"command":40},"bunx","bunx skills add hideokamoto\u002Ftrustci --skill trustci",{"tool":42,"command":43},"pnpm","pnpm dlx skills add hideokamoto\u002Ftrustci --skill trustci","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhideokamoto\u002Ftrustci\u002Fblob\u002Fmain\u002Fskills\u002Ftrustci\u002FSKILL.md",true,[],[]]