PlanGate 決定論的 GC 判定

PlanGate 決定論的 GC 判定 is a skill for Claude Code from s977043/river-review. It costs 49 tokens per session (4,342 once invoked), scanned A, original, MIT.

A rule-based checker that decides whether stored files, logs, and other review records should be kept or removed. It applies retention limits and safety exceptions to a supplied file list.

In plain words
What is it for?
It helps review tools classify old or oversized artifacts before a cleanup command removes them.
Why use it?
It makes cleanup decisions consistent and predictable, while stopping when required information is missing. It does not scan or delete files itself.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 139 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit It helps review tools classify old or oversized artifacts before a cleanup command removes them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/plangate-gc-deterministic
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.

Any agent
npx skills add s977043/river-review --skill plangate-gc-deterministic
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 139 skills, 18 commands, 5 agents, 3 hooks.

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 決定論的 GC 判定

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/plangate-gc-deterministic/github.svg)](https://agentmods.dev/skills/s977043/river-review/plangate-gc-deterministic)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/plangate-gc-deterministic"><img src="https://agentmods.dev/badge/skills/s977043/river-review/plangate-gc-deterministic/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 決定論的 GC 判定

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/plangate-gc-deterministic"><img src="https://agentmods.dev/badge/skills/s977043/river-review/plangate-gc-deterministic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,342 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.00049 $0.04342
Opus 5.5 $0.00020 $0.01737
Sonnet 5.5 $0.00010 $0.00868
Haiku 4.5 $0.00005 $0.00434

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

Security

Grade A, and why

PlanGate 決定論的 GC 判定 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.

skills/upstream/plangate-gc-deterministic/SKILL.md · 181 lines

How it starts

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

Pattern declaration

Primary pattern: Reviewer Secondary patterns: Inversion Why: river gc から呼び出され、retention 設定・hard guards・excludes を基準に artifact inventory を突き合わせて決定論的に KEEP/REMOVE を出力する照合型 skill。必須入力が欠ければ実行を止めるゲート(Inversion)も担う。

Goal / 目的

  • river gc CLI が供給する file inventory(path / sizeBytes / mtimeEpoch)と retention 設定・hard guards・excludes から、各パスを KEEP または REMOVE に決定論的に分類する。
  • REMOVE と判定したエントリには、根拠となったルール名(age / count / size)を 1 つだけ紐付け、river gc の JSON 出力 removed[] にそのまま流せる形で返す。
  • 下流(river gc の削除実行段)が retention policy を再現可能に適用できるよう、判定順序とタイブレークを固定する。

Non-goals / 扱わないこと

  • ファイルシステムの走査(inventory 生成は CLI 側の責務)。このスキルは渡された inventory だけを評価する。
  • 実際の削除操作(副作用は river gc --force の実行段で行う)。
  • retention 値そのものの妥当性判断(--retention-days / --max-entries / --max-size-mb の設計は pages/reference/cli-gc-spec.md と CLI に委ねる)。
  • review / midstream / downstream 観点の品質指摘(GC 専任)。
  • PlanGate 固有のディレクトリ構成や内部コマンドへの依存判定(pages/reference/artifact-input-contract.md に従い artifact-driven で判断)。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。

  • 入力 inventory { "paths": [...], "scope": "..." } が存在し、paths が空でない
  • 各 paths[] 要素に path / sizeBytes / mtimeEpoch が揃っている
  • retention 設定 { "days": N, "maxEntries": N, "maxSizeMb": N } のすべてのキーが数値として与えられている
  • 基準時刻 now が epoch 秒として明示的に与えられている(呼び出し時刻へのフォールバックは決定論を破るため禁止)

ゲート不成立時の出力: NO_REVIEW: plangate-gc-deterministic — inventory / retention config が不足

Gate と抑制条件の違い:

  • Gate = 入力不足で判定ロジック自体が成立しないので実行しない。
  • 抑制条件 = 実行した上で個別の指摘を黙らせる。

False-positive guards / 抑制条件

  • hardGuards に列挙された single-source ファイル(例: .river/memory/index.json、artifacts/evals/latest、schema 本体)は、どの retention policy にヒットしても REMOVE に分類しない。removed[] には一切現れない。
  • --exclude glob に一致したパスも同様に常に KEEP とし、removed[] には現れない。
  • scope に該当しないパス(呼び出し側が誤って混入させた場合)は判定対象から外す。混入そのものは warning としても良いが、再現性を崩さないため severity は据え置く。
  • inventory が同一スコープの異なる粒度(ファイル / ディレクトリ)を混在して渡してきた場合、ディレクトリは判定対象から外し、ファイル単位のみで評価する。

Read the full file on GitHub · 181 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. 1mo ago First seen · 181 lines · 49 tokens per session scan A 0e2e573ca602

Subscribe to this mod's changes

PlanGate 決定論的 GC 判定 is a skill published in the GitHub repository s977043/river-review (7 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 4,342 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-09-03.

Related

Other skills, from other repositories

logic-review

Find logic bugs in a single file or function via semi-formal execution tracing (Premises → Trace → Divergence → Trigger → Remedy). Trigger when a user shares code and suspects something is wrong without naming a concrete failure — phrases like "review this", "does this look right", "check this function", "audit this…

hyhmrright/logic-lens · 161 tokens

logic-health

Sweep a directory, module, or full codebase for logic correctness and produce a scored health dashboard with systemic patterns. Trigger when the user requests a health view — "audit the whole codebase", "health check", "health overview", "logic health overview", "audit src/", "audit auth and payments modules", "where…

hyhmrright/logic-lens · 180 tokens

run-iteration-eval

Run the Logic-Lens content-eval pipeline for one iteration and produce a scored summary.json — use to measure a skill change. Wraps scripts/run-content-evals.sh (runner, costs tokens) and scripts/grade-iteration.py (grader, free, re-runnable). ALWAYS sync the plugin cache first. Use when the user wants to "run the…

hyhmrright/logic-lens · 108 tokens

sync-skill-cache

Sync the Logic-Lens working-copy skills/ into the installed plugin cache so content-evals test the EDITED skill, not the last published one. ALWAYS run this after editing any skills//SKILL.md or guide/shared file and BEFORE running content-evals — otherwise the eval silently grades stale content and every token is…

hyhmrright/logic-lens · 103 tokens

bump-version

Bump the Logic-Lens version across all six metadata locations at once (package.json, the four plugin manifests, and the README badge), then validate. Use when cutting a release or when npm run validate reports a version mismatch.

hyhmrright/logic-lens · 52 tokens

init

Opt-in onboarding for the mARC agent team. Scaffolds a per-repo team binding so the team graduates from ephemeral session-memory to persistent, versioned config — without ever writing a file silently. Discovers the repo's org/repo/ project at runtime via gh, prefills {{ agentsdir }}/team.toml, and (optionally) a lean…

NexaDuo/mARC · 122 tokens