substrate: Skill for Claude Code

.agents/skills/post-draft-review/SKILL.md

post-draft-review is a skill for Claude Code, Codex from agent-substrate/substrate. It costs 72 tokens per session (2,850 once invoked), scanned A, original, Apache-2.0.

A GitHub code-review workflow that records findings as pending inline comments. Pending comments are visible to the reviewer but are not published to the pull-request author until a person submits the review.

In plain words
What is it for?
Use it to place specific review comments on changed lines while leaving the overall summary and final submission to a human.
Why use it?
It lets a human edit, approve, or discard the findings before they are sent, rather than publishing review comments immediately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

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

About the project

Agent Substrate is a runtime system for running many isolated applications or AI agents on shared computing infrastructure. It manages agent sandboxes throughout their lifecycle, places them on available workers, and routes traffic to them while using technologies such as Kubernetes, microVMs, and gVisor. Its catalogue skills and instructions support operating and developing workflows around this agent runtime.

agent-substrate/substrate · 5,957 stars · on GitHub · ate.dev

Reuse

Borrowing it

Nothing to install: this file belongs to agent-substrate/substrate. 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/agent-substrate/substrate/main/.agents/skills/post-draft-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/agent-substrate/substrate

Made for: Claude Code, Codex.

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 post-draft-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/agent-substrate/substrate/post-draft-review/github.svg)](https://agentmods.dev/skills/agent-substrate/substrate/post-draft-review)
Your own site
<a href="https://agentmods.dev/skills/agent-substrate/substrate/post-draft-review"><img src="https://agentmods.dev/badge/skills/agent-substrate/substrate/post-draft-review/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 post-draft-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/agent-substrate/substrate/post-draft-review"><img src="https://agentmods.dev/badge/skills/agent-substrate/substrate/post-draft-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,850 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.00072 $0.02850
Opus 5.5 $0.00029 $0.01140
Sonnet 5.5 $0.00014 $0.00570
Haiku 4.5 $0.00007 $0.00285

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

Security

Grade A, and why

post-draft-review 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 14d 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.

.agents/skills/post-draft-review/SKILL.md · 231 lines

How it starts

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

Post Draft Review Comments

A "draft review" on GitHub is a review left in the PENDING state. It is visible only to its author, accumulating comments, until the author explicitly submits (publishes) or discards it.

Findings go in as pending inline comments rather than individually published comments, so a human reviews them before anything reaches the PR author.

gh pr review can not create one — it always submits immediately (--approve / --comment / --request-changes). To stay in draft, hit the REST API: POST .../reviews with no event field creates the review PENDING rather than submitting it.

Inline comments only — the human authors the summary

Contribute inline comments only, created with an empty body (body: ""). The top-level summary is written by the human in the UI's "Finish your review" box when they submit. Rationale:

  • The high-level overview (praise, verdict, framing) is the human's voice, not the agent's.
  • The UI's summary box does not prefill an API-set body, so an agent-authored body is silently dropped on UI submit anyway, and can't be restored afterwards: PUT on a submitted review with an empty body is rejected with 422. An empty body sidesteps the whole failure mode.
  • Don't smuggle summary-level content into an inline comment. Top-level content anchored to a code line is poor UX for the reader.

Anything with no inline anchor — what was checked and found clean, issues in files outside the diff — goes in the chat hand-off, for the human to draw on when they write the summary.

Disclose that an agent found it

Each inline finding leads with :robot: followed by the bolded severity name and color (e.g. 🤖 **should-fix** 🟡 – …) to mark it as an AI finding. Keep it generic: don't name the agent, vendor, or model. Disclose only that an agent was involved. The human who finishes the review is accountable for what gets submitted.

Keep it tight

Bias toward brevity. A human reads this, then decides. Concretely:

Read the full file on GitHub · 231 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago Changed d24a2b235bb4
  2. 1mo ago First seen · 231 lines · 72 tokens per session scan A b511b6f46370

Subscribe to this mod's changes

post-draft-review is a skill published in the GitHub repository agent-substrate/substrate (5,957 stars, last pushed today), licensed Apache-2.0. It adds 72 tokens to every session and 2,850 once invoked, about $0.0003 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-22.

Related

Other skills, from other repositories