Skip to main content
Fallback skills are offered only when a needed tool or MCP server is absent.
The user runs the agent; fallback skills appear in the listing only when required tools or servers are missing.

Quick Start

1

Declare a fallback in SKILL.md

Add fallback_for_tools or fallback_for_servers to the SKILL.md frontmatter:
The skill appears only when the web tool is not present, and only when terminal is available.
2

Wire it into an Agent

  • If web-fetch provides a web tool → web-via-terminal is hidden.
  • If only terminal is available → web-via-terminal is offered.

How It Works

The skill’s own requires_tools / requires_servers / requires_env gates still apply on top of fallback eligibility. A fallback skill that can’t satisfy its own requirements is still excluded.

Configuration Options

Both underscore and hyphen forms are accepted. If both are set, the union is used.

Common Patterns

Web fallback via terminal

When a native web tool is absent, let agents use curl through the terminal tool instead:

Local search fallback when no MCP search server is configured

Multiple primary tools — fallback hidden unless all are absent

The fallback is hidden if any of pdf_read or ocr_extract is present.

Best Practices

A fallback skill that cannot run is still excluded. Always declare the tools the fallback actually needs via requires_tools so the skill manager can gate it properly.
Fallback skills run in place of a primary capability — their output should be as close as possible to what the primary would produce. Add notes in the skill body describing any known differences.
Avoid making a fallback skill declare its own fallback_for_* pointing to another fallback skill. The filter logic is applied once during skill discovery and chaining is not resolved automatically.
Verify both paths: that the fallback appears when the primary is absent, and that it disappears when the primary is present.

Skill Capability Gates

Declare tool, server, and env requirements — the forward gates that fallbacks complement

Agent Skills

Overview of the skills system and how to write skills

Skill Invocation

How skills are invoked at runtime

Skill Lifecycle

Discover, validate, and activate skills