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 |
tests/test_scaffold.sh
View on GitHub#!/bin/bash
#
# Test script for scaffold tool (unified wicked-garden plugin, skills-only)
#
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../../.." && pwd)"
SCAFFOLD_SCRIPT="$PROJECT_ROOT/.claude/skills/scaffolding/scripts/scaffold.py"
echo "=== Testing Scaffold Tool (skills-only) ==="
echo
# Test 1: Skill scaffold
echo "Test 1: Skill scaffold"
python3 "$SCAFFOLD_SCRIPT" skill \
--name test-skill \
--domain crew \
--description "Test skill" \
--use-when "testing"
if [ ! -f "$PROJECT_ROOT/skills/crew/test-skill/SKILL.md" ]; then
echo "FAIL: Skill not created at skills/crew/test-skill/SKILL.md"
exit 1
fi
echo "PASS: Skill scaffold"
echo
# Test 2: Worker (context:fork) scaffold — the former "agent"
echo "Test 2: Worker scaffold (context:fork)"
python3 "$SCAFFOLD_SCRIPT" worker \
--name test-worker \
--domain platform \
--description "Test worker" \
--tools "Read,Write"
if [ ! -f "$PROJECT_ROOT/skills/platform-test-worker/SKILL.md" ]; then
echo "FAIL: Worker skill not created at skills/platform-test-worker/SKILL.md"
exit 1
fi
# It must declare context: fork and the dash-qualified name.
if ! grep -q "^context: fork$" "$PROJECT_ROOT/skills/platform-test-worker/SKILL.md"; then
echo "FAIL: Worker skill missing 'context: fork' frontmatter"
exit 1
fi
if ! grep -q "^name: wicked-garden-platform-test-worker$" "$PROJECT_ROOT/skills/platform-test-worker/SKILL.md"; then
echo "FAIL: Worker skill missing dash-qualified 'name' frontmatter"
exit 1
fi
echo "PASS: Worker scaffold"
echo
# Test 3: 'agent' back-compat alias still scaffolds a fork worker
echo "Test 3: Agent alias (back-compat) scaffolds a worker"
python3 "$SCAFFOLD_SCRIPT" agent \
--name test-agent \
--domain engineering \
--description "Test agent alias" \
--tools "Read"
if [ ! -f "$PROJECT_ROOT/skills/engineering-test-agent/SKILL.md" ]; then
echo "FAIL: 'agent' alias did not create skills/engineering-test-agent/SKILL.md"
exit 1
fi
echo "PASS: Agent alias"
echo
# Test 4: Command scaffold is RETIRED — must NOT create a commands/ file
echo "Test 4: Command scaffold is retired (no file written)"
python3 "$SCAFFOLD_SCRIPT" command \
--name test-command \
--domain engineering \
--description "Test command"
if [ -e "$PROJECT_ROOT/commands" ]; then
echo "FAIL: commands/ tree must not be re-created by the scaffolder"
exit 1
fi
echo "PASS: Command retirement"
echo
# Test 5: Hook scaffold
echo "Test 5: Hook scaffold"
python3 "$SCAFFOLD_SCRIPT" hook \
--event PostToolUse \
--script test-hook \
--description "Test hook" \
--matcher "Read"
if [ ! -f "$PROJECT_ROOT/hooks/scripts/test-hook.py" ]; then
echo "FAIL: Hook script not created at hooks/scripts/test-hook.py"
exit 1
fi
# Check hooks.json was updated
if ! grep -q "PostToolUse" "$PROJECT_ROOT/hooks/hooks.json"; then
echo "FAIL: hooks.json not updated with PostToolUse entry"
exit 1
fi
echo "PASS: Hook scaffold"
echo
# Test 6: Invalid domain rejection
echo "Test 6: Invalid domain rejection"
if python3 "$SCAFFOLD_SCRIPT" skill --name bad-skill --domain invalid-domain --description "Should fail" 2>/dev/null; then
echo "FAIL: Should have rejected invalid domain"
exit 1
fi
echo "PASS: Invalid domain rejection"
echo
# Cleanup
echo "Cleaning up..."
rm -rf "$PROJECT_ROOT/skills/crew/test-skill"
rm -rf "$PROJECT_ROOT/skills/platform-test-worker"
rm -rf "$PROJECT_ROOT/skills/engineering-test-agent"
rm -f "$PROJECT_ROOT/hooks/scripts/test-hook.py"
echo "PASS: Cleanup complete"
echo
echo "=== All Tests Passed ==="
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 |