mcs: Instructions file for Claude Code

CLAUDE.md

mcs CLAUDE.md is an instructions file for Claude Code from mcs-cli/mcs. It costs 6,562 tokens per session, scanned B, original, MIT.

A set of instructions for working on mcs, a Swift command-line tool that manages Claude Code configuration packs. These packs can provide MCP servers, plugins, skills, hooks, and settings.

In plain words
What is it for?
Use it when building or testing mcs, previewing configuration changes, syncing selected or all packs, or applying locked versions.
Why use it?
It gives contributors the project context, build and test commands, and the available sync options in one place. That reduces guesswork when developing or using the CLI.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is mcs-cli/mcs's own configuration. It tells Claude Code how to work on mcs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mcs-cli/mcs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mcs-cli/mcs/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/mcs-cli/mcs

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 mcs CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mcs-cli/mcs/claude-md/github.svg)](https://agentmods.dev/instructions/mcs-cli/mcs/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mcs-cli/mcs/claude-md"><img src="https://agentmods.dev/badge/instructions/mcs-cli/mcs/claude-md/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 mcs CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mcs-cli/mcs/claude-md"><img src="https://agentmods.dev/badge/instructions/mcs-cli/mcs/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,562 This file is loaded in full into every session.
When invoked 6,562 The same file — it is already loaded in full.
Security scan B 1 finding. 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.06562 $0.06562
Opus 5.5 $0.02625 $0.02625
Sonnet 5.5 $0.01312 $0.01312
Haiku 4.5 $0.00656 $0.00656

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

Security

Grade B, and why

mcs CLAUDE.md scanned grade B with 1 finding 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 3d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **`mcs bootstrap` is project-scoped, additive-by-default, opt-in-authoritative**: reads `./mcs.yaml` (fixed filename, cwd only) and drives the current project's pack set. Like `mcs sync`, its non-dry-run tail refreshes
CLAUDE.md · 230 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Swift CLI tool (mcs) that configures Claude Code with MCP servers, plugins, skills, hooks, and settings. Pure pack management engine with zero bundled content — all features come from external tech packs. Distributed via Homebrew.

Commands

# Development
swift build                      # Build the CLI
swift test                       # Run tests
swift build -c release --arch arm64 --arch x86_64  # Universal binary

# CLI usage (after install)
mcs sync [path]                  # Sync project: multi-select packs, compose artifacts (default command)
mcs sync --pack ios              # Non-interactive: add/update specific packs (repeatable), keeping other configured packs
mcs sync --pack ios --prune      # Make the named packs the exact set — removes the rest after confirmation
mcs sync --pack ios --prune --yes  # Prune without the removal-confirmation prompt (CI)
mcs sync --all                   # Apply all registered packs without prompts
mcs sync --dry-run               # Preview what would change
mcs sync --global                # Sync global scope (MCP servers, brew, plugins to ~/.claude/)
mcs bootstrap                    # Apply ./mcs.yaml — install declared packs (additive; keeps other configured packs)
mcs bootstrap --prune            # Also remove packs configured here but absent from mcs.yaml
mcs bootstrap --dry-run          # Preview what would change
mcs bootstrap --prune --yes      # Prune without the removal-confirmation prompt (CI)
mcs bootstrap --trust-all        # Approve pack trust prompts automatically (no TTY needed)
mcs update                       # Fetch latest pack versions and re-apply across every configured scope
mcs update --global              # Refresh only the global scope
mcs update --project             # Refresh only the current project's scope
mcs update --all-projects        # Refresh global + every project tracked in ~/.mcs/projects.yaml (asks confirmation)
mcs update --dry-run             # Preview what would change
mcs update --trust-all           # Trust changed executable content without prompting (no TTY needed)
mcs doctor                       # Diagnose installation health
mcs doctor --fix                 # Diagnose, then run fixes and re-sync scopes with repairable failures (one confirmation)
mcs doctor --pack ios            # Only check a specific pack
mcs doctor --global              # Check globally-configured packs only
mcs pack add <source>            # Add a tech pack (git URL, GitHub shorthand, or local path)
mcs pack add user/repo           # GitHub shorthand → https://github.com/user/repo.git
mcs pack add /path/to/pack       # Add a local pack (read in-place, no clone)
mcs pack add <url> --ref <tag>   # Add at a specific tag or branch (git only)
mcs pack add <url> --preview     # Preview pack contents without installing
mcs pack remove <name>           # Remove an external tech pack
mcs pack remove <name> --force   # Remove without confirmation
mcs pack list                    # List registered external packs
mcs pack update [name]           # Refresh pack registry only (low-level fetch; use 'mcs update' for fetch + apply)
mcs pack update --trust-all      # Trust changed executable content without prompting (no TTY needed)
mcs pack validate [source]       # Validate a tech pack (path, identifier, or current directory)
mcs cleanup                      # Find and delete backup files
mcs cleanup --force              # Delete backups without confirmation
mcs cleanup --all-projects       # Also scan every project tracked in ~/.mcs/projects.yaml
mcs export <dir>                 # Export current config as a tech pack
mcs export <dir> --global        # Export global scope (~/.claude/)
mcs export <dir> --identifier id # Set pack identifier (prompted if omitted)
mcs export <dir> --non-interactive  # Include everything without prompts
mcs export <dir> --dry-run       # Preview what would be exported
mcs check-updates                # Check for pack and CLI updates
mcs check-updates --hook         # Run as SessionStart hook (24-hour cooldown, respects config)
mcs check-updates --json         # Machine-readable JSON output
mcs check-updates --snooze       # Silence the SessionStart update notice until tomorrow (local time)
mcs config list                  # Show all settings with current values
mcs config get <key>             # Get a specific setting value
mcs config set <key> <value>     # Set a configuration value (true/false)

Read the full file on GitHub · 230 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. 3d ago Changed · +58 tokens per session 5d5be3ddc837
  2. 6d ago Changed · +1 lines · +23 tokens per session 3021ff92e038
  3. 19d ago Changed · +1 lines · +206 tokens per session 865db89711a1
  4. 1mo ago Changed · +3 lines · +92 tokens per session 2fec969bbdca
  5. 1mo ago Changed · +142 tokens per session d646317237e3
  6. 1mo ago Changed · +2 lines · +582 tokens per session 5f5bfcb14c6d
  7. 1mo ago Changed · -4 tokens per session 1086682b07bf
  8. 1mo ago Changed · +3 lines · +353 tokens per session 42f7e4138a5d
  9. 1mo ago Changed · +1 lines · +21 tokens per session b5cc533f66b0
  10. 1mo ago First seen · 219 lines · 5,089 tokens per session scan B b85830b27357

Subscribe to this mod's changes

mcs CLAUDE.md is an instructions file published in the GitHub repository mcs-cli/mcs (92 stars, last pushed 3d ago), licensed MIT. It adds 6,562 tokens to every session, about $0.0262 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories