wirte a very long promot for me okay lik Write an ...
Создано: 31 августа 2026 г.
Создано: 31 августа 2026 г.
wirte a very long promot for me okay lik Write an extremely long, exhaustive, deeply detailed technical guide on buidl afills aceld app very long pls
Sure — here’s a polished, very long prompt you can paste into an AI. I’m interpreting “afills aceld app” as a placeholder/app name, so the prompt tells the AI to define unclear requirements rather than silently guessing.
:::writing{variant="document" id="58321"}
Act as a world-class principal software engineer, solutions architect, product engineer, UI/UX designer, database architect, DevOps engineer, cloud architect, security engineer, QA engineer, technical writer, and engineering mentor.
Your task is to write an extremely long, exhaustive, deeply technical, practical, production-oriented, step-by-step guide for designing, building, testing, deploying, securing, monitoring, scaling, and maintaining a complete application called “[APP NAME]”.
Do not produce a short tutorial, superficial overview, generic checklist, or simplified proof of concept. Treat this as if you are writing the definitive engineering handbook that a serious development team could use to take the application from an initial idea all the way to a secure production deployment.
The final guide should be comprehensive enough that a competent developer can understand not only what to build, but also:
Begin by clearly defining what “[APP NAME]” is.
If the description provided by the user is incomplete, ambiguous, misspelled, or technically unclear, do not silently invent critical requirements. Instead, explicitly identify your assumptions.
Create a section called:
Explain:
Create an explicit assumptions table containing:
| Assumption | Reason | Risk if Incorrect | How to Validate |
|---|
Separate confirmed requirements from assumptions.
Never pretend an assumption is a confirmed fact.
Describe every major user journey.
For each journey, explain:
Provide detailed flows such as:
Visitor → Landing Page → Sign Up → Verification → Onboarding → Dashboard → Core Action → Confirmation → History
and:
Existing User → Sign In → Dashboard → Feature → API Request → Processing → Result → Persistence → Notification
Include alternate and failure paths.
Create a formal requirements specification.
Divide requirements into:
Use identifiers such as:
FR-001
FR-002
FR-003
For every requirement provide:
Use identifiers such as:
NFR-001
NFR-002
Cover:
Recommend a complete modern technology stack.
Discuss appropriate options for:
Consider technologies such as:
Explain exactly why the selected frontend stack is appropriate.
Evaluate suitable technologies such as:
Select one primary approach and explain the reasoning.
Compare appropriate database technologies such as:
Explain why the recommended primary database matches the application's access patterns.
Discuss:
Do not select technology merely because it is popular.
For every major technology decision include:
Chosen option
Why it fits
Alternatives considered
Advantages
Disadvantages
When the decision should be reconsidered
Explain the architecture from the highest level first.
Include a textual architecture diagram similar to:
User
↓
Browser / Mobile Client
↓
CDN / Edge
↓
Frontend
↓
API Layer
↓
Authentication / Authorization
↓
Business Logic
↓
Database / Cache / Queue / Object Storage
↓
External Services
Then describe every component individually.
Explain:
Discuss whether the application should begin as:
Avoid recommending microservices merely for sophistication.
Explain when splitting services becomes justified.
Pick several important user actions and trace them from beginning to end.
For example:
User clicks “Create”
→ frontend validates input
→ frontend constructs request
→ authentication credentials are attached
→ request reaches API
→ middleware runs
→ authentication is verified
→ authorization is evaluated
→ payload is validated
→ business logic executes
→ transaction begins
→ database is modified
→ side effects are scheduled
→ transaction commits
→ response is created
→ frontend receives response
→ local/server state is updated
→ UI displays success
Explain what happens when every major stage fails.
Provide a complete recommended repository structure.
For example:
/apps
/packages
/frontend
/backend
/components
/features
/hooks
/lib
/services
/api
/database
/migrations
/tests
/scripts
/config
/public
/docs
/infrastructure
/.github
Adapt the structure to the selected stack.
Explain the responsibility of every major directory.
Explain:
Include naming conventions.
Explain exactly how to set up development from a clean computer.
Cover:
Show example commands.
Explain what every command accomplishes.
Provide:
.env.example
but NEVER place real secrets inside examples.
Explain which values are public and which must remain secret.
Create a detailed relational data model.
Identify all major entities.
For every table provide:
Explain relationships.
Include examples such as:
users
accounts
sessions
profiles
organizations
memberships
projects
items
activity_logs
notifications
but adapt them to the actual application.
Provide example SQL or ORM schemas.
Explain why each relationship exists.
Do not merely say “add indexes.”
Explain:
For important queries, show which index supports the query.
Explain how over-indexing increases storage and write cost.
Explain how to inspect query plans.
Discuss:
EXPLAIN
EXPLAIN ANALYZE
and how to identify:
Explain a safe migration strategy.
Cover:
Explain expand-and-contract migrations.
Explain why production schema changes must be treated carefully.
Identify operations requiring transactions.
Explain:
Provide realistic examples.
Discuss idempotency for operations that may be retried.
Design the complete API.
If REST is selected, define conventions for:
GET
POST
PUT
PATCH
DELETE
For each endpoint provide:
For example:
POST /api/v1/items
Request:
json{ "name": "Example" }
Response:
json{ "id": "generated-id", "name": "Example", "createdAt": "timestamp" }
Explain why the API is designed this way.
Explain:
Explain validation at multiple boundaries.
Cover:
Make clear that client-side validation improves UX but cannot be trusted for security.
Show schemas using the chosen validation library.
Cover:
Explain normalization and sanitization where appropriate.
Design authentication carefully.
Compare:
Choose an approach based on the application.
Explain the complete login flow.
Cover:
If passwords are used, explain:
Never store plaintext passwords.
Never log passwords.
Never send passwords back to clients.
If cookie-based sessions are used, explain:
Clearly distinguish authentication from authorization.
Design roles and permissions.
Possible examples:
Owner
Administrator
Manager
Member
Viewer
Create a permission matrix.
Explain:
Never rely on hiding a button in the frontend as an authorization mechanism.
Provide examples of secure permission checks.
If applicable, explain how organizations/workspaces/accounts are isolated.
Cover:
Explain the risks of forgetting tenant filters.
Explain frontend architecture deeply.
Cover:
Explain what belongs on the server versus client.
Define component categories:
Explain component APIs.
Discuss:
Provide realistic component examples.
Create a lightweight design system.
Define:
Explain consistent design tokens.
Explain layouts for:
Discuss touch targets, navigation changes, tables on small screens, responsive forms, dialogs, sidebars, and dashboards.
Target WCAG 2.2 AA where appropriate.
Cover:
Explain common accessibility mistakes.
Explain robust form architecture.
Cover:
Show implementation examples.
Separate:
Explain when each belongs where.
Avoid putting everything in global state.
Explain caching and invalidation.
Create a unified error strategy.
Define categories:
ValidationError
AuthenticationError
AuthorizationError
NotFoundError
ConflictError
RateLimitError
ExternalServiceError
InternalError
Explain:
Never expose:
Design structured logging.
Include useful fields such as:
timestamp
level
requestId
userId
organizationId
route
method
statusCode
durationMs
errorCode
Explain what should never be logged:
Create a dedicated threat model.
Identify:
Consider:
For every relevant threat explain:
Threat
Attack scenario
Impact
Likelihood
Mitigation
Testing method
Explain how to manage:
Never hard-code secrets.
Explain:
Discuss appropriate headers such as:
Explain what each protects against.
Explain rate limiting for:
Discuss:
Explain limitations of IP-only rate limiting.
If uploads exist, cover:
Do not trust filenames or client-provided MIME types.
For each external provider explain:
Assume external services can fail.
If webhooks are used, explain:
Provide pseudocode or implementation examples.
Identify work that should happen asynchronously.
Examples:
Explain:
Explain where caching is appropriate.
Discuss:
Explain cache keys.
Explain TTL.
Explain invalidation.
Explain why cache invalidation is difficult.
Do not recommend caching everything.
Create a performance plan.
Frontend:
Backend:
Database:
Compare:
Explain when each should be used.
Provide implementation examples.
Explain stable sorting and deterministic cursors.
If search exists, explain progression from:
simple database search
to:
full-text search
to:
dedicated search infrastructure
only when justified.
Cover:
If applicable, compare:
Explain connection lifecycle.
Cover:
If the application sends emails, define:
Discuss:
Design:
Explain:
Create a complete testing pyramid.
Cover:
Test isolated business logic.
Test:
Test critical user journeys.
Test:
Explain:
Write concrete test scenarios.
For each major feature include:
Happy path
Validation failure
Unauthorized request
Forbidden request
Missing resource
Duplicate operation
Network failure
Database failure
Concurrent modification
Unexpected server failure
Include representative test code.
Explain:
Never use real sensitive production data casually in development or tests.
Configure:
Explain why each exists.
Describe a practical Git strategy.
Cover:
Provide examples of strong commit messages.
Create a review checklist covering:
Design continuous integration.
Example stages:
Install
→ Lint
→ Type Check
→ Unit Tests
→ Integration Tests
→ Build
→ Security Checks
→ Artifact Creation
Provide a realistic CI configuration.
Explain caching and reproducibility.
Explain deployment automation.
Describe:
Commit
→ Pull Request
→ CI
→ Merge
→ Build
→ Staging
→ Validation
→ Production
Explain:
If appropriate, provide:
.dockerignore;Explain:
Define:
Development
Testing
Preview
Staging
Production
Explain differences between them.
Keep configuration differences explicit.
Avoid making staging unnecessarily different from production.
Provide a complete deployment walkthrough.
Explain:
Explain:
Require HTTPS in production.
Design endpoints such as:
/health
/ready
Explain the difference between:
Do not expose sensitive infrastructure details.
Design the observability stack around:
Structured event records.
Examples:
request rate
error rate
latency
CPU
memory
database connections
queue depth
cache hit rate
Explain distributed tracing where useful.
Connect all three using request/correlation IDs.
Define useful alerts.
Examples:
Avoid alerts that generate constant noise.
Explain severity levels.
Explain:
SLI
SLO
SLA
Provide example service objectives.
Discuss:
Create a database backup strategy.
Cover:
Emphasize that an untested backup is not a reliable recovery plan.
Describe scenarios such as:
For each explain:
Detection
Containment
Recovery
Verification
Postmortem
Define example:
RPO
RTO
Explain how architecture should evolve at:
100 users
1,000 users
10,000 users
100,000 users
1,000,000+ users
Do not claim exact thresholds universally apply.
Explain likely bottlenecks.
Discuss:
Explain when NOT to introduce complexity.
Estimate major cost categories:
Provide strategies for keeping an MVP inexpensive without making it impossible to scale later.
Discuss:
Avoid making unsupported claims of legal compliance.
If legal compliance matters, clearly distinguish engineering guidance from legal advice.
Design privacy-conscious product analytics.
Define events such as:
user_signed_up
onboarding_completed
item_created
feature_used
subscription_started
For every event define:
Avoid collecting unnecessary sensitive information.
Explain:
Explain how flags should be removed after they are no longer needed.
If appropriate, design an administrative interface.
Cover:
Apply stricter authorization to administrative functions.
Never create hidden insecure “admin shortcuts.”
For sensitive applications, define auditable events.
Examples:
role changed
member invited
member removed
account deleted
security setting changed
data exported
Store:
Avoid storing secrets in audit records.
Create a realistic implementation sequence.
Example:
Phase 0 — Discovery
Phase 1 — Repository Setup
Phase 2 — Database Foundation
Phase 3 — Authentication
Phase 4 — Core Backend
Phase 5 — Core Frontend
Phase 6 — Main Product Workflow
Phase 7 — Testing
Phase 8 — Security Hardening
Phase 9 — Deployment
Phase 10 — Monitoring
Phase 11 — Beta
Phase 12 — Production Launch
For every phase provide:
This section must be particularly detailed.
Do not simply say:
“Create the frontend.”
Instead show:
Progress incrementally.
At the end of each major milestone, provide a checkpoint such as:
Checkpoint: Authentication Foundation Complete
Then explain exactly what should work before continuing.
Provide production-quality code examples.
Code should be:
Avoid unexplained pseudo-code when actual code would be useful.
For every substantial example explain:
Do not use phrases like:
“Implement authentication here.”
“Add database logic.”
“Configure security.”
“Set up deployment.”
without actually explaining how.
If a topic is too large to fully implement in one code listing, break it into smaller steps.
After every major section include:
Explain mistakes a beginner or intermediate engineer may make.
Examples:
Create a comprehensive debugging section.
Explain how to debug:
Teach a systematic debugging method:
Observe
→ Reproduce
→ Isolate
→ Form hypothesis
→ Test hypothesis
→ Fix
→ Verify
→ Add regression test
Create a detailed checklist.
Include categories:
[ ] Core flows complete
[ ] Error states complete
[ ] Empty states complete
[ ] Authentication reviewed
[ ] Authorization reviewed
[ ] Secrets secured
[ ] Rate limits configured
[ ] Security headers configured
[ ] Migrations tested
[ ] Indexes reviewed
[ ] Backups enabled
[ ] Restore tested
[ ] Health checks configured
[ ] Timeouts configured
[ ] Retry policies reviewed
[ ] Logs available
[ ] Metrics available
[ ] Alerts configured
[ ] Unit tests passing
[ ] Integration tests passing
[ ] Critical E2E tests passing
[ ] Production environment configured
[ ] TLS enabled
[ ] Rollback procedure documented
Expand this checklist significantly.
Explain how to launch safely.
Possible progression:
Internal testing
→ Development environment
→ Staging
→ Private alpha
→ Limited beta
→ Gradual rollout
→ General availability
Explain what should be measured at every stage.
Explain what happens after launch.
Cover:
Define a lightweight incident process.
Cover:
Detection
→ Triage
→ Severity assignment
→ Containment
→ Mitigation
→ Recovery
→ Communication
→ Postmortem
Explain severity levels.
Explain blameless postmortems focused on improving systems and processes.
Explain:
Daily tasks
Weekly tasks
Monthly tasks
Quarterly tasks
Include:
Explain how to identify and prioritize technical debt.
Categorize debt:
Explain when refactoring is justified.
Specify documentation the repository should contain:
README.md
ARCHITECTURE.md
CONTRIBUTING.md
SECURITY.md
DEPLOYMENT.md
RUNBOOK.md
API documentation
Database documentation
Provide example structures for each.
Explain how a new engineer should become productive.
Create a first-day workflow:
Clone repository
→ Install dependencies
→ Configure environment
→ Start database
→ Run migrations
→ Seed data
→ Start application
→ Run tests
→ Make small change
Aim for reproducible onboarding.
Explain ADRs.
Provide an example:
Status: Accepted
Context:
...
Decision:
...
Alternatives:
...
Consequences:
...
Use ADRs for important architectural decisions.
Describe how the system might evolve without prematurely implementing complexity.
Discuss potential future adoption of:
For every technology explain the trigger that would justify adding it.
Provide at least three reasonable architectures:
Optimize for:
Optimize for:
Optimize for:
Compare them in a table:
| Area | MVP | Growth | Large Scale |
|---|---|---|---|
| Frontend | |||
| Backend | |||
| Database | |||
| Cache | |||
| Queue | |||
| Deployment | |||
| Monitoring | |||
| Complexity | |||
| Cost |
Then recommend which architecture should actually be built first.
For every important architectural decision, explicitly discuss tradeoffs.
Examples:
REST vs GraphQL
SQL vs NoSQL
Sessions vs JWT
Monolith vs microservices
Serverless vs containers
Polling vs WebSockets
Offset vs cursor pagination
Managed services vs self-hosting
Avoid claiming one technology is universally superior.
Perform a final adversarial review.
Ask questions such as:
Can one user access another user's resource by changing an ID?
Can a normal user invoke an admin endpoint directly?
Can an attacker submit unexpected fields?
Can an attacker upload dangerous content?
Can repeated requests create duplicate transactions?
Can a leaked URL reveal private information?
Can authentication tokens appear in logs?
Can password reset links be replayed?
Can a malicious site trigger sensitive requests?
Can one tenant access another tenant's records?
Then explain mitigations.
Review:
Provide tools and techniques for investigating each.
At the end, show what the completed repository could look like.
For example:
textapp/ ├── apps/ │ ├── web/ │ └── api/ ├── packages/ │ ├── database/ │ ├── validation/ │ ├── ui/ │ └── config/ ├── infrastructure/ ├── scripts/ ├── docs/ ├── tests/ ├── .github/ ├── .env.example ├── package.json └── README.md
Expand this based on the actual architecture.
Choose the most important feature and trace it through the entire stack.
For example:
User action
→ UI component
→ form validation
→ API client
→ HTTP request
→ middleware
→ authentication
→ authorization
→ server validation
→ service layer
→ database transaction
→ database indexes
→ asynchronous events
→ response
→ cache invalidation
→ frontend state update
→ UI feedback
→ analytics
→ logs
→ metrics
Explain every stage.
Trace the same feature when things fail.
Consider:
Explain how the application should behave in every case.
Finish with a concise but complete command-oriented walkthrough.
Example structure:
bash# Create project ... # Install dependencies ... # Configure database ... # Run migrations ... # Start development ... # Run tests ... # Build production ... # Deploy ...
Adapt all commands to the chosen technology stack.
Do not include fake commands that would not work with the selected tooling.
Conclude by answering:
The guide must be extremely detailed.
Do not artificially shorten the response.
Prefer detailed explanations over superficial statements.
For major concepts, explain:
Whenever code is provided:
When modifying a previously introduced file, clearly show whether the code is:
Do not leave ambiguous fragments that a developer cannot place correctly.
Do not invent library APIs.
Do not claim a feature exists in a framework unless reasonably certain.
If version-specific behavior matters, explicitly state which version or version range the guide assumes.
When information could have changed recently, recommend checking the official documentation rather than presenting uncertain information as fact.
Prefer official documentation for framework-specific technical facts.
Clearly distinguish:
Confirmed behavior
from:
Recommendation
from:
Assumption
Treat all user input as untrusted.
Treat the network as untrusted.
Perform authorization on the server.
Use parameterized database queries or a safe ORM.
Protect credentials.
Use HTTPS in production.
Apply least privilege.
Validate uploaded files.
Protect sensitive endpoints against abuse.
Never place secrets in client-side bundles.
Never expose private environment variables.
Never rely solely on frontend validation.
Never log passwords, tokens, or private secrets.
Never suggest disabling important security controls merely to make development easier.
Favor:
clarity over cleverness;
simple architecture over unnecessary complexity;
managed infrastructure over unnecessary operational burden for small teams;
secure defaults over convenience;
explicit validation over assumptions;
observability over guessing;
incremental scalability over premature distributed systems;
maintainable code over impressive-looking abstractions.
Do not introduce Kubernetes, Kafka, microservices, event sourcing, CQRS, distributed databases, or similarly complex infrastructure unless there is a concrete requirement that justifies it.
When sophisticated technology might become useful later, explain the trigger for adopting it rather than immediately adding it.
Write as though teaching an intelligent developer who wants to understand the system deeply.
Do not assume unexplained jargon.
When introducing an important technical term, explain it.
Use:
Use concrete examples instead of vague statements.
The final response must contain the actual technical guide.
Do NOT respond with only:
The table of contents should be followed by the actual detailed content.
If the complete guide is too large for a single response, divide it into logically numbered parts while maintaining continuity.
Use:
Part 1 — Product and Architecture
Part 2 — Project Setup and Database
Part 3 — Backend and APIs
Part 4 — Authentication and Security
Part 5 — Frontend and UX
Part 6 — Testing
Part 7 — Infrastructure and Deployment
Part 8 — Observability and Reliability
Part 9 — Scaling and Operations
Part 10 — Final Production Implementation
At the end of each part, state exactly where the next part should continue.
Do not restart the architecture or change technology choices between parts unless you explicitly explain why a decision changed.
Use the following project information:
Application name: [APP NAME]
Application idea:
[DESCRIBE THE APPLICATION]
Target users:
[DESCRIBE USERS]
Core features:
[LIST FEATURES]
Platforms:
[WEB / IOS / ANDROID / DESKTOP / OTHER]
Preferred frontend technology:
[OPTIONAL]
Preferred backend technology:
[OPTIONAL]
Preferred database:
[OPTIONAL]
Preferred hosting/cloud:
[OPTIONAL]
Authentication requirements:
[OPTIONAL]
External integrations:
[OPTIONAL]
Expected initial users:
[NUMBER]
Expected future scale:
[NUMBER]
Budget constraints:
[OPTIONAL]
Team size and experience:
[OPTIONAL]
Special security/privacy requirements:
[OPTIONAL]
Additional requirements:
[ADD ANYTHING ELSE]
If an optional input is missing, make a reasonable recommendation and clearly label it as a recommendation.
Now create the complete, extremely long, deeply detailed, technically rigorous zero-to-production engineering guide for “[APP NAME]”.
Begin with:
Then continue through the entire implementation, security, testing, deployment, observability, scaling, disaster recovery, maintenance, and production-readiness process described above.
Do not skip difficult sections.
Do not replace implementation details with “etc.”
Do not repeatedly summarize instead of implementing.
Whenever there is a choice between a vague statement and a concrete example, prefer the concrete example.
The objective is to produce something closer to a complete engineering handbook, architecture specification, implementation tutorial, security guide, deployment manual, and production runbook combined into one document than a normal coding tutorial.
Start now. :::
Replace [APP NAME], [DESCRIBE THE APPLICATION], and the other placeholders with your actual app details before using it.