搜索

PythonReactSEOPDF
GitHub Skill

context7

Query up-to-date library documentation and code examples before implementing features.

5dlabs☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Context7 (Library Documentation)

Use Context7 to query up-to-date documentation for any library before implementing code.

Tools

Tool Purpose
context7_resolve_library_id Find the Context7 ID for a library
context7_get_library_docs Query documentation for a specific topic

Workflow

Always query docs before implementing:

1. resolve_library_id({ libraryName: "effect typescript" })
   → Returns: /effect-ts/effect

2. get_library_docs({ 
     context7CompatibleLibraryID: "/effect-ts/effect", 
     topic: "schema validation" 
   })
   → Returns: Up-to-date documentation

Common Library IDs

Library Context7 ID
Effect /effect-ts/effect
Better Auth /better-auth/better-auth
Next.js /vercel/next.js
React /facebook/react
TanStack Query /tanstack/query
Drizzle ORM /drizzle-team/drizzle-orm
Elysia elysiajs
Axum /tokio-rs/axum

Best Practices

  1. Always resolve first - Don't guess library IDs
  2. Be specific with topics - "schema validation" not just "validation"
  3. Query before coding - Get current patterns, not outdated knowledge
  4. Check multiple topics - Query auth, then session, then middleware separately

Example Queries

# React patterns
get_library_docs({ libraryId: "/facebook/react", topic: "useEffect cleanup" })

# Authentication
get_library_docs({ libraryId: "/better-auth/better-auth", topic: "next.js integration" })

# Type-safe APIs
get_library_docs({ libraryId: "/effect-ts/effect", topic: "tagged errors" })

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-03-04
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!