Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/examples/jeremy-plugin-tool/skills/plugin-validator

plugin-validator

Verified

Validate automatically validates AI assistant code plugin structure, schemas, and compliance when user mentions validate plugin, check plugin, or plugin errors. runs comprehensive validation specific to AI assistant-code-plugins repository standards. Use when validating configurations or code. Trigger with phrases like 'validate', 'check', or 'verify'.

FileKindSize
SKILL.mdskill md6.1 KB
assets/README.mdmarkdown526 B
references/ARD.mdmarkdown4.3 KB
references/PRD.mdmarkdown3.7 KB
references/README.mdmarkdown581 B
references/errors.mdmarkdown319 B
references/examples.mdmarkdown752 B
references/validation-checks.mdmarkdown2.7 KB
references/validation-report-format.mdmarkdown792 B
scripts/README.mdmarkdown623 B
scripts/validate_plugin_marketplace.pyexecutablescript2.6 KB

scripts/validate_plugin_marketplace.py

View on GitHub
#!/usr/bin/env python3
"""
Jeremy Plugin Tool — Marketplace-Grade Validator (thin delegating wrapper).

This script used to carry its own 725-line validation implementation with a
6-field required set (missing compatibility + tags) that diverged from the
authoritative validator. It now delegates to scripts/validate-skills-schema.py
at the repository root, run at the marketplace tier (the IS 8-field required
set + 100-point rubric).

CLI surface (preserved from the previous implementation):
    python3 validate_plugin_marketplace.py [plugin_path] [--verbose|-v] [--fail-on-warn]

plugin_path defaults to "." (current directory, validated in plugin mode).
Exit codes: 0 = pass, 1 = errors (unchanged).

Author: Jeremy Longshore <jeremy@intentsolutions.io>
"""

import argparse
import subprocess
import sys
from pathlib import Path


def find_main_validator() -> Path | None:
    """Resolve scripts/validate-skills-schema.py by walking up from this file."""
    current = Path(__file__).resolve().parent
    for _ in range(10):
        candidate = current / "scripts" / "validate-skills-schema.py"
        if candidate.exists():
            return candidate
        if current.parent == current:
            break
        current = current.parent
    return None


def main() -> int:
    parser = argparse.ArgumentParser(
        description="Jeremy Plugin Tool - Marketplace-Grade Validator (delegates to validate-skills-schema.py)"
    )
    parser.add_argument("plugin_path", nargs="?", default=".", help="Plugin directory or repository root")
    parser.add_argument("--verbose", "-v", action="store_true", help="Print per-file OK lines")
    parser.add_argument("--fail-on-warn", action="store_true", help="Treat warnings as errors")
    args = parser.parse_args()

    print(
        "DEPRECATED: this wrapper delegates to scripts/validate-skills-schema.py "
        "(the authoritative validator); invoke it directly for the full flag surface.",
        file=sys.stderr,
    )

    target = Path(args.plugin_path)
    if not target.exists():
        print(f"ERROR: Path does not exist: {target.resolve()}", file=sys.stderr)
        return 1

    validator = find_main_validator()
    if validator is None:
        print(
            "ERROR: Cannot find scripts/validate-skills-schema.py — run from within the claude-code-plugins repo",
            file=sys.stderr,
        )
        return 1

    cmd = [sys.executable, str(validator), "--marketplace"]
    if args.verbose:
        cmd.append("--verbose")
    if args.fail_on_warn:
        cmd.append("--fail-on-warn")
    cmd.append(str(target))

    return subprocess.run(cmd).returncode


if __name__ == "__main__":
    sys.exit(main())
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall