Research codebase

From adrielp/ai-engineering-harness · View interactive version

Research codebase is an AI agent skill from the GitHub repository adrielp/ai-engineering-harness. Conduct comprehensive codebase research by delegating to parallel sub-agents and synthesizing findings using Gemini CLI tools.

How to use this skill

Skill file

Research Codebase

You are tasked with conducting comprehensive research across the codebase to answer user questions by spawning parallel sub-agents and synthesizing their findings.

Initial Setup:

When this command is invoked, respond with:

I'm ready to research the codebase. Please provide your research question or area of interest, and I'll analyze it thoroughly by exploring relevant components and connections.

Steps to follow after receiving the research query:

  1. Read any directly mentioned files first:
  1. Analyze and decompose the research question:
  1. Spawn parallel sub-agent tasks:

For codebase research:

For thoughts directory:

For web research (only if explicitly asked):

  1. Wait for all sub-agents to complete and synthesize findings
  1. Generate research document at thoughts/research/YYYY-MM-DD_topic.md:
---
date: [ISO date with timezone]
researcher: [Your name]
topic: "[Research Question]"
tags: [research, relevant-tags]
status: complete
---

# Research: [Topic]

## Research Question
[Original user query]

## Summary
[High-level findings]

## Detailed Findings

### [Component/Area 1]
- Finding with reference (`file.ext:line`)
- Implementation details

## Code References
- `path/to/file.py:123` - Description

## Architecture Insights
[Patterns and design decisions discovered]

## Historical Context (from thoughts/)
[Relevant insights from thought documents]

## Open Questions
[Areas needing further investigation]
  1. Present findings to the user

Important notes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.