Communitygithub.com

文件搜尋:透過 llms.txt 探索程式庫/框架文件

透過 llms.txt (context7.com) 搜尋程式庫/框架文件。用於 API 文件、GitHub 儲存庫分析、技術文件查詢及最新功能探索。

框架文件 是什麼?

此技能提供一個以腳本為核心的文件探索工作流程,基於 llms.txt 標準,自動處理網址建構、備援鏈與錯誤處理。它支援三種主要工作模式:特定主題查詢(最快,10-15 秒)、一般程式庫查詢(全面覆蓋,30-60 秒)以及儲存庫分析(備援策略)。腳本包含 detect-topic.js(分類查詢類型)、fetch-docs.js(檢索文件內容)及 analyze-llms-txt.js(分類與建議代理分佈策略)。此技能特別適合需要快速查找特定 API 使用、探索最新程式庫功能或進行 GitHub 儲存庫分析的開發者,支援多種平台與語言的技術文件。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

透過腳本探索文件

概述

以腳本為核心的文件探索,遵循 llms.txt 標準。

自動執行腳本處理完整工作流程,無需手動建構網址。

主要工作流程

請一律依此順序執行腳本:

# 1. 偵測查詢類型(特定主題 vs 一般)
node scripts/detect-topic.js "<使用者查詢>"

# 2. 使用腳本輸出擷取文件
node scripts/fetch-docs.js "<使用者查詢>"

# 3. 分析結果(若回傳多個網址)
cat llms.txt | node scripts/analyze-llms-txt.js -

腳本會自動處理網址建構、備援鏈與錯誤處理。

腳本

detect-topic.js - 分類查詢類型

  • 識別特定主題 vs 一般查詢
  • 擷取程式庫名稱 + 主題關鍵字
  • 回傳 JSON:{topic, library, isTopicSpecific}
  • 零 token 執行

fetch-docs.js - 檢索文件

  • 自動建構 context7.com 網址
  • 處理備援:主題 → 一般 → 錯誤
  • 輸出 llms.txt 內容或錯誤訊息
  • 零 token 執行

analyze-llms-txt.js - 處理 llms.txt

  • 分類網址(重要/次要/補充)
  • 建議代理分佈(1 個代理、3 個代理、7 個代理、分階段)
  • 回傳包含策略的 JSON
  • 零 token 執行

工作流程參考

特定主題搜尋 - 最快路徑(10-15 秒)

一般程式庫搜尋 - 全面覆蓋(30-60 秒)

儲存庫分析 - 備援策略

參考資料

context7-patterns.md - 網址模式、已知儲存庫

errors.md - 錯誤處理、備援策略

advanced.md - 邊緣情境、版本管理、多語言

執行原則

  1. 腳本優先 - 執行腳本而非手動建構網址
  2. 零 token 負擔 - 腳本執行無需載入上下文
  3. 自動備援 - 腳本處理主題 → 一般 → 錯誤鏈
  4. 漸進式揭露 - 僅在需要時載入工作流程/參考資料
  5. 代理分佈 - 腳本建議並行代理策略

快速開始

主題查詢:「How do I use date picker in shadcn?」

node scripts/detect-topic.js "<查詢>"  # → {topic, library, isTopicSpecific}
node scripts/fetch-docs.js "<查詢>"    # → 2-3 個網址
# 使用 WebFetch 讀取網址

一般查詢:「Documentation for Next.js」

node scripts/detect-topic.js "<查詢>"         # → {isTopicSpecific: false}
node scripts/fetch-docs.js "<查詢>"           # → 8+ 個網址
cat llms.txt | node scripts/analyze-llms-txt.js -  # → {totalUrls, distribution}
# 按建議部署代理

環境設定

腳本會載入 .env:process.env > .opencode/skills/docs-seeker/.env > .opencode/skills/.env > .opencode/.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".

相關技能