init

init is a command for Claude Code from shdennlin/agent-plugins. It costs 16 tokens per session (1,643 once invoked), scanned A, original, MIT.

A command that adds reviewer rules to openspec/config.yaml, the project file used to configure OpenSpec specification tools. It can preview changes or derive candidate rules from past review findings.

In plain words
What is it for?
Use it to initialize or update reviewer guidance, preview proposed changes, or harvest patterns from review history.
Why use it?
It reduces repeated review feedback by recording recurring requirements in the project configuration.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

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 reviewer plugin — 3 skills, 4 commands, 1 MCP server shipped together

Good fit Use it to initialize or update reviewer guidance, preview proposed changes, or harvest patterns from review history.

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 shdennlin/agent-plugins
Claude Code
/plugin install reviewer

Made for: Claude Code.

Or install reviewer, the plugin that ships this one along with the rest of its 3 skills, 4 commands, 1 MCP server.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/shdennlin/agent-plugins/init/github.svg)](https://agentmods.dev/commands/shdennlin/agent-plugins/init)
Your own site
<a href="https://agentmods.dev/commands/shdennlin/agent-plugins/init"><img src="https://agentmods.dev/badge/commands/shdennlin/agent-plugins/init/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 init

Your own site · 80×15
<a href="https://agentmods.dev/commands/shdennlin/agent-plugins/init"><img src="https://agentmods.dev/badge/commands/shdennlin/agent-plugins/init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 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,643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00016 $0.01643
Opus 5.5 $0.00006 $0.00657
Sonnet 5.5 $0.00003 $0.00329
Haiku 4.5 $0.00002 $0.00164

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

Security

Grade A, and why

init 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 1mo 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.

plugins/reviewer/commands/init.md · 152 lines

How it starts

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

Init Command

Inject reviewer rules into your project's openspec/config.yaml so that specs generated by OpenSpec tooling already satisfy the reviewer's criteria.

Arguments

Parse the following from $ARGUMENTS:

  • --dry-run or -n — Preview rules that would be added without writing
  • --from-history — Harvest recurring review findings into candidate rules
  • --help or -h — Show usage information and exit

Instructions

Step 1: Parse Arguments

From $ARGUMENTS, extract:

  1. help: if --help or -h is present, show the usage information below and stop. Do NOT delegate to the agent.
  2. dry_run: if --dry-run or -n is present, set dry_run = true
  3. from_history: if --from-history is present, set from_history = true

Help Output

If --help or -h is present, display this and stop:

Usage: /reviewer:init [options]

Inject reviewer rules into openspec/config.yaml so specs pass review on first attempt.

Options:
  -n, --dry-run         Preview what would be added without writing
  --from-history        Harvest recurring review findings into candidate rules
  -h, --help            Show this help message

What it does:
  Reads your project's openspec/config.yaml and appends rules for each artifact
  (proposal, specs, design, tasks) based on the reviewer's focus areas.
  Existing rules are preserved — only new rules are appended (dedup by exact match).

  With --from-history, reads the review findings history (openspec/reviews/history.jsonl
  or .claude/reviewer/history.jsonl), clusters findings that recur across 2+ changes into
  candidate rules, asks you to confirm each, and injects only the confirmed ones.
  Rows whose outcome is dismissed were refuted by verification or by you and never become
  rules; rows still escalated are decisions waiting on a human, listed separately.
  The same pass flags existing rules for retirement (finding class never seen in history,
  or superseded by a new rule) — removals are confirmed separately before applying.

Examples:
  /reviewer:init                     # inject rules into openspec/config.yaml
  /reviewer:init --dry-run           # preview without writing
  /reviewer:init -n                  # same as --dry-run
  /reviewer:init --from-history      # cluster review history into new rules

Read the full file on GitHub · 152 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. 1mo ago Changed · +2 lines cf3c35bb7f38
  2. 3mo ago First seen · 150 lines · 16 tokens per session scan A ba59af51621e

Subscribe to this mod's changes

init is a command published in the GitHub repository shdennlin/agent-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 16 tokens to every session and 1,643 once invoked, about $0.0001 per session on Opus 5.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.

Related

init compared with commands from other repositories

init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
initshdennlin/agent-pluginsCommand35d agoMITA16Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code