Agent-First Data v0.41.0: Skills Live in Folders, Not Agents
skill install writes the standard folders agents read instead of a list of named agents, an explicit --skills-dir reaches any other agent, an install removes reference files the bundle no longer ships, and the skill itself now triggers on the shell work it governs.
An agent finds a skill by the folder it sits in. Until now skill install
modelled the agent instead: a list of named agents, each with its own folder
and its own environment variables, and a default that fanned out over all of
them. Every new agent meant a new entry, and most entries pointed at folders
that agents were converging away from. This release models the folder.
Install where agents look
With no options, skill install, status and uninstall use the standard
folders:
- the shared
~/.agents/skills, which most agents read, ~/.claude/skills,~/.gemini/config/skills.
--scope workspace uses .agents/skills and .claude/skills under the
current directory instead. For an agent that reads only a folder of its own,
pass that folder:
afdata skill install --skills-dir ~/.qwen/skills
--scope and --skills-dir are two separate shapes. A scope chooses among
the standard folders and says nothing about an explicit directory, so the
parser refuses the mix as a usage error rather than ignoring one of them.
--agent is gone, along with the per-agent folders and environment variables
it resolved.
Installs made by an earlier version under ~/.codex/skills,
~/.config/opencode/skills or ~/.hermes/skills are not moved. Remove one
with afdata skill uninstall --skills-dir <that folder>; it removes only what
afdata installed.
The same verbs, shapes and errors apply to any program that mounts them with
skill_cli_commands.
Installs that forget what they dropped
The managed marker in an installed SKILL.md now records every file the
install wrote. A later install removes recorded files the current bundle no
longer carries and reports them in stale_assets_removed, uninstall removes
files an older bundle installed, and status reports a leftover file as not
current. A recorded path is trusted only inside the skill directory, so an
edited marker cannot reach outside it.
A skill that triggers on the work
The skill’s description now names the shell work that should load it:
deleting a path built from a variable, reading or editing JSON, TOML, YAML,
dotenv, INI, plist or Markdown structure, parsing script arguments, and
emitting logs and results. Its body gains shell decisions for those cases:
check a path with afdata guard or afdata_remove before deleting it, move a
person’s own files with afdata_trash, and read structured files with
afdata value, get, keys or values rather than jq, grep, sed or
python3 -c. When afdata is missing, the skill gives the install commands
instead of falling back silently.
Breaking changes
- CLI:
afdata skill install|status|uninstallno longer accept--agent. The default targets are the standard folders listed above, and--skills-dircannot be combined with--scope. Report targets no longer carry anagentfield;scopeis null for an explicit directory. - Rust (
skill-admin):SkillAgentSelectionandSkillAgentare gone.SkillOptionsis{ location, force }, wherelocationisSkillLocation::Standard(SkillScope)orSkillLocation::Directory(String).SkillTargetStatusandSkillUninstallStatusloseagent, andSkillReport::Installgainsstale_assets_removed.run_personal_inruns an action on the personal standard folders with the home directory taken from a supplied environment rather than the process’s.