build-agent-app

build-agent-app is a skill for Claude Code, Codex from hachej/boring-ui. It costs 131 tokens per session (2,108 once invoked), scanned A, original, MIT.

A guide for building a React and Node app with an AI agent inside, or adding one to an existing app, using Boring UI and the Pi server framework.

In plain words
What is it for?
Use it to scaffold an agent app or connect an agent workspace or chat interface to an existing application.
Why use it?
It shows how the server, agent and React workspace connect through conversation, chat and resource routes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to scaffold an agent app or connect an agent workspace or chat interface to an existing application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hachej/boring-ui/build-agent-app
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hachej/boring-ui --skill build-agent-app
Clone the repo
git clone --depth 1 https://github.com/hachej/boring-ui

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-agent-app

README.md
[![agentmods](https://agentmods.dev/badge/skills/hachej/boring-ui/build-agent-app/github.svg)](https://agentmods.dev/skills/hachej/boring-ui/build-agent-app)
Your own site
<a href="https://agentmods.dev/skills/hachej/boring-ui/build-agent-app"><img src="https://agentmods.dev/badge/skills/hachej/boring-ui/build-agent-app/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-agent-app

Your own site · 80×15
<a href="https://agentmods.dev/skills/hachej/boring-ui/build-agent-app"><img src="https://agentmods.dev/badge/skills/hachej/boring-ui/build-agent-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,108 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00131 $0.02108
Opus 5.5 $0.00052 $0.00843
Sonnet 5.5 $0.00026 $0.00422
Haiku 4.5 $0.00013 $0.00211

Measured 3d ago against content hash 0ff1866a73da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-agent-app scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. `APP_TOKEN=dev-token; curl -H "authorization: Bearer $APP_TOKEN" http://127.0.0.1:8787/api/conversations` returns `{"conversations":[...]}`; without the header it returns 401.
skills/build-agent-app/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build an agent app

The smallest whole agent app is one Node server (about 90 lines) and one React page (about 50 lines). The repository's reference is examples/workspace-app. This skill gives the same composition with nothing repository-internal.

Shape of the result:

  • Server (server.mjs): opens Pi's Harness, one workspace provider and one agent, and serves three routes: /api/conversations, /api/chat, /api/resources.
  • Page (src/App.tsx): the pi-app block's AgentWorkspace (sessions, chat, artifact viewers) over those routes.

1. Get the version

npm view @hachej/boring-ui-kit version

Use that version (written <v> below) for every @hachej/boring-* package and every registry URL. Pi packages stay on ~1.4.0.

2. Create the app (skip for an existing app)

A new app uses the pinned shadcn CLI with Base UI and the nova preset (blocks support the Base UI base-nova style only):

npx [email protected] init -t vite -b base -p nova -n app -y --no-monorepo
cd app

An existing app needs React 19, Tailwind v4 and a components.json with a Base UI style. Without one, run npx [email protected] init in it first.

3. Install the packages

npm i @hachej/boring-ui-kit@<v> @hachej/boring-agent@<v> @hachej/boring-files@<v> \
  @earendil-works/pi-durable@~1.4.0 @earendil-works/pi-ai@~1.4.0 @earendil-works/chord@~1.4.0

4. Add the UI block

Blocks use the app's own shadcn components (its ui alias) and tokens, so install the components once first (what the app needs). Then pick the block from the table in registry/README.md. For a whole agent page:

npx boring-ui-blocks add alert attachment avatar badge bubble button card checkbox collapsible dialog drawer dropdown-menu empty input input-group item label message message-scroller native-select popover progress scroll-area separator sidebar spinner switch table textarea toggle toggle-group tooltip trace
npx boring-ui-blocks add https://cdn.jsdelivr.net/npm/@hachej/boring-ui-kit@<v>/r/pi-app.json https://cdn.jsdelivr.net/npm/@hachej/boring-ui-kit@<v>/r/pi-app-kinds.json

Read the full file on GitHub · 130 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed 0ff1866a73da
  2. 4d ago Changed · +1 lines 9e3a2e8f882c
  3. 5d ago Changed 90d57713c237
  4. 9d ago First seen · 129 lines · 131 tokens per session scan A 984bd783ea26

Subscribe to this mod's changes

build-agent-app is a skill published in the GitHub repository hachej/boring-ui (49 stars, last pushed today), licensed MIT. It adds 131 tokens to every session and 2,108 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens