SaaS/CRM Foundation
Goal
Scaffold platform primitives expected from senior SaaS/CRM systems.
When to use
- •Building a CRM/SaaS.
- •Need tenancy, permissions, audit, integrations.
Minimal inputs (ask only if missing)
- •Tenancy model (default tenant-ready).
- •Role expectations.
Procedure (MUST)
- •Enforce tenant scoping.
- •Define RBAC/ABAC and enforcement.
- •Implement audit logging.
- •Ensure idempotency for writes/webhooks.
- •Add abuse controls.
- •Document API contracts.
Outputs (MUST produce)
- •Tenancy strategy.
- •AuthZ enforced.
- •Audit log.
- •Integration primitives.