plangate-setup

plangate-setup is a command for Claude Code from s977043/PlanGate. It costs 0 tokens per session (637 once invoked), scanned A, original, MIT.

A setup command for PlanGate, a workflow tool that checks whether a project follows required development rules. It can use the PlanGate command-line tool for automated checks, or fall back to a manual checklist when that tool is absent.

In plain words
What is it for?
Use it to prepare PlanGate in a project, check prerequisites, run its doctor checks when available, and understand which enforcement features need the CLI and hooks.
Why use it?
It separates checks that can run without the command-line tool from checks that require it, so users do not mistake an unverified setup for a verified one.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to prepare PlanGate in a project, check prerequisites, run its doctor checks when available, and understand which enforcement features need the CLI and hooks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/s977043/plangate/plangate-setup
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.

Clone the repo
git clone --depth 1 https://github.com/s977043/PlanGate

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 plangate-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/s977043/plangate/plangate-setup"><img src="https://agentmods.dev/badge/commands/s977043/plangate/plangate-setup.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 637 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.00637
Opus 5.5 $0.00000 $0.00255
Sonnet 5.5 $0.00000 $0.00127
Haiku 4.5 $0.00000 $0.00064

Measured 9d ago against content hash 9321d14242c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plangate-setup 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 9d 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/commands/plangate-setup.md · 51 lines

What it actually says

/plangate-setup

PlanGate の初期セットアップを対話的に実行する。

前提条件

plangate CLI が必要。Plugin単体にはCLIが含まれないため、未導入なら PlanGate clone を用意し PATH に追加する。

git clone https://github.com/s977043/plangate.git ~/plangate
export PATH="$HOME/plangate/bin:$PATH"

CLI 未導入時の degrade

CLI が無ければ doctor による機械検証は行わず、plangate-setup Skill の手動チェックへ degrade する。 未検証を doctor PASS と記録しない。

対象 project root(#962): #1497 以降、read-only doctor は --project-root → PLANGATE_PROJECT_ROOT → cwd git root → CLI root fallback の順で対象を決める。 PATH上の plangate を導入先repoの cwd から実行すれば、その導入先を検査する。 別repoは plangate --project-root <dir> doctor ... で明示する。 downstream doctor --fix は #1144 解決まで rc=2 / no-write。

CLI 必須 / 不要 の分離(#1144)

手順 CLI が利用可能 CLI が無い
2 / 4. doctor --json selected project root を検査 手動突合
settings タスクロック doctor --check-settings で read-only 検査 PASS 扱いにしない
TASK ID 解決 / Human操作提示 / status追記 CLI 不要 同左

CLI が利用できても hooks 自体は導入先へ配布されないため、doctor の wiring 検査と enforcement の 実在・発火を混同しない。

引数

なし(カレントディレクトリから TASK ID を動的解決する)。

起動

setup-coordinator Agent に委譲する。

Agent が以下を順に実行する:

  1. TASK ID 動的解決
  2. plangate doctor --json で不足項目を検知(上流リポジトリの cwd では bin/plangate doctor --json)
  3. Human-owned 操作の提示(実行はしない)
  4. ユーザー報告 → plangate doctor --json 再実行で実体検証
  5. status.md 末尾に完了サマリを追記

詳細仕様: docs/working/TASK-0107/contract-notes.md

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. 9d ago Changed · -10 lines 9321d14242c4
  2. 1mo ago First seen · 61 lines · 0 tokens per session scan A b0c29a81617b

Subscribe to this mod's changes

plangate-setup is a command published in the GitHub repository s977043/PlanGate (2 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 637 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.