specialize

specialize is a command for Claude Code from jonase47/ccpr. It costs 0 tokens per session (1,950 once invoked), scanned A, original, MIT.

A project command that creates local versions of coding agents tailored to the project’s languages, tools, and technical decisions.

In plain words
What is it for?
Use it when starting work in an existing codebase or after choosing a stack, so development and review agents follow project-specific practices.
Why use it?
Generic agents may miss rules or common mistakes specific to your technology stack. This adds that project context where the agents can use it.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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/jonase47/ccpr/specialize
Clone the repo
git clone --depth 1 https://github.com/jonase47/ccpr

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 specialize

README.md
[![agentmods](https://agentmods.dev/badge/commands/jonase47/ccpr/specialize.svg)](https://agentmods.dev/commands/jonase47/ccpr/specialize)
Your own site
<a href="https://agentmods.dev/commands/jonase47/ccpr/specialize"><img src="https://agentmods.dev/badge/commands/jonase47/ccpr/specialize.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,950 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.01950
Opus 5 $0.00000 $0.00975
Sonnet 5 $0.00000 $0.00390
Haiku 4.5 $0.00000 $0.00195

Measured 2d ago against content hash 7f11990c806a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

specialize 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 2d 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/specialize.md · 151 lines

How it starts

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

/specialize – Adapt agents to the project's tech stack

Generic CCPR agents are tech-stack-agnostic all-rounders. Once the stack is known, this command writes project-local specialized copies under .claude/agents/ (which take precedence over ~/.claude/agents/ via Claude Code's name resolution) and injects a Project Tech Context block carrying stack-specific correctness, security, and idiom rules — so the developer agent knows the language's footguns and the reviewer agent knows to check for them.

It runs in two modes from the same machinery — only the knowledge source differs:

  • docs mode — the stack was decided through CCPR (P3), so the knowledge is read from the architecture docs. Source of truth: docs/architecture/TECH_STACK.md, the ADRs under docs/architecture/ADR/, and the Tech Stack / Key Decisions sections of the project CLAUDE.md.
  • codebase mode — an existing codebase with no CCPR history, so the knowledge is read from the code itself (dependency manifests, build/CI config, language-version files).

What this command does NOT do

  • No auto-commit. It writes files and shows a diff. You review and commit.
  • No blind overwrite. Hand-written agent content is never touched — only the marked auto-specialization block is created or replaced (see Marker Block).
  • No invented rules. Stack facts come from the sources below. Anything plausible but not verifiable from a source — or that may not match the pinned version — is marked ⚠ verify, never asserted as fact.

Argument: $ARGUMENTS = [optional: comma-separated agent names to limit the run]

If empty: specialize the default agent set (see step 3).

Execution

1. Detect mode

  • If docs/architecture/TECH_STACK.md exists → docs mode. Read it, the ADRs under docs/architecture/ADR/, and the project CLAUDE.md Tech-Stack / Key-Decisions.
  • Else → codebase mode. Scan the repo root for stack signals and read what you find (do not guess versions you cannot read):
    • Language / deps: go.mod, package.json, composer.json, requirements.txt, pyproject.toml, Cargo.toml, Gemfile, pom.xml, build.gradle
    • Versions: .tool-versions, the go.mod go-directive, .nvmrc, engine fields
    • Build / CI / infra: Dockerfile, docker-compose.yml, Makefile, linter configs (.golangci.yml, .eslintrc*), CI configs (.woodpecker, .github/workflows, .gitlab-ci.yml)

Read the full file on GitHub · 151 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. 2d ago First seen · 151 lines · 0 tokens per session scan A 7f11990c806a

Subscribe to this mod's changes

specialize is a command published in the GitHub repository jonase47/ccpr (1 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,950 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-09-03.