Back to list
unknownbreaker

validate-schema

by unknownbreaker

TCL Language Server for Neovim

1🍴 0📅 Jan 24, 2026

SKILL.md


name: validate-schema description: Validate TCL AST against Lua schema definitions user-invocable: true allowed-tools: Bash, Read

Usage

  • /validate-schema - Validate all fixture files against schema
  • /validate-schema <file.tcl> - Validate a specific TCL file

What This Does

This skill validates that the TCL parser output conforms to the expected AST schema defined in Lua. It helps detect serialization drift between the TCL and Lua components.

Implementation

  1. Parse TCL file(s) with the TCL parser to get JSON AST
  2. Validate the JSON against lua/tcl-lsp/parser/schema.lua
  3. Report any schema violations with paths and error messages

Commands

# Validate all fixtures
./scripts/validate-schema.sh

# Validate specific file
./scripts/validate-schema.sh path/to/file.tcl

# Run via make
make validate-schema

Output

  • OK: File validates successfully against schema
  • ERROR: Schema violation found with path and message

Example

$ /validate-schema

[INFO] Starting schema validation...
[INFO] Valid: basic.tcl
[INFO] Valid: procedures.tcl
[ERROR] Validation failed: namespace.tcl
  ERROR: Missing required field 'name' for node type 'namespace' at root.children[1]
[ERROR] Schema validation failed: 1/3 file(s) with drift

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon