Skip to content

mikeparcewski/wicked-garden / .claude/skills/scaffolding

scaffold

Flagged

Component scaffolding toolkit for creating skills, context:fork worker skills, and hooks within the unified wicked-garden plugin. Generates complete, valid structures that pass validation out-of-the-box. Use when creating new domain components, setting up boilerplate, or ensuring proper structure from the start.

templates/hook/script.py

View on GitHub
#!/usr/bin/env python3
"""
{{event}} hook for {{plugin_name}}.

Exit codes:
  0 - Success, continue
  2 - Blocking error (message sent to Claude)
  Other - Non-blocking error (logged)
"""

import sys
import json
import os


def main():
    """Main hook execution."""
    # Read hook data from stdin
    try:
        data = json.loads(sys.stdin.read())
    except json.JSONDecodeError as e:
        print(f"Error: Invalid JSON input: {e}", file=sys.stderr)
        sys.exit(1)

    # Get hook context
    tool = data.get('tool', '')
    arguments = data.get('arguments', {})
    context = data.get('context', {})

    # Hook logic here
    # Example: Block dangerous commands
    if tool == 'Bash':
        command = arguments.get('command', '')

        # Check for dangerous patterns
        dangerous_patterns = [
            'rm -rf /',
            'curl | bash',
            'wget | sh',
            '> /dev/sda'
        ]

        for pattern in dangerous_patterns:
            if pattern in command:
                print(f"Blocked dangerous command: {pattern}")
                sys.exit(2)  # Block execution

    # Allow execution
    sys.exit(0)


if __name__ == "__main__":
    main()
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall