tiangolo/library-skills

Library Agent Skills

What it solves

It prevents AI agents from using outdated or hallucinated code patterns by providing a way to install official, up-to-date "skills" provided by library authors. This ensures that agents have access to the latest features and correct usage patterns of the libraries installed in a project, rather than relying on old training data.

How it works

The tool scans a project's dependencies to identify installed libraries that provide official AI skills. It then installs these skills as symbolic links (or copies) into a target directory (such as .agents/skills or .claude/skills). Because these are symlinks to the library's own files, the skills are automatically updated whenever the library itself is updated.

Who it’s for

Developers who use AI agents (like Claude Code) to help them write code and want to ensure the agents are using the latest official patterns for the libraries they areve using.

Highlights

  • Automatic Syncing: Skills are linked to the library version, so updating the library automatically updates the agent's knowledge.
  • Cross-Language Support: Available as a Python package (via uvx) and a JavaScript/TypeScript package (via npx).
  • Agent-Neutral Targets: Defaults to .agents/skills but supports specific targets like .claude/skills for Claude Code.
  • Safe Management: Only removes managed symlinks, leaving hand-authored skill directories untouched.

Related

  • Project
  • Project
  • Project
  • Project
  • Project