Communitygithub.com

文档发现搜索

通过 llms.txt (context7.com) 标准搜索库/框架文档。适用于 API 文档、GitHub 仓库分析、技术文档查询及最新库特性。

文档发现搜索 是什么?

该技能利用 llms.txt 标准,通过脚本优先的方式实现文档发现。它自动处理 URL 构建、回退链和错误处理,无需手动构造 URL。支持主题特定搜索(最快 10-15 秒)、通用库搜索(30-60 秒)和仓库分析回退策略。通过 detect-topic.js、fetch-docs.js 和 analyze-llms-txt.js 三个零令牌开销脚本,能够分类查询类型、获取文档并推荐并行代理分配策略。适用于 Claude Code、Cursor、Codex 等支持脚本执行的 AI 代理平台,显著提升技术文档查询效率。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry/tree/HEAD/skills/analysis/docs-seeker-hoanghd218-landing-page-ai-kien-2

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

通过脚本进行文档发现

概述

脚本优先的文档发现方法,使用 llms.txt 标准。

执行脚本处理整个工作流程——无需手动构造 URL。

主要工作流程

始终按以下顺序执行脚本:

# 1. 检测查询类型(主题特定 vs 通用)
node scripts/detect-topic.js "<用户查询>"

# 2. 使用脚本输出获取文档
node scripts/fetch-docs.js "<用户查询>"

# 3. 分析结果(如果返回多个 URL)
cat llms.txt | node scripts/analyze-llms-txt.js -

脚本自动处理 URL 构建、回退链和错误处理。

脚本

detect-topic.js - 分类查询类型

  • 识别主题特定查询与通用查询
  • 提取库名 + 主题关键词
  • 返回 JSON:{topic, library, isTopicSpecific}
  • 零令牌执行

fetch-docs.js - 检索文档

  • 自动构建 context7.com URL
  • 处理回退链:主题 → 通用 → 错误
  • 输出 llms.txt 内容或错误信息
  • 零令牌执行

analyze-llms-txt.js - 处理 llms.txt

  • 对 URL 进行分类(关键 / 重要 / 补充)
  • 推荐代理分配策略(1 个代理、3 个代理、7 个代理、分阶段)
  • 返回包含策略的 JSON
  • 零令牌执行

工作流程参考

主题特定搜索 - 最快路径(10-15 秒)

通用库搜索 - 全面覆盖(30-60 秒)

仓库分析 - 回退策略

参考资料

context7-patterns.md - URL 模式、已知仓库

errors.md - 错误处理、回退策略

advanced.md - 边缘情况、版本管理、多语言

执行原则

  1. 脚本优先 - 执行脚本而非手动构造 URL
  2. 零令牌开销 - 脚本无需加载上下文即可运行
  3. 自动回退 - 脚本处理主题 → 通用 → 错误链
  4. 渐进式披露 - 仅在需要时加载工作流程/参考资料
  5. 代理分配 - 脚本推荐并行代理策略

快速开始

主题查询: “如何在 shadcn 中使用日期选择器?”

node scripts/detect-topic.js "<查询>"  # → {topic, library, isTopicSpecific}
node scripts/fetch-docs.js "<查询>"    # → 2-3 个 URL
# 使用 WebFetch 读取 URL

通用查询: “Next.js 的文档”

node scripts/detect-topic.js "<查询>"         # → {isTopicSpecific: false}
node scripts/fetch-docs.js "<查询>"           # → 8+ 个 URL
cat llms.txt | node scripts/analyze-llms-txt.js -  # → {totalUrls, distribution}
# 根据推荐部署代理

环境

脚本加载 .env:process.env > .claude/skills/docs-seeker/.env > .claude/skills/.env > .claude/.env

查看 .env.example 了解配置选项。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

majiayu000/claude-skill-registry

Builds, edit or validate Agent Skill through conversational discovery. Use when the user requests to "Create an Agent", "Optimize an Agent" or "Edit an Agent".

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

Analyzes current state and user query to answer BMad questions or recommend the next workflow or agent. Use when user says what should I do next, what do I do now, or asks a question about BMad

majiayu000/claude-skill-registry

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry

Portfolio allocation and rebalancing optimizer. Manages asset allocation across stocks/cash/bonds, performs periodic rebalancing, and ensures diversification according to market regime and risk tolerance.

majiayu000/claude-skill-registry

Create a hilarious and ultra-realistic video of an anthropomorphic animal acting like a human vlogger in a real-world setting.

majiayu000/claude-skill-registry

Speech-to-text transcription and translation via OpenAI Audio API -- models, response formats, timestamps, prompting, streaming, chunking, and diarization

majiayu000/claude-skill-registry

BlockRun works with Claude Code and Google Antigravity.

majiayu000/claude-skill-registry

This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.

majiayu000/claude-skill-registry

小省导购员数字人带货版即梦视频提示词生成系统,基于四大智能体协同(提示词生成师、质量管控师、知识库运维师、跨环节适配师),按照"主体+运动+场景+(镜头语言+光影+氛围)"公式输出中英文双版提示词,适配5s短视频。确保人物一致性、视觉连贯性、情绪连贯性,支持知识库智能复用和跨工具适配(Suno音乐、AI绘画),为数字人带货视频提供高质量提示词生成服务。

majiayu000/claude-skill-registry

Upload and manage files using Google Gemini File API via scripts/. Use for uploading images, audio, video, PDFs, and other files for use with Gemini models. Supports file upload, status checking, and file management. Triggers on "upload file", "file API", "upload image", "upload PDF", "upload video", "file management".

majiayu000/claude-skill-registry

CRITICAL: Use for MolyKit AI chat toolkit. Triggers on: BotClient, OpenAI, SSE streaming, AI chat, molykit, PlatformSend, spawn(), ThreadToken, cross-platform async, Chat widget, Messages, PromptInput, Avatar, LLM

majiayu000/claude-skill-registry

AI and machine learning workflow covering LLM application development, RAG implementation, agent architecture, ML pipelines, and AI-powered features.

majiayu000/claude-skill-registry

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

相关技能