mikeparcewski/wicked-garden / .claude/skills/scaffolding
scaffold
FlaggedComponent 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.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 5.7 KB |
| SKILL.md | skill md | 8.5 KB |
| scripts/scaffold.pyexecutable | script | 18.9 KB |
| templates/.gitkeep | other | 285 B |
| templates/agent/agent.md | markdown | 1.3 KB |
| templates/hook/hooks.json | config | 359 B |
| templates/hook/script.py | script | 1.2 KB |
| templates/plugin/README.md | markdown | 702 B |
| templates/plugin/command-with-agent.md | markdown | 1.1 KB |
| templates/plugin/command.md | markdown | 593 B |
| templates/plugin/gitignore | other | 283 B |
| templates/plugin/plugin.json | config | 165 B |
| templates/specialist/specialist.json | config | 1.0 KB |
| tests/test_scaffold.shexecutable | script | 3.5 KB |
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()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |