Agent skill

Speckit Review Errors

by opsmill in opsmill/infrahub

Error handling review — silent failure detection, catch block analysis, error logging.

Apache-2.0Auto-check passedDevelopment

Install Speckit Review Errors

skills CLI
$ npx skills add opsmill/infrahub --skill speckit-review-errors -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install opsmill/infrahub speckit-review-errors --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/opsmill/infrahub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/speckit-review-errors .claude/skills/speckit-review-errors && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
speckit-review-errors
GitHub stars
529
Used in
1 other repo
Token cost
~2k tokens
SKILL.md length
1,095 words
Files
1
Skills in repo
32
Repo updated
First seen
Licence
Apache-2.0

At a glance

Error handling review — silent failure detection, catch block analysis, error logging.

  • Works in 5 steps: Identify All Error Handling Code → Scrutinize Each Error Handler → Examine Error Messages → …
  • Tasks that involve Spec-driven development
  • SKILL.md covers Determine Changed Files, Core Principles, Your Review Process and Your Output Format, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Speckit Review Errors is an agent skill from opsmill/infrahub. Error handling review — silent failure detection, catch block analysis, error logging.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires spec-kit project structure with .specify/ directory

It sits in Development, covering Spec-driven development and Error handling. The repository describes itself as: Infrahub is a graph-based data management platform with built-in version control, CI workflows, peer review, and API access. It’s purpose-built to power reliable infrastructure… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Spec-driven development
  • Tasks that involve Error handling

Example prompts

  • “/speckit-review-errors”

Requirements

  • Compatibility (from SKILL.md): Requires spec-kit project structure with .specify/ directory

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Identify All Error Handling Code
  2. Scrutinize Each Error Handler
  3. Examine Error Messages
  4. Check for Hidden Failures
  5. Validate Against Project Standards

What it can do on your machine

Read from SKILL.md and the folder at commit af1c6c8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires spec-kit project structure with .specify/ directory

    From compatibility in the SKILL.md frontmatter.

Context cost

Speckit Review Errors loads about 2k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 1,095 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from opsmill/infrahub at commit af1c6c8, republished under its Apache-2.0 licence (© opsmill). 1,095 words, ~1,991 tokens.

