Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

claude-plugin-validation

БесплатноБез исполняемых скриптовНе проверен

Comprehensive validation system for Claude Code plugins to ensure compliance with official plugin development guidelines and prevent installation failures

bejranondaот bejranonda★ 28 звёзд на GitHub17 установок в других каталогах

Об этом скилле

Overview

This skill provides comprehensive validation for Claude Code plugins to ensure they meet official development guidelines, prevent installation failures, and maintain compatibility across different versions. It focuses on critical validation areas that commonly cause plugin breakage.

When to Apply

Use this skill when:

  • Preparing a plugin for release
  • Debugging plugin installation failures
  • Updating plugin structure or manifest
  • Validating compatibility with Claude Code versions
  • Conducting quality assurance checks
  • Investigating plugin loading issues

Claude Code Plugin Guidelines Validation

1. Plugin Manifest (plugin.json) Validation

Critical Requirements:

  • Required Fields: name, version, description, author
  • Valid JSON Syntax: Must pass JSON parsing without errors
  • Semantic Versioning: Use x.y.z format (no pre-release identifiers)
  • Version Consistency: Must match version references in documentation
  • Character Encoding: UTF-8 encoding required
  • File Size: Under 1MB recommended for performance

Validation Checks:

{
  "required_fields": ["name", "version", "description", "author"],
  "optional_fields": ["repository", "license", "homepage", "keywords"],
  "version_pattern": "^\\d+\\.\\d+\\.\\d+$",
  "max_file_size": 1048576,
  "encoding": "utf-8"
}

Common Issues that Cause Installation Failures:

  • Missing required fields
  • Invalid JSON syntax (trailing commas, unescaped characters)
  • Incorrect version format
  • Special characters in description without proper escaping
  • File encoding issues

2. Directory Structure Validation

Required Structure:

plugin-root/
├── .claude-plugin/
│   └── plugin.json          # Plugin manifest (REQUIRED)
├── agents/                  # Agent definitions (optional)
├── skills/                  # Skill definitions (optional)
├── commands/                # Command definitions (optional)
└── lib/                    # Python utilities (optional)

Validation Rules:

  • .claude-plugin/plugin.json must exist and be valid JSON
  • Directory names must match plugin system conventions
  • Files must use .md extension for agents/skills/commands
  • No circular directory references
  • Proper case sensitivity handling

3. File Format Compliance

Agent Files (agents/*.md):

---
name: agent-name
description: When to invoke this agent (action-oriented)
tools: Read,Write,Edit,Bash,Grep,Glob  # optional
model: inherit  # optional
---

# Agent Title

Core responsibilities...

## Skills Integration
Reference skills by name...

## Approach
Detailed instructions...

## Handoff Protocol
How to return results...

Skill Files (skills/*/SKILL.md):

---
name: Skill Name
description: What this skill provides (200 char max)
version: 1.0.0
---

## Overview
What, when, and why...

## Domain-Specific Sections
2-5 sections with guidelines, examples, standards...

## When to Apply
Trigger conditions...

Command Files (commands/*.md):

  • Should not start with dot (.)
  • Must contain usage examples
  • Should include ## Usage section
  • Must be valid Markdown

4. YAML Frontmatter Validation

Required YAML Structure:

---
name: string           # Required for agents/skills
description: string    # Required for agents/skills
version: string       # Required for skills
tools: array          # Optional for agents
model: string         # Optional for agents
---

YAML Validation Rules:

  • Valid YAML syntax (no tabs for indentation)
  • Proper string escaping
  • No duplicate keys
  • Valid data types (string, array, etc.)
  • UTF-8 encoding

5. Cross-Platform Compatibility

File Path Handling:

  • Use forward slashes in documentation
  • Handle Windows path separators (\) in scripts
  • Case sensitivity considerations
  • Maximum path length (260 chars Windows, 4096 Linux/Mac)

Character Encoding:

  • All files must be UTF-8 encoded
  • No BOM (Byte Order Mark)
  • Proper Unicode handling in JSON
  • Escape special characters correctly

Line Ending Compatibility:

  • Git configuration: git config --global core.autocrlf false
  • Use LF line endings in source files
  • Batch scripts: CRLF endings required
  • Shell scripts: LF endings required

6. Plugin Dependency Validation

External Dependencies:

  • List all Python dependencies in requirements
  • Validate package availability and versions
  • Check for conflicting dependencies
  • Ensure cross-platform package availability

Claude Code Compatibility:

  • Check for deprecated Claude Code features
  • Validate agent tool usage
  • Ensure skill loading compatibility
  • Verify command naming conventions

7. Installation Failure Prevention

Pre-Installation Validation:

# Validate plugin before distribution
python -c "
import json
import os

# Check plugin manifest
try:
    with open('.claude-plugin/plugin.json', 'r') as f:
        manifest = json.load(f)
    required = ['name', 'version', 'description', 'aut
Полный SKILL.md на GitHub

Установить claude-plugin-validation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл claude-plugin-validation?

Comprehensive validation system for Claude Code plugins to ensure compliance with official plugin development guidelines and prevent installation failures

Как установить скилл claude-plugin-validation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл claude-plugin-validation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить claude-plugin-validation с