New Project
Quick start
Turn a rough product request into an initialized repo with a justified layout, a project-specific AGENTS.md, starter docs, a minimal default stack, and Biome as the default linter/formatter unless the user asked for alternatives.
Defaults: Bun for package management and workspaces, Biome for linting and formatting, React Router v7 for web, Expo for mobile, Hono for backend, Cloudflare for deployment, and Bun + Ink with theme awareness for TUI.
Read WEB.md only for web apps. Read MOBILE.md only for mobile apps. Read TUI.md only for terminal interfaces.
Workflow
- Infer the smallest viable shape.
- Prefer standalone for one deployable surface.
- Prefer a monorepo for multiple apps, shared packages, or separate deployment targets.
- If the request is vague, choose the smallest structure that will not block the likely roadmap.
- Build
AGENTS.md before the rest of the repo.
- First fetch
https://raw.githubusercontent.com/stonega/harness/refs/heads/main/_AGENTS.md.
- Adapt it to the actual project structure, commands, and testing workflow.
- If the remote file is unavailable, use the local harness copy and say so.
- Create the base structure.
- Always create
README.md, AGENTS.md, docs/design, docs/implementation, docs/user, scripts, examples, and postmortem.
- For monorepos, use
apps/ for deployable apps and packages/ for shared code.
- Initialize Bun first, add Biome, and keep dependencies explicit.
- Choose the scaffold by surface.
- Web: React Router v7.
- Backend: Hono on Cloudflare.
- Mobile: Expo.
- Web + backend: separate apps in one repo.
- Web + mobile + backend:
apps/web, apps/mobile, apps/backend.
- TUI: use Bun + Ink and make the interface theme-aware.
- Write docs immediately.
- Add
docs/design/architecture.md with structure and rationale.
- Add
docs/implementation/setup.md with bootstrap and local-dev notes.
- Update
README.md with install, run, and test commands.
- Add baseline quality support.
- Add deterministic tests for generated logic or scripts.
- Add idempotent scripts when they simplify setup or repeated workflows.
- Add examples when a new workflow or API is introduced.
- Apply stack-specific defaults only where needed.
- Use WEB.md for web packages and setup.
- Use MOBILE.md for mobile packages and setup.
- Use TUI.md for Bun + Ink packages, executable setup, terminal theming, and tests.
Expected output
Leave the repo with a coherent layout, a project-specific AGENTS.md, starter docs, a runnable README, and minimal dependencies.
Default layouts
Standalone: AGENTS.md, README.md, docs/, src/, tests/, scripts/, examples/, postmortem/
Monorepo: AGENTS.md, README.md, apps/, packages/, docs/, scripts/, examples/, postmortem/
Rules
- Prefer standalone unless multiple independently deployed surfaces are clearly needed.
- Keep generated
AGENTS.md aligned with the actual repo structure.
- Create documentation and tests as part of setup, not as a later cleanup pass.
1---2name: new-project3description: Bootstrap a new project from this harness, including repo layout, project-specific AGENTS instructions, starter documentation, and the default app stack. Use whenever the user wants to create, scaffold, initialize, or structure a new repo, especially when they mention Bun, Expo, React Router v7, Hono, Cloudflare, Ink, theme-aware TUIs, monorepos, standalone apps, or "start a new project" without a fully specified setup.4---56# New Project78## Quick start910Turn a rough product request into an initialized repo with a justified layout, a project-specific `AGENTS.md`, starter docs, a minimal default stack, and Biome as the default linter/formatter unless the user asked for alternatives.1112Defaults: Bun for package management and workspaces, Biome for linting and formatting, React Router v7 for web, Expo for mobile, Hono for backend, Cloudflare for deployment, and Bun + Ink with theme awareness for TUI.1314Read [WEB.md](WEB.md) only for web apps. Read [MOBILE.md](MOBILE.md) only for mobile apps. Read [TUI.md](TUI.md) only for terminal interfaces.1516## Workflow17181. Infer the smallest viable shape.19 - Prefer standalone for one deployable surface.20 - Prefer a monorepo for multiple apps, shared packages, or separate deployment targets.21 - If the request is vague, choose the smallest structure that will not block the likely roadmap.222. Build `AGENTS.md` before the rest of the repo.23 - First fetch `https://raw.githubusercontent.com/stonega/harness/refs/heads/main/_AGENTS.md`.24 - Adapt it to the actual project structure, commands, and testing workflow.25 - If the remote file is unavailable, use the local harness copy and say so.263. Create the base structure.27 - Always create `README.md`, `AGENTS.md`, `docs/design`, `docs/implementation`, `docs/user`, `scripts`, `examples`, and `postmortem`.28 - For monorepos, use `apps/` for deployable apps and `packages/` for shared code.294. Initialize Bun first, add Biome, and keep dependencies explicit.305. Choose the scaffold by surface.31 - Web: React Router v7.32 - Backend: Hono on Cloudflare.33 - Mobile: Expo.34 - Web + backend: separate apps in one repo.35 - Web + mobile + backend: `apps/web`, `apps/mobile`, `apps/backend`.36 - TUI: use Bun + Ink and make the interface theme-aware.376. Write docs immediately.38 - Add `docs/design/architecture.md` with structure and rationale.39 - Add `docs/implementation/setup.md` with bootstrap and local-dev notes.40 - Update `README.md` with install, run, and test commands.417. Add baseline quality support.42 - Add deterministic tests for generated logic or scripts.43 - Add idempotent scripts when they simplify setup or repeated workflows.44 - Add examples when a new workflow or API is introduced.458. Apply stack-specific defaults only where needed.46 - Use [WEB.md](WEB.md) for web packages and setup.47 - Use [MOBILE.md](MOBILE.md) for mobile packages and setup.48 - Use [TUI.md](TUI.md) for Bun + Ink packages, executable setup, terminal theming, and tests.4950## Expected output5152Leave the repo with a coherent layout, a project-specific `AGENTS.md`, starter docs, a runnable README, and minimal dependencies.5354## Default layouts5556Standalone: `AGENTS.md`, `README.md`, `docs/`, `src/`, `tests/`, `scripts/`, `examples/`, `postmortem/`57Monorepo: `AGENTS.md`, `README.md`, `apps/`, `packages/`, `docs/`, `scripts/`, `examples/`, `postmortem/`5859## Rules6061- Prefer standalone unless multiple independently deployed surfaces are clearly needed.62- Keep generated `AGENTS.md` aligned with the actual repo structure.63- Create documentation and tests as part of setup, not as a later cleanup pass.