invalid-context-skill

Detects invalid context values in skill unit definitions.

376|31|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/avifenesh/agnix --skill invalid-context-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: invalid-context-skill
Source: https://github.com/avifenesh/agnix/tree/main/tests/fixtures/invalid/skills/invalid-context
Command: npx skills add https://github.com/avifenesh/agnix --skill invalid-context-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps validate Skill Unit frontmatter to ensure required fields exist and that optional fields adhere to allowed values, enabling early detection of misconfigurations.

Core Features & Use Cases

  • Validates that required frontmatter fields (name and description) are present.
  • Checks optional fields (like context) for allowed values and emits clear errors when invalid.
  • Supports integration into skill validation pipelines during development and CI.

Quick Start

Validate the Skill Unit by running the validation checker against the invalid-context-skill to observe an error for the context value.

Frequently Asked Questions about invalid-context-skill

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

FAQPage Schema
How do I validate YAML frontmatter in a skill configuration file?

To validate YAML frontmatter, run a checker that ensures required fields like name and description are present and optional fields such as context contain allowed values. This detects misconfigurations early in the development pipeline.

What does context validation enforce for Skill Unit frontmatter?

Context validation enforces that the frontmatter includes required fields and that the context value is either omitted entirely or explicitly set to 'fork', failing validation for any other assigned values.

Why does my skill validation fail when context is set to an invalid value?

Skill validation fails for invalid context values because the checker only permits the context field to be omitted or set to 'fork', ensuring developers fix configuration errors during the validation pipeline.

Can I integrate frontmatter validation into my CI pipeline?

Yes, you can integrate frontmatter validation into CI pipelines to automatically check Skill Units across a repository, ensuring required fields exist and optional fields adhere to allowed values before deployment.

What's the best way to check for missing required fields in skill frontmatter?

The best way to check for missing required fields is using a validation checker that scans YAML frontmatter for required properties like name and description, emitting clear errors when fields are absent or invalid.