Install
$ agentstack add skill-life-is-blue-agent-skills-search-docs ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
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 excerptraw_score: BM25 raw score (nullable; lower = more relevant, e.g., -8.5)display_score: Normalized 0-100 score (nullable)highlights: Array of highlighted matching termslibrary_id: Library the result belongs tolast_updated: ISO timestamp of last update (mode=recent only)
Wrapper payload includes:
total: Total matches before paginationlimit,offset: Pagination paramscatalog: 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)
- Route to one primary library (explicit product/library mention wins).
- Search inside that library:
search-docs search "QUERY" --library LIBRARY_ID --limit 8 --catalog-mode none
- 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.
- Author: life-is-blue
- Source: life-is-blue/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.