docs-search
它能做什么
这个技能在代码库自动生成的文档中搜索函数签名、类、API 和注释。适合希望助手在编写代码前先检查正确写法的开发者。
适用场景
- ✓当开发者让助手在修改代码前查找某个函数或检查 API 的时候。
- ✓当一项改动需要先确认正确的签名或类定义的时候。
- ✓当有人想通过关键词查找代码库某部分文档的时候。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/docs-search/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在你修改任何内容之前,请先查找结账 API 的函数签名。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能在已索引的文档中按含义或精确关键词进行搜索,并可以获取某个结果的完整条目。文档必须先被索引。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AI Maestro Documentation Search
Search your codebase's auto-generated documentation for function signatures, class definitions, API docs, and code comments. Verify correct patterns before writing code. Part of the AI Maestro suite.
Prerequisites
Requires AI Maestro running locally with documentation indexed.
# Install doc tools
git clone https://github.com/23blocks-OS/ai-maestro-plugins.git
cd ai-maestro-plugins && ./install-doc-tools.sh
Core Behavior
Before implementing any code changes, search docs first:
Receive instruction -> Search docs -> Then implement
Commands
Search
| Command | Description |
|---|---|
docs-search.sh <query> |
Semantic documentation search |
docs-search.sh --keyword <term> |
Exact keyword matching |
docs-find-by-type.sh <type> |
Find by type (function, class, module) |
docs-get.sh <doc-id> |
Get full document content |
Index
| Command | Description |
|---|---|
docs-index.sh [path] |
Full index from project |
docs-index-delta.sh [path] |
Delta index (new/modified files only) |
docs-list.sh |
List all indexed documents |
docs-stats.sh |
Index statistics |
Document Types
| Type | Sources |
|---|---|
function |
JSDoc, RDoc, docstrings |
class |
Class-level comments |
module |
Module/namespace comments |
interface |
TypeScript interfaces |
component |
React/Vue component comments |
readme |
README files |
guide |
docs/ folder content |
Usage Examples
# Semantic search
docs-search.sh "authentication flow"
# Keyword search for specific identifier
docs-search.sh --keyword "UserController"
# Find all class documentation
docs-find-by-type.sh class
# Get full document details
docs-get.sh doc-abc123
# Index your codebase (first time)
docs-index.sh /path/to/project
# Update index after changes
docs-index-delta.sh
Full AI Maestro Experience
This skill is part of the AI Maestro platform, which provides 6 skills for AI agent orchestration: messaging, memory, docs, graph, planning, and agent management.
常见问题
它能找到哪些类型的文档?
它能找到函数、类和模块,内容来自 JSDoc 和 docstring 等文档注释。
我如何更新索引?
对项目运行索引工具,可以完整索引,也可以只针对已更改的文件。
它需要 AI Maestro 吗?
需要。它要求 AI Maestro 在本地运行,并已索引文档。
详情
作者的原始描述
Search auto-generated codebase documentation for function signatures, API docs, class definitions, and code comments. Use when the user asks to "search docs", "find documentation", "look up a function", "check the API", or before implementing changes to verify correct signatures and patterns.
热度
- GitHub 星标
- 33k
- 排名
- #8521
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
graph-query
33k让你的智能体查询代码依赖关系图,在编辑代码之前找到调用者、相关组件以及一项改动的影响范围。