Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

codebase-researcher代码库研究员

Agent Skill

codebase-researcher 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

336

周安装

14

GitHub Stars

公开资料未说明

下载量

112
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codebase-researcher(代码库研究员)
来源仓库:https://github.com/zpankz/mcp-skillset
仓库路径:skills/codebase-researcher
安装命令:
npx skills add zpankz/mcp-skillset --skill "codebase-researcher"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "codebase-researcher"

简介

用于发现并安装 AI 代理的技能。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。
  • 支持技能管理与扩展,增强代理功能覆盖范围。
  • 安装前请确认权限范围、维护状态及是否触发联网或文件读写。
  • codebase-researcher 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
codebase-researcher
description
Deep research skill for analyzing codebases systematically. Use when comprehensive codebase understanding is needed, particularly for new projects or when documenting architecture. This skill should be used when users request deep analysis, architecture documentation, or systematic codebase research starting from root-level directories.
license
MIT
allowed-tools
Read, Glob, Grep, Bash, list_files, list_code_definition_names, search_files

Codebase Researcher

Systematic deep research skill that analyzes codebases from the top level down, generating comprehensive knowledge about project structure, architecture, and implementation patterns.

Purpose

Conduct systematic research of codebases to:

  • Build comprehensive understanding of project architecture
  • Document key components and their relationships
  • Identify patterns, conventions, and best practices
  • Generate knowledge bases (SKILL.md, CLAUDE.md, references/)
  • Support onboarding and knowledge transfer

When to Use

Use this skill when:

  • Starting work on a new codebase
  • Documenting existing architecture
  • Creating CLAUDE.md or SKILL.md files
  • Performing comprehensive code audits
  • Building team knowledge bases

Research Methodology

Standard Deep Research Algorithm

The research process follows a hierarchical approach:

  1. Identify Root-Level Directories - List all significant folders, excluding common ignore patterns
  2. Spawn Specialized Subagents - Create one subagent per important directory
  3. Parallel Analysis - Each subagent analyzes its assigned directory deeply
  4. Aggregate Findings - Combine insights into cohesive documentation
  5. Generate Artifacts - Produce SKILL.md, CLAUDE.md, and references/

Directory Filtering

Automatically exclude from research:

  • node_modules/, venv/, .venv/, env/
  • dist/, build/, out/, .next/, target/
  • .git/, .svn/, .hg/
  • Hidden directories (starting with .) unless specifically relevant
  • __pycache__, *.egg-info

Include in research:

  • Source code directories (src/, lib/, app/)
  • Configuration directories (.roo/, .claude/, config/)
  • Documentation (docs/, specs/, architecture/)
  • Scripts and tooling (scripts/, tools/, cli/)
  • Tests (tests/, __tests__/, spec/)

Using the Slash Command

Execute deep research via the provided slash command:

/deep-research

This command will:

  1. Scan root-level directories
  2. Determine which directories are important
  3. Generate and execute a claude command with --agents flag
  4. Spawn one subagent per important directory
  5. Collect and synthesize findings

See scripts/deep_research.sh for implementation details.

Script Integration

Deep Research Script

The scripts/deep_research.sh script automates the research process:

Key Features:

  • Automatically filters ignored directories via .gitignore patterns
  • Dynamically generates subagents JSON for claude --agents
  • Spawns parallel analysis tasks
  • Aggregates results into structured output

Usage:

# From skill directory
./scripts/deep_research.sh [output_dir]

# From project root
./.roo/skills/codebase-researcher/scripts/deep_research.sh ./output

Subagent Generation

The script uses claude --agents to programmatically create specialized subagents:

{
  "cli-analyzer": {
    "description": "Analyze CLI directory structure and command patterns",
    "prompt": "You are an expert at analyzing CLI tooling. Examine the directory structure, identify command patterns, and document the architecture.",
    "tools": ["Read", "Glob", "Grep", "Bash"]
  },
  "skills-analyzer": {
    "description": "Analyze skills directory and documentation",
    "prompt": "You are an expert at analyzing Agent Skills. Examine skill structure, identify patterns, and document the skill ecosystem.",
    "tools": ["Read", "Glob", "Grep"]
  }
}

