agent-routing
Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe…
Specialized Preact development skill for standards-based web applications with native-first architecture and minimal dependency footprint. Use when building Preact projects, particularly those involving data visualization, interactive applications, single-page apps with HTM
$ npx -y skills add oaustegard/claude-skills --skill developing-preact --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/developing-preactContext preview
The summary Claude sees to decide when to auto-load this skill.
Specialized Preact development skill for standards-based web applications with native-first architecture and minimal dependency footprint. Use when building Preact projects, particularly those involving data visualization, interactive applications, single-page apps with HTM
name: developing-preact description: Specialized Preact development skill for standards-based web applications with native-first architecture and minimal dependency footprint. Use when building Preact projects, particularly those involving data visualization, interactive applications, single-page apps with HTM syntax, Web Components integration, CSV/JSON data parsing, WebGL shader visualizations, or zero-build solutions with vendored ESM imports. metadata: version: 1.2.1
Transform Claude into a specialized Preact developer with expertise in building standards-based web applications using native-first architecture. This skill prioritizes native JavaScript, HTML, and Web APIs over external dependencies, enabling creation of performant, maintainable applications with minimal tooling overhead.
**Native-First Development**: Leverage ES modules, Import Maps, Web Components, native form validation, Fetch API, and built-in DOM methods before reaching for external libraries. Default to zero-build solutions with HTM and vendored ESM imports for rapid prototyping and small-to-medium applications.
**Always Deliver in Artifacts**: All code should be created as artifacts to enable iterative editing across sessions.
Trigger this skill when working on:
Follow this decision tree to determine the optimal architecture:
**Characteristics**: Quick prototype, demo, educational example, or proof of concept
**Architecture**:
**Start with**: Run `bash scripts/vendor.sh` to fetch dependencies, then use `assets/boilerplate.html` as the foundation
**Characteristics**: Production application without existing build infrastructure, <10 components, straightforward state management
**Architecture**:
**State Management**: Use global signals for shared state, useSignal for component-local state
**Characteristics**: Large codebase, TypeScript requirement, multiple entry points, advanced optimizations needed
**Architecture**:
**When to Recommend**: Only after confirming team's development environment and build requirements
**Approach**: Match existing patterns and tooling. Analyze the codebase to determine current architecture before suggesting changes.
Always use this exact import map structure for standalone examples. Dependencies are vendored locally via `scripts/vendor.sh` (fetched from `registry.npmjs.org`):
<script type="importmap">
{
"imports": {
"preact": "./vendor/preact.module.js",
"preact/hooks": "./vendor/hooks.module.js",
"@preact/signals-core": "./vendor/signals-core.mjs",
"@preact/signals": "./vendor/signals.mjs",
"htm": "./vendor/htm.module.js",
"htm/preact": "./vendor/htm.module.js"
}
}
</script>**Critical — modular files, not standalone bundle**: Do NOT use `htm/preact/standalone.module.js`. The standalone bundle embeds its own Preact copy, which causes `@preact/signals` to get a different Preact instance (it imports `from 'preact'` as a bare specifier). Modular files + import map = one shared Preact instance for everything.
**Why vendored, not CDN**: `esm.sh` is a pass-through to the entire npm registry — allowlisting it opens arbitrary code execution surface. `registry.npmjs.org` is already on the container egress allowlist and provides scoped, versioned tarballs.
**Default to HTM** tagged template literals unless:
When mentally converting from React/JSX patterns to HTM, apply these rules:
HTM uses JavaScript template literals. Everything that was `{expression}` in JSX becomes `${expression}`. Component *names* are also expressions, hence `<${Component}>`.
| Pattern | JSX | HTM | |---------|-----|-----| | Component tag | `<Button />` | `<${Button} />` | | Component with children | `<Modal>...</Modal>` | `<${Modal}>...</${Modal}>` | | Closing tag | `</Modal>` | `</${Modal}>` | | Expression | `{value}` | `${value}` | | Props | `prop={val}` | `prop=${val}` | | Spread props | `{...obj}` | `...${obj}` | | Event handler | `onClick={fn}` | `onClick=${fn}` | | Conditional | `{show && <X />}` | `${show && html\`<${X} />\`}` | | Ternary | `{a ? <X /> : <Y />}` | `${a ? html\`<${X} />\` : html\`<${Y} />\`}` | | Map | `{items.map(i => <Li />)}` | `${items.map(i => html\`<li>...</li>\`)}` |
1. **Component references need `${}`**: The component name is a JavaScript expression
// JSX
<Button onClick={handleClick}>Save</Button>A collection of Claude skills distributed as a Claude Code plugin marketplace. Skills are primarily designed for the Claude.ai PaaS skill compute environment; mileage will vary if used as Claude Code Agent Skills.
Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe…
Cross-context adversarial review for deliverables before shipping. Use when producing blog posts, technical recommendations,…
Convenes expert panels for problem-solving. Use when user mentions panel, experts, multiple perspectives, MECE, DMAIC, RAPID, Six…
Routes, triages, flags and rates a piece of text with a probability for every option: which department or queue a ticket goes to,…
Delegates work to a subagent or spawned session by writing only the task, while a PreToolUse hook pages the parent transcript…
Chooses how to launch subagents from Claude Code (the Agent tool, a Workflow script, or headless claude -p children) and runs a…