core-values

core-values is a command for coding agents from albertnahas/claude-core-values. It costs 10 tokens per session (503 once invoked), scanned A, original, MIT.

A command for setting up or viewing a project’s core development values, such as quality, speed, security, or simplicity.

In plain words
What is it for?
Use it to display existing values or initialize them from a Craftsman, Startup, Security-First, or Minimal template.
Why use it?
It gives the coding agent a stated set of working principles to follow instead of leaving those preferences undefined.

Command

Part of the claude-core-values plugin — 1 command, 2 hooks shipped together

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.

agentmods
npx agentmods add commands/albertnahas/claude-core-values/core-values
Clone the repo
git clone --depth 1 https://github.com/albertnahas/claude-core-values

Or install claude-core-values, the plugin that ships this one along with the rest of its 1 command, 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 core-values

README.md
[![agentmods](https://agentmods.dev/badge/commands/albertnahas/claude-core-values/core-values.svg)](https://agentmods.dev/commands/albertnahas/claude-core-values/core-values)
Your own site
<a href="https://agentmods.dev/commands/albertnahas/claude-core-values/core-values"><img src="https://agentmods.dev/badge/commands/albertnahas/claude-core-values/core-values.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 503 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.00503
Opus 5 $0.00005 $0.00251
Sonnet 5 $0.00002 $0.00101
Haiku 4.5 $0.00001 $0.00050

Measured 3d ago against content hash 76f5f9cb7d3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

core-values 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 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.

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.

commands/core-values.md · 42 lines

What it actually says

Manage the user's core development values configuration.

Determine Action

Check the user's argument:

  • No argument or "show": Display current values
  • "init": Initialize or reinitialize values from a template

Show Current Values

  1. Look for the config file in this order:
    • Project-level: <current working directory>/.claude/core-values.yml
    • User-level: ~/.claude/core-values.yml
  2. If found, read the file and display the values in a nicely formatted summary
  3. If not found, tell the user no core values are configured and offer to run /core-values init

Initialize Values

  1. Read all template files from $CLAUDE_PLUGIN_ROOT/templates/ using Glob for $CLAUDE_PLUGIN_ROOT/templates/*.yml, then Read each file
  2. Present the available templates to the user using AskUserQuestion with these options:
    • Craftsman — Quality-obsessed. No half solutions. No shortcuts. Zero tolerance for broken code.
    • Startup — Ship fast, iterate rapidly, pragmatic quality. Bias for action.
    • Security-First — Defense in depth, zero trust, OWASP compliance. Security as foundation.
    • Minimal — Simple baseline: working code, follow patterns, test before push.
  3. After the user picks a template, read the chosen template YAML from $CLAUDE_PLUGIN_ROOT/templates/<name>.yml
  4. Ask the user where to install using AskUserQuestion:
    • User-level (~/.claude/core-values.yml) — Applies to all projects (Recommended)
    • Project-level (.claude/core-values.yml) — Only this project
  5. Create the .claude/ directory if it doesn't exist, then write the template content to the chosen path
  6. Tell the user:
    • Their values are now active and will load on every new session
    • They can edit the YAML file directly to customize sections, add values, or change the motto
    • Project-level config takes precedence over user-level if both exist
    • Restart Claude Code (or start a new session) for values to take effect
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 First seen · 42 lines · 10 tokens per session scan A 76f5f9cb7d3a

Subscribe to this mod's changes

core-values is a command published in the GitHub repository albertnahas/claude-core-values (5 stars, last pushed 6mo ago), licensed MIT. It adds 10 tokens to every session and 503 once invoked, about $0.0001 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-31.