Skip to content

Instantly share code, notes, and snippets.

View ronaimate's full-sized avatar

Rónai Miklós Máté ronaimate

  • Hungary, Miskolc
View GitHub Profile
@ronaimate
ronaimate / incoationHandler.java
Last active February 20, 2026 12:13
InvocationHandler for fake implementation
public static CustomerRepository fakeCustomerRepository() {
Customer alice = new Customer(1L, "Alice");
Customer bob = new Customer(2L, "Bob");
List<Customer> all = List.of(alice, bob);
return (CustomerRepository) Proxy.newProxyInstance(
CustomerRepository.class.getClassLoader(),
new Class[]{CustomerRepository.class},
(proxy, method, args) -> switch (method.getName()) {
PROMT PRD:
I will provide you with:
1. A PRD template (OpenAPI-first, backend/frontend structure included)
2. User requirements / feature descriptions
Your task is to generate a **complete PRD** in English that fills in the template with the details from the user requirements.
Follow these rules strictly:
1. Preserve the structure of the template exactly (sections, headers, numbering).
@ronaimate
ronaimate / gist:8fcac374f45ea5b81893f3ba21a4b685
Created November 25, 2025 20:15
PRD Template: Full Stack Type Projects (Spring + React)
# **Optimized PRD Template (OpenAPI-First, Cursor-Friendly)**
---
## **0. Engineering Notes**
* OpenAPI-first workflow. All backend controllers must implement generated interfaces.
* Frontend must use only the generated TypeScript client.
* JWT-based authentication.
* Phase-end commits must be created after all tests pass.
@ronaimate
ronaimate / gist:50f11c613ddae0ba09310cdb99bd054f
Created November 25, 2025 20:03
TODO Generator Prompt: Full Stack Type Projects (Spring + React)
I will give you a PRD. Based on that PRD, generate a full-stack, OpenAPI-first development roadmap optimized for Cursor. Follow *all* rules below strictly.
## SHORT INTRO (for the AI)
* You may mark TODOs as done later on command (the user may ask you to toggle checkboxes). For now, every checkbox must be unchecked `[ ]`.
* The output must be extremely clean, Cursor-friendly, and immediately executable in Cursor (actual file creation/editing commands or runnable commands).
* All phrases and commands must be actionable, short, and imperative.
## TOP RULES (global)