change-package-manager

change-package-manager is a skill for Claude Code from dannysmith/tauri-template. It costs 43 tokens per session (1,275 once invoked), scanned A, original, MIT.

A project update procedure for switching between npm, Bun, and pnpm, which are tools for installing JavaScript packages and running project commands.

In plain words
What is it for?
Use it to change install, run, dependency, audit, and binary commands, update lock-file references, and revise related configuration and workflow files.
Why use it?
It prevents the project, documentation, continuous-integration jobs, and AI instructions from using conflicting package-manager commands or lock files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions AGENTS.md.

Good fit Use it to change install, run, dependency, audit, and binary commands, update…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dannysmith/tauri-template/change-package-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dannysmith/tauri-template --skill change-package-manager
Clone the repo
git clone --depth 1 https://github.com/dannysmith/tauri-template

Made for: Claude Code.

Wrote 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.

agentmods badge for change-package-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/dannysmith/tauri-template/change-package-manager.svg)](https://agentmods.dev/skills/dannysmith/tauri-template/change-package-manager)
Your own site
<a href="https://agentmods.dev/skills/dannysmith/tauri-template/change-package-manager"><img src="https://agentmods.dev/badge/skills/dannysmith/tauri-template/change-package-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,275 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01275
Opus 5 $0.00022 $0.00638
Sonnet 5 $0.00009 $0.00255
Haiku 4.5 $0.00004 $0.00128

Measured 7d ago against content hash e3dbdee7bac7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

change-package-manager 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 7d 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.

.claude/skills/change-package-manager/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Switch this project's package manager to $ARGUMENTS.

If $ARGUMENTS is not exactly bun, pnpm, or npm, ask the user which package manager they want.

Command Mapping Reference

Detect the current package manager from AGENTS.md or package.json scripts. Use this table for all replacements:

Context npm bun pnpm
Install deps npm install bun install pnpm install
Run script npm run X bun run X pnpm run X
CI frozen install npm ci bun install --frozen-lockfile pnpm install --frozen-lockfile
Add dep npm install pkg bun add pkg pnpm add pkg
Add dev dep npm install -D pkg bun add -D pkg pnpm add -D pkg
Remove dep npm uninstall pkg bun remove pkg pnpm remove pkg
Audit npm audit bun audit pnpm audit
Global install npm install -g pkg bun install -g pkg pnpm add -g pkg
Execute binary npx bunx pnpm dlx
Lock file package-lock.json bun.lock pnpm-lock.yaml

Step 1: Functional Config

package.json scripts

Read package.json. Replace the current PM's run command with the target PM's in all script values. For example, npm run typecheck becomes bun run typecheck.

tauri.conf.json

Read src-tauri/tauri.conf.json. Update beforeDevCommand and beforeBuildCommand.

GitHub Actions CI

Read .github/workflows/release.yml and apply the appropriate pattern:

Target: bun

  • Replace the Setup Node.js step with:
    - name: Setup Bun
      uses: oven-sh/setup-bun@v2
    
  • Replace npm ci with bun install --frozen-lockfile

Target: pnpm

  • Add a step before Setup Node.js:
    - name: Setup pnpm
      uses: pnpm/action-setup@v4
    
  • Change cache: 'npm' to cache: 'pnpm' in the setup-node step
  • Replace npm ci with pnpm install --frozen-lockfile

Target: npm

  • Ensure standard actions/setup-node@v4 with cache: 'npm'
  • Ensure npm ci for install step
  • Remove any pnpm/bun setup steps

Read the full file on GitHub · 111 lines

Changes

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.

  1. 7d ago First seen · 111 lines · 43 tokens per session scan A e3dbdee7bac7

Subscribe to this mod's changes

change-package-manager is a skill published in the GitHub repository dannysmith/tauri-template (301 stars, last pushed 25d ago), licensed MIT. It adds 43 tokens to every session and 1,275 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens