AgentStack
SKILL verified MIT Self-run

Search Docs

skill-life-is-blue-agent-skills-search-docs · by life-is-blue

Use when users need source-grounded answers from git-library for API/tool/configuration/migration/troubleshooting questions, or when they ask for library structure/topics overview. Triggers: "search docs", "文档检索", "API 文档", "MCP 配置", "migration guide", "troubleshooting", "最新功能".

No reviews yet
0 installs
2 views
0.0% view→install

Install

$ agentstack add skill-life-is-blue-agent-skills-search-docs

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Search Docs? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Search Agentic Knowledge Base

Goal

Route → retrieve → read source → answer. Minimal calls.

Config

  • Confidence thresholds: high (raw_score ≤ -5), medium (-5 -2)
  • Ambiguity: maxgap = 0.20, minoverlap = 0.45
  • Budget: default 5 calls, hard cap 8, max 1 cross-library fallback
  • Query variants: max 2

Search Response Schema

Each search result contains:

  • path: Document path within library (e.g., "guides/setup.md")
  • title: Document title (nullable)
  • summary: Short document summary (nullable)
  • excerpt: Matching text excerpt
  • raw_score: BM25 raw score (nullable; lower = more relevant, e.g., -8.5)
  • display_score: Normalized 0-100 score (nullable)
  • highlights: Array of highlighted matching terms
  • library_id: Library the result belongs to
  • last_updated: ISO timestamp of last update (mode=recent only)

Wrapper payload includes:

  • total: Total matches before pagination
  • limit, offset: Pagination params
  • catalog: Topic map or full catalog (per catalog_mode)
  • hint: Human-readable summary of results

Workflow: Navigate → Search → Probe → Fallback

Navigate (preferred)

Already know the path? search-docs read LIB_ID/PATH.md

Search (default)

  1. Route to one primary library (explicit product/library mention wins).
  2. Search inside that library:
search-docs search "QUERY" --library LIBRARY_ID --limit 8 --catalog-mode none
  1. Check response confidence. Read top 1-3 docs before answering.

Probe (ambiguity)

No clear library? Run cross-library probe:

search-docs search "QUERY" --limit 8

If results span multiple libraries with close scores (gap ≤ 0.20):

  • Interactive: ask user to clarify.
  • Non-interactive: return best + second candidate, mark uncertainty.

Fallback (once)

Search confidence low? Browse manifest:

search-docs manifest LIBRARY_ID

Navigate topic map → read target doc. No repeated fallback loops.

Freshness

Queries with "latest/new/recent/最新/刚发布":

search-docs libraries --fresh-for-query "QUERY"

If routing still weak, search-docs libraries --refresh then retry once.

Explore Path

When user asks for structure/topics/coverage (not a concrete answer):

search-docs libraries
search-docs manifest LIBRARY_ID

Deliver: library positioning, topic distribution, recommended starting docs.

Commands

search-docs health                                    # connectivity check
search-docs libraries                                 # list all libraries
search-docs libraries --fresh-for-query "QUERY"       # freshness-aware list
search-docs search "Q" --library LIB --limit 8        # targeted search
search-docs search "Q" --limit 8                      # cross-library search
search-docs read LIB/PATH.md                          # read full document
search-docs manifest LIB                              # browse topic map
search-docs recent --days 7                           # recent updates

Anti-Patterns

  • Starting with cross-library search for every query — route first.
  • Answering from snippets without reading source doc.
  • Repeating fallback loops beyond one round.
  • Treating static routing hints as stronger than live library metadata.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.