Files
Matheus (Handix) 44510bd019 Bootstrap EDEN: Fase 0 (arquitetura) e Fase 1 (monorepo + infra)
Fase 0 — descoberta e arquitetura:
- Inventário do projeto, glossário de domínio, arquitetura com bounded
  contexts e topologia de containers, threat model inicial.
- 12 ADRs cobrindo modular monolith, topologia de containers (Postgres
  isolado + eden-core/parceiros/assinante em containers e portas
  distintos), auth/sessões, modelo de permissões, criptografia/segredos,
  contrato first-class, stock ledger, separação billing/finance/fiscal,
  outbox transacional, adapters SaperX e Focus NFe, e identidade
  compartilhada entre as 3 apps.
- 14 subagentes e 7 skills especializados por domínio em .claude/.
- Hooks de segurança (PreToolUse/PostToolUse/Stop) testados via pipe.

Fase 1 — plataforma (em andamento):
- Monorepo pnpm workspaces + Turborepo: apps/{api,worker,core-web,
  reseller-web,subscriber-web} + 9 packages compartilhados.
- apps/api: NestJS mínimo com /health/live e /health/ready (checando
  Postgres real via @eden/database).
- 3 frontends Vite + React + TypeScript + Tailwind, com o favicon
  oficial do EDEN.
- packages/database: migration baseline (node-pg-migrate) criando
  roles/role_permissions/applications/users/user_applications/sessions/
  audit_log — audit log append-only com hash-chain, testado ao vivo
  (UPDATE/DELETE bloqueados pelo trigger).
- compose.yaml implementando a topologia da ADR-0002, validada de ponta
  a ponta: os 6 containers sobem e ficam saudáveis com um único
  `docker compose up`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 08:01:14 -03:00

1.9 KiB

name, description
name description
eden-domain Core EDEN business vocabulary and legacy OrçaFácil behavior reference. Load when implementing or reviewing any commercial/customer/contract logic to check exact legacy terminology and state machines before inventing new ones.

EDEN domain skill

Use this skill whenever implementing a feature that has a legacy equivalent in eden.md, to avoid reinventing vocabulary or state machines that already exist and were battle-tested in production.

When to use

  • Naming a new field/entity that might already have an established name in the legacy system (check references/terminology.md first).
  • Implementing a status/workflow transition — check references/state-machines.md for the exact legacy machine before designing a new one.
  • Needing the full legacy behavior for a module — read references/legacy-orcafacil.md for the section map, then go to eden.md directly for the exact section (this skill indexes, it does not duplicate the 4600-line source).

References

  • references/terminology.md — canonical field/concept names from the legacy system, PT-BR, to preserve (see also docs/glossary.md at the project root, which is the authoritative version — this file exists for quick in-skill lookup).
  • references/state-machines.md — the state machines that must be preserved or deliberately superseded via ADR (quote deal_status, client/reseller registration_status, contract states, signature envelope states, timeclock period closure).
  • references/legacy-orcafacil.md — section index of eden.md (which line range covers which module) so you know where to read the exact rule instead of guessing.

Rule

Never invent a business rule that eden.md already documents. If a legacy rule seems wrong or worth changing, write an ADR (docs/adr/) explaining why — don't silently diverge or silently copy a known gap (Master Prompt §1).