add context7 skill
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
---
|
||||
name: context7
|
||||
description: Get code snippet examples, get inline help about any library or language, find documentation using Context7 API.
|
||||
---
|
||||
|
||||
## How to use
|
||||
|
||||
Simply invoke the `main.py` script using `uv` and passing as command line arguments the `<library>` and the `<query>`. Make sure to use quotations if the query is composed by more than one word. The script will return useful code snippets about what has been requested.
|
||||
|
||||
Example:
|
||||
|
||||
```sh
|
||||
$ uv run main.py django "how to run django migrations?"
|
||||
|
||||
[OUTPUT]
|
||||
```
|
||||
|
||||
This skill uses Python and `uv` to run: before using the skill, the virtual environment must be ready and the libraries must be installed.
|
||||
|
||||
```sh
|
||||
uv venv --allow-existing
|
||||
uv sync
|
||||
```
|
||||
|
||||
## When to use
|
||||
|
||||
This skill must be used whenever there is the need to get additional context for the specific library or language that is in use in the project. If the project is using, for example, React, it might be useful to use it with `react` and `"how to use the the useEffect hook?"`, or if using Pydantic with `pydantic` and `"how to define an email field?"`.
|
||||
Reference in New Issue
Block a user