Skip to content

VS Code Extension: YAML Frontmatter Validation Schema Outdated for SKILL.md Files #23330

Description

@MaolinSun32

Bug Report: VS Code Extension YAML Frontmatter Validation Schema Outdated

Description

The Claude Code for VS Code extension (v2.1.31) shows validation errors for valid SKILL.md frontmatter attributes. The extension's schema validator only recognizes 5 attributes, while the actual Claude Code CLI supports many more.

Error Message

Attribute 'allowed-tools' is not supported in skill files. 
Supported: compatibility, description, license, metadata, name.

Similar errors appear for: version, argument-hint, disable-model-invocation, user-invocable, model, context, agent, hooks

Expected Behavior

The extension should recognize all supported SKILL.md frontmatter attributes that are valid in Claude Code CLI, including:

  • allowed-tools
  • version
  • argument-hint
  • disable-model-invocation
  • user-invocable
  • model
  • context
  • agent
  • hooks

Actual Behavior

The extension only validates these 5 attributes as supported:

  • compatibility
  • description
  • license
  • metadata
  • name

All other valid frontmatter attributes trigger validation warnings.

Steps to Reproduce

  1. Create a SKILL.md file with standard frontmatter:
---
name: example-skill
description: Example description
version: 1.0.0
allowed-tools: Read, Write, Edit
model: sonnet
context: fork
agent: example-agent
---
  1. Open the file in VS Code with Claude Code extension installed
  2. Observe validation warnings on lines with version, allowed-tools, model, context, agent

Impact

  • Creates confusion about which attributes are actually supported
  • Makes developers think their skill configuration is incorrect when it's actually valid
  • Causes unnecessary warnings in the editor

Environment

  • OS: Windows
  • VS Code Version: 1.109.0
  • Claude Code Extension Version: 2.1.31
  • Claude Code CLI: Working correctly with all attributes

Suggested Fix

Update the VS Code extension's YAML schema validator to match the actual Claude Code CLI specification for SKILL.md files.

Notes

The skills work perfectly fine when used with Claude Code CLI - this is purely a VS Code extension validation issue. The extension's schema appears to be outdated or incomplete compared to the actual specification.

Activity

  1. added
    bugSomething isn't working
    duplicateThis issue or pull request already exists
    has reproHas detailed reproduction steps
    platform:windowsIssue specifically occurs on Windows
    on Feb 5, 2026
  2. MaolinSun32 commented on Feb 5, 2026

    @MaolinSun32
    Author

    Duplicate of #23329, closing this one.

  3. github-actions commented on Feb 13, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  4. locked as resolved and limited conversation to collaborators on Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workingduplicateThis issue or pull request already existshas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions