setup-global-claude-md

setup-global-claude-md is a command for Claude Code from anilcancakir/claude-code-plugin. It costs 25 tokens per session (2,879 once invoked), scanned D, original, MIT.

A command that interviews a developer and creates or updates a global CLAUDE.md file, which provides shared instructions to every Claude Code session.

In plain words
What is it for?
Use it to configure shared identity, technology-stack, skills, MCP, LSP, and rules information for Claude Code conversations.
Why use it?
It avoids manually maintaining the same basic setup across sessions while preserving selected user-specific settings during updates.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ac plugin — 6 skills, 9 commands, 2 hooks shipped together

Good fit Use it to configure shared identity, technology-stack, skills, MCP, LSP, and rules information for Claude Code conversations.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add anilcancakir/claude-code-plugin
Claude Code
/plugin install ac

Made for: Claude Code.

Or install ac, the plugin that ships this one along with the rest of its 6 skills, 9 commands, 2 hooks.

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 setup-global-claude-md

README.md
[![agentmods](https://agentmods.dev/badge/commands/anilcancakir/claude-code-plugin/setup-global-claude-md/github.svg)](https://agentmods.dev/commands/anilcancakir/claude-code-plugin/setup-global-claude-md)
Your own site
<a href="https://agentmods.dev/commands/anilcancakir/claude-code-plugin/setup-global-claude-md"><img src="https://agentmods.dev/badge/commands/anilcancakir/claude-code-plugin/setup-global-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 setup-global-claude-md

Your own site · 80×15
<a href="https://agentmods.dev/commands/anilcancakir/claude-code-plugin/setup-global-claude-md"><img src="https://agentmods.dev/badge/commands/anilcancakir/claude-code-plugin/setup-global-claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,879 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00025 $0.02879
Opus 5.5 $0.00010 $0.01152
Sonnet 5.5 $0.00005 $0.00576
Haiku 4.5 $0.00003 $0.00288

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

Security

Grade D, and why

setup-global-claude-md scanned grade D with 3 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 3mo 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.

cat ~/.claude/.mcp.json 2>/dev/null; cat ~/.claude.json 2>/dev/null

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

cat ~/.claude/.mcp.json 2>/dev/null; cat ~/.claude.json 2>/dev/null

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

find ~/.claude/skills -name "SKILL.md" -maxdepth 3 2>/dev/null
plugins/ac/commands/setup-global-claude-md.md · 214 lines

How it starts

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

Setup Global CLAUDE.md

Generate or update ~/.claude/CLAUDE.md. Injected into every CC conversation as user-rules — main session AND plugin subagents.

Authoring knowledge: Section patterns, quality scoring, compression tactics, and dedup boundaries live in the claude-md-writer skill. Read it before writing any section content. The template at ${CLAUDE_PLUGIN_ROOT}/references/global-claude-md-template.md provides structural guidance.

Scope: This config is deliberately lightweight. It does NOT inject planning pipelines, Intent Gate, delegation directives, tier routing, or parallel subagent mandates. CC's native plan mode and default agent behavior stay in charge.

Section Ownership

Type Sections Update Behavior
Fixed defaults Identity bullets, Behavioral Guidelines, Rules defaults Always regenerated verbatim from template. Never preserved from existing file — users get the latest baseline every run
Plugin-managed Skills, MCP, LSP Regenerated from template every run
User-managed Identity opening line, Tech Stack, Rules extras Preserved across updates. Changed only via interview

The Identity bullet list, full Behavioral Guidelines block, and Rules default block are non-negotiable baselines — they are rewritten verbatim on every update, enhance, and overwrite run. Interview (Q3/Q5) can only APPEND rules, never remove or rewrite defaults. Q1 only tunes the opening sentence of Identity.


Phase 1: Discovery

  1. Check ~/.claude/settings.json → detect existing permissions.deny and hooks.PreToolUse entries. Store as EXISTING_SETTINGS for Phase 4 merge.

  2. Check ~/.claude/CLAUDE.md existence → determine mode:

    • Exists + $ARGUMENTS = "update" → extract user-managed sections (opening sentence, Tech Stack, Rules extras) verbatim, skip Phase 2. Fixed defaults and Behavioral Guidelines regenerate from template
    • Exists + $ARGUMENTS = "enhance" or no argument → pre-fill interview from existing content. Fixed defaults still rewritten verbatim
    • Exists + $ARGUMENTS = "overwrite" → fresh generation
    • Not exists → fresh generation

Read the full file on GitHub · 214 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. 3mo ago First seen · 214 lines · 25 tokens per session scan D 92d484d1af40

Subscribe to this mod's changes

setup-global-claude-md is a command published in the GitHub repository anilcancakir/claude-code-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 25 tokens to every session and 2,879 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it D with 3 findings (reads agent configuration directories, reads mcp configuration, enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

setup-global-claude-md compared with commands from other repositories

setup-global-claude-md next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-global-claude-mdanilcancakir/claude-code-pluginCommand27mo agoMITD25Claude Code
perf-difficult-conversationfrankxai/Starlight-Intelligence-SystemCommand1024d agoMITA93Claude Code
culture-onboarding-90frankxai/Starlight-Intelligence-SystemCommand1024d agoMITA101Claude Code
perf-coaching-protocolfrankxai/Starlight-Intelligence-SystemCommand1024d agoMITA83Claude Code
design-regimenfrankxai/Starlight-Intelligence-SystemCommand1024d agoMITA60Claude Code
hire-calibratefrankxai/Starlight-Intelligence-SystemCommand1024d agoMITA86Claude Code
reclaim-knowledgefrankxai/Starlight-Intelligence-SystemCommand1024d agoMITA58Claude Code