bad_fallback

Validate fallback_chain method ids in skill metadata against defined methods.

40|6|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/0xmariowu/Autosearch --skill bad-fallback
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bad_fallback
Source: https://github.com/0xmariowu/Autosearch/tree/main/tests/fixtures/skills/bad_fallback
Command: npx skills add https://github.com/0xmariowu/Autosearch --skill bad-fallback

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The loader should reject unknown fallback method ids by validating that every id in a skill's fallback_chain exists among the defined methods, preventing runtime errors during skill loading.

Core Features & Use Cases

  • Verify that all ids in fallback_chain refer to defined method ids.
  • Report precise, actionable errors when a fallback id is missing or duplicated.
  • Ensure safe loading by rejecting skills with invalid fallback configurations in CI or runtime environments.
  • Use Case: A new skill defines methods: [primary, secondary] and fallback_chain: [primary, secondary]; the loader confirms validity and proceeds.

Quick Start

Run the loader on this skill to verify that every id in fallback_chain matches a defined method.

Frequently Asked Questions about bad_fallback

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate fallback chains in skill metadata to prevent runtime loading errors?

Validating fallback chains in skill metadata involves checking that every method id declared in a fallback_chain exists in the defined methods list. This prevents runtime errors by rejecting skills with invalid fallback configurations during loading or CI checks.

What causes a skill loader to fail when parsing a fallback_chain in YAML frontmatter?

A skill loader fails when a fallback_chain references unknown or duplicated method ids. The loader enforces strict YAML frontmatter requiring name, description, and a methods list, rejecting any skill where fallback ids do not match defined methods.

How do I check if a fallback method id is missing from the defined methods list?

You check for a missing fallback method id by running a validation loader on the skill. The loader identifies every id in the fallback_chain, confirms each exists among the defined methods, and reports precise, actionable errors for any missing or duplicated ids.

Does the skill validation loader require strict YAML frontmatter for method fallback configurations?

Yes, the validation loader requires strict YAML frontmatter that includes name, description, and a defined methods list. This strict enforcement ensures the fallback_chain has a coherent structure to validate against before loading proceeds.

Can I use this fallback chain validation in a CI environment to ensure safe skill loading?

Yes, you can use this validation in CI environments to ensure safe skill loading. The loader enforces fallback chain coherence and rejects skills with invalid configurations, preventing runtime errors before they reach production.

What happens when a fallback_chain references a method id that is duplicated?

When a fallback_chain references a duplicated method id, the validation loader reports a precise, actionable error. This rejects the skill's invalid fallback configuration to prevent loading errors and ensure the chain remains coherent.