PlanGate: Instructions file for Claude Code

CLAUDE.md

PlanGate CLAUDE.md is an instructions file for Claude Code from s977043/PlanGate. It costs 2,861 tokens per session, scanned A, original, MIT.

A repository-specific instruction set for PlanGate, a project workflow that uses plans, rules, checks, and AI-agent handoffs.

In plain words
What is it for?
Use it when working on the PlanGate repository with Claude Code or Codex, especially for planning, validation, hooks, and agent delegation.
Why use it?
It tells coding agents which project documents and safeguards to follow, reducing incorrect references and skipped workflow checks.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is s977043/PlanGate's own configuration. It tells Claude Code how to work on PlanGate 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 PlanGate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to s977043/PlanGate. 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/s977043/PlanGate/main/CLAUDE.md
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 CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/s977043/plangate/claude-md"><img src="https://agentmods.dev/badge/instructions/s977043/plangate/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,861 This file is loaded in full into every session.
When invoked 2,861 The same file — it is already loaded in full.
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.02861 $0.02861
Opus 5 $0.01430 $0.01430
Sonnet 5 $0.00572 $0.00572
Haiku 4.5 $0.00286 $0.00286

Measured today against content hash a90193bc6513, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

PlanGate CLAUDE.md 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 today.

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.md · 67 lines

How it starts

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

CLAUDE.md

実行契約: docs/ai/core-contract.md(Iron Law / Stop rules / Output discipline の正本) プロジェクトルール: docs/ai/project-rules.md(必読、AI 運用 4 原則の正本)

Claude Code 固有参照

  • エージェント / コマンド / スキル: .claude/agents/ / .claude/commands/ / .claude/skills/
  • 運用ルール: .claude/rules/(hybrid-architecture 等は常時。orchestrator-mode は親 PBI 分解時のみ参照)
  • 共有スキル: .agents/skills/(Codex CLI と共用)
  • ワークフロー詳細: docs/ai-driven-development.md / Orchestrator: docs/orchestrator-mode.md
  • サブエージェント委譲プロトコル: docs/ai/subagent-delegation/README.md(派遣プロンプト必須8要素 / OUTCOME契約 / 行動規範 / PlanGateフロー接続。既存の C-3/C-4 ゲートおよび orchestrator-mode の Gate 不変条件は変更しない)

v8.21.0 参照解決順とガード迂回の是正(最新リリース機能)

最新リリース: v8.21.0(2026-08-19)v8.20.0 タグ以降に main へ蓄積した 62 コミットを反映(実測: git rev-list --count v8.20.0..375c791)。主題は 「参照はあるが解決されない」「ガードはあるが迂回できる」構造の実測是正。主要変更: skill の参照解決順から構造上必ず空振りする plugin root 段を除去(#954。最終 PR #1158 だけで 41 ファイル。docs/**sync-plugin-plangate.sh の設計上 plugin の配布対象外のため常に解決されない手順だった)・不在 rules 参照の張り替えと正本宣言の 4 root 統一(#1123/#1125/#1126/#1127)・EH-3 の Hardening Override 迂回の解消(#1089。PLANGATE_HOOK_TASK 設定下では HO 9 カテゴリすべてが block されず、PlanGate 作業中のセッションこそ保護が外れていた。適用済みのため tests/fixtures/eh3-known-gap-1089.flag は削除)・EH-13 承認トークンガードの迂回 2 クラス封鎖(#1115 の外側ゲート ワイルドカード迂回=実測 21 コマンドが素通り / #1110 のリダイレクト相関判定。fail-closed は不変)・C-1 セルフレビュー項目数を実体(全 25 項目)へ是正(#960)・クラス A(rules 参照)の解決梯子を 4 skill + ai-loop 正本 5 本と plugin 生成物へ追加(#1159/#954)・sh 誤起動から gh pr merge / gh pr review --approve が実際に走る経路の封鎖(#1169 / PR #1175・#1187。隔離 sandbox 実測で gh 12 回 + git 3 回発火 → 是正後 0 件。scripts/ 直下 27 本 + scripts/ai-loop/ 30 本 + 配布ミラー 30 本に polyglot ガードを適用し、sh/bash/zsh 起動は exit 2NO MERGE BY AI に関わる是正で、plugin 配布物にも入る)・plugin 配布 allowlist を実体照合し配布漏れ 2 件を是正(#1173 / PR #1185)。schemas/*.json / bin/plangate は変更ゼロ(Schema / CLI の挙動は不変)。EH-3 / EH-13 の block 強化は scripts/hooks/ を配線している利用者に影響(plugin 配布物には含まれない)が、sh 誤起動ガードは plugin 配布物にも入る(該当 .pysh で起動していた手順は exit 2 で止まる)。semver は規約 §2.2 上 major の材料を含むが Human 裁定で minor(経緯は docs/working/_merge/v8.21.0-release-runbook.md §1)。PlanGate 本番フロー WF-00〜07 は不変・NO MERGE BY AI/C-4・merge は Human-owned 固定。リリース履歴の正本は CHANGELOG.md

Read the full file on GitHub · 67 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. today Changed · +20 lines · +464 tokens per session a90193bc6513
  2. 7d ago First seen · 47 lines · 2,397 tokens per session scan A 9755d4ef78eb

Subscribe to this mod's changes

PlanGate CLAUDE.md is an instructions file published in the GitHub repository s977043/PlanGate (2 stars, last pushed today), licensed MIT. It adds 2,861 tokens to every session, about $0.0143 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-09-03.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens