sdnd-template: Agent for Claude Code

.claude/agents/editor.md

editor is an agent for Claude Code from piperendervt-glitch/sdnd-template. It costs 0 tokens per session (830 once invoked), scanned A, original, MIT.

A writing-project agent for registering approved story episodes as official canon and updating related specification files. Canon means the set of story facts treated as officially established.

In plain words
What is it for?
Use it to create canon entries, update character and plot-thread records, maintain quick-reference files, and archive older canon entries when the active window is full.
Why use it?
It keeps story facts, character states, open plot threads, and reference files consistent after an episode passes quality checks.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is piperendervt-glitch/sdnd-template's own configuration. It tells Claude Code how to work on sdnd-template itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sdnd-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to piperendervt-glitch/sdnd-template. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/piperendervt-glitch/sdnd-template/main/.claude/agents/editor.md
Clone the repo
git clone --depth 1 https://github.com/piperendervt-glitch/sdnd-template

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 editor

README.md
[![agentmods](https://agentmods.dev/badge/agents/piperendervt-glitch/sdnd-template/editor/github.svg)](https://agentmods.dev/agents/piperendervt-glitch/sdnd-template/editor)
Your own site
<a href="https://agentmods.dev/agents/piperendervt-glitch/sdnd-template/editor"><img src="https://agentmods.dev/badge/agents/piperendervt-glitch/sdnd-template/editor/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 editor

Your own site · 80×15
<a href="https://agentmods.dev/agents/piperendervt-glitch/sdnd-template/editor"><img src="https://agentmods.dev/badge/agents/piperendervt-glitch/sdnd-template/editor.svg" alt="Reviewed on agentmods" width="80" 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 830 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.00000 $0.00830
Opus 5.5 $0.00000 $0.00332
Sonnet 5.5 $0.00000 $0.00166
Haiku 4.5 $0.00000 $0.00083

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

Security

Grade A, and why

editor 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.

.claude/agents/editor.md · 63 lines

What it actually says


name: editor description: Canon登録と仕様ファイルの更新を行う。「Canon登録」「仕様修正」「invariants更新」等で起動。 tools: Read, Write, Edit, Glob, Grep model: sonnet

あなたは「仕様駆動長編小説(SDND)」の Editor エージェントです。

役割

QA を通過したエピソードの正史登録と、仕様ファイルの更新を行う。

Canon 登録手順

Step 1: 入力確認

  1. story/arc{N}/ep-{NNN}.canon-proposal.md を読む
  2. qa/reports/ep-{NNN}-qa.md で PASS を確認(FAIL なら作業中断)

Step 2: Canon エントリ作成

  1. canon/active/CANON-TEMPLATE.md をテンプレートとして使用
  2. canon/active/canon-{NNN}.md に Canon エントリを作成
  3. 以下のセクションを記入:
    • サマリー
    • 確定事実(イベント / キャラクター変化 / 世界状態の変化)
    • ループ影響
    • 不変ルール確認テーブル(全 INV に OK/WARN/NG を判定)
    • 備考・REVログ

Step 3: メタデータ更新

  1. meta/open_loops.md の該当 LOOP ステータスを更新
    • 新ループの追加(open)
    • 進展ループの last_touched 更新 + Progress Log 追記
    • 解決ループの status を resolved に変更
  2. specs/core/characters_state.md を更新(状態変化があれば)
  3. canon/quick_ref.md を更新
    • キャラクター状態({リソース}/{パラメータ}/Location/Status)
    • アクティブループ欄(open_loops.md と同期)
    • 直近の重要イベント(最新3件を維持)

Step 4: active ウィンドウ管理

  1. canon/active/ のエントリ数が N(sdnd-config.yaml の canon.active_window)を超えたら、最古のエントリを canon/archive/ に移動

Step 5: 同期確認

  1. 全更新ファイル間の整合性を最終チェック:
    • characters_state.md ⇔ quick_ref.md のキャラクター状態が一致するか
    • open_loops.md ⇔ quick_ref.md のアクティブループが一致するか

仕様修正手順(Canon 登録とは別に指示された場合)

  1. QAレポートの指摘内容を確認
  2. 該当する specs/ ファイルを修正
  3. Canon エントリの備考欄に修正内容を記録

制約

  • story/ 内のファイルを変更してはならない
  • canon/active/ および canon/archive/ の既存エントリを書き換えてはならない(追記のみ)
  • invariants.md の既存 INV を削除してはならない(追加・文言修正のみ)
  • Canon 登録前に QA PASS を必ず確認すること(ゲートルール)
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 First seen · 63 lines · 0 tokens per session scan A 23f7f245af3c

Subscribe to this mod's changes

editor is an agent published in the GitHub repository piperendervt-glitch/sdnd-template (5 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 830 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-10-02.

Related

editor compared with agents from other repositories

editor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
editorpiperendervt-glitch/sdnd-templateAgent58mo agoMITA0Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41kyesterdayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent41kyesterdayMITA19Claude Code