- 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
20 lines
880 B
Markdown
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`.
|