跳到正文
Skillpedia
通用编程33k · #8521

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/docs-search/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8521
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能