All Agent Engineering

Claude Code forked skills: context and waiting for results

Establish required context for an isolated skill task and when to wait for results.

AINavWritten / Updated
On this page

At a glance

This page inspects one configuration or restoration contract from official documentation. No actual skill, subagent, hook or restoration was executed. Local checks use synthetic inputs and are not complete product tests.

Runtime and applicability

Article type
Spec file
Verified
Applies to
  • Claude Code Applies to the documented Claude Code configuration and version contract.

File locations

PathScopeHow it is read
.claude/skills/<name>/SKILL.mdThe configuration or session operation described here.Read by Claude Code under the relevant loading and event contract; not enabled in this run.

When to use

  • Establish required context for an isolated skill task and when to wait for results.

When not to use

  • Establish required inputs, permission scope and recovery points before execution.

A forked skill omits conversation history

context=fork starts the subagent type named by agent and passes skill content as its task. It does not include conversation history, so the body must specify inputs, action and deliverable. Reference guidelines alone may provide no actionable task. The default agent type is general-purpose.

Background default and foreground waiting

Forked skills run in the background by default and deliver their result on completion; background=false waits in the invoking turn. Documented exceptions include non-interactive -p, disabled background tasks, an earlier running invocation of the same skill and session-scheduled triggers. The setting is not a full branch of the current conversation.

Inspect tools and recovery boundaries

Background subagents have a narrower tool set. Use background=false when required tools are outside it and inspect agent permissions. Main-session rewind does not guarantee restoration of background-fork edits to other files. No fork or file edit was executed here; inspect context, tools and a version-control recovery point before enabling it.

Sources

All links are official pages; verification dates are listed per source, and links point to the version checked.

  1. Anthropic · Extend Claude with skills

Found an error? Tell us →