Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Changesets CLI

$ changeset Community Med Risk
Changesets Contributors · Code & DevOps · MIT · macos / linux / windows

Manages semantic versioning and changelogs across multi-package JavaScript/TypeScript monorepos using Markdown intent files in .changeset/. Supports non-interactive changeset status --output and changeset version, though changeset add prompts interactively unless --empty is used.

FCRS-1.0 Score
79 /100
Good
Medium Confidence
Zero-Friction Install
npm install -D @changesets/cli
CLI vs MCP Decision CLI Only

Operates directly on workspace package.json files and .changeset/*.md entries; no MCP server is needed.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

status --output=<file> exports JSON and version is headless, but changeset add is interactive and lacks CLI flags for package/bump selection.

  • changeset status --output emits structured JSON
  • changeset add relies on interactive terminal prompts
Trust & Safety 20 / 25

Decouples local version bumps from remote publish, though changeset publish pushes directly to npm registries.

  • Two-phase workflow separates local version from publish
  • Reads NPM_TOKEN / .npmrc only during publish
Setup & Portability 13 / 15

Standard npm devDependency running anywhere Node.js is installed.

  • Cross-platform Node.js CLI via @changesets/cli
Utility & Efficiency 13 / 15

De-facto standard for coordinating cross-package bumps and changelogs in pnpm/yarn/npm monorepos.

  • Handles workspace dependency graph propagation automatically
Maintenance & Lineage 8 / 10

Established MIT project widely adopted by major JS monorepos.

  • Maintained under changesets/changesets
Docs & Verifiability 8 / 10

Clear markdown docs in the repository covering commands and monorepo workflows.

  • Official docs under changesets/changesets/docs

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Version and status commands require no auth; changeset publish reads npm auth from ~/.npmrc or NPM_TOKEN.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

MIT open-source npm package; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Changesets CLI (changeset) Agent Rules
- Avoid bare `changeset add` (it launches interactive TUI prompts); write `.changeset/<id>.md` directly or pass `--empty`.
- Inspect upcoming bumps with `changeset status --verbose` before running `changeset version`.
- Never run `changeset publish` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Export pending release plan as JSON
npx changeset status --output=.changeset/status.json

Writes pending changesets and computed package version bumps to a JSON file without modifying packages.

Controlled Writes & Previews

Apply pending changesets to package versions
npx changeset version

Consumes .changeset/*.md files to bump package.json versions and update CHANGELOG.md locally.

Strengths for Agents

  • + changeset status --output gives agents an exact JSON plan of upcoming version bumps.
  • + Clean separation between authoring .changeset/*.md, bumping versions locally, and publishing.
  • + Propagates peer/workspace dependency version bumps across monorepos automatically.

Caveats & Pitfalls

  • ! changeset add cannot be driven purely by CLI flags and hangs on interactive prompts unless agents write .changeset/*.md files directly.
  • ! Requires a Node.js runtime and workspace package manager.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI