Communitygithub.com

文档发现脚本技能

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

文档发现脚本技能 是什么?

该技能通过执行本地Node.js脚本,利用llms.txt标准高效发现并处理软件文档。其核心工作流包括三个脚本:detect-topic.js用于分类查询类型(区分主题特定或一般查询),fetch-docs.js自动构建context7.com URL并处理回退链,analyze-llms-txt.js对获取的文档URL进行优先级排序并建议智能体分发策略。支持在所有基于llms.txt的平台运行,如Claude Code、Cursor、Codex等AI编码助手和智能体环境。技能专注于零令牌开销和自动化错误处理,通过脚本优先的原则,让用户快速获取文档而无需手动构造URL。对于主题特定查询,可在10-15秒内返回2-3个关键URL;对于一般查询,则返回8+个URL并自动推荐最适合的并行智能体分发方案(如单智能体、三智能体或七智能体)。此外还提供详细的工作流文档和参考资源,帮助用户应对边缘情况、版本控制和多语言文档需求。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry-data/tree/HEAD/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 — 分类查询类型

  • 识别主题特定 vs 一般查询
  • 提取库名 + 主题关键词
  • 返回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-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

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-data

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-data

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-data

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-data

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-data

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

majiayu000/claude-skill-registry-data

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-data

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

majiayu000/claude-skill-registry-data

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-data

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-data

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-data

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

majiayu000/claude-skill-registry-data

Conduct domain and industry research. Use when the user says "lets create a research report on [domain or industry]

majiayu000/claude-skill-registry-data

Conduct market research on competition and customers. Use when the user says "create a market research report about [business idea]".

majiayu000/claude-skill-registry-data

Conduct technical research on technologies and architecture. Use when the user says "create a technical research report on [topic]".

majiayu000/claude-skill-registry-data

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".

相关技能