Urgent.News

What's breaking now, across thousands of outlets.

AI

AI - Foundations and good practices creating skills

🇪🇸 Versión en español Let's talk about skills for AI agents, and we're doing it off the back of attending an online workshop given by @mouredev on skills a few days ago. 🎥 Full video on YouTube The workshop was really interesting, so much so that I was left wanting more, so I went digging a bit deeper, not so much into what skills do or what they're for, but into the best practices for…

Skills are utilized to automate repetitive tasks with well-defined processes. The content within a skill must be structured and fine-tuned meticulously to ensure accurate results. Skills can be invoked manually by developers (explicit invocation) or automatically by the agent (implicit invocation) once its awareness of their existence is established.

Upon initiating an agent, it is already aware of the available skills. However, these skills can be called manually or automatically by the agent itself after being made cognizant of their presence. Each utilized skill is loaded into the context of the current session. Hence, it is crucial to manage their excessive usage when they are not required.

To create skills, they are placed in specific directories depending on their scope. For project-specific skills, they are created inside the ./.agents/skills directory; for universally accessible skills, they are stored in ~/.agents/skills. It is worth noting that the exact location might vary across different agents, so it is always prudent to verify the standard for each specific agent.

For instance, in the Claude Code CLI, if a skill is manually created in the project's repository, it won't be detected unless it is placed in ./.claude/skills.

Each skill needs to be encapsulated within a directory named after the skill itself. A SKILL.md file, which houses the skill's definition, must also always be present within this directory. The header of the skill must contain a YAML-formatted description, including fields such as name, description, license, version, and context.

The 'name' field is mandatory and must consist of 1 to 64 alphanumeric characters, lowercase, and must adhere to kebab-case format. The 'description' field is also mandatory and must be between 1 and 1024 characters. It should be precise enough for the agent to determine its relevance. The 'license' field is optional but recommended to follow the SPDX standard.

The 'version' field is optional and used for semantic versioning. Lastly, the 'context' field is optional and defines the behavior of the skill in relation to the main conversation thread.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Give your AI agent a real local drive — MeshDrive 2.0 + MCP (stdio)

_ Local-first JuiceFS storage for Linux, with MCP tools for Cursor, Claude Code, and Hermes. _ The Problem Most AI agents can read files — but only if you point them at random folders on your laptop.

  • MeshDrive 2.0 offers local-first JuiceFS storage with MCP tools for AI agents.
  • AI agents like Cursor, Claude Code, and Hermes face limited file access problems.
  • MeshDrive resolves this by providing a local Linux storage layer and terminal UI.

More from Sunday 13 September →