seedproject-web/CLAUDE.md
Carlos Arias 0acc80f8e4 docs: add root AGENTS.md + CLAUDE.md for fresh-clone agents; fix agentUser leftover
- AGENTS.md / CLAUDE.md: tell any agent (Claude Code, astroagent, Codex) what the
  base is and the exact fresh-clone setup flow (new-site.sh / configure.mjs / build)
- configure.mjs: stamp astroagent ai.agentUser as <slug>-agent (was stale 'comiida-agent')

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SYHWLHihq3v9nxNwoPCKSn
2026-07-04 23:33:50 +00:00

20 lines
880 B
Markdown

# CLAUDE.md
Full agent instructions live in **[AGENTS.md](AGENTS.md)** — read that first.
## Quick reference
This is the **SeedProject base** — a cloneable Astro + PHP website foundation. On a
fresh clone, set it up for the new site:
```bash
./scripts/new-site.sh # configure identity (prompts) → stamps engines
cd app && npm install && npm run build # build the frontend → ../public
```
- **Identity source of truth:** `site.config.json`. Edit it, then run
`node scripts/configure.mjs`. Never hardcode site name / URL / author elsewhere.
- **Backend:** `cd api && composer install && php console app:install --db-... --url=... --name=...`
(served at `/api`; see `api/.memory/foundation.md`).
- **Never commit secrets:** `**/.env`, `api/config.php` are git-ignored — keep it so.
- **Verify changes build:** `cd app && npm run build`.