Development

From agent0ai/space-agent · View interactive version

Development is an AI agent skill from the GitHub repository agent0ai/space-agent. Build new browser modules in the layered Space Agent runtime and use the extension, component, and Alpine store patterns correctly.

How to use this skill

Skill file

Use this skill when the user asks how to build a module, where code should live, how layers work, or how the extension/component/Alpine runtime composes the frontend.

Layer Model

Module Layout

How The Frontend Composes

  1. Page shells in server/pages/ stay thin and expose <x-extension id="..."> anchors.
  2. Matching HTML extension files live under mod/<author>/<repo>/ext/html/<anchor>/....
  3. Those extension files usually mount a real component with <x-component path="/mod/...">.
  4. <x-component> loads the component HTML, styles, scripts, and nested components.
  5. Alpine stores and small module utilities own the behavior.

Example pattern:

<x-extension id="page/admin/body/start"></x-extension>
<x-component path="/mod/_core/admin/views/shell/shell.html"></x-component>

Alpine And Store Pattern

JS Extension Hooks

Layer Resolution And Overrides

Practical Workflow

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.