ag-docs-seeker
Search library/framework documentation via llms.txt (context7.com).
Skill by ngxccc
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ngxccc-ag-docs-seeker
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ag-docs-seeker
What's inside
- Skill name
ag-docs-seeker- Description
- Search library/framework documentation via llms.txt (context7.com). Use for API docs, GitHub repository analysis, technical documentation lookup, latest library features.
- License
- MIT
- Instructions
- 110 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (17)
- .env.example
- SKILL.md
- package.json
- advanced.md · references/
- context7-patterns.md · references/
- errors.md · references/
- analyze-llms-txt.js · scripts/
- detect-topic.js · scripts/
- fetch-docs.js · scripts/
- run-tests.js · scripts/tests/
- test-analyze-llms.js · scripts/tests/
- test-detect-topic.js · scripts/tests/
- test-fetch-docs.js · scripts/tests/
- env-loader.js · scripts/utils/
- library-search.md · workflows/
- repo-analysis.md · workflows/
- topic-search.md · workflows/
SKILL.md (first lines)
# Documentation Discovery
## When to Apply
Use this skill when working with ag-docs-seeker workflows, tasks, or system specifications.
> **Output style:** Follow `process/development-protocols/communication-standards.md` — answer-first, plain language, no unexplained jargon, TL;DR on long responses.
## Overview
Use Context7 MCP as the default path for documentation lookup. The local scripts in this skill are fallback helpers for llms.txt-based discovery when Context7 does not cover the target cleanly.
## Primary Workflow
**Default workflow: Context7 first**
1. Resolve the library with Context7.
2. Query the exact API/config/setup question with Context7.
3. Only fall back to the scripts below when Context7 coverage is missing, incomplete, or the user explicitly wants llms.txt/repository-oriented discovery.
**Fallback script workflow:**
```bash
# 1. DETECT query type (topic-specific vs general)
node scripts/detect-topic.js "<user query>"
# 2. FETCH documentation using script output
node scripts/fetch-docs.js "<user query>"
# 3. ANALYZE results (if multiple URLs returned)
cat llms.txt | node scripts/analyze-llms-txt.js -
```
Scripts handle URL construction, fallback chains, and error handling automatically.
## Scripts
**`detect-topic.js`** - Classify query type
- Identifies topic-specific vs general queries
- Extracts library name + topic keyword
- Returns JSON: `{topic, library, isTopicSpecific}`
- Zero-token execution
**`fetch-docs.js`** - Retrieve documentation
- Constructs context7.com URLs automatically
- Handles fallback: topic → general → error
- Outputs llms.txt content or error message
- Zero-token execution
**`analyze-llms-txt.js`** - Process llms.txt
- Categorizes URLs (critical/important/supplementary)
- Recommends agent distribution (1 agent, 3 agents, 7 agents, phased)
- Returns JSON with strategy
- Zero-token execution
## Workflow References
**[Topic-Specific Search](./workflows/topic-search.md)** - Fastest path (10-15s)
**[General Library Search](./workflows/library-search.md)** - Comprehensive coverage (30-60s)
**[Repository Analysis](./workflows/repo-analysis.md)** - Fallback strategy
## References
**[context7-patterns.md](./references/context7-patterns.md)** - URL patterns, known repositories
**[errors.md](./references/errors.md)** - Error handling, fallback strategies
**[advanced.md](./references/advanced.md)** - Edge cases, versioning, multi-language
## Execution Principles
1. **Context7 first** - Use Context7 MCP before any local script fallback
2. **Zero-token overhead** - Scripts run without context loading
3. **Automatic fallback** - Scripts handle topic → general → error chains
4. **Progressive disclosure** - Load workflows/references only when needed
5. **Scripts are fallback helpers** - Use them only when Context7 coverage is missing or the user wants llms.txt-style discovery
## How to Use
### Quick Start
**Topic query:** "How do I use date picker in shadcn?"
```bash
node scripts/detect-topic.js "<query>" # → {topic, library, isTopicSpecific}
node scripts/fetch-docs.js "<query>" # → 2-3 URLs
# Use Context7 results first; only use script-discovered URLs when you intentionally fall back
```
**General query:** "Documentation for Next.js"
```bash
node scripts/detect-topic.js "<query>" # → {isTopicSpecific: false}
node scripts/fetch-docs.js "<query>" # → 8+ URLs
cat llms.txt | node scripts/analyze-llms-txt.js - # → {totalUrls, distribution}
# Use Context7 results first; only use script-discovered URLs when fallback discovery is required
```
## Environment
Scripts load `.env`: `process.env` > `.claude/skills/ag-docs-seeker/.env` > `.claude/skills/.env` > `.claude/.env`
Optional env vars: `CONTEXT7_API_KEY` (Bearer token for Context7 API), `DEBUG=true` (verbose logging).From ngxccc/agent-skills-kit, MIT.
More from ngxccc/agent-skills-kit
- 0.529score
ag-generate-spec
ngxccc
Create or update a product-discovery SPEC (requirements doc) for user review.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-audit-plans
ngxccc
Audit active project plan files for staleness, completion, and routing truth.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-brainstorming
ngxccc
Use when starting creative work, building components, or modifying behavior.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-docs
ngxccc
Trigger keywords: docs, README, document codebase, ADR, architectural decision, decision record, design doc, architecture record, RFC, request for comments…
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-context
ngxccc
Generate or update the project's authoritative repository context at process/context/all-context.md.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-generate-plan
ngxccc
Create or update implementation plans in the repo's SIMPLE, COMPLEX, or PHASE PROGRAM format.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-audit-context
ngxccc
Audit project context routing, shared-skill discoverability, and Claude/Codex wiring.
SkillBFreshness: BClaude Code +9 - 0.529score
ag-feasibility-test
ngxccc
Use when a SPEC, INNOVATE, or VALIDATE (Layer 2) approach hinges on an unverified runtime/library/external mechanism: run a probe from the 8-family taxonomy…
SkillBFreshness: BClaude Code +9 - 0.528score
ag-audit-ag
ngxccc
Use when auditing agent harness health, Claude/Codex agent parity, skill registry consistency, and protocol wiring.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-debug
ngxccc
Debug systematically with root-cause analysis before fixes.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-git-flow
ngxccc
Trigger keywords: git flow, branch management, rebase, merge request, commit convention, release flow, create pr, pull request, pr template, gh pr.
SkillBFreshness: BClaude Code +9 - 0.526score
ag-agent-browser
ngxccc
AI-optimized browser automation CLI with context-efficient snapshots.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 2, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ngxccc/agent-skills-kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ngxccc
- 0.570score
git-flow
ngxccc
Shape branches, slice atomic commits, create pull requests via the 3-Tier PR Matrix, or create sub-issues.
SkillAFreshness: AClaude Code +9 - 0.544score
domain-modeling
ngxccc
Build and sharpen a project's domain model.
SkillAFreshness: AClaude Code +9 - 0.544score
diagnosing-bugs
ngxccc
Diagnosis loop for hard bugs and performance regressions.
SkillAFreshness: AClaude Code +9 - 0.544score
codebase-design
ngxccc
Shared vocabulary for designing deep modules.
SkillAFreshness: AClaude Code +9 - 0.544score
tdd
ngxccc
Test-driven development.
SkillAFreshness: AClaude Code +9 - 0.541score
improve-codebase-architecture
ngxccc
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: AClaude Code +9
Cite this page
ag-docs-seeker skill. Agent Mart. https://agentmart.dev/skills/ngxccc-ag-docs-seeker (last updated 2026-10-24)