@joaosens/fullstack-prompts 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,188 @@
1
+ # ABOUT THE USER
2
+
3
+ ## Profile
4
+
5
+ The user is an 19-year-old self-taught systems builder focused on becoming highly autonomous in modern software engineering, full stack architecture, backend systems, AI-assisted development, and scalable product building.
6
+
7
+ The user is not pursuing traditional tutorial-based learning.
8
+ The goal is to develop real engineering capability through dense end-to-end projects, systems integration, and production-oriented architecture.
9
+
10
+ The user has a strong systems-thinking mindset and naturally connects:
11
+
12
+ - backend,
13
+ - frontend,
14
+ - infrastructure,
15
+ - automation,
16
+ - data systems,
17
+ - AI tooling,
18
+ - developer workflows,
19
+ - product thinking.
20
+
21
+ The user learns aggressively through practical implementation and architectural reasoning.
22
+
23
+ ---
24
+
25
+ ## Current Technical Direction
26
+
27
+ The current focus is:
28
+
29
+ - Full Stack Engineering,
30
+ - Backend Architecture,
31
+ - Systems Building,
32
+ - Scalable MicroSaaS Development,
33
+ - AI-Augmented Engineering Workflows.
34
+
35
+ Primary stack:
36
+
37
+ - React
38
+ - TailwindCSS
39
+ - React Three Fiber (R3F)
40
+ - FastAPI
41
+ - Python
42
+ - PostgreSQL
43
+ - Redis
44
+ - Docker
45
+ - Vite
46
+ - REST APIs
47
+ - Modular Backend Architecture
48
+
49
+ The user is currently transitioning from:
50
+
51
+ - Machine Learning,
52
+ - Data Engineering,
53
+ - automation-heavy projects,
54
+ toward:
55
+ - production-grade systems engineering and full-stack product development.
56
+
57
+ ---
58
+
59
+ ## Previous Background
60
+
61
+ The user has already explored multiple technical domains:
62
+
63
+ - Cybersecurity fundamentals,
64
+ - Linux,
65
+ - networking concepts,
66
+ - mathematics,
67
+ - linear algebra,
68
+ - machine learning,
69
+ - ETL/data engineering,
70
+ - Selenium automation,
71
+ - ML systems,
72
+ - prediction systems,
73
+ - scraping,
74
+ - backend integrations.
75
+
76
+ This created:
77
+
78
+ - strong abstraction tolerance,
79
+ - rapid pattern recognition,
80
+ - systems-oriented thinking,
81
+ - high curiosity toward architecture and integration.
82
+
83
+ ---
84
+
85
+ ## Learning Style
86
+
87
+ The user learns best through:
88
+
89
+ - project-based learning,
90
+ - architectural reasoning,
91
+ - systems thinking,
92
+ - practical implementation,
93
+ - understanding responsibilities and lifecycle,
94
+ - dense engineering discussions.
95
+
96
+ The user prefers:
97
+
98
+ - structural explanations,
99
+ - production-oriented reasoning,
100
+ - backend architecture depth,
101
+ - tradeoff analysis,
102
+ - maintainability-focused thinking.
103
+
104
+ Avoid:
105
+
106
+ - shallow tutorials,
107
+ - oversimplification,
108
+ - toy examples,
109
+ - generic beginner explanations,
110
+ - motivational fluff,
111
+ - excessive theory disconnected from implementation.
112
+
113
+ ---
114
+
115
+ ## Engineering Philosophy
116
+
117
+ The user values:
118
+
119
+ - modular architecture,
120
+ - clean system boundaries,
121
+ - reusable engineering patterns,
122
+ - maintainability,
123
+ - observability,
124
+ - production awareness,
125
+ - backend scalability,
126
+ - practical systems design,
127
+ - developer autonomy.
128
+
129
+ The user is trying to become:
130
+
131
+ - a highly capable systems builder,
132
+ - capable of building real scalable products,
133
+ - independent from tutorial dependency,
134
+ - highly effective with AI-assisted workflows.
135
+
136
+ ---
137
+
138
+ ## Important Behavioral Context
139
+
140
+ The user tends to:
141
+
142
+ - think very deeply about systems,
143
+ - overanalyze architecture,
144
+ - aggressively compress learning timelines,
145
+ - become anxious when entering highly abstract or unfamiliar technical domains.
146
+
147
+ This is not lack of discipline.
148
+ It is usually a reaction to:
149
+
150
+ - novelty overload,
151
+ - high abstraction density,
152
+ - large-scale systems complexity.
153
+
154
+ The user performs best after:
155
+
156
+ - mental models become normalized,
157
+ - architectural primitives become familiar,
158
+ - systems stop feeling “alien”.
159
+
160
+ When guiding:
161
+
162
+ - reduce unnecessary overwhelm,
163
+ - prioritize clarity and progression,
164
+ - prevent overengineering,
165
+ - encourage sustainable systems building,
166
+ - reinforce practical implementation over perfectionism.
167
+
168
+ ---
169
+
170
+ ## Current Goal
171
+
172
+ The current mission is:
173
+
174
+ - build strong Full Stack and Backend foundations,
175
+ - complete multiple production-oriented projects,
176
+ - develop real systems engineering capability,
177
+ - transition toward scalable MicroSaaS and product building,
178
+ - combine software engineering with AI leverage and entrepreneurial execution.
179
+
180
+ The user is not trying to become only:
181
+
182
+ - a framework developer.
183
+
184
+ The goal is to become:
185
+
186
+ - a systems builder,
187
+ - product engineer,
188
+ - technically autonomous creator capable of shipping scalable software systems.
@@ -0,0 +1,325 @@
1
+ # BACKEND ENGINEERING RULES
2
+
3
+ ## Core Backend Philosophy
4
+
5
+ - Always prioritize maintainability and production readability.
6
+ - Think like a senior engineer responsible for long-term system stability.
7
+ - Prefer explicit architecture over hidden magic.
8
+ - Backend code must be modular, predictable, and easy to debug.
9
+ - Avoid unnecessary abstractions and premature complexity.
10
+ - Build scalable systems progressively instead of overengineering from day one.
11
+
12
+ ---
13
+
14
+ ## Layer Responsibilities
15
+
16
+ ### Routes / Controllers
17
+
18
+ Responsibilities:
19
+
20
+ - Receive HTTP requests.
21
+ - Validate request boundaries.
22
+ - Call services.
23
+ - Return HTTP responses.
24
+
25
+ Rules:
26
+
27
+ - Keep controllers thin.
28
+ - Never place business logic inside routes.
29
+ - Never place database logic directly inside controllers.
30
+ - Controllers should mainly orchestrate request lifecycle.
31
+
32
+ ---
33
+
34
+ ### Services
35
+
36
+ Responsibilities:
37
+
38
+ - Business rules.
39
+ - System orchestration.
40
+ - External API integrations.
41
+ - Domain logic.
42
+ - Internal processing.
43
+
44
+ Rules:
45
+
46
+ - Services contain the real backend logic.
47
+ - Services should remain reusable and modular.
48
+ - Avoid tightly coupling services to FastAPI internals.
49
+ - Separate external integrations from pure business logic when possible.
50
+
51
+ ---
52
+
53
+ ### DTO / Schema Layer
54
+
55
+ Responsibilities:
56
+
57
+ - Input validation.
58
+ - Output serialization.
59
+ - API contracts.
60
+ - Type safety.
61
+
62
+ Rules:
63
+
64
+ - Always validate external input.
65
+ - Use Pydantic models for request/response consistency.
66
+ - Keep DTOs explicit and readable.
67
+ - Avoid leaking internal structures directly to clients.
68
+
69
+ ---
70
+
71
+ ### Middleware
72
+
73
+ Responsibilities:
74
+
75
+ - Cross-cutting concerns.
76
+ - Request lifecycle interception.
77
+ - Logging.
78
+ - Rate limiting.
79
+ - Authentication.
80
+ - Observability.
81
+
82
+ Rules:
83
+
84
+ - Each middleware should have a single responsibility.
85
+ - Avoid giant “god middlewares”.
86
+ - Middleware should remain infrastructure-oriented.
87
+ - Prefer composable middleware architecture.
88
+
89
+ Examples:
90
+
91
+ - Logging middleware
92
+ - CORS middleware
93
+ - Rate limit middleware
94
+ - Auth middleware
95
+ - Metrics middleware
96
+
97
+ ---
98
+
99
+ ### API Design Rules
100
+
101
+ - APIs should remain predictable and consistent.
102
+ - Use meaningful endpoint naming.
103
+ - Avoid deeply nested routes.
104
+ - Maintain response consistency.
105
+ - Prefer explicit HTTP status codes.
106
+ - Return useful error messages without leaking sensitive internals.
107
+
108
+ Examples:
109
+
110
+ - Good: "/github/stats"
111
+ - Bad: "/fetchGithubDataAndAnalyzeEverything"
112
+
113
+ ---
114
+
115
+ ### Error Handling
116
+
117
+ - Never expose raw internal exceptions to clients.
118
+ - Log exceptions internally.
119
+ - Return clean API-safe errors externally.
120
+ - Distinguish:
121
+ - validation errors,
122
+ - business errors,
123
+ - infrastructure failures.
124
+
125
+ Production mindset:
126
+
127
+ - Fail gracefully.
128
+ - Predict failure scenarios early.
129
+
130
+ ---
131
+
132
+ ### Logging & Observability
133
+
134
+ - Logging is mandatory in production systems.
135
+ - Every important request flow should be observable.
136
+ - Log:
137
+ - request lifecycle,
138
+ - failures,
139
+ - retries,
140
+ - external API failures,
141
+ - infrastructure issues.
142
+
143
+ Rules:
144
+
145
+ - Logs should help debugging production incidents.
146
+ - Avoid useless noisy logs.
147
+ - Prefer structured logs when possible.
148
+
149
+ ---
150
+
151
+ ### Redis Rules
152
+
153
+ Use Redis for:
154
+
155
+ - rate limiting,
156
+ - caching,
157
+ - temporary state,
158
+ - cooldown systems,
159
+ - lightweight shared state.
160
+
161
+ Avoid:
162
+
163
+ - storing permanent business data,
164
+ - abusing Redis as primary database.
165
+
166
+ Rules:
167
+
168
+ - Keys should be predictable and structured.
169
+ - Always define expiration policies when appropriate.
170
+
171
+ Example:
172
+
173
+ - "rate_limit:user_ip"
174
+ - "cooldown:user_id"
175
+
176
+ ---
177
+
178
+ ### PostgreSQL / Database Rules
179
+
180
+ - Database access should remain isolated from controllers.
181
+ - Use ORM carefully and explicitly.
182
+ - Prevent SQL injection through ORM/query parameterization.
183
+ - Prefer clear schemas over clever abstractions.
184
+ - Think about indexing early for scalable queries.
185
+
186
+ Avoid:
187
+
188
+ - giant unstructured tables,
189
+ - hidden query behavior,
190
+ - excessive joins without necessity.
191
+
192
+ ---
193
+
194
+ ### Security Rules
195
+
196
+ Always think about:
197
+
198
+ - JWT validation,
199
+ - token expiration,
200
+ - refresh token lifecycle,
201
+ - CORS configuration,
202
+ - input sanitization,
203
+ - SQL injection prevention,
204
+ - XSS prevention,
205
+ - secrets management.
206
+
207
+ Rules:
208
+
209
+ - Never hardcode secrets.
210
+ - Always use environment variables.
211
+ - Never trust external input.
212
+
213
+ ---
214
+
215
+ ### Docker & Infrastructure
216
+
217
+ - Docker is part of the backend lifecycle.
218
+ - Backend systems should be reproducible.
219
+ - Environment parity matters.
220
+
221
+ Rules:
222
+
223
+ - Separate dev and production concerns.
224
+ - Keep containers simple and predictable.
225
+ - Avoid bloated images.
226
+ - Use environment variables correctly.
227
+
228
+ ---
229
+
230
+ ### System Design Philosophy
231
+
232
+ - Design for moderate scalability first.
233
+ - Predict bottlenecks early.
234
+ - Think about:
235
+ - request volume,
236
+ - API failures,
237
+ - retries,
238
+ - queue systems,
239
+ - caching,
240
+ - latency,
241
+ - observability.
242
+
243
+ Avoid:
244
+
245
+ - building distributed systems complexity too early,
246
+ - premature microservices,
247
+ - infrastructure overengineering.
248
+
249
+ ---
250
+
251
+ ### Testing Philosophy
252
+
253
+ - Tests protect production systems.
254
+ - Focus on:
255
+ - service behavior,
256
+ - critical flows,
257
+ - integration points.
258
+
259
+ Tools:
260
+
261
+ - Pytest
262
+ - Postman
263
+ - Playwright
264
+ - Mock external APIs when appropriate.
265
+
266
+ ---
267
+
268
+ ### Architecture Principles
269
+
270
+ Prefer:
271
+
272
+ - modular systems,
273
+ - explicit boundaries,
274
+ - reusable services,
275
+ - simple abstractions,
276
+ - composability.
277
+
278
+ Avoid:
279
+
280
+ - tightly coupled systems,
281
+ - giant files,
282
+ - hidden side effects,
283
+ - magical architecture.
284
+
285
+ ---
286
+
287
+ ### Anti-Patterns
288
+
289
+ Avoid:
290
+
291
+ - fat controllers,
292
+ - business logic in routes,
293
+ - global mutable state,
294
+ - copy-paste architecture,
295
+ - unnecessary abstractions,
296
+ - overengineering for imaginary scale,
297
+ - deeply coupled services,
298
+ - massive god classes,
299
+ - silent failures,
300
+ - hidden infrastructure behavior.
301
+
302
+ ---
303
+
304
+ ### Senior Engineering Mindset
305
+
306
+ Always ask:
307
+
308
+ - What breaks in production?
309
+ - What happens under scale?
310
+ - How will debugging happen?
311
+ - Can another engineer understand this quickly?
312
+ - Is this abstraction justified?
313
+ - Is this maintainable in 6 months?
314
+ - What are the infrastructure consequences?
315
+ - What happens if external services fail?
316
+
317
+ The goal is not only making the system work.
318
+
319
+ The goal is:
320
+
321
+ - stability,
322
+ - maintainability,
323
+ - scalability,
324
+ - observability,
325
+ - engineering clarity.