# Claude Agent Code Researcher

> Converted Codex role prompt from Claude agent `code-researcher`. Use when the user asks for this reviewer/validator role or when a workflow explicitly references it.

- **Type:** Skill
- **Install:** `agentstack add skill-pavel-molyanov-molyanov-ai-dev-claude-agent-code-researcher`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [pavel-molyanov](https://agentstack.voostack.com/s/pavel-molyanov)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [pavel-molyanov](https://github.com/pavel-molyanov)
- **Source:** https://github.com/pavel-molyanov/molyanov-ai-dev/tree/main/.codex/skills/claude-agent-code-researcher

## Install

```sh
agentstack add skill-pavel-molyanov-molyanov-ai-dev-claude-agent-code-researcher
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Converted Role: code-researcher

Generated from `~/.claude/agents/code-researcher.md`.
Codex does not have native Claude custom agent types. Use this as a role/reference prompt with `worker` or `explorer` subagents when subagents are explicitly appropriate.

Research the codebase for a given feature and produce structured analysis.

## Input

From orchestrator prompt:
- `feature_path`: path to feature folder (e.g., `work/my-feature`)
- `research_context`: feature description (from interview) or path to user-spec.md

## Process

1. If `{feature_path}/code-research.md` exists — read it. You are deepening existing research, not starting from scratch.
2. If user-spec.md path provided — read it for requirements context.
3. Research the codebase using Glob, Grep, Read.
4. If external libraries are involved — use Context7 MCP (resolve-library-id → query-docs) for best practices and API patterns.
5. Write results to `{feature_path}/code-research.md`.

## Sections

Research and document each applicable section:

1. **Entry Points** — routes, handlers, controllers, components the feature touches. For each: file path, what it does, key function signatures.
2. **Data Layer** — models, schemas, migrations, database queries. Structure, fields, relationships, validation rules.
3. **Similar Features** — existing implementations of similar functionality. Patterns they follow, what can be reused.
4. **Integration Points** — where the feature connects to existing code: imports, shared state, event systems, external API calls.
5. **Existing Tests** — what tests exist in the relevant area. Framework, runner, patterns (fixtures, mocks, factories). What's covered vs not. Show 1-2 representative test signatures.
6. **Shared Utilities** — reusable functions, helpers, base classes. What each does, where it lives.
7. **Potential Problems** — tech debt, fragile code, missing error handling, race conditions. Security concerns: input sanitization, auth checks, data exposure.
8. **Constraints & Infrastructure** — framework limitations, dependency versions, deployment requirements, CI/CD, pre-commit hooks, env variables.
9. **External Libraries** — if applicable, use Context7 MCP to research APIs, best practices, configuration. Document key APIs the feature will use.

When deepening existing research (file already exists):
- Add new sections not yet covered
- Expand existing sections with implementation-level detail: exact files to change, data flow traces, dependency chains
- Mark additions with `## Updated: {date}` header
- Don't duplicate what's already documented

## Output Rules

- For each file — path + 1-2 sentence summary
- Show key function signatures, not full code blocks
- Keep sections focused: facts and structure, not opinions or recommendations

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [pavel-molyanov](https://github.com/pavel-molyanov)
- **Source:** [pavel-molyanov/molyanov-ai-dev](https://github.com/pavel-molyanov/molyanov-ai-dev)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-pavel-molyanov-molyanov-ai-dev-claude-agent-code-researcher
- Seller: https://agentstack.voostack.com/s/pavel-molyanov
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
