From auto-agent
Scaffold and start a skeleton React + Apollo GraphQL application with dev servers running immediately. Creates a welcome page and health check endpoint, then reports endpoints to the Auto app.
npx claudepluginhub beonauto/auto-plugins --plugin auto-agentThis skill uses the workspace's default tool permissions.
Immediately scaffold a running application so the developer can see progress in the Auto app from the moment the agent connects.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Guides code writing, review, and refactoring with Karpathy-inspired rules to avoid overcomplication, ensure simplicity, surgical changes, and verifiable success criteria.
Share bugs, ideas, or general feedback.
Immediately scaffold a running application so the developer can see progress in the Auto app from the moment the agent connects.
Read the stack configuration from .auto-agent/config.json (the stack field). Defaults if not set:
| Setting | Default |
|---|---|
frontend | react-vite |
backend | apollo-graphql |
clientDir | client |
serverDir | server |
If client/ and server/ (or the configured directories) already exist with node_modules/, skip scaffolding and jump to step 5 (start servers). The project is already set up.
react-vite)Create a Vite + React + TypeScript project in the configured clientDir:
npm create vite@latest <clientDir> -- --template react-ts
cd <clientDir> && npm install
Install additional dependencies:
npm install @apollo/client graphql @json-render/core @json-render/react @on.auto/ui-components
npm install -D tailwindcss @tailwindcss/vite
Set up Tailwind CSS (check installed version for correct config approach).
Create a welcome page (src/App.tsx) that:
references/design-patterns.mdapollo-graphql)Create an Apollo Server project in the configured serverDir:
mkdir -p <serverDir> && cd <serverDir>
npm init -y
npm install @apollo/server graphql graphql-tag cors express
npm install -D typescript @types/node @types/cors @types/express tsx
Create a minimal TypeScript config and entry point (src/index.ts) with:
health query that returns { status: "ok", timestamp: <ISO string> }http://localhost:5173)The schema:
type Query {
health: HealthCheck!
}
type HealthCheck {
status: String!
timestamp: String!
}
Frontend (client/package.json):
dev script should use Vite with --host flag so it's accessibleBackend (server/package.json):
dev script: tsx watch src/index.tsStart both servers in the background so they run while the agent continues working:
cd <clientDir> && npm run dev &
cd <serverDir> && npm run dev &
Wait a few seconds, then verify both are running:
curl -s http://localhost:5173 | head -5curl -s http://localhost:4000/graphql -H 'Content-Type: application/json' -d '{"query":"{ health { status } }"}'Call auto_update_endpoints with:
[
{ "label": "Frontend", "url": "http://localhost:5173" },
{ "label": "GraphQL Playground", "url": "http://localhost:4000/graphql" }
]
Display the returned loopback URLs to the developer. These are the URLs they'll use to preview inside the Auto app.
Tell the developer:
Call auto_get_design and generate a theme.css file in the frontend src/ directory with CSS custom properties from:
theme.colors.light → --surface-page, --primary, --fg, etc.theme.radius → --radius-sm, --radius-md, etc.theme.shadow → --shadow-sm, --shadow-card, etc.theme.font → --font-sans, --font-monoImport this CSS in the app entry point (main.tsx). The model's theme is authoritative for all styling.
When the model has a design.theme, use it as the authoritative style source (see references/design-patterns.md section 0). When no model theme exists, fall back to:
Geist or Satoshi font (install via Google Fonts or Fontsource)min-h-[100dvh] for the page containerDevelopers can customize this skill by editing it in their .auto-agent/ directory. To change the default stack, edit .auto-agent/config.json:
{
"stack": {
"frontend": "react-vite",
"backend": "apollo-graphql",
"clientDir": "client",
"serverDir": "server"
}
}
Future stack options may include next, remix, hono, etc.