Prompt Details
Model
Chat - (gpt-6-astra)
Token size
4,841
Example input
[APPLICATION / PROJECT]: AI-powered project management and team collaboration SaaS application
[DETAILED OBJECTIVES]: BRAManage projects, tasks, teams, deadlines, workflows, file sharing, real-time collaboration, notifications, role-based permissions, performance tracking, reports, and AI-assisted productivity insights
[COUNTRY + OUTPUT LANGUAGE]: Nigeria - English
[TECHNICAL LEVEL]: Expert
Example output
AI-POWERED PROJECT MANAGEMENT AND TEAM COLLABORATION SAAS
Personalized Step-by-Step Development Roadmap
ALPHA: AI-powered project management and team collaboration SaaS application
BRAVO: Manage projects, tasks, teams, deadlines, workflows, file sharing, real-time collaboration, notifications, role-based permissions, performance tracking, reports, and AI-assisted productivity insights
CHARLIE: Nigeria — English
DELTA: Expert
Current technology assumptions were checked against official documentation on October 3, 2026. Versions, pricing, API details, plan limits, and provider coverage must still be verified again at implementation time.
---
1. PROJECT UNDERSTANDING
The product is a multi-tenant project-management and collaboration SaaS for organizations and teams.
Its core responsibilities are:
workspace and team management;
project creation and organization;
task planning and assignment;
deadlines and reminders;
configurable workflows;
comments and collaboration;
file sharing;
real-time presence and updates;
role-based access control;
activity tracking;
productivity reporting;
AI-assisted project analysis;
SaaS monetization in a later phase.
The application should be architected around one principle:
> **PostgreSQL remains the authoritative source of business state. Real-time infrastructure distributes collaboration events but does not replace the primary database.**
That distinction prevents task state, permissions, reporting data, and project history from diverging across multiple systems.
---
2. USER CONTEXT
Country: Nigeria
The product should be designed for Nigerian businesses first while remaining globally extensible.
Important design consequences:
default commercial currency should be NGN;
timezone defaults should support West Africa Time while remaining configurable per workspace;
billing infrastructure should support Nigerian merchants;
the interface should be mobile-responsive from the beginning;
bandwidth consumption should remain modest;
destructive actions and uploads should tolerate interrupted connections;
background work should not depend on a browser remaining open.
The Nigerian Communications Commission reported more than 157 million active GSM internet subscriptions in July 2026, reinforcing the importance of designing primarily for mobile-accessible internet rather than assuming desktop fiber connectivity.
Do not attempt full offline multi-user synchronization in the MVP. Collaborative offline editing introduces conflict-resolution complexity that should be addressed only after the online architecture is stable.
Technical level: Expert
This roadmap therefore avoids elementary programming instruction.
Priority is given to:
domain boundaries;
source-of-truth decisions;
transactional consistency;
concurrency;
tenant isolation;
authorization architecture;
idempotency;
event-driven workflows;
observability;
security;
maintainability;
deployment discipline;
future scale.
---
3. RECOMMENDED ARCHITECTURE
Architectural style
Use a modular monolith first.
Do not begin with microservices.
A well-structured Next.js application backed by PostgreSQL can support a substantial initial SaaS workload while remaining significantly easier to operate.
Split services only when measured operational pressure justifies it.
High-level architecture
USER
↓
NEXT.JS WEB APPLICATION
↓
AUTHENTICATION
↓
SERVER-SIDE AUTHORIZATION
↓
DOMAIN / APPLICATION SERVICES
↓
ZOD VALIDATION
↓
DRIZZLE ORM
↓
NEON POSTGRESQL
Collaboration layer:
AUTHORIZED USER
↓
PROJECT ROOM AUTHORIZATION
↓
LIVEBLOCKS
├── Presence
├── Comments
├── Mentions
├── Realtime room events
└── Collaboration notifications
Background execution:
DOMAIN EVENT
↓
TRANSACTIONAL OUTBOX
↓
INNGEST
├── Deadline reminders
├── Email notifications
├── AI analysis
├── Digests
└── Retryable background work
File architecture:
USER
↓
SERVER AUTHORIZATION
↓
SHORT-LIVED PRESIGNED URL
↓
CLOUDFLARE R2
AI architecture:
POSTGRESQL VERIFIED DATA
↓
SERVER-SIDE AGGREGATION
↓
MINIMIZED PROJECT CONTEXT
↓
OPENAI RESPONSES API
↓
STRUCTURED AI INSIGHT
↓
HUMAN USER
Deployment:
LOCAL
↓
GIT
↓
GITHUB
↓
VERCEL PREVIEW
↓
HUMAN VALIDATION
↓
VERCEL PRODUCTION
↓
NEON / R2 / LIVEBLOCKS / INNGEST / RESEND
Vercel currently provides isolated Preview deployments for non-production branches and can scope environment variables by environment.
---
4. TOOL DECISION TABLE
Function Recommended tool Alternative Why selected When needed
Primary AI development environment Antigravity IDE VS Code + AI tools Agent-first editor/terminal/browser workflow Start
Framework Next.js + TypeScript Remix Full-stack React architecture and Vercel fit Start
Runtime Node.js Bun Mature ecosystem Start
Package manager npm pnpm Simpler default operational path Start
Version control Git — Local history Start
Remote repository GitHub GitLab Strong PR and Vercel workflow Start
Database Neon PostgreSQL Supabase PostgreSQL Managed PostgreSQL without duplicating auth/realtime tooling Foundation
ORM Drizzle ORM Prisma Explicit SQL-oriented TypeScript model Foundation
Validation Zod Valibot Typed boundary validation Foundation
Authentication Better Auth Clerk Application-controlled auth and organization support Foundation
Organization RBAC Better Auth organization access control Custom RBAC Avoid duplicate permission authorities Foundation
UI shadcn/ui + Tailwind CSS MUI Flexible product interface Early
Design Google Stitch Figma Rapid prototype exploration Early
Real-time collaboration Liveblocks Ably Presence, comments, rooms, events and collaboration notifications Core
Durable background jobs Inngest Trigger.dev Scheduled and retryable workflows Core
Object storage Cloudflare R2 Amazon S3 Private object storage with S3-compatible signed access Core
Email Resend Postmark Straightforward Next.js transactional email Core
AI productivity insights OpenAI Responses API Anthropic API Structured outputs and tool-capable architecture After reporting
Unit/integration testing Vitest Jest Fast TypeScript test workflow Continuous
End-to-end testing Playwright Cypress Browser-level permission and workflow testing Before pilot
Deployment Vercel Cloudflare Excellent Next.js integration Early
Error monitoring Sentry — Runtime observability Before pilot
Product analytics PostHog Amplitude Event analytics and feature usage Pilot/later
Availability monitoring UptimeRobot Better Stack External uptime checks Production
Nigerian SaaS billing Paystack Flutterwave Nigerian recurring-payment support Later
Google describes Antigravity as an agentic development platform where agents can plan, execute and verify work across editor, terminal and browser environments.
Liveblocks currently provides Next.js-oriented infrastructure for presence, comments, realtime events and notifications.
Inngest provides durable Next.js background functions, scheduled execution and retry behavior without requiring a self-managed worker queue.
---
5. TOOLS TO EXCLUDE
Supabase
Do not add Supabase.
Neon provides PostgreSQL, Better Auth provides authentication, and Liveblocks provides collaboration infrastructure.
Using Supabase would introduce unnecessary overlap.
Prisma
Do not use both Prisma and Drizzle.
Drizzle is the primary ORM.
Claude Code as a second daily development environment
Antigravity remains the implementation environment.
Claude Code may be used selectively for independent architecture, security or code-review passes.
It should not simultaneously modify the same branch while another AI agent is working.
Ably or Pusher
Do not combine them with Liveblocks unless future requirements expose a capability gap.
Firebase
Its database and authentication layers would duplicate existing architecture.
ngrok
Do not install it automatically.
Use Vercel Preview endpoints for webhook development whenever practical.
Elasticsearch / Algolia
Do not introduce dedicated search infrastructure initially.
PostgreSQL search is sufficient for the MVP.
Redis
Do not introduce a cache because it is fashionable.
Add one only after profiling establishes a real need.
Microservices
Not justified for version 1.
---
6. APPLICATION SPECIFICATION
Problem solved
Teams frequently lose operational visibility because projects, tasks, files, deadlines, conversations and reporting are distributed across unrelated tools.
The application centralizes execution and converts operational data into actionable project intelligence.
Primary customers
startups;
SMEs;
agencies;
NGOs;
consulting companies;
distributed teams;
software teams;
construction/project teams;
professional-services businesses.
Core user journeys
Workspace owner
Creates workspace → invites members → creates teams → configures permissions → creates projects → reviews portfolio reports.
Project manager
Creates project → configures workflow → creates tasks → assigns members → sets deadlines → monitors blockers → reviews project health.
Team member
Views assigned work → changes task state → uploads files → comments → collaborates in real time → receives reminders.
Viewer/client
Views specifically shared project information without obtaining broader workspace access.
---
7. MVP
The MVP should include the following.
Workspace management
create workspace;
workspace slug;
timezone;
default currency;
member invitations;
teams;
membership status.
Authentication
email/password;
email verification;
login/logout;
password reset;
session management.
Social authentication can wait.
Roles
Initial roles:
Owner;
Admin;
Project Manager;
Member;
Viewer/Guest.
Projects
title;
unique project key;
description;
owner;
dates;
status;
visibility;
archive state.
Workflows
Support configurable ordered task statuses.
Example:
BACKLOG
→ TODO
→ IN PROGRESS
→ REVIEW
→ DONE
Avoid a complete workflow automation engine in the MVP.
Tasks
title;
description;
project;
status;
priority;
assignees;
creator;
start date;
due date;
subtasks;
labels;
dependencies;
sort position;
archived state.
Views
Implement:
List;
Kanban board;
My Tasks.
Calendar and Gantt can wait.
Real-time collaboration
Include:
presence;
project-room participants;
comments;
replies;
mentions;
live task-update notifications.
Liveblocks rooms provide a natural isolation boundary for project-level collaboration. Its access-token flow allows the application server to decide which authenticated users are permitted to enter each room.
File sharing
task attachments;
project files;
private storage;
controlled download;
file metadata;
upload limits.
Notifications
MVP:
assignment;
mention;
task status change;
approaching deadline;
overdue task;
invitation.
Channels:
in-app;
email where appropriate.
Reports
project completion;
tasks by status;
overdue tasks;
throughput;
average cycle time;
workload distribution;
completed tasks by period;
project health indicators.
Performance tracking
Do not start with opaque employee productivity scores.
Track observable operational metrics:
work completed;
overdue work;
cycle time;
work in progress;
throughput;
blocked tasks;
project delivery trends.
AI should not automatically classify workers as “good”, “bad”, “productive” or “unproductive.”
AI insights
MVP AI functions:
project health summary;
risk identification;
overdue-work explanation;
workload imbalance observations;
weekly project summary;
suggested priorities.
AI remains advisory.
---
8. FUTURE VERSIONS
Keep these outside version 1:
Gantt charts;
calendar view;
time tracking;
timesheets;
advanced resource planning;
portfolio management;
OKRs;
custom fields;
workflow automation builder;
task templates;
recurring tasks;
forms;
client portals;
collaborative documents;
whiteboards;
Slack integration;
Microsoft Teams integration;
Google Calendar integration;
Google Drive integration;
GitHub integration;
public API;
outbound webhooks;
mobile applications;
complete PWA offline mode;
advanced project forecasting;
resource-capacity optimization;
AI meeting summaries;
AI task generation;
AI autonomous project-management actions;
enterprise SSO;
SCIM;
audit exports;
data-retention controls;
regional hosting;
enterprise compliance features.
---
9. INSTALLATION ORDER
Use this order:
1. Git
2. Node.js
3. Antigravity
4. GitHub
5. Next.js project
6. Vercel
7. Neon
8. Drizzle
9. Zod
10. Better Auth
11. shadcn/ui / Tailwind
12. Liveblocks
13. Cloudflare R2
14. Inngest
15. Resend
16. Vitest
17. Playwright
18. Sentry
19. OpenAI API
20. PostHog
21. UptimeRobot
22. Paystack later
Do not create every external account on the first day.
Create each service immediately before integrating it.
---
10. CONNECTION MAP
Antigravity
Antigravity does not become the production application backend.
It edits and tests the application.
Antigravity
↓
source code
↓
Git
↓
GitHub
GitHub → Vercel
GitHub branch
↓
Vercel Preview
main
↓
Vercel Production
Application → Neon
Next.js server
↓
DATABASE_URL
↓
Neon PostgreSQL
Application → Better Auth
Better Auth executes inside the application and persists auth/organization data into PostgreSQL.
Browser
↓
Next.js auth endpoint
↓
Better Auth
↓
PostgreSQL
The Better Auth organization plugin currently supports organizations, members, teams, invitations, custom permissions and dynamic roles.
Application → Liveblocks
User session
↓
Next.js authorization endpoint
↓
project access check
↓
Liveblocks access token
↓
Liveblocks room
The business permission decision remains yours.
Do not treat Liveblocks room IDs as authorization.
Application → R2
Authorized request
↓
server creates signed URL
↓
browser uploads directly
↓
R2 private object
Cloudflare R2 currently supports presigned GET, PUT, HEAD and DELETE operations.
Application → Inngest
domain event
↓
outbox
↓
Inngest
↓
durable function
Inngest → Resend
Used for delayed and retryable emails.
Inngest → OpenAI
Use background execution for non-interactive AI analysis.
Application → Sentry
Errors and traces.
Application → PostHog
Product-behavior events, preferably added after the application has real users.
---
11. API / CREDENTIAL MAP
Credential pattern Purpose Exposure
DATABASE_URL Neon connection Server only
BETTER_AUTH_SECRET Auth cryptographic secret Server only
BETTER_AUTH_URL Auth base URL Configuration
LIVEBLOCKS_SECRET_KEY Server-side Liveblocks authorization Server only
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY Only if using a public-key flow where appropriate Public by design
R2_ACCOUNT_ID R2 configuration Server
R2_ACCESS_KEY_ID R2 API auth Server only
R2_SECRET_ACCESS_KEY R2 API auth Server only
R2_BUCKET_NAME Object bucket Server configuration
INNGEST_EVENT_KEY Inngest event submission Server only
INNGEST_SIGNING_KEY Function request verification Server only
RESEND_API_KEY Email sending Server only
OPENAI_API_KEY AI requests Server only
OPENAI_MODEL Selected model Configuration
SENTRY_DSN Monitoring According to Sentry SDK design
POSTHOG_KEY Product analytics Often browser-visible project key
PAYSTACK_SECRET_KEY Billing later Server only
NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY Client payment initialization if used Public by design
Never put server secrets:
in Git;
in screenshots;
in NEXT_PUBLIC_*;
in task descriptions;
in AI prompts;
in issue trackers;
in client JavaScript.
If a real secret is exposed:
revoke → replace → update environment → redeploy → investigate.
Removing it from the latest commit is insufficient.
---
12. STEP-BY-STEP DEVELOPMENT ROADMAP
STEP 1 — Establish the repository and engineering rules
OBJECTIVE
Create a disciplined development foundation.
TOOLS
Antigravity, Git, GitHub.
WHY
The application contains permissions, realtime state and asynchronous workflows. Uncontrolled agent edits will become expensive quickly.
INSTALL / CREATE
Create the Git repository and private GitHub repository.
CONNECT TO
Antigravity → local repository → GitHub.
ACTION
Create:
AGENTS.md
ARCHITECTURE.md
SECURITY.md
DESIGN.md
AGENTS.md should define:
plan before modification;
minimal scope;
tests required;
no secret exposure;
no client-trusted authorization;
no unapproved dependencies;
no schema migration without review;
preserve existing functionality;
list modified files after work.
PROMPT FOR ANTIGRAVITY
> Review the project requirements and propose an AGENTS.md for this multi-tenant collaboration SaaS. Do not modify application code. Include security, tenant isolation, database migration, testing, dependency, realtime and human-review rules.
EXPECTED RESULT
Permanent project instructions exist before feature generation.
HOW TO VERIFY
Have Antigravity explain each rule back from the file.
COMMON ERROR
Allowing the agent to silently choose architecture feature by feature.
HUMAN CHECKPOINT
Approve architecture rules manually.
NEXT STEP
Create the application shell.
---
STEP 2 — Create Next.js application and deployment pipeline
OBJECTIVE
Establish local → GitHub → Preview → Production mechanics immediately.
TOOLS
Next.js, npm, Vercel.
ACTION
Use the current supported Next.js App Router workflow.
Do not freeze this roadmap to a specific framework version.
Next.js currently documents the App Router as its newer router architecture.
Deploy the untouched application to Vercel before feature work.
PROMPT FOR ANTIGRAVITY
> Review the clean Next.js TypeScript application. Propose the production folder structure for a modular multi-tenant SaaS. Do not implement business modules. Identify domain, infrastructure, auth, database, collaboration and UI boundaries.
EXPECTED RESULT
Local site and Preview deployment both work.
HOW TO VERIFY
Compare Git commit hash with deployed source.
COMMON ERROR
Waiting until the end to test deployment.
HUMAN CHECKPOINT
Approve repository and Vercel connection.
NEXT STEP
Database foundation.
---
STEP 3 — Design the domain model before coding modules
OBJECTIVE
Prevent task, project and tenant relationships from emerging accidentally.
CORE TABLES
organizations
members
teams
projects
project_members
workflows
workflow_statuses
tasks
task_assignees
task_labels
labels
task_dependencies
files
activity_events
audit_logs
notification_preferences
outbox_events
ai_insights
Better Auth may own some organization/member/team tables. Do not duplicate those tables if its schema is adopted.
Important project fields
id
organization_id
project_key
name
description
owner_id
workflow_id
visibility
status
start_at
due_at
archived_at
created_at
updated_at
Important task fields
id
organization_id
project_id
status_id
parent_task_id
creator_id
title
description
priority
start_at
due_at
completed_at
sort_key
version
archived_at
created_at
updated_at
Concurrency
Include a task version or equivalent optimistic-concurrency mechanism.
Two users editing the same task should not silently destroy each other's work.
Sorting
Do not renumber an entire Kanban column on every drag operation.
Use fractional ordering or a suitable sortable rank representation.
Tenant constraints
Where practical, enforce cross-tenant integrity structurally.
For example:
UNIQUE (organization_id, id)
can support composite relationships ensuring a child resource cannot accidentally reference a resource from another organization.
Indexes
Plan indexes around actual query patterns:
(organization_id, project_id, status_id)
(organization_id, due_at)
(project_id, sort_key)
(user_id, task_id)
(task_id, dependency_task_id)
(organization_id, created_at)
DELETE STRATEGY
Use archival/soft deletion for:
projects;
tasks;
workflows.
Permanent deletion should be a controlled background process.
HUMAN CHECKPOINT
Approve the schema before migrations.
---
STEP 4 — Integrate Neon, Drizzle and Zod
OBJECTIVE
Establish the authoritative data layer.
TOOLS
Neon, Drizzle, Zod.
CONNECT TO
Next.js server → Drizzle → Neon PostgreSQL.
ACTION
Create separate development and production databases.
Prefer a dedicated preview strategy rather than letting arbitrary branches modify production data.
Use transactions for operations such as:
create task
+
create assignees
+
record activity
+
write outbox...
Get this prompt + 9 more with SelectFrom $14/mo · Cancel anytimeFrom $14/mo · Cancel anytime
View SelectBy purchasing this prompt, you agree to our terms of service
GPT-6-ASTRA
Generates a personalized, step-by-step development roadmap for building an application with AI. Based on the app idea, detailed objectives, country/language, and skill level, it recommends the right tools, setup order, integrations, APIs, development stages, testing, security, deployment, and human review. It guides the user through the process—it does not claim to build the application automatically.
...more
Updated 1 week ago
