Investigation Patterns

Guide codebase investigations with evidence collection and confidence assessment.

Updated Mar 15, 2025
One-click install
npx skills add https://github.com/yasushiasahi/nix-config --skill investigation-patterns-yasushiasahi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Investigation Patterns
Source: https://github.com/yasushiasahi/nix-config/tree/main/home-manager/agent-skills/skills/investigation-patterns
Command: npx skills add https://github.com/yasushiasahi/nix-config --skill investigation-patterns-yasushiasahi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured methodology for investigating codebases, analyzing implementations, finding patterns, and debugging issues, ensuring thoroughness and evidence-based conclusions.

Core Features & Use Cases

  • Systematic Investigation: Follows defined patterns for scope classification, source identification, and evidence collection.
  • Debugging Workflow: Implements a robust debugging process including reproduction, isolation, investigation, hypothesis, and fixing.
  • Confidence & Coverage Metrics: Rates the certainty and completeness of findings.
  • Use Case: When encountering a bug, this skill guides the AI through reproducing the issue, isolating the faulty component, gathering evidence from code and logs, forming hypotheses, and suggesting a fix, all while maintaining clear documentation of findings and confidence levels.

Quick Start

Use the Investigation Patterns skill to analyze the implementation of the user authentication module.

Frequently Asked Questions about Investigation Patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a systematic approach for codebase investigation and debugging?

Systematic code investigation involves classifying questions, identifying relevant sources, and collecting evidence to ensure evidence-based analysis with proper confidence assessment before proposing solutions.

How do I debug an issue using a structured investigation workflow?

Debugging systematically requires reproducing the issue, isolating the faulty component, investigating evidence, forming hypotheses, and applying fixes while maintaining clear documentation of findings and confidence levels.

How do I assess confidence and coverage when analyzing code?

Assessing confidence and coverage during code analysis involves rating the certainty of findings and the completeness of evidence gathered, ensuring thoroughness before completing the investigation.

Can I use Serena for evidence collection during troubleshooting?

Yes, you can use Serena as a tool for evidence collection during troubleshooting, gathering data from code and logs to form hypotheses and suggest fixes based on systematic investigation.

What's the best way to document findings during code analysis?

The best way to document code analysis findings is by providing file:line references, rating confidence and coverage, and ensuring the investigation is fully completed before proposing any solutions.