Ext Scaffold
Agent Buildingext-scaffoldExt Scaffold is an Agent Skill for agent building published in the clacky-ai/openclacky repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Scaffold a new OpenClacky extension from an idea. Use when the user wants to create, start, or bootstrap a new extension, plugin, panel, agent, or skill container. Maps the idea to the right contributes types and generates a working skeleton in the local layer.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/clacky-ai/openclacky/blob/HEAD/lib/clacky/default_extensions/ext-studio/skills/ext-scaffold/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ext-scaffold, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Extension Scaffold
Turn a plain-language idea into a working extension skeleton, then read the generated files so you know what you're working with.
Step 1 — Understand the idea
Figure out what the extension should DO and which contributes types it needs. Ask one clarifying question only if it's genuinely ambiguous. Common mappings:
- "Show me X in a side panel / add a button / dashboard" → panel (+ api if it needs a backend or to call an external service).
- "A capability the AI can invoke" (summarize, translate, format) → skill.
- "A specialized assistant with its own personality/tools" → agent (usually bundling its own panels/skills).
- "Connect to Slack / an in-house IM" → channel.
Keep it minimal. Most useful extensions are one panel + one handler, or one skill.
Do NOT add patches or hooks unless the user explicitly asks — they run arbitrary
Ruby and carry supply-chain risk.
Step 2 — Generate the skeleton
Pick a lowercase, hyphenated id derived from the idea (e.g. weather-panel).
clacky ext new <id>
This creates ~/.clacky/ext/local/<id>/ with a working hello panel + handler:
ext.yml— the manifestpanels/hello/view.js— a panel that pings the backendapi/handler.rb— aClacky::ApiExtensionsubclass mounted at/api/ext/<id>/
Use --full only if the user needs the kitchen-sink reference exercising all seven
contributes types — it's a lot to read, so prefer the plain scaffold otherwise.
Step 3 — Read what was generated
Always read the generated ext.yml, view.js, and handler.rb before editing. This
is your starting point; you'll reshape it to match the idea.
Step 4 — Reshape to the idea
Edit the files into real, working code:
- Rename the panel id and
view.jspath to match the feature. - Update
ext.ymlcontributes:— addskills:/agents:blocks if needed. A skill is aSKILL.mdunderskills/<id>/; an agent is asystem_prompt.mdthat can referencepanels: [id]andskills: [id]. - In
view.js, reuse host CSS classes (btn-primary,btn-secondary,form-input,form-textarea,form-label) so the panel inherits the theme automatically. - In
handler.rb, define routes relative to the/api/ext/<id>/mount.
Step 5 — Confirm it loads
Run clacky ext verify and confirm the new units resolve with no errors. Then tell
the user to reload the WebUI page — panels and api changes are live on the next request,
no restart needed.
If verify reports problems, switch to debugging (the ext-debug skill covers this).