Skills Skills Govern skills

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.

  1. Open the skill

    Go to Skills, open the skill, and find Required for.

  2. Choose who

    Pick Everyone, or Selected and choose teams, developers, agents or repositories. Pick Nobody to stop requiring it.

  3. Save

    Developers get the skill on their next forgebench skills sync. Agents get it on their next run.

ScopeReaches
EveryoneEvery developer and agent.
TeamsPeople on the team and the teams beneath it.
DevelopersThe people you name, on their machines.
AgentsThe agents you name, in their own runs.
RepositoriesWork 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

  1. 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.

  2. Cache it by ETag

    Send the ETag back as If-None-Match. Unchanged returns 304.

  3. Add the skills to the system prompt

    Put each skill's instructions in the system message.

  4. Report what you added

    Send X-Forgebench-Skills with 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" } }
ModeWhen a required skill is missing
offDefault. No check.
flagRecorded on the call. The call goes through.
injectAdded as a MANDATORY POLICY system message.
blockRefused 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 needs mcp: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 pathRolePurpose
GET /v1/skills, GET /v1/skills/{id}viewerList or read skills.
POST /v1/skillsbuilderCreate a skill and publish @1.
PUT, DELETE /v1/skills/{id}/mandatoryadminRequire a version for a scope, or stop.
POST /v1/skills/{id}/bindings, DELETE .../bindings/{agent_id}builder, and the agent's owner or an adminAttach or detach on an agent. agents:write also admits.
DELETE /v1/skills/{id}adminDelete. ?force=true overrides skill_in_use, including a required skill, and ends the requirement.
GET /v1/skills/syncviewerFiles a machine should have.
GET /v1/skills/agent-manifestagent key, or a member with skills:view passing agent_idAn agent's skills, with an ETag.
GET /v1/skills/reportadminUse by person, team and agent.
/v1/skills/webhooksadminRegister, list, delete, test.
ErrorFix
403 mandatory_skills_missingAdd the listed skills to the system prompt.
403 on attach or grantYou need tools:write or mcp:write.
409 skill_in_useThe response lists what uses the skill. Detach it, or pass force.
409 when requiring or attachingThe skill is paused, retired or deprecated. Resume it or remove the deprecation first.
409 when deprecatingThe skill is required. Stop requiring it first.
409 on createAnother skill installs to the same folder. Set an install_name.
422 empty_versionThe version has no instructions. Publish text for it first.
422 failed_checksThe version contains something that looks like a credential. Remove it and publish again.
422 unknown team, developer or agentAn id in scope doesn't exist.
422The version isn't published, or an agent would exceed 8 skills.

Cookie settings

Our Cookie Policy lists every cookie and what it does.