Skip to content

SkillFS: governing agent skills with a file system

TechFabricUpdated 8 min readAnnouncements

Our mail-to-blog writer stalled on 13 October. It's the AI agent that turns an engineer's emailed idea into a draft post, and the rules and checks it loads kept changing under it. Nothing an engineer emailed in was published that day or the next. In one week the checks every post must pass grew from 15 to 27. Some of the new ones ran only at the very end, never in the loop where the writer fixes its own draft, so drafts failed with nothing the agent could repair. A few of the new checks misfired, one reading the word "One" as a number, and the AI credit ran out on top. On 12 October alone, 56 commits changed the writer itself.

Alibaba Cloud published SkillFS on 10 October 2026, three days before the stall. Read afterwards, it answers the question we had just failed: who decides what an agent loads, and what happens when that changes mid-run? It's a file system that sits between an AI agent and the folder of skills it can load, the written instructions and scripts. It decides which skills the agent sees and which copy to serve when one of them goes bad. We haven't run it. For a company whose agents load skills other people wrote, the price to weigh is a privileged container running beside every agent. Our own fix was smaller, and it lives in our repository.

What we changed after the stall

The fixes went in over the following week, and they share one idea. An agent should load a known set of rules, and a change to that set should be tested before the agent meets it.

  • On 13 October the writer started running every gate npm run check holds a post to, from one shared list (scripts/check-post.mjs), on every version of its draft, and repairing only what a finding names.
  • Any pull request that changes a gate now runs the writer's canary, a real test idea drafted end to end, so a new rule that the writer can't satisfy fails on its own pull request instead of on an engineer's idea.
  • On 15 October we scoped the writer's checks to the draft and the pages that list it, never the whole site, after one unrelated failing page had been failing every draft.
  • On 18 October the skills each writing agent loads became a declared list. editorial/agents.json names, per task, which skills the prompt carries. The blog writer's author-post task gets draft-author-post and rewrite-as-visual, its fact-check task gets fact-check and nothing else, and npm run lint:editorial fails any model call whose code doesn't build its prompt from that list.

That last one is the closest thing we have to a SkillFS view, and it's a much smaller tool. It works because every skill we load is ours, eight of them in editorial/skills plus the ones in .claude/skills our coding agents read, all reviewed in Git with the code they govern.

What the SkillFS mount changes

SkillFS works on the skill format the Agent Skills specification describes: a directory holding a SKILL.md with YAML frontmatter, plus optional scripts/, references/ and assets/ folders. The spec loads every skill's name and description, roughly 100 tokens each, at startup, and a skill's full body only once the agent activates it. Thirty-eight skills means thirty-eight descriptions in context before the agent has done anything.

SkillFS maps the physical source tree to a runtime view, so the agent reads from <mountpoint>/skills/<skill-name>/SKILL.md and sees only what the view allows (SkillFS docs). The directory name is the skill's id, so a stale name in a skill's frontmatter can't bring an old skill back.

Visibility comes from skillfs-views.toml in the source root. High-frequency skills sit in the default view directly under /skills, and the rest are reachable through a virtual skill called skill-discover:

[[view]]
name = "default"
default = true
description = "High-frequency skills appear directly in the runtime directory"
skills = ["weather-query", "ecs-diagnosis"]

[[view]]
name = "secondary"
default = false
description = "Low-frequency or backup skills, discovered through skill-discover"
skills = ["kernel-tuning", "image-helper"]

Skills absent from every view land in the default view, so a half-finished configuration exposes more rather than hiding things. Editing the file does nothing to a running mount until you remount. skillfs classify writes a starting skillfs-views.toml, and skillfs validate exits non-zero on parse failures.

Physical skill source tree

SkillFS mount

Default view under skills

Secondary view via skill-discover

Trusted snapshot when a skill drifts

Agent reads SKILL.md

A SkillFS mount splits one physical skill tree into a trimmed default view, a discoverable secondary view and a trusted fallback.

The token saving, by Alibaba's numbers

Alibaba's benchmark covered 27 scenarios across 38 skills in five categories, four rounds each, and the saving split sharply by model. kimi-2.5 went from 174,167 to 136,942 tokens, a 21.37% saving. qwen3.5-plus saved 0.94%, and minimax-m2.5 and qwen3.6-plus landed around 7%. Their cost formula weights cached tokens at 0.2.

The spread across models suggests view clipping pays off in proportion to how badly a model picks tools on its own. A 0.94% saving wouldn't justify a privileged FUSE mount in a pod, so the better case is fewer wrong tool calls, each of which costs a round trip and whatever the tool did before someone noticed.

Trusted snapshots: the part our stall needed

SkillFS makes no security decisions itself. A scanner such as agent-sec-core or Skill Ledger writes activation state, and SkillFS resolves each skill to current (the live source), fallback (a trusted snapshot from .skill-meta/versions/*.snapshot) or hidden (lookup returns ENOENT).

fallback is the behaviour we didn't have on 13 October. A skill that drifted after an update stays usable at its last trusted version, which is what our writer needed when a rule changed under it, and what our canary now buys us the slower way, by refusing the change before it lands. Two more details are worth copying into any design. The current target is pinned to the file handle at open time, so a background switch can't give one read the old bytes and the next read the new ones. And /.skillfs-inbox/<skill> fences a new skill until a scan decision passes.

Only an authenticated trusted writer can change that activation state, and the docs point production at an in-place mount with --security-mode and an audit log, so every read goes through the file system's policy.

What it costs to run

SkillFS is Apache 2.0, written in Rust (1.86+ to build), with fuse3 as its only runtime dependency, and it mounts on Linux only. The cost that decides it is privilege. The published image runs as a sidecar that needs privileged: true, a hostPath /dev/fuse and bidirectional mount propagation, and it's linux/amd64 only. Alibaba's own advice is to grant privilege to the SkillFS container alone, keep the agent non-root and mount only the FUSE view into it.

So it comes down to that trade. For a fleet running dozens of third-party skills that update under you, the ledger, the snapshots and the audit trail earn the privileged sidecar. For agents whose skills are written and reviewed in Git, as ours are, a declared list and a test before the change lands do that job with no kernel surface. On Databricks, serverless compute doesn't support compute-scoped init scripts or container services, so a SkillFS mount belongs on a self-managed agent host, with Databricks on the other side of the API. We cover that boundary in our agents work.

There's no hot reload either. Changing the config or adding a skill means a remount, which a team installing skills every day has to plan for.

Where we'd start

Run skillfs classify and skillfs validate against a copy of your skill tree on any Linux box. If the generated default view is most of the tree, clipping won't save much. If it's five skills out of forty, there's a case worth taking to whoever owns pod security. Either way, put a test in front of every change to what your agents load, because that's the failure we hit, and SkillFS only catches it after the change has landed.

Frequently asked questions

What is SkillFS?

SkillFS is a FUSE-based virtual file system from Alibaba Cloud that maps a physical agent skill directory into a controlled runtime view, exposing only the skills a task needs and resolving each one as live, a trusted snapshot or hidden. It is part of ANOLISA, released under Apache 2.0, and runs standalone with fuse3 as its only runtime dependency.

Does SkillFS work on macOS?

Only partly. It mounts on Linux alone, so macOS can run validate, list and classify against a skill tree but can't mount a view for an agent to read.

Can SkillFS run on Databricks serverless compute?

No. Serverless compute doesn't support compute-scoped init scripts or container services, and SkillFS needs a privileged container with /dev/fuse. It would run on the host where the agent process lives, such as a Kubernetes pod, which then calls Databricks over its API.

Where we do this work