{"id":8645,"library":"skills-ref","title":"skills-ref: Agent Skills Reference Library","description":"The `skills-ref` library serves as a foundational reference for the Agent Skills open specification, enabling AI agents to dynamically discover, load, and execute specialized capabilities. It defines the structure and format for 'skills,' which are modular packages of instructions, scripts, and resources for AI agents. Currently at version 0.1.1, its development is closely tied to Anthropic's Agent Skills initiative, with active releases focusing on refining the underlying specification.","status":"active","version":"0.1.1","language":"en","source_language":"en","source_url":"https://github.com/anthropics/agentskills","tags":["AI agents","Anthropic","Agent Skills","specification","tooling","LLM development"],"install":[{"cmd":"pip install skills-ref","lang":"bash","label":"Install stable version"}],"dependencies":[{"reason":"Required runtime environment.","package":"python","optional":false}],"imports":[{"note":"Users typically interact with the Agent Skills concept through `SKILL.md` files and higher-level agent frameworks rather than direct Python imports from `skills-ref`.","symbol":"Note on direct imports","correct":"This library (skills-ref) primarily defines the Agent Skills specification and does not typically expose high-level Python classes or functions for direct end-user interaction. Practical integration with Agent Skills in Python is generally handled by other libraries, such as `agent-skills` (from `anthropics/agentskills`), which consume the specification defined by `skills-ref`."}],"quickstart":{"code":"# The 'skills-ref' library defines the structure, but direct Python usage is typically via an agent framework.\n# Here's a conceptual representation of how an agent might 'use' a skill based on the specification.\n\n# Imagine an agent framework loading skill metadata (defined by skills-ref specification):\n# from agent_skills import Agent, AgentSkillsToolset # (from related 'agent-skills' library)\n\n# A skill, as defined by the 'skills-ref' specification, is a directory containing a SKILL.md file.\n# Example SKILL.md content (conceptual):\n# ---\n# name: code-reviewer\n# description: Reviews Python code for style, errors, and best practices.\n# license: Apache-2.0\n# ---\n# # Code Review Instructions\n# 1. Read the provided Python code.\n# 2. Check for PEP 8 compliance.\n# 3. Identify potential bugs or logical errors.\n# 4. Suggest improvements for readability and efficiency.\n# 5. Provide a summary of findings.\n\n# In a real agent system (e.g., using 'agent-skills' or similar):\n# skills_directory = './my_agent_skills'\n# toolset = AgentSkillsToolset(path_to_skills=skills_directory)\n# agent = Agent(tools=[toolset])\n\n# user_query = \"Review the following Python code for me: def add(a, b): return a + b\"\n# agent.run(user_query)\n\n# The agent would then (internally) discover the 'code-reviewer' skill based on its description\n# and load the instructions from SKILL.md to perform the task.","lang":"python","description":"The `skills-ref` library defines the underlying format for Agent Skills. Therefore, a 'quickstart' for `skills-ref` itself involves understanding the `SKILL.md` file format. Practical interaction with these skills in Python is typically done through a compatible agent framework, such as the `agent-skills` library, which interprets and executes skills conforming to the `skills-ref` specification. The example illustrates the conceptual structure of an Agent Skill and how an agent might load and utilize it."},"warnings":[{"fix":"Focus on the documentation for agent frameworks like `agent-skills` (from Anthropic) or similar implementations that consume the Agent Skills standard when building agent capabilities in Python.","message":"The `skills-ref` library is primarily a specification reference. End-users building AI agents will likely interact with higher-level libraries (e.g., `agent-skills`) that implement the specification, rather than directly importing and using components from `skills-ref`.","severity":"gotcha","affected_versions":"All versions (0.1.x)"},{"fix":"Regularly consult the `anthropics/agentskills` GitHub repository and release notes for `skills-ref` and `agent-skills` to stay updated on specification changes and ensure compatibility. Pin exact versions of the library in `requirements.txt`.","message":"As a low-version (0.1.1) foundational library for a new open specification, `skills-ref` is subject to frequent and potentially breaking changes in its definitions and internal structures, even in minor versions, as the Agent Skills standard evolves.","severity":"breaking","affected_versions":"All versions (0.1.x)"},{"fix":"Carefully review the Agent Skills specification and examples provided in the `anthropics/agentskills` GitHub repository for creating `SKILL.md` files, particularly regarding `name`, `description`, and progressive disclosure patterns.","message":"The 'Agent Skills' concept itself relies heavily on the `SKILL.md` file format for defining agent capabilities. Misunderstandings of this Markdown-based format (YAML frontmatter, instruction structure, referencing external files) can lead to agents failing to correctly discover or execute skills.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-16T00:00:00.000Z","next_check":"2026-07-15T00:00:00.000Z","problems":[{"fix":"Review the documentation for the `agent-skills` library or other agent frameworks that integrate with the Agent Skills specification. `skills-ref` itself typically does not expose user-facing Python APIs.","cause":"Attempting to import a specific module or class directly from `skills-ref` that may not exist or is not intended for public consumption. `skills-ref` is a reference/specification library.","error":"ModuleNotFoundError: No module named 'skills_ref.something'"},{"fix":"Ensure your `SKILL.md` file has valid YAML frontmatter including `name` and `description` fields, and that the skill directory name matches the `name` field in the frontmatter. Verify the agent's skill loading path configuration. Refer to the official Agent Skills specification for exact formatting rules.","cause":"The agent framework (e.g., `agent-skills`) could not correctly parse the `SKILL.md` file due to incorrect YAML frontmatter, missing required fields (like `name` or `description`), or a directory structure that doesn't conform to the specification.","error":"Agent fails to load/discover custom SKILL.md file: 'SkillNotFound' or 'InvalidSkillFormat'"}]}