Skills are imports

Three security traps in the move from many agents to one agent with many skills · Rez Khan, PhD · 2026-11-28

A design pattern is spreading through agent engineering. Instead of building a separate agent for finance, another for support, and another for code review, you run one general-purpose agent and give it skills. In the Agent Skills format, which Anthropic developed and released as an open standard, a skill is a folder holding a SKILL.md file of instructions, with optional scripts and reference files. The agent loads every installed skill’s name and description at the start of a session, and reads the full instructions only when a task calls for them.

As engineering, this is a good idea. One harness is easier to build, test, and secure than five. Procedures written once can be reused, reviewed, and shared. Loading instructions only when they are needed keeps the context small.

It also makes a security problem very concrete. A skill is instructions stored as data: a folder of text that is easy to copy, easy to edit, and, once loaded, indistinguishable to the model from its operator’s own rules. The popular advice for using skills contains three traps.

Trap 1: treating a skill as text rather than an import

Installing a skill from a public collection feels like copying a document. It is closer to installing a dependency, with one difference that makes it worse. A library runs where you put it. A skill’s prose goes into the model’s context, where the model reads it as guidance from someone it should listen to. Its publisher, and whoever controls its future versions, gets a voice close to yours.

What holds: treat a skill folder like code. Know where it came from. Pin the version someone read. Show the diff before an update takes effect, and read it.

Trap 2: asking the model whether a skill is safe

One suggestion you will hear is to paste a skill into your agent and ask it whether the skill is safe before you install it. Anthropic’s own guidance is sounder: install skills only from trusted sources, and audit any other skill thoroughly before use. The model-as-auditor version does not work, for a simple reason. To judge the skill, the model reads it. The skill’s text is then in the reviewer’s context, addressed to the reviewer. A skill written to be installed will say that it is safe, and it can say so in the voice of a policy, a note to evaluators, or a routine comment.

This is the general hazard of using a model as a judge. The judge is exposed to exactly the content it is judging. A model’s opinion can be a useful first filter. It is a guardrail, which lowers the odds of an attack, not a gate, which holds whatever the model has been persuaded of.

What holds: a person reads the skill, including its scripts. The version they read is the version that runs.

Trap 3: one agent with every skill’s authority

Consolidating many agents into one is where the pattern most often goes wrong. If the general-purpose agent holds the union of every skill’s tools and credentials (email, the file system, the code repository, the payments system), then it has more ambient authority than any of the agents it replaced. A single injected instruction, in any document any task reads, can reach all of it. That is the lethal trifecta, untrusted content, private data, and a way out, assembled in one process.

The same holds for skills that rewrite themselves. Some workflows have the agent revise its own skills after each run to fold in feedback. That makes each run a writer to every later session’s standing instructions. If the run read a hostile ticket or web page, the skill has read it too.

What holds: make the session the unit of authority, not the agent. Offer each session only the tools the active skill declares. Issue credentials for the task, not for the agent. Check every tool call when it executes, against what that session is allowed now, and stop offering privileged tools once the session has read untrusted content. A session that has read untrusted content does not write to skill folders. A change to a skill goes through the same review as a change to code.

The point under the pattern

Whether you run five agents or one agent with five skills, they fail in the same ways and are fixed at the same boundary: what a single session is offered and permitted, enforced by code outside the model. Skills don’t change that. They make the instructions easier to move around, which makes the boundary matter more.

This post draws on my book in progress, Instructions Are Data: Systems, Security, and the Boundaries of Code, Chapters 6, 8, 10, and 14.

Sources. Agent Skills specification, agentskills.io/specification, and overview, agentskills.io. Barry Zhang, Keith Lazuka, and Mahesh Murag, “Equipping agents for the real world with Agent Skills”, Anthropic Engineering, 16 October 2025. Simon Willison, “The lethal trifecta for AI agents”, 16 June 2025.