infisical agent-vault run. Agents that use the proxy without infisical agent-vault run, such as the Hermes gateway and OpenClaw gateway setups, don’t get skills.
Agent Vault members can view the latest version of each skill in the access bundles granted to them.
Prerequisites
- The Admin role in Agent Vault, to add, change, and delete skills, and to add them to access bundles
- The Infisical CLI on each host where you start agents
Skill format
A skill is a folder with aSKILL.md file at its root. SKILL.md starts with a header that names and describes the skill, followed by the instructions in Markdown:
name: the name agents know the skill by, with up to 64 lowercase letters, numbers, and single hyphens, not starting or ending with a hyphendescription: the text an agent reads to decide when to use the skill (up to 1,024 characters)
- Up to 50 files
- Up to 256 KB per file
- Up to 1 MB in total
Scripts in a skill
If you push a skill with the CLI, its scripts stay executable, even after you edit the skill or upload a new version in Infisical. A zipped folder that you upload also keeps its executable files. To make a file executable in the editor, right-click it or select its three-dot button, then select Make Executable. From Windows, push from WSL or CI, or haveSKILL.md tell the agent to run each script with an interpreter, such as bash scripts/check.sh.
Add a skill
You can push a skill folder with the CLI, or create the skill in Infisical.- CLI
- Infisical
Log in to the CLI as an Agent Vault admin, then run the following command on the host that has the skill folder:The CLI finds the skill by the
name in SKILL.md. It creates the skill if it doesn’t exist yet, and adds a new version if it does.In a script or CI, authenticate as a machine identity with the Admin role in Agent Vault, in one of these ways:- Pass
--client-idand--client-secret - Set
INFISICAL_UNIVERSAL_AUTH_CLIENT_IDandINFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET - Set
INFISICAL_TOKENto the identity’s access token
Add a skill to an access bundle
To install skills for agents, add them to an access bundle:1
In Agent Vault, go to Access Bundles and select the access bundle.
2
In the Skills section, select Add Skills.
3
Pick one or more skills from the list, then select the Add button. You can also create a skill from here with Create New Skill at the end of the list, and it’s added to the access bundle.
How agents get skills
When you start an agent withinfisical agent-vault run, the CLI downloads the latest version of each skill in the session’s access bundle, and installs the skills before the agent starts. If you publish a new version or add a skill to the access bundle, restart the agent to pick up the change. Starting another agent on the same host also updates the skills there, including for agents already running.
Reaching Infisical from the agent’s host
The CLI downloads the skills from Infisical with the session’s token, so the agent’s host needs to reach your Infisical instance:- If the host can’t reach Infisical, or you don’t want skills, pass
--no-skillsto start the agent without them - If you start the agent with a session token and you use EU Cloud or self-host Infisical, pass your instance’s URL to the CLI with
--domain
Where the CLI installs skills
The CLI installs each skill in~/.agents/skills/<skill-name>, where Codex, OpenCode, and OpenClaw look for skills.
The CLI also links each skill into the skills folder of Claude Code and of Hermes, if that agent’s folder exists on the host. If the agent’s command is claude, the CLI links the skills for Claude Code even if its folder doesn’t exist yet:
- Claude Code:
$CLAUDE_CONFIG_DIR, or~/.claudeifCLAUDE_CONFIG_DIRisn’t set - Hermes:
$HERMES_HOME, or~/.hermesifHERMES_HOMEisn’t set
--skills-dir with the folder’s path. The CLI then installs the skills only in that folder.
Hermes and OpenClaw profiles
In some setups, Hermes and OpenClaw don’t read the folders that the CLI installs skills in:- If you run Hermes with a profile, or on Windows, Hermes doesn’t read
~/.hermes/skills, so add~/.agents/skillstoskills.external_dirsin theconfig.yamlthat Hermes uses - If you run OpenClaw with
OPENCLAW_PROFILEorOPENCLAW_STATE_DIRset, OpenClaw doesn’t read~/.agents/skills, so pass--skills-dirwith theskillsfolder in OpenClaw’s state folder
config.yaml looks like this:
Installed skills stay on the host
The CLI doesn’t delete the skills it installs when the agent exits, so later runs of any agent on the host can still use them.The CLI only replaces skill folders it installed. If a folder with the same name as a skill in the access bundle already exists and the CLI didn’t install it, the CLI leaves it alone and warns you.
Remove installed skills
If you remove a skill from an access bundle, delete it, or rename it, the CLI doesn’t delete the copies it already installed. On each host that ran an agent with the skill, delete the skill’s folder from~/.agents/skills, or from the folder you passed to --skills-dir. Also delete the skill’s link or copy from the Claude Code and Hermes skills folders, if the CLI created one there.
If you renamed the skill, the installed folder has the skill’s old name.
If an agent starts without skills
The CLI always starts the agent, even if it can’t install the skills. If it can’t download or install them, it prints why the agent started without them.Manage skills
View a skill
To open a skill, go to Skills in Agent Vault and select the skill. You can also open it from an access bundle: in the Skills section, open the skill’s actions menu and select View Skill. If you’re an Agent Vault member, open the skill from an access bundle that’s granted to you. The Skills page is only for admins. The skill opens in a side panel that shows the latest version of its files. To get a copy of the files, select Options in the panel, then select Download. Infisical downloads the files as a zip file, and scripts that are executable in Infisical stay executable.Edit a skill
To change a skill’s files in Infisical:1
In Agent Vault, go to Skills and select the skill. To edit a Markdown file, select Code.
2
Change the files in the editor, as described in Change the files.
3
Select Save Version at the bottom, check the changes to each file, and select Save Version again. To throw your changes away instead, select Discard.
Change the files
The editor lists the skill’s files on the left and shows the selected file on the right:- To change a file, select the file and edit its content (for Markdown files, select Code first)
- To add a file or a folder, select New File or New Folder, or right-click an empty part of the file list, then type the name and press Enter
- To add a file or a folder inside a folder, right-click the folder or select its three-dot button, then select New File or New Folder
- To rename or remove a file or a folder, right-click it or select its three-dot button, then select Rename, Delete File, or Delete Folder
SKILL.md. The editor doesn’t show binary files, such as images, and keeps them as they are.
Upload a new version
To replace a skill’s files with a zipped folder or a Markdown file:1
In Agent Vault, go to Skills and select the skill.
2
Select Options, then select Upload New Version, and drop the zipped folder or the Markdown file into the dialog.
3
Select Save Version.
SKILL.md and keeps the skill’s other files.
You can also publish a new version from the CLI with infisical agent-vault skills push.
Rename a skill
To rename a skill, change thename in its SKILL.md, then save the change or upload the new SKILL.md.
You can’t rename a skill with the CLI. If you push a folder whose SKILL.md has a new name, the CLI creates a new skill with that name.
Agents that start after the rename get the skill under its new name. The CLI doesn’t delete the copy it installed under the old name, so delete the installed copies on each host.
Restore a previous version
To roll a skill back:1
In Agent Vault, go to Skills and select the skill.
2
Select Options, then select Version History.
3
Select the version you want, check its files, and select Roll Back. Select Roll Back again to confirm.
name in that version’s SKILL.md to the current name.
Delete a skill
To delete a skill and every version of it:1
In Agent Vault, go to Skills and select the skill.
2
Select Options, then select Delete Skill. The dialog lists the access bundles the skill is in.
3
Type the skill’s name and select Delete.