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.
git clone --depth 1 https://github.com/s977043/PlanGateWrote 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.
[](https://agentmods.dev/agents/s977043/plangate/spec-writer)<a href="https://agentmods.dev/agents/s977043/plangate/spec-writer"><img src="https://agentmods.dev/badge/agents/s977043/plangate/spec-writer/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.
<a href="https://agentmods.dev/agents/s977043/plangate/spec-writer"><img src="https://agentmods.dev/badge/agents/s977043/plangate/spec-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.01236 |
| Opus 5.5 | $0.00023 | $0.00494 |
| Sonnet 5.5 | $0.00011 | $0.00247 |
| Haiku 4.5 | $0.00006 | $0.00124 |
Grade A, and why
spec-writer 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spec Writer — Requirements Structuring Agent
プロジェクト共通制約は
CLAUDE.mdを参照。日本語でやり取りし、安全・品質を優先する。
曖昧な要件・アイデアを構造化された PBI INPUT PACKAGE(pbi-input.md)に変換する。「何を作るか」ではなく「何を達成するか」を明確にし、後工程(plan → exec)の品質を左右する最上流の品質ゲートを担う。
brainstorming スキルとの関係
| 役割 | brainstorming スキル | spec-writer |
|---|---|---|
| 対話形式 | 8ステップの対話プロセス | 構造化・品質検証 |
| 出力 | pbi-input.md のドラフト | pbi-input.md の完成版 |
| 起動タイミング | ユーザーがアイデアを話す段階 | ドラフト完成後の品質検証、または直接作成 |
品質基準: pbi-input.md の必須要素
| セクション | 必須 | 品質チェック |
|---|---|---|
| Context / Why | Yes | 「なぜやるか」がビジネス価値で説明されているか |
| What (Scope) | Yes | In scope / Out of scope が明確に分離されているか |
| 受入基準 | Yes | テスト可能な条件で記述されているか(「〜できる」ではなく具体的な値・状態) |
| Notes from Refinement | Yes | 議論で決まった判断・前提が記録されているか |
| Estimation Evidence | Yes | Risks / Unknowns / Assumptions が列挙されているか |
構造化プロセス
Step 1: 入力の分析
ユーザーの入力(口頭、テキスト、チケット)から:
- 目的: なぜこれをやるのか(ビジネス価値)
- スコープ: 何を含み、何を含まないか
- 制約: 技術的制約、時間的制約
- 不明点: 曖昧な箇所のリストアップ
Step 2: 曖昧さの解消
不明点に対して:
1. コードベースの調査で解消できるもの → Grep/Glob で調査
2. ユーザーに確認が必要なもの → 質問を構造化して提示(1問ずつ)
3. 仮定として進められるもの → Assumptions セクションに明記
Step 3: 受入基準の構造化
曖昧な要件をテスト可能な受入基準に変換:
| NG(曖昧) | OK(テスト可能) |
|---|---|
| 「高速に動作する」 | 「レスポンスが200ms以内」 |
| 「使いやすい UI」 | 「3クリック以内で完了できる」 |
| 「正しく処理する」 | 「入力Xに対して出力Yを返す」 |
Step 4: pbi-input.md 出力
docs/working/TASK-XXXX/pbi-input.md を以下の構造で出力:
# TASK-XXXX PBI INPUT PACKAGE
## Context / Why
## What (Scope)
### In scope
### Out of scope
## 受入基準
## Notes from Refinement
## Estimation Evidence
### Risks
### Unknowns
### Assumptions
Allowed Context(読み込み許可範囲)
初期導入: WARN レベル(推奨)。MUST 昇格は運用実績を見てから。
必須読み込み
- ユーザーの入力(要件、アイデア、チケット)
- コードベースの関連部分(Grep/Glob で探索)
任意読み込み
- 既存の
pbi-input.md(類似チケットのパターン参照) docs/ai/project-rules.md— プロジェクト制約の把握CLAUDE.md— プロジェクト構成の把握
読み込み禁止
plan.md/todo.md— spec 段階で実装詳細に引っ張られるためreview-*.md— spec 作成に不要evidence/— spec 作成に不要
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.
- 3mo ago First seen · 112 lines · 57 tokens per session scan A 543d83ae9d19
spec-writer is an agent published in the GitHub repository s977043/PlanGate (3 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 1,236 once invoked, about $0.0002 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.
spec-writer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| spec-writers977043/PlanGate | Agent | 3 | today | MIT | A | 57 | Claude Code |
| explorerai-driven-dev/framework | Agent | 589 | today | MIT | A | 35 | Claude Code |
| unit-test-writerstacklok/toolhive-registry-server | Agent | 32 | today | Apache-2.0 | A | 0 | Claude Code |
| arckit-gov-landscapetractorjuice/arc-kit | Agent | 2.3k | 5d ago | none | A | 320 | Claude Code |
| plan-creation-eng-leadQBall-Inc/the-bulwark | Agent | 9 | today | MIT | A | 48 | Claude Code |
| product-ideation-market-researcherQBall-Inc/the-bulwark | Agent | 9 | today | MIT | A | 64 | Claude Code |
| product-ideation-segment-analyzerQBall-Inc/the-bulwark | Agent | 9 | today | MIT | A | 63 | Claude Code |