investigate

investigate is a skill for Claude Code from hamzaPixl/pixl-ai. It costs 52 tokens per session (1,424 once invoked), scanned A, original, MIT.

A structured debugging workflow that reproduces a failure, investigates its root cause, forms a hypothesis, and then applies a fix. It requires a regression test, which checks that the same bug does not return.

In plain words
What is it for?
Use it to investigate broken features, failing tests, and unclear errors through reproducible evidence and a targeted correction.
Why use it?
It prevents fixing symptoms before understanding why the problem occurred.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pixl-crew plugin — 93 skills, 14 agents, 6 hooks shipped together

Good fit Use it to investigate broken features, failing tests, and unclear errors through reproducible evidence and a targeted correction.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzapixl/pixl-ai/investigate
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 hamzaPixl/pixl-ai --skill investigate
Clone the repo
git clone --depth 1 https://github.com/hamzaPixl/pixl-ai

Made for: Claude Code.

Or install pixl-crew, the plugin that ships this one along with the rest of its 93 skills, 14 agents, 6 hooks.

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 investigate

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzapixl/pixl-ai/investigate"><img src="https://agentmods.dev/badge/skills/hamzapixl/pixl-ai/investigate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,424 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.00052 $0.01424
Opus 5.5 $0.00021 $0.00570
Sonnet 5.5 $0.00010 $0.00285
Haiku 4.5 $0.00005 $0.00142

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

Security

Grade A, and why

investigate 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 1mo 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.

packages/crew/skills/investigate/SKILL.md · 139 lines

How it starts

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

Overview

Structured debugging that enforces investigation before fixing. Inspired by the "3-strike rule" — you must understand the root cause before writing any fix. Every fix requires a regression test.

How this differs from other skills:

  • /runbook — live incident response for production systems. This skill is for code-level debugging.
  • /self-review-fix-loop — iterative review-and-fix loop for open changes. This skill starts from a symptom and traces to root cause.
  • /test-runner — runs tests. This skill debugs WHY tests (or features) fail.

Phase 1: Reproduce (Read-Only)

Goal: Confirm the bug exists and define the exact failure condition.

  1. Capture the symptom: What exactly is failing? Error message, unexpected behavior, test failure?
  2. Reproduce reliably: Find the minimal steps to trigger the bug
    • Run the failing test: pytest <file>::<test> -v --tb=long or vitest run <file> -t "<test>"
    • Or reproduce manually via the described steps
  3. Define the contract: What SHOULD happen vs what DOES happen?
  4. Scope the blast radius: Is this isolated or does it affect other areas?

Output:

SYMPTOM: <exact error or unexpected behavior>
REPRODUCTION: <minimal steps to trigger>
EXPECTED: <what should happen>
ACTUAL: <what does happen>
SCOPE: <isolated | cross-cutting | unknown>

Do NOT write any fixes yet. Phase 1 is strictly read-only.

Phase 2: Diagnose (Read-Only)

Goal: Narrow to a single root cause. Follow the evidence, not assumptions.

Diagnostic Ladder

Work through in order — stop when you find the root cause:

  1. Read the error: Parse the full stack trace. What line, what function, what input?
  2. Trace the data flow: Follow the input from entry point to failure point
    • Use Grep to find callers: grep -r "functionName" --include="*.ts"
    • Read each file in the call chain
  3. Check recent changes: git log --oneline -20 -- <affected-files> and git diff HEAD~5 -- <affected-files>
  4. Compare working vs broken: If it worked before, what changed? git bisect if needed
  5. Check dependencies: Version changes, config changes, environment differences
  6. Inspect state: Add temporary logging or use debugger to inspect runtime values

Read the full file on GitHub · 139 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. 1mo ago First seen · 139 lines · 52 tokens per session scan A 2a239f4ee905

Subscribe to this mod's changes

investigate is a skill published in the GitHub repository hamzaPixl/pixl-ai (2 stars, last pushed 6mo ago), licensed MIT. It adds 52 tokens to every session and 1,424 once invoked, about $0.0002 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.