investigate

investigate is a skill for Claude Code, Codex from leifericf/agentic-sdk. It costs 15 tokens per session (804 once invoked), scanned A, original, MIT.

An incident-investigation procedure that starts with alerts, logs, reports, or reproductions and traces a failure back to its root cause. It produces a blameless review and a follow-up plan.

In plain words
What is it for?
Use it to triage an incident, examine recent changes, rank possible causes, document reproduction steps, and define controls with owners and verification methods.
Why use it?
It separates symptoms from causes and turns an outage or defect into specific prevention and monitoring improvements.

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/leifericf/agentic-sdk/investigate
Any agent
npx skills add leifericf/agentic-sdk --skill investigate
Clone the repo
git clone --depth 1 https://github.com/leifericf/agentic-sdk

Made for: Claude Code, Codex.

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/leifericf/agentic-sdk/investigate.svg)](https://agentmods.dev/skills/leifericf/agentic-sdk/investigate)
Your own site
<a href="https://agentmods.dev/skills/leifericf/agentic-sdk/investigate"><img src="https://agentmods.dev/badge/skills/leifericf/agentic-sdk/investigate.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00015 $0.00804
Opus 5 $0.00008 $0.00402
Sonnet 5 $0.00003 $0.00161
Haiku 4.5 $0.00002 $0.00080

Measured 5d ago against content hash 5532985dbe59, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

skills/investigate/SKILL.md · 72 lines

How it starts

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

investigate

Role: the ops entry point. Takes an incident (alerts, logs, a failing behavior, a report) to a root-cause analysis, a blameless review, and a follow-up plan ready to enter the backlog.

Prerequisites

At least one of: a log excerpt or alert payload, a time window and environment, a reproduction, or an incident summary. ~/.agentic-sdk/<project>/project.edn and ~/.agentic-sdk/<project>/artifacts/ops/ exist (run bootstrap-project first).

Procedure

  1. Triage the signals. Dispatch triage-logs with the smallest useful packet: one alert or error, the timeframe, the environment. It separates symptoms from operator signals, assesses impact, checks recent changes, forms ranked hypotheses, and proposes reversible mitigations. It writes ops/<date>_triage_<slug>.md. Hold its one-line return.
  2. Trace the root cause. Dispatch analyze-root-cause against the triage artifact. It anchors on one precise failure mode, traces the causal chain back from failure to trigger, runs the technical deep dive (why tests and monitoring missed it), documents reproduction, and defines preventative controls (each with type, what it prevents, how to verify, owner). It writes ops/<date>_rca_<slug>.md. Hold its one-line return.
  3. Review the incident, blameless. Dispatch review-incident against the triage and the RCA. It establishes impact and detection, builds the timeline, documents the response, identifies contributing factors across product, technical, data, operational, and process dimensions, and defines action items (each with type: prevent, detect, or mitigate; owner; due date). It writes ops/<date>_incident_<slug>.md. Hold its one-line return.
  4. Draft the follow-up plan. From the three returns, compose the follow-up plan: the immediate fix (one fix-bug or implement-change item), the hardening tasks (the preventative controls from the RCA), the backlog items (the review's product or process action items), and the verification plan (the test or drill that proves the control works). Promote any architectural choice the investigation settles to an ADR via record-decision. Resolve open questions in open-questions.md.
  5. Present the gate. Show the maintainer the triage, RCA, and incident review paths plus the follow-up plan. The follow-up plan is the one approval gate. On approval, fix items hand to fix-bug (a single bug) or implement-change (a slice); backlog items enter the backlog via the normal planning cycle.

Read the full file on GitHub · 72 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. 5d ago First seen · 72 lines · 15 tokens per session scan A 5532985dbe59

Subscribe to this mod's changes

investigate is a skill published in the GitHub repository leifericf/agentic-sdk (5 stars, last pushed 3d ago), licensed MIT. It adds 15 tokens to every session and 804 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens