Imported from Rightomation/forge-test (
AGENTS.md). Install upstream withnpx skills add Rightomation/forge-test. Copyright stays with the author.
Agent instructions (Forge / product builds)
Single point of contact: Alora
For day-to-day work, the user’s primary agent is Alora — ideation first, then a written charter, then delivery. See ALORA.md. In chat, reference @ALORA.md so the assistant adopts that role.
Use this file as the project contract when Cursor, OpenClaw, or an external multi-agent pipeline generates or changes code in this repository.
What “done” means
- Frontend:
cd frontend && npm run buildsucceeds. - Full stack:
docker compose build(from repo root) succeeds. - No stub home page: The app must ship a real UI wired to state/API—not only Zustand hooks or an empty
page.tsx.
Next.js 14 (App Router) — required files
Every Next app in frontend/ must include:
| File | Purpose |
|---|---|
src/app/layout.tsx |
Root layout, metadata, globals.css, global toasts/providers |
src/app/page.tsx |
Entry route (can compose client components) |
src/app/globals.css |
@tailwind base/components/utilities |
Client components that use hooks or browser APIs need "use client" at the top. Keep layout.tsx as a Server Component when possible.
Patches: patch-package runs on npm install (see frontend/package.json). Do not remove frontend/patches/ or the postinstall script without replacing that workflow.
Backend (FastAPI)
- Keep
backend/requirements.txtandbackend/Dockerfilealigned with imports. - Prefer explicit schemas and routers under
backend/app/.
Forge pipeline script (Anthropic)
- In repo:
scripts/forge_agents_v2.py— install deps (pip install anthropic python-dotenv requests), set.env, then:cd scripts python forge_agents_v2.py "Your app idea" "https://github.com/org/new-repo.git" - Requires:
ANTHROPIC_API_KEY. Optional:ANTHROPIC_MODEL,TELEGRAM_*,EMAIL_FROM/EMAIL_TO/EMAIL_PASSWORD(orSMTP_*/NOTIFY_EMAILfallbacks). See root.env.example. - Git:
git pushruns from the generated project folder; configure credentials on that machine. SetFORGE_GIT_FORCE=1only if you intentionally need--force(dangerous on shared repos).
VPS copy
You can scp the same script to ~/forge/ on a server; use a .env there with ANTHROPIC_API_KEY and run from the directory where you want ./<app_name>/ created (or symlink scripts/forge_agents_v2.py).
Suggested workflow for new products
- Team lead / planner: Break the product into frontend tasks, backend tasks, and a short UI spec (Markdown is fine).
- Implementation: Land code in
frontend/src/…andbackend/app/…following the layout above. - QA: Run build + Docker; fix failures before declaring complete.
- Git / deploy: Commit from a clean tree; deploy with
docker compose up --buildon the target host.
Conventions
- Match existing patterns: TypeScript path alias
@/*→frontend/src/*, Tailwind theme intailwind.config.js. - Do not commit
node_modules/,.next/, or secrets. Follow root.gitignore.