# Find Current Library Documentation

Developers often need current API details that model training may not include. This skill retrieves Context7 documentation for libraries, frameworks, and components.

## Install

```bash
npx skillstore add intellectronica/context7
```

## Metadata

- Status: approved
- Slug: intellectronica-context7
- Skillstore revision: r1
- Version status: missing
- Tree hash: 7d7a2cbdd726601fbc1db91a85808a01e1fe34f97a53f0c72844112816a9b64d
- Author: intellectronica
- GitHub username: intellectronica
- License: MIT
- Repository: https://github.com/intellectronica/agent-skills/tree/main/skills/context7/
- Ref: a25199bc7d6b82598536822d1738eb5d5f54025b
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network
- Quality score: 50
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/intellectronica-context7
- Manifest: https://skillstore.pages.dev/api/skills/intellectronica-context7/manifest

## Capabilities

- Searches the Context7 library catalog by library name and topic.
- Retrieves documentation snippets for a selected Context7 library ID.
- Requests plain text documentation for easier reading in chat.
- Shows example lookups for React, Next.js, and FastAPI topics.
- Uses jq examples to inspect and select search results.

## Use Cases

- Check Current API Usage: Look up the latest documented behavior before writing or reviewing code.
- Research Framework Features: Find official examples for routing, hooks, dependencies, or similar framework topics.
- Support Code Migration Work: Verify changed library APIs while planning updates across a codebase.

## Prompt Templates

### Find One Topic

```
Use Context7 to find current documentation for React useState. Summarize the key usage rules and common mistakes.
```

### Verify Framework Guidance

```
Use Context7 to retrieve current Next.js app router documentation. Explain when to use layouts, pages, and route handlers.
```

### Validate an Implementation Plan

```
Use Context7 to check FastAPI dependency injection guidance. Compare the documented approach with my planned dependency structure.
```

### Research a Migration

```
Use Context7 to research the current migration guidance for the named library. Identify breaking changes, replacement APIs, and review risks.
```

## Limitations

- Requires network access to context7.com.
- Only returns libraries and documents indexed by Context7.
- Basic usage is rate-limited and does not use an API key.
- Shell examples require safe URL encoding for user-provided values.

## Best Practices

- Use specific library names and focused topics for better Context7 ranking.
- Inspect search results before selecting a library ID for documentation retrieval.
- URL-encode all query values before running shell commands.

## Anti Patterns

- Do not paste secrets, tokens, or private project data into documentation queries.
- Do not assume the first search result is always the correct package.
- Do not execute generated shell commands without checking parameter encoding.

## Security Audit

- Audited at: 2026-07-05T18:29:25.165\+00:00
- Summary: The skill has a legitimate documentation retrieval purpose, but it depends on outbound requests to context7.com and shell command examples. I confirmed the actual curl and jq command examples plus hardcoded Context7 URLs, while most Ruby backtick detections are Markdown false positives. The main added concern is unsafe substitution of user-provided query values into shell commands without strong quoting guidance.

## Stats

- Views: 143
- Downloads: 10
- Favorites: 0
- Popularity score: 0
