Skip to content

aiskillstore/marketplace / skills/92bilal26/code-validation-sandbox

code-validation-sandbox

Flagged

Validate code examples across the 4-Layer Teaching Method with intelligent strategy selection. Use when validating Python/Node/Rust code in book chapters. NOT for production deployment testing.

FileKindSize
README.mdmarkdown11.5 KB
SKILL.mdskill md6.2 KB
metadata.yamlconfig641 B
scripts/detect-context.shexecutablescript6.8 KB
scripts/setup-sandbox.shexecutablescript2.5 KB
scripts/validate-python.shexecutablescript6.5 KB
scripts/validate.shexecutablescript7.4 KB
scripts/verify.pyscript1.5 KB
skill-report.jsonconfig109.2 KB

scripts/verify.py

View on GitHub
#!/usr/bin/env python3
"""Verify code-validation-sandbox skill environment is ready."""
import subprocess
import sys
import shutil


def check_python():
    """Check Python 3.8+ is available."""
    try:
        result = subprocess.run(
            ["python3", "--version"],
            capture_output=True,
            text=True
        )
        if result.returncode == 0:
            version = result.stdout.strip()
            return True, version
        return False, "python3 not found"
    except FileNotFoundError:
        return False, "python3 not installed"


def check_docker():
    """Check Docker is available for sandbox validation."""
    if shutil.which("docker") is None:
        return False, "docker not installed"

    result = subprocess.run(
        ["docker", "info"],
        capture_output=True,
        text=True
    )
    if result.returncode != 0:
        return False, "docker not running"
    return True, "docker available"


def main():
    errors = []

    # Check Python
    ok, msg = check_python()
    if not ok:
        errors.append(f"Python: {msg}")

    # Check Docker (optional but recommended)
    ok, msg = check_docker()
    if not ok:
        print(f"⚠ Docker: {msg} (optional for isolated validation)")

    if errors:
        print(f"✗ Validation failed: {'; '.join(errors)}")
        print("Run: brew install python3 docker")
        sys.exit(1)

    print("✓ code-validation-sandbox ready")
    sys.exit(0)


if __name__ == "__main__":
    main()
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 197kUpdated Claude CodeCodexVerifiedInstall