@yodaos-pkg/create-aiui-agent
v2.1.2
Published
Scaffold a new AIUI Agent project from the built-in template in this package.
Readme
create-aiui-agent
Scaffold a new AIUI Agent project from the built-in template in this package.
The generated project is ready for local development and includes:
AGENTS.mdfor agent metadataapp.jsfor app lifecycle logicapp.jsonfor global page configurationpages/index/index.inkas the first page entry
Quick Start
Create a new project with npx:
npx @yodaos-pkg/create-aiui-agent my-agentIf you already have the package available locally, you can also run:
npx create-aiui-agent my-agentThen enter the generated directory and start development:
cd my-agent
npm install
npm startWhat This Package Does
This package copies everything under template/ into your target directory and replaces {{PROJECT_NAME}} placeholders with the folder name you provide.
For example, creating my-agent will:
- create a new
my-agent/directory - copy the template files into it
- update template placeholders to use
my-agent
Generated Template
The generated project currently looks like this:
my-agent/
├── AGENTS.md
├── app.js
├── app.json
├── package.json
└── pages/
└── index/
└── index.inkUse these files as your starting point:
AGENTS.md: Describe the agent identity and capabilities.app.json: Register routes and global window settings.app.js: Add application lifecycle logic and shared global state.pages/index/index.ink: Build the first page with.inksingle-file component structure.
Typical Workflow
After the project is created, a practical first pass is:
- Update
AGENTS.mdwith your agent name, purpose, and capabilities. - Rename the default page title in
app.jsonorpages/index/index.ink. - Replace the starter greeting and button behavior in
pages/index/index.ink. - Run
npm startand iterate on the page structure, logic, and styles.
Develop With The AIUI Skill
After scaffolding the project, you can use the aiui-dev skill documentation to help an AI coding assistant generate and edit AIUI code correctly.
You can add the development skill with npx skills add:
npx skills add https://github.com/jsar-project/AIUI/tree/main/skills/aiui-devIf you are working directly inside this repository, the local skill source currently lives at:
skills/aiui-dev/SKILL.mdskills/aiui-dev/components.md
Recommended usage:
- Load
SKILL.mdinto your AI coding assistant as the main development guide. - Also provide
components.mdwhen you need exact built-in component attributes, events, or examples. - Ask the assistant to follow the
.inksingle-file component format used by the generated template. - Keep the generated project files open so the assistant can align new code with the existing structure.
What To Ask The Skill For
Once the skill is available to your assistant, it can help with tasks such as:
- creating new
.inkpages - editing
app.jsonroute configuration - building layouts with built-in AIUI components
- wiring event handlers and page state
- applying the current design rules for wearable displays
Suggested Next Steps
- Add more pages under
pages/and register them inapp.json. - Expand
AGENTS.mdso the agent description matches your real use case. - Use
skills/aiui-dev/SKILL.mdas the default reference when asking an AI assistant to generate AIUI UI code.
Notes
- The project name is taken from the directory name you pass to the CLI.
- The package currently creates a minimal starter project on purpose, so it is easy to extend in small steps.
