Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

research-codebase

БесплатноБез исполняемых скриптовНе проверен

"Conduct comprehensive codebase research using parallel sub-agents. **ALWAYS use when** the user asks to 'research', 'investigate', 'explore the codebase'…

coalesce-labsот coalesce-labs★ 20 звёзд на GitHub

Об этом скилле

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.

You are a documentarian, not a critic. Document what EXISTS without suggesting improvements, critiquing implementation, or proposing changes unless the user explicitly asks.

CRITICAL REQUIREMENTS — read these before doing anything else:

  1. You MUST save a research document to thoughts/shared/research/YYYY-MM-DD-description.md
  2. Do NOT save to memory, personal notes, or any other location
  3. Do NOT use the EnterPlanMode tool, create plans, or start implementing
  4. Your job ends when the research document is written and synced to thoughts/

Paths. Commands below name files inside this skill's own directory as ${CLAUDE_SKILL_DIR}/…. Claude Code fills that in. On any other harness, set CLAUDE_SKILL_DIR to the absolute directory that contains this SKILL.md before running them. If you cannot, stop and report skill_dir_unresolved.

Prerequisites

# Thoughts must exist for this skill's documents. CTL-2306: the full host setup check (daemon,
# registry, house rules) belongs to the setup-catalyst skill, not to a skill that must run anywhere.
-e thoughts/shared || echo "⚠️ thoughts/shared is missing in $(pwd) — run \`humanlayer thoughts init\` or the setup-catalyst skill; if the prompt names an output path, write there" >&2

Session Tracking

# Session tracking uses the installed catalyst-session CLI when this host has one; skipped otherwise.
SESSION_SCRIPT="$(command -v catalyst-session 2>/dev/null || true)"
if -n "$SESSION_SCRIPT"; then
  CATALYST_SESSION_ID=$("$SESSION_SCRIPT" start --skill "research-codebase" \
    --ticket "${TICKET_ID:-}" \
    --workflow "${CATALYST_SESSION_ID:-}")
  export CATALYST_SESSION_ID
fi

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.

Then wait for the user's research query.

Pull-Before-Read (CTL-1236)

Before the first thoughts read, fast-forward the HumanLayer thoughts checkouts so research picks up the freshest peer state. Fast-forward only and non-fatal; it runs through the installed thoughts-pull-sync CLI when this host has one and is skipped otherwise:

# Pull-before-read (CTL-1236): ff-only, non-fatal, host tooling — never a dependency of the research.
if command -v thoughts-pull-sync >/dev/null 2>&1; then thoughts-pull-sync >/dev/null 2>&1 || true; fi

Steps to Follow After Receiving the Research Query

Step 0: Orient with Serena (ALWAYS attempt this first)

Before reading files or spawning sub-agents, get a fast semantic map of the codebase from Serena — Catalyst's self-hosted, local code-understanding MCP (the DeepWiki replacement). This is free and usually answers "where does X live / how is Y wired" in one call instead of many Greps, so your sub-agent prompts come out specific rather than exploratory.

Prerequisite check — only do this if the mcp__serena__* tools are available (Serena MCP is installed). If they are not, skip straight to Step 1 — do not retry or warn the user.

  1. Activate the project so the language servers target this repo: mcp__serena__activate_project with the repo root (the current working directory, or .).
  2. Read the persisted orientation: mcp__serena__list_memories, then mcp__serena__read_memory("codebase_map") for the directory map and key concepts.
  3. Map the relevant area instead of broad grepping: mcp__serena__get_symbols_overview on a key file, mcp__serena__find_symbol to jump to a definition, and mcp__serena__find_referencing_symbols to see its callers.

Serena's results are a starting point — always verify against live code via the sub-agents below.

Step 1: Read any directly mentioned files first

  • If the user mentions specific files (tickets, docs, JSON), read them FULLY first
  • IMPORTANT: Use the Read tool WITHOUT limit/offset parameters to read entire files
  • CRITICAL: Read these files yourself in the main context before spawning any sub-tasks

Step 2: Analyze and decompose the research question

  • Break down the user's query into composable research areas
  • Think deeply about underlying patterns, connections, and architectural implications
  • Create a research plan using TodoWrite to track all subtasks
  • If a Linear ticket is provided, update it to the configured research state via Linearis CLI (from stateMap.research). Skip this when CATALYST_PHASE is set — under a phase agent or a relay session the coordinator owns the Linear status write-back, and a phase container holds no Linear credential. If Linearis CLI is not available, skip silently and continue research.

Step 3: Spawn parallel sub-agent tasks for com

Полный SKILL.md на GitHub

Установить research-codebase в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Grep
Glob
Task
TodoWrite
Bash
mcp__serena__activate_project
mcp__serena__list_memories
mcp__serena__read_memory
mcp__serena__get_symbols_overview
mcp__serena__find_symbol
mcp__serena__find_referencing_symbols
mcp__serena__search_for_pattern
mcp__serena__find_file
mcp__serena__list_dir

Вложенные файлы

agents/vendor.lock.jsonagents/vendor.yamlassets/agents/codebase-analyzer.mdassets/agents/codebase-locator.mdassets/agents/codebase-pattern-finder.mdassets/agents/external-research.mdassets/agents/thoughts-analyzer.mdassets/agents/thoughts-locator.md

FAQ

Что делает скилл research-codebase?

"Conduct comprehensive codebase research using parallel sub-agents. **ALWAYS use when** the user asks to 'research', 'investigate', 'explore the codebase', 'how does X work', 'find out about', or needs deep analysis of how existing code is structured. Produces a research document in thoughts/shared/research/ with file:line references."

Как установить скилл research-codebase?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл research-codebase запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить research-codebase с