Skip to content
Back to skills

2298 Querydocs 14b6b5bb

ASecurity

> **Trigger:** "lookup docs", "get documentation", "code examples for", "how to use"

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmenttypescriptpythongobashreactvuenextjsnodenodejskubernetes

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2298-querydocs_14b6b5bb --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2298 Querydocs 14b6b5bb?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2298 Querydocs 14b6b5bb
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2298-querydocs-14b6b5bb/badge)](https://www.skillsdirectory.com/skills/tools-only-2298-querydocs-14b6b5bb)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# QueryDocs Workflow

> **Trigger:** "lookup docs", "get documentation", "code examples for", "how to use"

## Purpose

Query up-to-date documentation and code examples from a specific library using its Context7 library ID.

## Prerequisites

- You must have a valid Context7 library ID (from `ResolveLibrary` workflow or known ID)
- Library ID format: `/org/project` or `/org/project/version`

## Command

```bash
cd ~/.claude/skills/Context7/Tools && bun src/cli/query.ts <library_id> "<query>"
```

**Parameters:**
- `library_id` (required): Context7-compatible library ID (e.g., `/facebook/react`)
- `query` (required): Natural language question about the library

## Steps

### Step 1: Run Query Command

```bash
cd ~/.claude/skills/Context7/Tools && bun src/cli/query.ts "/org/project" "specific question"
```

### Step 2: Process Results

Results include:
- Documentation snippets relevant to your query
- Code examples from actual library documentation
- Version-specific information when available

### Step 3: Apply to Task

Use the retrieved documentation to:
- Verify API signatures before writing code
- Get current best practices
- Find working code examples to adapt

## Query Tips

| Goal | Query Example |
|------|---------------|
| API reference | "useState hook signature and return values" |
| Code example | "useEffect with cleanup function example" |
| Configuration | "webpack configuration for typescript" |
| Migration | "migrate from pages router to app router" |
| Troubleshooting | "common errors with async components" |
| Best practices | "when to use useMemo vs useCallback" |

## Examples

### React Hooks

```bash
cd ~/.claude/skills/Context7/Tools && bun src/cli/query.ts /facebook/react "useCallback hook usage and when to use it"
```

### Next.js Middleware

```bash
cd ~/.claude/skills/Context7/Tools && bun src/cli/query.ts /vercel/next.js "middleware authentication redirect"
```

### Kubernetes Deployments

```bash
cd ~/.claude/skills/Context7/Tools && bun src/cli/query.ts /kubernetes/kubernetes "deployment strategy rolling update maxSurge"
```

### TypeScript Generics

```bash
cd ~/.claude/skills/Context7/Tools && bun src/cli/query.ts /microsoft/typescript "generic constraints extends keyof"
```

### Prisma Queries

```bash
cd ~/.claude/skills/Context7/Tools && bun src/cli/query.ts /prisma/prisma "findMany with include nested relations"
```

## Common Library IDs

| Library | ID |
|---------|-----|
| React | `/facebook/react` |
| Next.js | `/vercel/next.js` |
| Vue | `/vuejs/vue` |
| Kubernetes | `/kubernetes/kubernetes` |
| Go | `/golang/go` |
| Python | `/python/cpython` |
| Node.js | `/nodejs/node` |
| TypeScript | `/microsoft/typescript` |
| Prisma | `/prisma/prisma` |
| Tailwind | `/tailwindlabs/tailwindcss` |

## Important Notes

- **Be specific** - vague queries return less useful results
- **Max 3 calls per question** - refine your query if first attempt isn't helpful
- **Don't include sensitive info** in query parameter
- Library ID must start with `/` (e.g., `/facebook/react`, not `facebook/react`)
- Use the `lookup.ts` command if you don't know the library ID

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.