Research Codebase 标志

Research Codebase

组织
modiqo
research-codebase

Document and explain the codebase as-is using parallel sub-agents. Use when the user asks to research, explore, map, document, or understand the codebase — including questions like 'how does X work', 'where is Y implemented', 'show me the architecture', 'what does this module do', or any request for codebase-level understanding. Also use when the user says /research_codebase. Even if the user's question seems simple, if it requires reading multiple files or understanding cross-component interactions, use this skill.

Add to TypingMind

概览

发布者modiqo
代码仓库skillspec
技能名称research-codebase
星标数
705
复刻数
43
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 modiqo 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Research Codebase AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/modiqo/skillspec/tree/main/.claude/skills/research-codebase/source
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/modiqo/skillspec.git /tmp/skillspec
mkdir -p .claude/skills
cp -r /tmp/skillspec/.claude/skills/research-codebase/source .claude/skills/research-codebase
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Research Codebase,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Research Codebase。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Research Codebase 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Research Codebase

Conduct comprehensive read-only research across the codebase by spawning parallel sub-agents and synthesizing their findings into a structured document.

Your only job: document what exists

  • DO NOT suggest improvements or changes unless explicitly asked
  • DO NOT perform root cause analysis unless explicitly asked
  • DO NOT propose enhancements, critique the implementation, or recommend refactoring
  • ONLY describe what exists, where it exists, how it works, and how components interact
  • You are creating a technical map of the existing system

When invoked without a query

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.

Research workflow

1. Read directly mentioned files first

If the user mentions specific files (docs, configs, TOML, JSON), read them FULLY before doing anything else. Use the Read tool without limit/offset parameters. Read these yourself in the main context — this ensures full context before decomposing the research.

2. Decompose the research question

  • Break the query into composable research areas
  • Think deeply about underlying patterns, connections, and architectural implications
  • Identify specific components, patterns, or concepts to investigate
  • Create a research plan with tasks to track subtasks
  • Pay special attention to Rust-specific structures: crates, modules, traits, impls, derive macros, feature flags

3. Spawn parallel sub-agents

Create multiple agents to research different aspects concurrently. Use the specialized agents:

Codebase research:

  • codebase-locator — find WHERE files and components live
    • Look for Cargo.toml, lib.rs, main.rs, mod.rs to understand crate/module structure
    • Search *.rs files, build.rs, .cargo/config.toml
  • codebase-analyzer — understand HOW specific code works (without critiquing it)
    • Focus on trait definitions, impl blocks, type aliases, error types, module hierarchies
  • codebase-pattern-finder — find examples of existing patterns (without evaluating them)
    • Look for builder pattern, newtype pattern, From/Into impls, error handling, async patterns

Web research (when external context helps):

  • web-search-researcher — external docs, crate docs, RFCs, blog posts
    • Spawn proactively when the topic involves external crates, Rust language features, or ecosystem patterns
    • Instruct them to return LINKS with findings — include those links in the final report

All agents are documentarians, not critics. They describe what exists without suggesting improvements.

Agent usage strategy:

  • Start with locator agents to find what exists
  • Then use analyzer agents on the most promising findings
  • Run multiple agents in parallel when searching for different things
  • Each agent knows its job — tell it what you're looking for, not how to search
  • Remind agents they are documenting, not evaluating

4. Synthesize findings

Wait for ALL sub-agents to complete before proceeding. Then:

  • Compile all results
  • Connect findings across crates, modules, and components
  • Include specific file paths and line numbers
  • Highlight patterns, connections, and architectural decisions
  • Answer the user's questions with concrete evidence
  • Document trait relationships, generic type parameters, and lifetime annotations where relevant

5. Generate research document

Structure the output as:

markdown
# Research: [Topic]

**Date**: [Current date]
**Git Commit**: [Current commit hash]
**Branch**: [Current branch]

## Research Question
[Original query]

## Summary
[High-level documentation answering the question by describing what exists]

## Crate & Module Structure
[Workspace layout, crate dependencies, module tree relevant to the research]

## Detailed Findings

### [Component/Area 1]
- Description of what exists (file.rs:line)
- How it connects to other components
- Current implementation details (without evaluation)
- Key traits, types, and impls involved

### [Component/Area 2]
...

## Code References
- `path/to/file.rs:123` — Description
- `another/module/mod.rs:45-67` — Description

## Architecture Documentation
[Current patterns, conventions, and design implementations]
- Error handling approach (thiserror, anyhow, custom Result types)
- Async runtime usage (tokio, async-std, etc.)
- Serialization patterns (serde derives, custom impls)
- Feature flag organization

## Open Questions
[Areas that need further investigation]

6. Add GitHub permalinks (if applicable)

  • Check if on main branch or if commit is pushed: git branch --show-current and git status
  • If on main/master or pushed, generate permalinks:
    • Get repo info: gh repo view --json owner,name
    • Format: https://github.com/{owner}/{repo}/blob/{commit}/{file}#L{line}
  • Replace local file references with permalinks

7. Present findings

  • Present a concise summary to the user
  • Include key file references for easy navigation
  • Ask if they have follow-up questions

8. Handle follow-ups

  • Append to the same research document under ## Follow-up Research [timestamp]
  • Spawn new sub-agents as needed

Important notes

  • Always use parallel agents to maximize efficiency and minimize context usage
  • Always run fresh research — never rely solely on existing documents
  • Focus on concrete file paths and line numbers
  • Research documents should be self-contained
  • Each sub-agent prompt should be focused on read-only documentation
  • Document cross-component connections
  • Link to GitHub when possible for permanent references
  • Keep the main agent focused on synthesis, not deep file reading
  • Sub-agents should document examples and usage patterns as they exist
  • Read mentioned files FULLY before spawning sub-tasks
  • Rust-specific:
    • Explore Cargo.toml and Cargo.lock for dependency graphs
    • Map out workspace members
    • Document pub visibility boundaries
    • Note #[cfg(...)] conditional compilation and feature gates
    • Track use imports for module dependency flow
    • Identify derive macros and proc macros in use
    • Document unsafe blocks and their safety invariants
    • Note FFI boundaries (extern "C", #[no_mangle])

常见问题

Research Codebase AI 技能有什么作用?

Document and explain the codebase as-is using parallel sub-agents. Use when the user asks to research, explore, map, document, or understand the codebase — including questions like 'how does X work', 'where is Y implemented', 'show me the architecture', 'what does this module do', or any request for codebase-level understanding. Also use when the user says /research_codebase. Even if the user's question seems simple, if it requires reading multiple files or understanding cross-component interactions, use this skill.

为什么在 TypingMind 中使用 Research Codebase?

因为您只需安装一次,就能搭配任何模型使用。Research Codebase 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Research Codebase?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/modiqo/skillspec/tree/main/.claude/skills/research-codebase/source。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Research Codebase?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Research Codebase 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Research Codebase 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Research Codebase AI 技能免费吗?

是的。modiqo 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