iterative-code-exploration

Explores unfamiliar codebases through iterative discover, evaluate, refine, and loop cycles.

Updated May 16, 2026
One-click install
npx skills add https://github.com/organvm-i-theoria/_agent-ontology --skill iterative-code-exploration-organvm-i-theoria
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: iterative-code-exploration
Source: https://github.com/organvm-i-theoria/_agent-ontology/tree/main/.agents/skills/iterative-code-exploration
Command: npx skills add https://github.com/organvm-i-theoria/_agent-ontology --skill iterative-code-exploration-organvm-i-theoria

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When facing an unfamiliar codebase, developers waste time reading everything, guessing file locations, or asking overly broad questions. This Skill provides a structured 4-phase loop (Discover, Evaluate, Refine, Loop) that progressively narrows context until the code is understood. ## Core Features & Use Cases - 4-Phase Iterative Loop: Discover entry points and structure, evaluate file relevance with a star-rating system, refine focus on key modules, and decide whether to loop again (max 3-4 cycles). - Task-Specific Workflows: Ready-made exploration paths for feature implementation, bug fixing, and refactoring, each with concrete grep/find/git commands. - Structured Output Template: Documents each iteration with findings, relevance ratings, knowledge gaps, and an evolving mental model. - Use Case: You join a project with a large TypeScript monorepo. Use this Skill to locate entry points, trace a feature end-to-end, and build a mental model within a few time-boxed iterations instead of reading every file. ## Quick Start Use the iterative code exploration skill to help me understand how authentication works in this repository.

Frequently Asked Questions about iterative-code-exploration

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

FAQPage Schema
How do I understand an unfamiliar codebase quickly?▼

Use an iterative loop: discover entry points and structure with find and tree, evaluate file relevance by reading READMEs and package manifests, refine by tracing specific modules and imports, then repeat up to 3-4 cycles until you can explain the main flows.

How to find where a function is defined or used in a repository?▼

Search for definitions with patterns like 'function name' or 'const X =', and find usages with grep -r "functionName(" across the source directory. For imports, search 'import.*X' to trace dependency direction.

What grep commands help explore a new codebase?▼

Useful patterns include grep -r for class and interface definitions, searching 'app.get' or '/api/' for endpoints, 'process.env' for environment variables, and 'TODO|FIXME' for known problem areas. Combine with find to locate entry points like main.* or index.* files.

When should I stop exploring a codebase and start coding?▼

Stop when you can explain the core logic, trace the main data flows, and feel confident making changes. The method caps exploration at 3-4 loop iterations; if key functionality remains unclear after that, narrow your scope to one feature instead of the whole system.

Does iterative exploration work for large monorepos?▼

Yes, but scope each loop to a single package or feature rather than the entire monorepo. Start with top-level configs and workspace manifests to map package boundaries, then apply middle-out feature tracing within the relevant package.