Govern skills
Require skills for people and agents, attach them to agents, enforce them at the gateway, and use the API. To publish and install skills, see Skills.
Require a skill
Only admins can require a skill.
Open the skill
Go to Skills, open the skill, and find Required for.
Choose who
Pick Everyone, or Selected and choose teams, developers, agents or repositories. Pick Nobody to stop requiring it.
Save
Developers get the skill on their next
forgebench skills sync. Agents get it on their next run.
| Scope | Reaches |
|---|---|
| Everyone | Every developer and agent. |
| Teams | People on the team and the teams beneath it. |
| Developers | The people you name, on their machines. |
| Agents | The agents you name, in their own runs. |
| Repositories | Work in the repositories you name. |
A required skill is pinned to one version. It is never "latest", and a version with no instructions can't be required.
Switch to a new version
Publishing a new version doesn't change what people get. After you publish, the console asks Switch the required version to vN?
- Yes: people and agents get it the next time they update.
- No: nothing changes. Switch later from the versions list with Enforce, or go back with Roll back to this.
Who the skill applies to stays the same either way.
Stop, retire or delete
In the console, a required skill can't be paused, retired, deprecated or
deleted. Set Required for to Nobody first. The API differs for delete:
?force=true deletes a required skill and ends the requirement.
Before you retire or delete a skill, the console lists what still uses it: agents, developers it was delivered to, and calls in the last 30 days.
- Retire: machines remove it on their next sync.
- Delete: installed copies stay on disk.
With the API
curl -X PUT https://api.forgebench.ai/v1/skills/$SKILL_ID/mandatory \
-H "Authorization: Bearer $FORGEBENCH_KEY" -H "Content-Type: application/json" \
-d '{"version": 4, "scope": {"teams": ["<team-id>"]}}'PUT replaces the whole requirement. With no scope it means everyone, so send
the current scope along with a new version. DELETE on the same path stops
requiring the skill.
Attach a skill to an agent
Add the skill's reference to the agent's config, or call the API. The console has no attach button. An agent runs with up to 8 skills.
{ "skills": ["skill:eng/release-notes@3"] }POST /v1/skills/{id}/bindings with {"agent_id": "...", "version": 3} does the
same. DELETE /v1/skills/{id}/bindings/{agent_id} detaches. You need to edit the
agent: builder rank or agents:write, and be its owner or an admin.
Agents hosted in Forgebench get their bound skills, then the required ones last, which override the agent's own prompt.
Use skills in an agent on your own servers
Fetch the manifest
curl -i https://api.forgebench.ai/v1/skills/agent-manifest \ -H "Authorization: Bearer $AGENT_KEY"Returns the agent's required and bound skills with their instructions and sha256.
Cache it by ETag
Send the
ETagback asIf-None-Match. Unchanged returns 304.Add the skills to the system prompt
Put each skill's instructions in the system message.
Report what you added
Send
X-Forgebench-Skillswith the sha256 of each skill. It attributes the call to those skills.
Enforce at the gateway
The gateway checks that each required skill is in the system prompt. Set the mode on the agent:
{ "skill_hooks": { "enforcement": "block" } }| Mode | When a required skill is missing |
|---|---|
off | Default. No check. |
flag | Recorded on the call. The call goes through. |
inject | Added as a MANDATORY POLICY system message. |
block | Refused with 403 mandatory_skills_missing. |
The check applies to an agent's own key on /v1/chat/completions and the Gemini
endpoint.
Get notified when skills change
curl -X POST https://api.forgebench.ai/v1/skills/webhooks \
-H "Authorization: Bearer $FORGEBENCH_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://agents.example.com/hooks/skills", "label": "prod agents"}'The signing secret is returned once. Each delivery is a POST with
X-Forgebench-Signature: t=<unix>,v1=<hex>, the HMAC-SHA256 of <t>.<body>.
Verify it and reject old timestamps. The body lists what changed:
{ "type": "skills.changed", "occurred_at": "...",
"changes": [{ "change": "skill.mandate", "skill": "skill:eng/release-notes@3" }] }Send a test with POST /v1/skills/webhooks/{id}/test. Deliveries are best
effort, so keep using the ETag.
Give a skill tools
A skill can carry Tool Registry tools or single MCP tools. Agents bound to it may call them while it's in force. Detaching or pausing the skill removes them.
- Granting a tool needs
tools:write. Granting an MCP tool needsmcp:write. - Attaching a skill that carries grants needs the same permission, through the binding endpoint or an agent's config.
- A revoked tool binding on an agent overrides the skill's grant.
API
| Method and path | Role | Purpose |
|---|---|---|
GET /v1/skills, GET /v1/skills/{id} | viewer | List or read skills. |
POST /v1/skills | builder | Create a skill and publish @1. |
PUT, DELETE /v1/skills/{id}/mandatory | admin | Require a version for a scope, or stop. |
POST /v1/skills/{id}/bindings, DELETE .../bindings/{agent_id} | builder, and the agent's owner or an admin | Attach or detach on an agent. agents:write also admits. |
DELETE /v1/skills/{id} | admin | Delete. ?force=true overrides skill_in_use, including a required skill, and ends the requirement. |
GET /v1/skills/sync | viewer | Files a machine should have. |
GET /v1/skills/agent-manifest | agent key, or a member with skills:view passing agent_id | An agent's skills, with an ETag. |
GET /v1/skills/report | admin | Use by person, team and agent. |
/v1/skills/webhooks | admin | Register, list, delete, test. |
| Error | Fix |
|---|---|
403 mandatory_skills_missing | Add the listed skills to the system prompt. |
| 403 on attach or grant | You need tools:write or mcp:write. |
409 skill_in_use | The response lists what uses the skill. Detach it, or pass force. |
| 409 when requiring or attaching | The skill is paused, retired or deprecated. Resume it or remove the deprecation first. |
| 409 when deprecating | The skill is required. Stop requiring it first. |
| 409 on create | Another skill installs to the same folder. Set an install_name. |
422 empty_version | The version has no instructions. Publish text for it first. |
422 failed_checks | The version contains something that looks like a credential. Remove it and publish again. |
| 422 unknown team, developer or agent | An id in scope doesn't exist. |
| 422 | The version isn't published, or an agent would exceed 8 skills. |

