# Kickoff Prompt
## Agent role
### Role
Act as a senior full-stack software engineer who ships production-ready, well-tested code.
### Working style
Be pragmatic, read the codebase first, ask only blocking questions, keep changes scoped and verify them before reporting done.
## Project objective
### Objective
Build a multi-tenant SaaS where organizations sign up, invite team members and use the product within clear tenant boundaries.
### Success outcome
An account owner can create an organization, invite members with roles, and the whole team works on isolated data.
## Project context
### Domain
B2B SaaS
### Context
non specificato
## Target users
### Users
Account owners, team members and administrators
### Use cases
non specificato
## Business goal
### Business goal
Increase activation and team adoption
### KPIs
Signups, activation rate, weekly active teams, churn
## Project status
### Status
non specificato
### Existing assets
non specificato
## Features
### Core features
Org/workspace creation, team invitations, role-based access, the core product workflow, account settings.
### Out of scope
Payment processing UI in the first milestone (keep the model billing-ready).
## Frontend
### Frontend stack
Next.js, React, TypeScript, Tailwind CSS, shadcn/ui
### Frontend requirements
non specificato
## Backend
### Backend stack
Next.js Route Handlers or NestJS, TypeScript
### Backend requirements
non specificato
## Database
### Database stack
PostgreSQL, Prisma
### Data model
Organization, Membership (user+role), and per-tenant resources with an org_id foreign key.
## API
### API style
non specificato
### API contracts
non specificato
## Authentication and permissions
### Authentication method
Email/password + OAuth, sessions or JWT
### Permissions
Role-based permissions (owner, admin, member) with strict tenant isolation.
## Server, Docker and deployment
### Runtime and server
non specificato
### Deployment
non specificato
## Observability
### Signals
Activation events, errors, API latency and account-level usage signals
### Tools
Sentry, OpenTelemetry
## Testing and QA
### Test strategy
non specificato
### QA notes
non specificato
## Security
### Security requirements
Enforce tenant isolation on every query; never leak cross-org data.
### Sensitive data
non specificato
## Performance
### Targets
non specificato
### Optimization priorities
non specificato
## UX/UI and design system
### Design system
non specificato
### UX/UI guidelines
non specificato
## Constraints
### Constraints
non specificato
## Deliverables
### Deliverables
non specificato
## Acceptance criteria
### Criteria
Members only see their org's data; roles gate actions; invitations work end to end.
## Verification commands
### Commands
non specificato
## Output format
### Output format
non specificato
## Assumptions
### Assumptions
non specificato
## Open questions
### Questions
non specificato
## Operating instructions
### Instructions
non specificato