investigate

Gather read-only facts about files, dependencies, and patterns in a codebase.

14|1|Updated Jun 14, 2026
One-click install
npx skills add https://github.com/allemaar/open-skills --skill investigate-allemaar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: investigate
Source: https://github.com/allemaar/open-skills/tree/main/skills/investigate
Command: npx skills add https://github.com/allemaar/open-skills --skill investigate-allemaar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Before changing code, developers need to understand how a codebase works, but ad-hoc exploration often misses dependencies, conventions, and constraints. This Skill provides a structured, read-only investigation workflow that produces a complete fact report without touching any files. ## Core Features & Use Cases - Phased Fact-Gathering: Loads context from entrypoints, discovers patterns via grep and import-chain tracing, and reports findings in three clear phases. - Structured Fact Report: Outputs files found, patterns used, dependencies in both directions, and constraints discovered, always with concrete file paths. - Read-Only Guarantee: Explicitly forbidden from creating plans, writing code, or refactoring, making it safe to run before any decision. - Use Case: Before refactoring a payment module, run an investigation to map every file involved, trace its call sites, and surface locked APIs or shared types that constrain the change. ## Quick Start Ask the agent to investigate how the authentication flow works in this repository and list all files and dependencies involved.

Frequently Asked Questions about investigate

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

FAQPage Schema
How do I explore an unfamiliar codebase before making changes?

Run a read-only investigation that parses your query, lists the target directory structure, reads entrypoints like package.json and README, then greps for usages and follows import chains. The result is a structured fact report with file paths, patterns, and dependencies.

How to map dependencies between files in a repository?

Search for the functions or components in question, follow their call sites and import chains, and record both what the area depends on and what depends on it. The investigation report lists these dependencies explicitly with concrete file paths.

Can codebase investigation modify my files?

No. This investigation protocol is strictly read-only: it must not create plans, write code, or refactor anything. It only reads files, searches for patterns, and reports facts.

What should a codebase investigation report include?

A useful report includes files found with full paths, architectural patterns in play, dependencies in both directions, and constraints discovered such as locked APIs, shared types, and existing conventions that would limit future implementation.

When should I investigate before planning a code change?

Investigate whenever you need established facts before deciding, such as understanding how something works or identifying what files are involved. Once facts are gathered, you can hand the findings to a planning step to build a phased implementation plan.