agent-review

agent-review is a skill for Claude Code from treasure-data/td-skills. It costs 81 tokens per session (2,252 once invoked), scanned A, original, Apache-2.0.

A review process for checking an agent’s AGENTS.md file and assessing whether the agent matches its intended purpose.

In plain words
What is it for?
Use it to validate an agent’s format and review its behaviour against a user’s goals.
Why use it?
It can reveal structural problems and quality issues before the agent is activated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions AGENTS.md.

Part of the treasure-work-skills plugin — 3 skills shipped together

Good fit Use it to validate an agent’s format and review its behaviour against a user’s goals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/treasure-data/td-skills/agent-review
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 treasure-data/td-skills --skill agent-review
Clone the repo
git clone --depth 1 https://github.com/treasure-data/td-skills

Made for: Claude Code.

Or install treasure-work-skills, the plugin that ships this one along with the rest of its 3 skills.

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 agent-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/treasure-data/td-skills/agent-review"><img src="https://agentmods.dev/badge/skills/treasure-data/td-skills/agent-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,252 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.00081 $0.02252
Opus 5.5 $0.00032 $0.00901
Sonnet 5.5 $0.00016 $0.00450
Haiku 4.5 $0.00008 $0.00225

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

Security

Grade A, and why

agent-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 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.

treasure-work-skills/agent-review/SKILL.md · 146 lines

How it starts

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

Agent Review

Review an agent's AGENTS.md by running two parallel sub-agent checks via TaskCreate:

  1. Structure check — frontmatter schema, body coherence, schedule validity, permission completeness
  2. Quality check — does the agent fulfil the user's intent?

Workflow

  1. Ask the user which agent to review (or infer from context).
  2. Locate the agent:
    • Global: ~/.treasure-work/agents/{name}/AGENTS.md
    • Workspace: {workspace}/agents/{name}/AGENTS.md
    • Use agent_get if the path / scope is unclear.
  3. Fetch the agent's frontmatter + body via agent_get { name }.
  4. (Optional, for agents that have already run) fetch the most recent run via chat_read to look for execution issues that surface only at run time.
  5. Launch both checks in parallel using TaskCreate.
  6. Collect with TaskGet and present a unified report.

Step 1: Fetch the Agent

agent_get { name: "<agent-name>" }

Returns the parsed frontmatter (full WorkspaceAgentFrontmatter shape) and the markdown body.

Step 2: Launch Parallel Checks

Use TaskCreate to spawn both sub-agents simultaneously.

Sub-agent 1: Structure Check

TaskCreate with prompt:
"Review this agent's AGENTS.md for structural correctness against the WorkspaceAgentFrontmatter schema.

Frontmatter (parsed):
{paste frontmatter JSON}

Body (system prompt):
{paste body}

Check the following — PASS / FAIL with a specific fix instruction on failure:

1. `name` is lowercase alphanumeric with hyphens / underscores, ≤64 chars. Matches the directory name.
2. `status` is one of: draft / active / paused / resting. Warn if the agent has `schedule:` set but `status: draft` (it will never auto-fire — that's intentional during testing, but flag it before activation).
3. `color` (if set) is one of: blue / cyan / green / yellow / red / magenta.
4. If `schedule` is set: valid 5-field cron expression, ≥5-minute granularity. Warn if `status: active` but `schedule:` is empty (scheduled lifecycle without a schedule), or vice versa.
5. `model` (if set) is a current Claude model id (e.g. claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5).
6. `timeout` is between 1 and 3600 seconds. `max_turns` is a positive integer.
7. `allowed_tools` entries match the tool-name pattern `^[a-zA-Z0-9_\\-.:*]+$`. Every tool referenced in the body (e.g. `Bash`, `Write`, `slack_post_message`, `td_query`) is present in `allowed_tools` — unless `allowed_tools` is omitted entirely (which means 'allow all'; flag that as an intentional but notable choice).
8. Short tool names only — no `mcp__work__` prefixes in `allowed_tools`.
9. `skills` (max 20) and `guides` (max 20) — entries look like real skill / guide ids.
10. `notify.on_success` / `notify.on_failure` use `slack:channel-name` or `slack:dm` format exactly (no 'DM', no 'direct message', no '#' prefix).
11. No Slack channels or notification targets hardcoded in the body — they belong in `notify.*`.
12. Body is non-empty and reads as a system prompt (second-person instructions to the agent, not a third-person task description).
13. If `output.note: true` or `goal` is set, the agent must be a workspace agent (these fields are ignored for global agents).
14. Workspace-only fields (`goal`, `skill`, `output`) absent from global agents.
15. No deprecated Schedule-era fields present: `cron`, `enabled`, `context.max_turns/timeout/autonomous`, `permissions`, `permissions.allow`. If found, instruct the user to migrate (`cron` → `schedule`, `enabled: true` → `status: active`, `context.*` → top-level, `permissions.allow` → `allowed_tools`).
16. No references to retired files in the body: `TASK.md`, `schedule.yaml`, `results/{run_id}/output.md`, `metadata.json`. Past-run inspection now happens via `chat_read`.

Report: PASS / FAIL per item, with a concrete fix (e.g. \"call `agent_update { name: 'X', allowed_tools: [..., 'Bash'] }`\") on every failure."

Read the full file on GitHub · 146 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. 3mo ago First seen · 146 lines · 81 tokens per session scan A 6eddf1db598d

Subscribe to this mod's changes

agent-review is a skill published in the GitHub repository treasure-data/td-skills (23 stars, last pushed today), licensed Apache-2.0. It adds 81 tokens to every session and 2,252 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-03.

Related

agent-review compared with skills from other repositories

agent-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-reviewtreasure-data/td-skillsSkill23todayApache-2.0A81Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code