Back to feed

tiangolo/library-skills

tiangolo/library-skills
344
+120/day
19
Python

Library Agent Skills

From the README

Library Skills, AI Agents using libraries, as intended, always up to date.

Documentation:

Source Code:

Let your AI agents use libraries as intended, always up to date.

Supporting libraries (e.g. FastAPI, Streamlit) include their own AI skills () embedded, updated in sync with each new version of the library.

In Python, you can install them with:

$ uvx library-skills

In JavaScript/TypeScript, you can install them with:

$ npx library-skills

This will scan the dependencies for the current project, find the installed libraries, and ask you which of their skills you want to install in the project.

Then it will add them to the .agents directory as symbolic links, so when you update the libraries, the skills are updated too.

/// tip

If you are using Claude Code, add the --claude CLI Option to install the skills in the .claude/skills directory too, as Claude Code doesn't support the standard .agents directory.

///

Why Library Skills

LLMs are great at helping you code, but are trained on data that existed until a certain point in time, which in the end, is always old data.

Additionally, they are trained on a lot of code examples, that in many cases use old patterns.

When there are new features or changes in the libraries, agents normally don't know about them, don't know how to use them, and insist on using old, deprecated, and sometimes hallucinated patterns.

But library authors can help them, providing official library skills that are always up to date, included in each new version of the package, in sync with the version of the library installed.

And you can install and use these official Library Skills for Agents with one command.

License

This project is licensed under the terms of the MIT license.