AgentSkills.site

SKM-P03 · Portability

`context: fork` / `context: background` is a Claude Code-only field

Runs the skill as a forked subagent — a Claude Code mechanism with no equivalent elsewhere.

What the rule is

`context: fork` (and `context: background`) makes the skill run as a forked subagent — a Claude Code-specific mechanism with no equivalent in the other four runtimes.

This is one of the fields that degrades quietly rather than breaking anything: in a runtime that doesn't recognise it, the skill still runs, just inline rather than as a subagent. The behavioural difference — isolation, parallelism — is simply lost.

Where it comes from

Which runtimes enforce it

RuntimeEffectNote
Claude CodeEnforced (home runtime)The field's home runtime — the skill runs as a forked subagent.
CodexIgnoredIgnored — the skill runs inline rather than as a subagent.
CursorIgnoredIgnored — the skill runs inline rather than as a subagent.
OpenClawIgnoredIgnored — the skill runs inline rather than as a subagent.
Hermes AgentIgnoredIgnored — the skill runs inline rather than as a subagent.

How to fix it

  • If the skill is shared across runtimes, treat `context: fork` as a Claude Code-only enhancement, not a requirement the skill's instructions depend on. Write the body so it still makes sense running inline.

Elsewhere