with-model-skill

Validate model configuration values against allowed options in YAML.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures that a Skill's model configuration value is valid and matches one of the accepted options, preventing misconfigurations in tests and deployments.

Core Features & Use Cases

  • Validate the model field against accepted options: sonnet, opus, haiku, inherit.
  • Use in testing and CI to catch invalid configurations early.
  • Provide clear errors and guidance when a value is invalid, with easy quick fixes.

Quick Start

Provide a YAML entry with a model field to verify it matches one of the accepted values.

Frequently Asked Questions about with-model-skill

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

FAQPage Schema
How do I validate a model configuration value against accepted options in CI?

Model configuration validation works by enforcing frontmatter presence for name and description, then checking the model field value against a predefined allowed list to prevent invalid configurations in tests and deployments.

What are the accepted model values I can use in my configuration frontmatter?

Accepted model values for configuration frontmatter are sonnet, opus, haiku, and inherit. Validating against these options prevents invalid configurations from passing through testing or CI environments.

How do I check if my YAML frontmatter has the required name and description fields?

YAML frontmatter validation checks for the mandatory presence of name and description fields while simultaneously verifying the model field value. This ensures all required metadata exists before configuration approval.

Can I use model configuration validation in both local and CI environments?

Model configuration validation works in both local and CI environments, allowing you to catch invalid configurations early in development and prevent misconfigurations from reaching deployment stages.

What happens when an invalid model value is found during configuration validation?

When an invalid model value is found, configuration validation provides clear errors and guidance with easy quick fixes. This immediate feedback helps correct misconfigurations before they affect tests or deployments.