Output Structure

Research produces:

Primary Output: SKILL.md or CLAUDE.md

Contains:

  • Project overview and purpose
  • Architecture summary
  • Key directories and their roles
  • Important patterns and conventions
  • Getting started guidance

Supporting Output: references/

Detailed documentation organized by concern:

  • references/architecture.md - System architecture
  • references/directory_structure.md - Directory layout and purpose
  • references/patterns.md - Code patterns and conventions
  • references/dependencies.md - Dependency graph and relationships

Research Workflow

Phase 1: Discovery

# List root directories
ls -la

# Identify significant folders
find . -maxdepth 1 -type d ! -name ".*" ! -name "node_modules"

# Check for .gitignore patterns
cat .gitignore

Phase 2: Subagent Orchestration

For each important directory, generate a specialized subagent with:

  • Name: Derived from directory (e.g., "cli-analyzer", "docs-analyzer")
  • Description: Directory-specific research scope
  • Prompt: Tailored analysis instructions
  • Tools: Read, Glob, Grep, Bash (as needed)

Phase 3: Deep Analysis

Each subagent performs:

  1. Structure Mapping - Document file organization
  2. Code Analysis - Identify key functions, classes, modules
  3. Pattern Recognition - Find conventions and idioms
  4. Dependency Tracking - Map imports and relationships
  5. Documentation Review - Extract existing docs

Phase 4: Synthesis

Combine subagent findings into:

  • Unified architecture documentation
  • Cross-cutting concerns and patterns
  • Integration points and workflows
  • Knowledge base for future reference

Best Practices

Effective Research

  1. Start Broad, Go Deep - Begin with high-level overview, then drill into specifics
  2. Follow the Code - Trace execution paths and data flows
  3. Document Decisions - Capture why things are structured as they are
  4. Identify Gaps - Note missing documentation or unclear patterns
  5. Preserve Context - Link related components and explain relationships

Quality Criteria

Research output should:

  • Be accurate - Reflect actual code structure and behavior
  • Be comprehensive - Cover all significant components
  • Be actionable - Enable others to work with the codebase
  • Be maintainable - Update easily as code evolves
  • Be discoverable - Organized for easy navigation

Common Pitfalls

Avoid:

  • Overwhelming detail - Focus on significant patterns, not every line
  • Outdated documentation - Verify findings against current code
  • Isolated analysis - Show how components relate
  • Assumption-based docs - Confirm behavior through code inspection

Example Research Session

# 1. Execute deep research
/deep-research

# 2. Review generated subagent plan
#    The script will show which subagents will be created

# 3. Confirm execution
#    Claude runs research with specialized subagents

# 4. Review outputs
#    - CLAUDE.md or SKILL.md in project root
#    - references/ directory with detailed documentation

Integration with Existing Skills

This skill complements:

  • skill-creator - Use research findings to create specialized skills
  • spec-writer - Research informs specification documents
  • architecture - Deep analysis feeds architecture documentation

Technical Notes

Subagent Spawning

Uses Claude Code's --agents flag for programmatic subagent definition:

claude --agents '{
  "subagent-name": {
    "description": "What this subagent does",
    "prompt": "Detailed instructions",
    "tools": ["Read", "Grep", "Glob"],
    "model": "sonnet"
  }
}'

Headless Mode Integration

Can run non-interactively for automation:

claude -p "Perform deep research on this codebase" \
  --permission-mode plan \
  --output-format json

References

See also:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

26.22%
按下载量换算29

Claude Code

23.87%
按下载量换算27

windsurf

19.53%
按下载量换算22

Codex

13.62%
按下载量换算15

kiro-cli

8.21%
按下载量换算9

mcpjam

3.47%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add zpankz/mcp-skillset --skill "codebase-researcher" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills