npx skills add ...
npx skills add starchild-ai-agent/official-skills --skill project-builder
End-to-end project engineering: design, incremental build, verify, debug systematically.
npx skills add starchild-ai-agent/official-skills --skill project-builder
⚠️ CRITICAL — UI Design Quality Gate: If the project produces ANY visual HTML output (dashboard, web app, landing page, portfolio, any page the user will see), you MUST read_file the ui-design skill's SKILL.md and follow it BEFORE writing any HTML/CSS. This is not optional. project-builder handles engineering; ui-design handles visual quality (and tells you when to reach for a component library like shadcn/ui, HeroUI, or coss ui instead of hand-writing). Skipping ui-design produces generic AI slop.
A. Pick the sources and tools. For research and API documentation, use web search. For live market numbers or external actions, reuse the relevant installed skill. Read its SKILL.md before use; search missing skills with auto_install=false and install only with user approval. Write custom API code only after checking that no suitable skill covers the operation; verify endpoints and response shapes against current official documentation.
B. Read the platform rules for what the project touches. These rules live in references (not in your system prompt) so you must read_file them before writing code. Skipping this is the #1 cause of 401s, broken paths, and "worked locally, fails in preview" bugs.
| If the project includes... | read_file before Phase 2 |
|---|---|
| Any external API call | config/context/references/sc-proxy.md |
| Preview / dashboard / web app | config/context/references/preview-guide.md |
| Scheduled task | config/context/references/scheduled-tasks-guide.md |
| Long-running background job | config/context/references/background-tasks.md |
| File writing >300 lines | config/context/references/tool-writing-guide.md |
| Any visual HTML output (dashboard, web app, landing page, portfolio) | ui-design skill SKILL.md — load it and follow it for all visual decisions (track choice, color, typography, layout, animation, and when to use a component library). This skill is the UI quality gate; skipping it produces generic AI slop. |
Translate vague requests into concrete specs. If intent is ambiguous, ask ONE question.
Architecture decision tree:
For medium+ projects, present to user BEFORE writing code:
UI Design Gate (required, blocking — for visual projects): If the architecture choice is Preview Server or any project that outputs HTML the user will see:
read_file the ui-design skill's SKILL.md now (if you haven't already in this session) and pick a track (hand-built vs component library).references/design-process.md) to determine Surface, Accent, Typography, and Aesthetic Family.Design gate: Present a short phase plan for multi-stage work. If the user has already authorized a clear, reversible implementation, proceed without asking for the same approval again. Ask only when scope is genuinely ambiguous, a material cost needs approval, or the next action is irreversible/external (publish, send, trade, delete). An active Plan Mode remains read-only until the user approves execution.
After design is confirmed, before writing any code, scaffold the project under the standard layout. This makes the project shareable via community-publish skill from day one — no migration later.
Standard project location: output/projects/{slug}/
Project type → entry mapping:
| Architecture choice | type | entry path |
|---|---|---|
| Scheduled Task | task | src/run.py |
| Preview Server | preview | src/index.html (static) or src/app.py |
| Background daemon | service | src/server.py |
| One-shot tool | script | src/main.py |
Skip scaffold only when:
output/projects/... project (keep its layout)During Phase 2 BUILD, maintain the scaffold:
.env.example in same editsrc/ (configs, fixtures: project root or src/data/)Why this matters: Projects already in standard layout publish in one command. Projects scattered across tasks/, output/scripts/, dashboards/, etc. need tidy_project() migration before they can be shared, and the user often doesn't want to rebuild PROJECT.md from memory.
For existing scattered code: call community-publish skill → tidy_project(any_dir) to reorganize before publishing.
API cost & rate limits:
All external API calls go through sc-proxy, which bills per request and enforces rate limits.
Before designing, read config/context/references/sc-proxy.md for pricing table and limits.
credits_per_request × requests_per_run × runs_per_day × 30coin_price with multiple ids vs N separate calls)model_price_per_call × expected_calls_per_run × runs_per_day × 30) instead of using a single generic number.SC-CALLER-ID (e.g. job:{JOB_ID}, preview:{preview_id}, chat:{thread_id}) so usage can be traced and capped. Details in config/context/references/sc-proxy.md § Caller Credit LimitData reliability: Native tools > proxied APIs > direct requests > web scraping > LLM numbers (never). Iron rule: Scripts fetch data. LLMs analyze text. Final output = script variables + LLM prose.
Task scripts can import skill functions directly:
Tool names = SKILL.md frontmatter tools: list. See build-patterns.md § Using Skill Functions.
Every piece follows this cycle:
| Built | Verify how | Pass |
|---|---|---|
| Data fetcher | Run, print raw response | Non-empty, recent, plausible |
| API endpoint | curl localhost:{port}/api/... | Correct JSON |
| HTML page | preview_serve + preview_check | ok = true |
| Task script | python3 tasks/{id}/run.py | Numbers match source |
| LLM analysis | Numbers from script vars, not LLM text | Template pattern used |
Verification layering:
Anti-patterns:
→ Detailed patterns: read references/build-patterns.md
read_file before edit_file — understand what's thereedit_file > write_file for modificationsls before write_file — avoid duplicating existing filesos.environ["KEY"], persist installs to setup.shtype=preview)Decide sensible defaults yourself and render real data on first load. Treat filters as optional refinements users can adjust later — never as prerequisites that gate the initial view. Auto-refresh on a sensible interval. No "Click to load" / "Enter address" / "Select symbol" before anything appears.
Visual design quality (MANDATORY for all HTML output): If the ui-design skill is installed, you MUST read_file its SKILL.md and follow it before writing any HTML/CSS. project-builder owns the engineering workflow; ui-design owns the visual quality. Using project-builder alone produces functional but visually generic output.
./path not /path)8765), write it directly into the app, and pass the same number to preview(action="serve", port=...). The two must match exactly.dir, the newer one auto-kills the older one (same-dir replacement rule). The preview id is now anchored to the directory: re-serving the same dir keeps the same id even if the title changes, so previously shared /preview/{id}/ links stay valid. After re-serving, always re-send the /preview/{id}/ link to the user. Do NOT invent new titles hoping for a fresh id, and do NOT guess id variants.config/context/references/preview-guide.mdconfig/context/references/localhost-api.md
references/build-patterns.md):
config/context/references/sc-proxy.mdx402 skill — a reverse-proxy gateway in front of the
untouched app charges USDC on Base per call / subscription (weekly–yearly) /
lifetime / prepaid balance, with multi-plan support. If the user mentions
charging for the project, selling API access, or agent-to-agent payments,
read skills/x402/SKILL.md after the build phase and wrap the service with
scripts/monetize.py (expose the GATEWAY port, not the upstream).
Full paid-service chain after wrapping: preview(serve) the gateway →
community-publish → publish_preview() (public URL) →
create_paid_service(..., pricing_options=[...]) → submit_for_review()
(multi-plan services: review probes each plan's 402 amount via the
X-Pricing-Model header) → publish_service() → live on the Service
Marketplace. Details: community-publish SKILL.md § Paid service listing.skills/x402/SKILL.md
"Always-on availability"), ② the machine switched to MANUAL update mode
(web dashboard toggle; the agent can only READ the mode in-machine — if it
reads "auto", remind the user to flip the switch, or the next platform
update will take the service down).Three-Strike Rule: Same approach fails twice → STOP → rethink → explain to user → different approach.
→ Full debug procedures: read references/debug-handbook.md
Kickoff: ☐ Clarified intent ☐ Proposed architecture ☐ Estimated cost ☐ User confirmed (required before Phase 2)
Build: ☐ Each component tested ☐ Numbers match source ☐ Errors handled ☐ Preview healthy (web)
Debug: ☐ Logs checked ☐ Reproduced (or skipped — logs sufficient) ☐ Isolated layer ☐ Root cause found ☐ Fix verified ☐ Regressions checked
from core.skill_tools import coingecko, coinglass # auto-discovers skills/*/exports.py
prices = coingecko.coin_price(coin_ids=["bitcoin"], timestamps=["now"])Build one small piece → Run it → Verify output → ✅ Next piece / ❌ Fix firstCHECK LOGS → REPRODUCE → ISOLATE → DIAGNOSE → FIX → VERIFY → REGRESS