Borrowing it
Nothing to install: this file belongs to g-digital-by-Garrigues/MCP_Market_Distribution. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/g-digital-by-Garrigues/MCP_Market_Distribution/main/.claude/commands/setup/setup-trusted-publishers.mdgit clone --depth 1 https://github.com/g-digital-by-Garrigues/MCP_Market_DistributionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/g-digital-by-garrigues/mcp_market_distribution/setup-trusted-publishers)<a href="https://agentmods.dev/commands/g-digital-by-garrigues/mcp_market_distribution/setup-trusted-publishers"><img src="https://agentmods.dev/badge/commands/g-digital-by-garrigues/mcp_market_distribution/setup-trusted-publishers/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/g-digital-by-garrigues/mcp_market_distribution/setup-trusted-publishers"><img src="https://agentmods.dev/badge/commands/g-digital-by-garrigues/mcp_market_distribution/setup-trusted-publishers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00810 |
| Opus 5.5 | $0.00016 | $0.00324 |
| Sonnet 5.5 | $0.00008 | $0.00162 |
| Haiku 4.5 | $0.00004 | $0.00081 |
Grade A, and why
setup-trusted-publishers scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/setup-trusted-publishers — Wire npm Trusted Publishing
You are wiring npm Trusted Publishing for every package declared in mcp-pipeline.yaml. After this skill, the publish.yml workflow on main is the only path that can publish to the registered packages — no long-lived npm tokens needed (NFR-S2).
Pre-flight (block on any failure)
npm --versionmust be ≥ 11.10. If older, tell the engineer towinget upgrade --id OpenJS.NodeJS.LTS(Windows) or update via their package manager.npm whoamimust succeed AND the engineer must be a member of the@g-digitalorg (npm org ls @g-digitalshould include their username). If not, surface "log in withnpm login --scope=@g-digitalas an org owner first" and exit non-zero.- The repo root must contain
mcp-pipeline.yamland agit remote get-url originreturning a GitHub URL the skill can parse as<owner>/<repo>.
What the skill runs
Invoke the helper that reads mcp-pipeline.yaml, iterates every entry, derives the two npm package names per entry (npm_package_name and <npm_scope>/<n8n_adapter_target_name>), de-duplicates, and runs npm trust grant --provider github --owner <owner> --repo <repo> --workflow publish.yml --package <package> for each:
pnpm tsx src/setup/run-trusted-publishers.ts [--dry-run] [--owner <name>] [--repo <name>] [--workflow <file>]
Default behavior:
--ownerand--repoare inferred fromgit remote get-url origin. Pass explicit flags to override.--workflowdefaults topublish.yml.--dry-runprints what would happen without invoking npm.
The helper emits structured JSON with per-package outcomes and counts under four classifications:
configured— newly granted in this run.already-configured— npm reported the grant was already in place; no-op.package-not-published— the package doesn't exist on npm yet; publish a0.0.0-bootstrapversion first, then re-run the skill. This is the documented bootstrap order.failed— anything else; thedetailfield carries the stderr line.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 49 lines · 39 tokens per session scan A 3265c51a916f
setup-trusted-publishers is a command published in the GitHub repository g-digital-by-Garrigues/MCP_Market_Distribution (0 stars, last pushed 25d ago), licensed MIT. It adds 39 tokens to every session and 810 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
setup-trusted-publishers compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-trusted-publishersg-digital-by-Garrigues/MCP_Market_Distribution | Command | 0 | 25d ago | MIT | A | 39 | Claude Code |
| dart-fix-cidartsim/dart | Command | 1.2k | yesterday | BSD-2-Clause | A | 6 | Claude Code |
| domainsgotempsh/temps | Command | 903 | yesterday | Apache-2.0 | A | 0 | Claude Code |
| accessgotempsh/temps | Command | 903 | yesterday | Apache-2.0 | A | 0 | Claude Code |
| check-release-healthopenshift-eng/ai-helpers | Command | 122 | yesterday | Apache-2.0 | A | 22 | Claude Code |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| release-managerruvnet/agentic-flow | Command | 838 | yesterday | none | A | 0 | Claude Code |