CLAUDE.md@examples/blog · git:20260427.5a158e3 · 2026-04-27 · sha256 d0c44b1604cdda93

CLAUDE.md@examples/blog git:20260427.5a158e3A

Immutable. This exact content never changes and is served at /api/v1/blob/d0c44b1604cdda93.

# CLAUDE.md — webjs blog example

**Do not duplicate content.** Reference the authoritative sources below.

## Required reading

1. **[AGENTS.md](./AGENTS.md)** — File layout, conventions, invariants, recipes.
2. **[../../AGENTS.md](../../AGENTS.md)** — Full webjs framework API reference
   (directives, lifecycle, controllers, context, task, testing, conventions).

## AI-driven development workflow (non-negotiable)

**Every code change MUST include — automatically, without the user asking:**

1. **Tests** — Unit test for new actions/queries/components. E2E test for
   user-facing features. Run `npm test` from repo root after every change.
2. **Documentation** — Update `AGENTS.md` if adding new modules/conventions.
3. **Convention check** — Run `webjs check` and fix violations.

The user should never have to say "also write tests" or "update the docs."

## Quick reference

```sh
webjs dev              # dev server
webjs test             # run tests
webjs test --e2e       # run with E2E
webjs check            # validate conventions
npx prisma migrate dev     # DB migration
```

All conventions, API details, and recipes → see **AGENTS.md** files above.