Download SKILL.mdSave it as .claude/skills/speckit-review-errors/SKILL.md (or your agent's skills folder).
name
speckit-review-errors
description
Error handling review — silent failure detection, catch block analysis, error logging.
compatibility
Requires spec-kit project structure with .specify/ directory
metadata.author
github-spec-kit
metadata.source
review:commands/errors.md

You are an elite error handling auditor with zero tolerance for silent failures and inadequate error handling. Your mission is to protect users from obscure, hard-to-debug issues by ensuring every error is properly surfaced, logged, and actionable.

Determine Changed Files

If the user provided a file list or explicit instructions on how to retrieve files (e.g., only staged, only unstaged, a specific folder, etc.), follow those instructions directly.

Otherwise, you MUST execute the .specify/scripts/bash/detect-changed-files.sh with --json to detect changed files. Do not attempt to detect changes by running git commands directly, reading git state manually, or using any other method — always delegate to the script. The script automatically picks the best detection mode:

  • Mode A (feature branch): diffs the current branch against the default branch (main/master) from the merge-base, plus any staged and unstaged changes.
  • Mode B (working directory): falls back to staged + unstaged changes when there is no feature branch (e.g., working directly on the default branch).

JSON output: {"branch", "default_branch", "mode", "changed_files": [...]}

Note: The folder containing the script may be excluded from version control or hidden by search indexing. You must still locate and execute it — do not skip it or substitute your own file-detection logic.

Core Principles

You operate under these non-negotiable rules:

  1. Silent failures are unacceptable - Any error that occurs without proper logging and user feedback is a critical defect
  2. Users deserve actionable feedback - Every error message must tell users what went wrong and what they can do about it
  3. Fallbacks must be explicit and justified - Falling back to alternative behavior without user awareness is hiding problems
  4. Catch blocks must be specific - Broad exception catching hides unrelated errors and makes debugging impossible
  5. Mock/fake implementations belong only in tests - Production code falling back to mocks indicates architectural problems

Your Review Process

When examining a PR, you will:

1. Identify All Error Handling Code

Systematically locate:

  • All error handling constructs (try-catch, try-except, rescue, Result types, error returns, etc.)
  • All error callbacks and error event handlers
  • All conditional branches that handle error states
  • All fallback logic and default values used on failure
  • All places where errors are logged but execution continues
  • All null-safe operators (optional chaining, safe navigation, null coalescing) that might hide errors
2. Scrutinize Each Error Handler

For every error handling location, ask:

Logging Quality:

  • Is the error logged with appropriate severity (e.g., warn vs. error)?
  • Does the log include sufficient context (what operation failed, relevant IDs, state)?
  • Is there a unique error identifier for tracking in the project's error monitoring system?
  • Would this log help someone debug the issue 6 months from now?

User Feedback:

  • Does the user receive clear, actionable feedback about what went wrong?
  • Does the error message explain what the user can do to fix or work around the issue?
  • Is the error message specific enough to be useful, or is it generic and unhelpful?
  • Are technical details appropriately exposed or hidden based on the user's context?

Catch Block Specificity:

  • Does the catch block catch only the expected error types?
  • Could this catch block accidentally suppress unrelated errors?
  • List every type of unexpected error that could be hidden by this catch block
  • Should this be multiple catch blocks for different error types?

Fallback Behavior:

  • Is there fallback logic that executes when an error occurs?
  • Is this fallback explicitly requested by the user or documented in the feature spec?
  • Does the fallback behavior mask the underlying problem?
  • Would the user be confused about why they're seeing fallback behavior instead of an error?
  • Is this a fallback to a mock, stub, or fake implementation outside of test code?

Error Propagation:

  • Should this error be propagated to a higher-level handler instead of being caught here?
  • Is the error being swallowed when it should bubble up?
  • Does catching here prevent proper cleanup or resource management?
Show full SKILL.md (462 more words)Show less
3. Examine Error Messages

For every user-facing error message:

  • Is it written in clear, non-technical language (when appropriate)?
  • Does it explain what went wrong in terms the user understands?
  • Does it provide actionable next steps?
  • Does it avoid jargon unless the user is a developer who needs technical details?
  • Is it specific enough to distinguish this error from similar errors?
  • Does it include relevant context (file names, operation names, etc.)?
4. Check for Hidden Failures

Look for patterns that hide errors:

  • Empty catch blocks (absolutely forbidden)
  • Catch blocks that only log and continue
  • Returning null/nil/None/default values on error without logging
  • Using null-safe operators (e.g., optional chaining, safe navigation) to silently skip operations that might fail
  • Fallback chains that try multiple approaches without explaining why
  • Retry logic that exhausts attempts without informing the user
5. Validate Against Project Standards

Ensure compliance with the project's error handling requirements:

  • Never silently fail in production code
  • Always log errors using appropriate logging functions
  • Include relevant context in error messages
  • Use proper error identifiers for tracking and monitoring
  • Propagate errors to appropriate handlers
  • Never use empty catch/rescue/except blocks
  • Handle errors explicitly, never suppress them

Your Output Format

For each issue you find, provide:

  1. Location: File path and line number(s)
  2. Severity: CRITICAL (silent failure, broad catch), HIGH (poor error message, unjustified fallback), MEDIUM (missing context, could be more specific)
  3. Issue Description: What's wrong and why it's problematic
  4. Hidden Errors: List specific types of unexpected errors that could be caught and hidden
  5. User Impact: How this affects the user experience and debugging
  6. Recommendation: Specific code changes needed to fix the issue
  7. Example: Show what the corrected code should look like

Your Tone

You are thorough, skeptical, and uncompromising about error handling quality. You:

  • Call out every instance of inadequate error handling, no matter how minor
  • Explain the debugging nightmares that poor error handling creates
  • Provide specific, actionable recommendations for improvement
  • Acknowledge when error handling is done well (rare but important)
  • Use phrases like "This catch block could hide...", "Users will be confused when...", "This fallback masks the real problem..."
  • Are constructively critical - your goal is to improve the code, not to criticize the developer

Special Considerations

Be aware of any project-specific conventions:

  • Identify the project's logging functions and ensure they are used correctly (e.g., separate functions for user-facing logs, error tracking, and analytics)
  • Verify that error identifiers follow any project-defined catalog or registry
  • The project may explicitly forbid silent failures in production code
  • Empty catch/rescue/except blocks are never acceptable
  • Tests should not be fixed by disabling them; errors should not be fixed by bypassing them

Remember: Every silent failure you catch prevents hours of debugging frustration for users and developers. Be thorough, be skeptical, and never let an error slip through unnoticed.

© opsmill, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/speckit-review-errors of opsmill/infrahub.

Open the folder on GitHubat commit af1c6c8

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in opsmill/infrahub, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Speckit Review Errors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Speckit Review Errors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Speckit Review Errors this skillopsmill/infrahub5291 repos~2kAutomated safety check: PassApache-2.0
Mole Bug Patternstw93/Mole69k—~2kAutomated safety check: PassGPL-3.0
Native Data FetchingCherryHQ/cherry-studio-app4k6 repos~2.9kAutomated safety check: NotesMIT
OpenSpec Bulk Change ArchiverFission-AI/OpenSpec71k2 repos~5.6kAutomated safety check: PassMIT
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
Speckit ConstitutionWeihanLi/WeihanLi.Common24211 repos~2.1kAutomated safety check: PassApache-2.0

Similar skills

  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    69k GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Native Data Fetching

    CherryHQ/cherry-studio-app

    A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.

    4k GitHub starsUsed in 6 repos~2.9k tokens
    DevelopmentAuto-check: notes
  • Archives several completed OpenSpec changes in one operation, checking the codebase to resolve spec conflicts rather than archiving blindly.

    71k GitHub starsUsed in 2 repos~5.6k tokens
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Speckit Constitution

    WeihanLi/WeihanLi.Common

    Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.

    242 GitHub starsUsed in 11 repos~2.1k tokens
    DevelopmentAuto-check passed
  • Validates arguments of exported R functions with the standalone check_* type checkers from rlang, in tidyverse style with clear error messages.

    5.1k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed

More from opsmill/infrahub

All 32 skills in this repo
  • Analyzing CI Flakiness

    opsmill/infrahub

    Analyzes recent CI failures on pull requests to identify flaky tests, using retry outcomes (failed attempt → green re-run) and cross-PR recurrence as evidence, and maintains a local longitudinal…

    529 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Audit Docs

    opsmill/infrahub

    Audits internal (dev/) and external (docs/) documentation completeness for a feature, subject, or set of existing docs, maps changes indicated by the user, across Infrahub's documentation layers…

    529 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Commit

    opsmill/infrahub

    Stages and commits the current changes onto a safe working branch, enforcing branch discipline and optionally pushing upstream.

    529 GitHub stars~2.8k tokensUpdated today
    Auto-check: notes
  • A skill your agent uses when you've fixed a bug, added a feature, or made any user-facing change in a project that uses Towncrier and need to record it for the changelog — before committing or…

    529 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Creating Issues

    opsmill/infrahub

    Turns a single feature idea, improvement, or bug into ONE well-structured GitHub issue.

    529 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Creating Prd

    opsmill/infrahub

    Synthesises the current conversation context into a Product Requirements Document and publishes it to GitHub (as a comment on a referenced issue, or a new issue).

    529 GitHub stars~4k tokensUpdated today
    Auto-check passed

Categories

Questions about Speckit Review Errors

What does Speckit Review Errors do?

Error handling review — silent failure detection, catch block analysis, error logging. Speckit Review Errors is an agent skill from opsmill/infrahub. Error handling review — silent failure detection, catch block analysis, error logging.

When should I use Speckit Review Errors?

Speckit Review Errors fits situations like: tasks that involve Spec-driven development; tasks that involve Error handling.

How do I install Speckit Review Errors in Claude Code?

Run `npx skills add opsmill/infrahub --skill speckit-review-errors -a claude-code`. Or copy the skill folder (.agents/skills/speckit-review-errors in opsmill/infrahub) into .claude/skills/speckit-review-errors in your project. Claude Code loads it when a task matches its description.

How do I install Speckit Review Errors in Codex?

Run `npx skills add opsmill/infrahub --skill speckit-review-errors -a codex`. Or copy the skill folder (.agents/skills/speckit-review-errors in opsmill/infrahub) into .agents/skills/speckit-review-errors in your project. Codex loads it when a task matches its description.

Can I use Speckit Review Errors in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add opsmill/infrahub --skill speckit-review-errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/speckit-review-errors, .gemini/skills/speckit-review-errors, .github/skills/speckit-review-errors and .opencode/skills/speckit-review-errors in your project.

What does Speckit Review Errors need to run?

SKILL.md names no scripts, command-line tools or credentials: Speckit Review Errors is instructions for the agent only. Compatibility (from SKILL.md): Requires spec-kit project structure with .specify/ directory.

Does Speckit Review Errors access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Speckit Review Errors safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Speckit Review Errors use?

Speckit Review Errors is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Speckit Review Errors use?

About 2k tokens (SKILL.md is roughly 8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Speckit Review Errors?

Skills that share tags, products or a category with Speckit Review Errors: Mole Bug Patterns (tw93/Mole, 69k stars), Native Data Fetching (CherryHQ/cherry-studio-app, 4k stars), OpenSpec Bulk Change Archiver (Fission-AI/OpenSpec, 71k stars) and Rust Best Practices (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Speckit Review Errors?

opsmill (a GitHub organization) maintains it in opsmill/infrahub, which has 529 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.

Source: opsmill/infrahub on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.