review-code

A code-review guide for the Inspecto monorepo, a single repository containing several related packages. It checks code against that project's architecture and rules.

In plain words
What is it for?
Use it to review an Inspecto file or package for code quality, architecture compliance, and implementation issues.
Why use it?
It helps identify broken package dependencies, misplaced logic, framework coupling, and other project-specific design problems.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/inspecto-dev/inspecto/review-code
Any agent
npx skills add inspecto-dev/inspecto --skill review-code
Clone the repo
git clone --depth 1 https://github.com/inspecto-dev/inspecto

Made for: Claude Code, Codex.

Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00159 $0.01479
Opus 5 $0.00079 $0.00740
Sonnet 5 $0.00032 $0.00296
Haiku 4.5 $0.00016 $0.00148

Measured 2d ago against content hash 40b06f3d93d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

review-code scanned grade A with 1 finding 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 2d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Server uses `portfinder` + `launch-ide` (not custom child_process port scanning)
.claude/skills/review-code/SKILL.md · 176 lines

How it starts

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

review-code — Inspecto Code Quality Review

You are performing a deep code quality review of a file or package in the inspecto monorepo. Your goal is to give the developer honest, specific, actionable feedback — not a rubber-stamp.

Project Architecture (reference model)

The intended dependency direction is strictly one-way:

@inspecto-dev/types          ← leaf, no internal deps
        ↓
@inspecto-dev/unplugin       ← build-time only, Node.js
        ↓
@inspecto-dev/core           ← browser runtime + server utils
        ↓
@inspecto-dev/react          ← thin React wrapper (peer: react)
@inspecto-dev/vue            ← thin Vue wrapper (peer: vue)
        ↓
@inspecto-dev/ide                    ← IDE extension (VS Code, Cursor, Trae) (CommonJS, Node.js)

Key architectural invariants to enforce:

  • core must never import from react, vue, or ide
  • types must never import from any other internal package
  • react and vue are thin wrappers — no inspector logic, just prop-passing
  • Web Component UI lives entirely in core/src/client/ — zero framework dependency
  • Transform layer uses MagicString (not @babel/generator) for source maps
  • Server uses portfinder + launch-ide (not custom child_process port scanning)
  • Attributes injected only when NODE_ENV !== 'production'

Review Dimensions

For the given file or package, evaluate each dimension thoroughly:

1. Architecture & Module Boundaries

  • Does the file import from packages it shouldn't depend on?
  • Is the file in the right package given its responsibility?
  • Does it introduce coupling between layers that should be independent?
  • Are side effects (server startup, DOM mutation, customElements.define) isolated correctly?

2. Implementation Quality

  • Are edge cases handled? (file not found, parse errors, empty input, Windows paths)
  • Are error paths explicit with structured error codes (not raw throw new Error('string'))?
  • No hardcoded magic values — ports, timeouts, attribute names should be constants/config
  • Is async/await used correctly? No floating Promises, no unhandled rejections
  • Are cleanup paths present? (event listeners removed, servers stopped, DOM elements removed)

Read the full file on GitHub · 176 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. 2d ago First seen · 176 lines · 159 tokens per session scan A 40b06f3d93d3

Subscribe to this mod's changes

review-code is a skill published in the GitHub repository inspecto-dev/inspecto (23 stars, last pushed 5d ago), licensed MIT. It adds 159 tokens to every session and 1,479 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

macos-test-triage

Triage macOS tests across Xcode and SwiftPM. Use when narrowing failures, explaining assertions or crashes, or separating setup from regressions.

robinebers/openusage · 36 tokens

macos-swiftpm

Build, run, and test SwiftPM macOS packages and executables. Use when the repo is package-first or has no Xcode project.

robinebers/openusage · 35 tokens

gsap-scrolltrigger

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is…

calesthio/OpenMontage · 68 tokens

gsap-core

Official GSAP skill for the core API — gsap.to(), from(), fromTo(), easing, duration, stagger, defaults, gsap.matchMedia() (responsive, prefers-reduced-motion). Use when the user asks for a JavaScript animation library, animation in React/Vue/vanilla, GSAP tweens, easing, basic animation, responsive or reduced-motion…

calesthio/OpenMontage · 128 tokens

comfyui

Use when working with ComfyUI workflows in OpenMontage, including comfyuiimage/comfyuivideo/comfyuimusic, custom workflowjson/workflowpath inputs, outputnode selection, missing model setup, LoRAs, low-VRAM workflow choices, and community workflow imports.

calesthio/OpenMontage · 61 tokens

lyria

Generate and validate music with Google Lyria 3 through the Gemini Interactions API. Use before calling OpenMontage googlemusic, designing Lyria 3 Clip or Pro prompts, using image-to-music or custom lyrics, choosing between Lyria 3 and Lyria RealTime, diagnosing Google music-generation failures, or preparing…

calesthio/OpenMontage · 76 tokens