docs-lookup
When you need framework or API documentation, search across 10 pre-indexed platforms using semantic vector search. Returns relevant documentation chunks with source URLs — no web scraping needed.
When to Activate
Use this skill when:
- - You need to look up how a specific API or framework feature works
- A user asks about Cloudflare Workers, Stripe, Anthropic, OpenAI, or other indexed platform APIs
- You are writing code that uses an indexed platform and need accurate, current docs
- You need the exact parameter names, types, or behavior for an API call
- A user references a framework feature you are uncertain about
Do NOT use for: platforms not in the indexed list, general programming questions unrelated to specific APIs, or topics covered by your training data with high confidence.
Indexed Platforms
| Platform | ID | What's covered |
|---|
| Cloudflare Workers | INLINECODE0 | Workers API, KV, D1, Durable Objects, R2, Queues |
| Stripe API |
stripe-api | Payment intents, subscriptions, webhooks, Connect |
| Anthropic API |
anthropic-api | Messages API, tool use, streaming, vision |
| OpenAI API |
openai-api | Chat completions, assistants, embeddings, function calling |
| Next.js |
nextjs | App router, server components, data fetching, middleware |
| Tailwind CSS |
tailwindcss | Utility classes, configuration, plugins, responsive design |
| HTMX |
htmx | Attributes, extensions, events, server-side patterns |
| Shopify Admin GraphQL |
shopify-admin-graphql | Products, orders, customers, metafields, bulk operations |
| x402 Protocol |
x402 | Payment flow, EIP-3009, facilitators, discovery |
| Jesse |
jesse | Trading strategies, indicators, backtesting, live trading |
Workflow
Step 1: Identify the platform
Match the user's question to one of the 10 indexed platforms. If the platform isn't indexed, say so and fall back to your training knowledge.
Step 2: Semantic search
HTTP:
CODEBLOCK0
Optional parameters:
- -
category — filter by doc section (e.g., "api-reference", "guides") - INLINECODE11 — number of results (default 5, max 20)
Step 3: Direct page lookup (if you know the page)
CODEBLOCK1
Step 4: Use the results
- - Cite source URLs — each result includes the original documentation URL
- Use
relevance_score — results above 0.85 are strong matches; below 0.7, treat as supplementary - Combine chunks — multiple results may cover different aspects of the same topic
- Fall back gracefully — if no good results, say "I couldn't find specific docs on this" rather than guessing
Response Format
CODEBLOCK2
Browsing available platforms
CODEBLOCK3
Request new platform indexing
CODEBLOCK4
Data Handling
This skill sends search queries (short text strings) to an external API. No documents, file contents, or user data are transmitted. Queries are not stored beyond the immediate response.
Pricing
- - Free tier: GET /platforms, GET /schema (platform listing)
- Paid tier: $0.003/query, $0.002/lookup via x402 protocol (USDC on Base)
Privacy
No authentication required for free endpoints. Query content is not stored. Rate limiting uses IP hashing only.
docs-lookup
当您需要框架或API文档时,可通过语义向量搜索在10个预索引平台中进行检索。返回包含源URL的相关文档片段——无需网络爬取。
激活时机
在以下情况使用此技能:
- - 需要查询特定API或框架功能的工作原理
- 用户询问关于Cloudflare Workers、Stripe、Anthropic、OpenAI或其他已索引平台API的问题
- 编写使用已索引平台的代码,需要准确、最新的文档
- 需要API调用的精确参数名称、类型或行为
- 用户提及您不确定的框架功能
请勿用于: 未在索引列表中的平台、与特定API无关的通用编程问题,或您的训练数据已高度覆盖的主题。
已索引平台
| 平台 | ID | 覆盖内容 |
|---|
| Cloudflare Workers | cloudflare-workers | Workers API、KV、D1、Durable Objects、R2、Queues |
| Stripe API |
stripe-api | 支付意图、订阅、Webhooks、Connect |
| Anthropic API | anthropic-api | Messages API、工具使用、流式传输、视觉 |
| OpenAI API | openai-api | 聊天补全、助手、嵌入、函数调用 |
| Next.js | nextjs | 应用路由器、服务端组件、数据获取、中间件 |
| Tailwind CSS | tailwindcss | 工具类、配置、插件、响应式设计 |
| HTMX | htmx | 属性、扩展、事件、服务端模式 |
| Shopify Admin GraphQL | shopify-admin-graphql | 产品、订单、客户、元字段、批量操作 |
| x402协议 | x402 | 支付流程、EIP-3009、促进器、发现 |
| Jesse | jesse | 交易策略、指标、回测、实盘交易 |
工作流程
步骤1:识别平台
将用户问题匹配到10个已索引平台之一。如果平台未索引,请说明并回退到您的训练知识。
步骤2:语义搜索
HTTP:
bash
curl -X POST https://docs.agentutil.net/v1/query \
-H Content-Type: application/json \
-d {platform: cloudflare-workers, query: 如何绑定KV命名空间}
可选参数:
- - category — 按文档章节筛选(例如api-reference、guides)
- max_chunks — 结果数量(默认5,最大20)
步骤3:直接页面查找(如果您知道页面)
bash
curl -X POST https://docs.agentutil.net/v1/lookup \
-H Content-Type: application/json \
-d {platform: stripe-api, page: create-payment-intent}
步骤4:使用结果
- - 引用源URL — 每个结果包含原始文档URL
- 使用relevance_score — 0.85以上的结果为强匹配;低于0.7则视为补充信息
- 合并片段 — 多个结果可能覆盖同一主题的不同方面
- 优雅回退 — 如果没有好的结果,请说我找不到关于此问题的具体文档,而不是猜测
响应格式
json
{
platform: cloudflare-workers,
results: [
{
content: 要将KV命名空间绑定到您的Worker...,
source_url: https://developers.cloudflare.com/workers/runtime-apis/kv/,
page_title: KV绑定,
relevance_score: 0.92
}
],
chunks_returned: 3,
request_id: abc-123,
service: https://docs.agentutil.net
}
浏览可用平台
bash
curl https://docs.agentutil.net/platforms
请求新平台索引
bash
curl -X POST https://docs.agentutil.net/v1/request \
-H Content-Type: application/json \
-d {platform: fastapi, reason: 流行的Python框架}
数据处理
此技能将搜索查询(短文本字符串)发送到外部API。不会传输任何文档、文件内容或用户数据。查询不会在即时响应之外存储。
定价
- - 免费层: GET /platforms、GET /schema(平台列表)
- 付费层: $0.003/查询、$0.002/查找(通过x402协议,Base链上的USDC)
隐私
免费端点无需身份验证。查询内容不存储。限流仅使用IP哈希。