opencodekit 0.16.17 → 0.16.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,88 +0,0 @@
1
- ---
2
- name: context7
3
- description: Retrieve up-to-date documentation for software libraries, frameworks, and components via the Context7 API. This skill should be used when looking up documentation for any programming library or framework, finding code examples for specific APIs or features, verifying correct usage of library functions, or obtaining current information about library APIs that may have changed since training.
4
- ---
5
-
6
- # Context7
7
-
8
- ## Overview
9
-
10
- This skill enables retrieval of current documentation for software libraries and components by querying the Context7 API via curl. Use it instead of relying on potentially outdated training data.
11
-
12
- ## Workflow
13
-
14
- ### Step 1: Search for the Library
15
-
16
- To find the Context7 library ID, query the search endpoint:
17
-
18
- ```bash
19
- curl -s "https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=TOPIC" | jq '.results[0]'
20
- ```
21
-
22
- **Parameters:**
23
-
24
- - `libraryName` (required): The library name to search for (e.g., "react", "nextjs", "fastapi", "axios")
25
- - `query` (required): A description of the topic for relevance ranking
26
-
27
- **Response fields:**
28
-
29
- - `id`: Library identifier for the context endpoint (e.g., `/websites/react_dev_reference`)
30
- - `title`: Human-readable library name
31
- - `description`: Brief description of the library
32
- - `totalSnippets`: Number of documentation snippets available
33
-
34
- ### Step 2: Fetch Documentation
35
-
36
- To retrieve documentation, use the library ID from step 1:
37
-
38
- ```bash
39
- curl -s "https://context7.com/api/v2/context?libraryId=LIBRARY_ID&query=TOPIC&type=txt"
40
- ```
41
-
42
- **Parameters:**
43
-
44
- - `libraryId` (required): The library ID from search results
45
- - `query` (required): The specific topic to retrieve documentation for
46
- - `type` (optional): Response format - `json` (default) or `txt` (plain text, more readable)
47
-
48
- ## Examples
49
-
50
- ### React hooks documentation
51
-
52
- ```bash
53
- # Find React library ID
54
- curl -s "https://context7.com/api/v2/libs/search?libraryName=react&query=hooks" | jq '.results[0].id'
55
- # Returns: "/websites/react_dev_reference"
56
-
57
- # Fetch useState documentation
58
- curl -s "https://context7.com/api/v2/context?libraryId=/websites/react_dev_reference&query=useState&type=txt"
59
- ```
60
-
61
- ### Next.js routing documentation
62
-
63
- ```bash
64
- # Find Next.js library ID
65
- curl -s "https://context7.com/api/v2/libs/search?libraryName=nextjs&query=routing" | jq '.results[0].id'
66
-
67
- # Fetch app router documentation
68
- curl -s "https://context7.com/api/v2/context?libraryId=/vercel/next.js&query=app+router&type=txt"
69
- ```
70
-
71
- ### FastAPI dependency injection
72
-
73
- ```bash
74
- # Find FastAPI library ID
75
- curl -s "https://context7.com/api/v2/libs/search?libraryName=fastapi&query=dependencies" | jq '.results[0].id'
76
-
77
- # Fetch dependency injection documentation
78
- curl -s "https://context7.com/api/v2/context?libraryId=/fastapi/fastapi&query=dependency+injection&type=txt"
79
- ```
80
-
81
- ## Tips
82
-
83
- - Use `type=txt` for more readable output
84
- - Use `jq` to filter and format JSON responses
85
- - Be specific with the `query` parameter to improve relevance ranking
86
- - If the first search result is not correct, check additional results in the array
87
- - URL-encode query parameters containing spaces (use `+` or `%20`)
88
- - No API key is required for basic usage (rate-limited)