resource-review

resource-review is a skill for Claude Code, Codex from photostructure/coding-skills. It costs 157 tokens per session (3,379 once invoked), scanned A, original, MIT.

A code-review skill for finding provable memory and resource-safety defects in modern C and C++ code, including Node.js native add-ons. It checks how objects and resources are created, used, and released.

In plain words
What is it for?
Use it to review C/C++ code, investigate segmentation faults and memory leaks, and check native Node.js add-ons for concrete lifetime, ownership, and concurrency errors.
Why use it?
It helps identify real causes of leaks, crashes, use-after-free errors, double frees, buffer overflows, and data races without treating every missing safety setting as a bug.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Part of the cpp plugin — 2 skills, 1 agent shipped together

Good fit Use it to review C/C++ code, investigate segmentation faults and memory leaks, and check native Node.js add-ons for concrete lifetime, ownership, and concurrency errors.

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

Made for: Claude Code, Codex.

Or install cpp, the plugin that ships this one along with the rest of its 2 skills, 1 agent.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/photostructure/coding-skills/resource-review"><img src="https://agentmods.dev/badge/skills/photostructure/coding-skills/resource-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,379 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.00157 $0.03379
Opus 5.5 $0.00063 $0.01352
Sonnet 5.5 $0.00031 $0.00676
Haiku 4.5 $0.00016 $0.00338

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

Security

Grade A, and why

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

plugins/cpp/skills/resource-review/SKILL.md · 240 lines

How it starts

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

C/C++ Resource & Memory Review

Leaf-mode guard

If the task identifies your role as leaf-reviewer or sets delegation-budget: 0, read and follow references/validation-pass.md, validate only the supplied candidates, return the verdicts to the caller, and stop before the full workflow below.

Identify provable memory- and resource-safety defects in modern C/C++ (C++17), including Node.js native addons built with node-gyp and node-addon-api. Reason about object lifetimes and resource ownership the way an AddressSanitizer report would — then report only what you can back with concrete proof. Signal over noise.

This skill finds defects (a leak, a use-after-free, a race that actually exists). For "is this project set up with the right hardening flags, sanitizers, CI, and conventions?" use the project-setup skill, which assesses preventive controls, not exploitable bugs. A missing hardening flag is not a defect; a heap-buffer-overflow is.

Scope

In scope: C and C++ translation units (.c/.cc/.cpp/.cxx/.h/.hpp), especially Node.js native addons (Napi::ObjectWrap, AsyncWorker, ThreadSafeFunction, finalizers), the C ABI boundary between C++ and C libraries, and the binding.gyp defines that change runtime behavior.

Out of scope: the surrounding JavaScript/TypeScript (defer to the web-security-review skill), and pure build-hardening/convention gaps (defer to the project-setup skill).

Report vs. research — the prime directive

  • Report on: only the file, diff, or path the user asked about.
  • Research: the entire module to establish the facts — who allocates, who frees, which thread touches what, when a destructor or finalizer actually runs, and what the C library's ownership contract says.

A native defect is almost never visible in one function. Trace the allocation to its free, the handle to its close, the pointer to the object's real lifetime, and the napi_value to the call that created it. Never report on pattern-match alone.

Read the full file on GitHub · 240 lines

Files

What ships with it

8 files 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. 3mo ago First seen · 240 lines · 157 tokens per session scan A 2c0b8c4e67ca

Subscribe to this mod's changes

resource-review is a skill published in the GitHub repository photostructure/coding-skills (5 stars, last pushed 14d ago), licensed MIT. It adds 157 tokens to every session and 3,379 once invoked, about $0.0006 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-08-31.

Related

resource-review compared with skills from other repositories

resource-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
resource-reviewphotostructure/coding-skillsSkill514d agoMITA157Claude Code, Codex
github-pr-reviewfvadicamo/dev-agent-skillsSkill722mo agoMITA95Claude Code
github-pr-creationfvadicamo/dev-agent-skillsSkill722mo agoMITA75Claude Code
refactoring-patternswondelai/skillsSkill2.8ktodayMITA125Claude Code, Codex
auditoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA35Claude Code
boundariesoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA33Claude Code
triageoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA32Claude Code