ccc-setup-pm

ccc-setup-pm is a command for Claude Code from KevinZai/commander. It costs 43 tokens per session (790 once invoked), scanned A, a copy of setup-pm, MIT.

A command for choosing and configuring the package manager a project uses, such as npm, pnpm, Yarn, or Bun.

In plain words
What is it for?
Use it to detect the current package manager or set a project-wide or global preference.
Why use it?
It prevents inconsistent package-manager choices by detecting existing project settings and recording a preferred choice.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Good fit Use it to detect the current package manager or set a project-wide or global preference.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 ccc-setup-pm

README.md
[![agentmods](https://agentmods.dev/badge/commands/kevinzai/commander/ccc-setup-pm/github.svg)](https://agentmods.dev/commands/kevinzai/commander/ccc-setup-pm)
Your own site
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-setup-pm"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-setup-pm/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.

agentmods 80×15 button for ccc-setup-pm

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-setup-pm"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-setup-pm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 790 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 100% copy Near-identical to another mod 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.00790
Opus 5.5 $0.00017 $0.00316
Sonnet 5.5 $0.00009 $0.00158
Haiku 4.5 $0.00004 $0.00079

Measured 1mo ago against content hash 5afcd33f58d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccc-setup-pm 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 1mo 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.

Origin

This is a copy

100% identical to setup-pm — 106 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/ccc-setup-pm.md · 75 lines

How it starts

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

/ccc-setup-pm — pick the package manager

CC Commander · /ccc-setup-pm · one saved package-manager preference, project or global, confirmed by detection.

The setup script ships with the Everything Claude Code toolkit (scripts/setup-package-manager.js), an opt-in install that is absent by default.

Detection order

The first match wins:

  1. Environment variable CLAUDE_PACKAGE_MANAGER
  2. Project config .claude/package-manager.json
  3. The packageManager field in package.json (for example "[email protected]")
  4. Lock file: package-lock.json, yarn.lock, pnpm-lock.yaml or bun.lockb
  5. Global config ~/.claude/package-manager.json
  6. Fallback: the first installed of pnpm, bun, yarn, npm

Both config files hold {"packageManager": "<name>"}.

What happens

  1. Locate the script:

    for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME/.claude" "$HOME"/.claude/plugins/cache/everything-claude-code/*/*; do
      [ -n "$d" ] && [ -f "$d/scripts/setup-package-manager.js" ] && { echo "$d"; break; }
    done
    

    Use the printed directory as ECC_ROOT in later calls (shell state does not persist). If nothing prints, say the script is not installed, show the config-file format above so the user can write it by hand, and stop.

  2. Show the current result and what is installed:

    node "<ECC_ROOT>/scripts/setup-package-manager.js" --detect
    node "<ECC_ROOT>/scripts/setup-package-manager.js" --list
    
  3. If $ARGUMENTS already names a manager and a scope (--project bun, --global pnpm), go to step 5. Otherwise ask with AskUserQuestion (Codex: a plain-text question) which manager to use, offering the installed ones from --list, the detected one first and marked 🟢.

  4. Ask for the scope:

    • 🟢 This project — writes .claude/package-manager.json
    • Global — writes ~/.claude/package-manager.json for every project without its own setting
    • Environment only — print the export line and write nothing
  5. Apply it:

    node "<ECC_ROOT>/scripts/setup-package-manager.js" --project <name>
    node "<ECC_ROOT>/scripts/setup-package-manager.js" --global <name>
    

Read the full file on GitHub · 75 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. 1mo ago Changed · -6 lines · +29 tokens per session 5afcd33f58d4
  2. 2mo ago First seen · 81 lines · 14 tokens per session scan A 8dbfeb084c40

Subscribe to this mod's changes

ccc-setup-pm is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 790 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to setup-pm, differing in 106 lines, and is treated as a copy.

Related

ccc-setup-pm compared with commands from other repositories

ccc-setup-pm next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-setup-pmKevinZai/commanderCommand6yesterdayMITA43Claude Code
loopskullninja/coco-workflowCommand71mo agoMITA28Claude Code
phaseskullninja/coco-workflowCommand71mo agoMITA21Claude Code
statusskullninja/coco-workflowCommand71mo agoMITA17Claude Code
justone-publishGodsB1025/justoneCommand26mo agoMITA22Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code