init

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

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/shdennlin/agent-plugins/init
Clone the repo
git clone --depth 1 https://github.com/shdennlin/agent-plugins
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,551 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.00016 $0.01551
Opus 5 $0.00008 $0.00776
Sonnet 5 $0.00003 $0.00310
Haiku 4.5 $0.00002 $0.00155

Measured yesterday against content hash ba59af51621e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 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.
  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 · 150 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. yesterday 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 (2 stars, last pushed 7d ago), licensed MIT. It adds 16 tokens to every session and 1,551 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.