inject-standards

inject-standards is a command for Claude Code from peerjakobsen/smartspender. It costs 0 tokens per session (1,855 once invoked), scanned A, original, MIT.

A command that loads written project standards into the current work context. Standards are shared rules for things such as API formats, naming, or authentication.

In plain words
What is it for?
Use it to suggest standards based on the current situation or directly load standards from selected files or folders, including the root standards folder.
Why use it?
It helps keep answers and implementation work aligned with the relevant rules without manually copying those documents into the conversation.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Part of the smartspender plugin — 13 skills, 19 commands 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/peerjakobsen/smartspender/inject-standards
Clone the repo
git clone --depth 1 https://github.com/peerjakobsen/smartspender

Made for: Claude Code.

Or install smartspender, the plugin that ships this one along with the rest of its 13 skills, 19 commands.

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 inject-standards

README.md
[![agentmods](https://agentmods.dev/badge/commands/peerjakobsen/smartspender/inject-standards.svg)](https://agentmods.dev/commands/peerjakobsen/smartspender/inject-standards)
Your own site
<a href="https://agentmods.dev/commands/peerjakobsen/smartspender/inject-standards"><img src="https://agentmods.dev/badge/commands/peerjakobsen/smartspender/inject-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,855 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.1 $0.00000 $0.01855
Opus 5 $0.00000 $0.00928
Sonnet 5 $0.00000 $0.00371
Haiku 4.5 $0.00000 $0.00186

Measured 5d ago against content hash 334ff2ac64b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

inject-standards 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 5d 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.

.claude/commands/agent-os/inject-standards.md · 292 lines

How it starts

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

Inject Standards

Inject relevant standards into the current context, formatted appropriately for the situation.

Usage Modes

This command supports two modes:

Auto-Suggest Mode (no arguments)

/inject-standards

Analyzes context and suggests relevant standards.

Explicit Mode (with arguments)

/inject-standards api                           # All standards in api/
/inject-standards api/response-format           # Single file
/inject-standards api/response-format api/auth  # Multiple files
/inject-standards root                          # All standards in the root folder
/inject-standards root/naming                   # Single file from root folder

Directly injects specified standards without suggestions.

Note: root is a reserved keyword — it refers to .md files directly in agent-os/standards/ (not in a subfolder).

Process

Step 1: Detect Context Scenario

Before injecting standards, determine which scenario we're in. Read the current conversation and check if we're in plan mode.

Three scenarios:

  1. Conversation — Regular chat, implementing code, answering questions
  2. Creating a Skill — Building a .claude/skills/ file
  3. Shaping/Planning — In plan mode, building a spec, running /shape-spec

Detection logic:

  • If currently in plan mode OR conversation clearly mentions "spec", "plan", "shape" → Shaping/Planning
  • If conversation clearly mentions creating a skill, editing .claude/skills/, or building a reusable procedure → Creating a Skill
  • Otherwise → Ask to confirm (do not assume)

If neither skill nor plan is clearly detected, use AskUserQuestion to confirm:

I'll inject the relevant standards. How should I format them?

1. **Conversation** — Read standards into our chat (for implementation work)
2. **Skill** — Output file references to include in a skill you're building
3. **Plan** — Output file references to include in a plan/spec

Which scenario? (1, 2, or 3)

Always ask when uncertain — don't assume conversation by default.

Read the full file on GitHub · 292 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. 5d ago First seen · 292 lines · 0 tokens per session scan A 334ff2ac64b5

Subscribe to this mod's changes

inject-standards is a command published in the GitHub repository peerjakobsen/smartspender (5 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,855 tokens. 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.