refactor(prompts): enforce multi-file project structure and remove line constraints
Remove maximum line count restrictions from prompt templates and enhance the prompt building service to require complete multi-file project outputs. Update generated prompts to explicitly instruct creation of standard legal documents (LICENSE, README.md, RULES.md, cookies.html, termos-de-uso.html, privacidade.html) with full content from scratch. Modify UI text to reflect the new multi-file requirements.
This commit is contained in:
@@ -268,6 +268,9 @@ class PromptProjectService
|
||||
}
|
||||
|
||||
$parts[] = "SYSTEM REQUIREMENTS (ALWAYS apply to every project):";
|
||||
$parts[] = "- The generated prompt must produce a COMPLETE MULTI-FILE PROJECT structure (not a single file). Generate separate files organized in a proper project folder structure";
|
||||
$parts[] = "- The prompt MUST instruct to create EACH of the following standard files FROM SCRATCH with COMPLETE content (not just descriptions): LICENSE (MIT with company name and year), README.md (full documentation in Portuguese), RULES.md (coding rules in Portuguese), cookies.html (complete LGPD cookie banner page with HTML/CSS/JS), termos-de-uso.html (complete Terms of Service page), privacidade.html (complete Privacy Policy page compliant with LGPD)";
|
||||
$parts[] = "- Do NOT just describe what the files should contain — the generated prompt must explicitly tell the developer/AI to CREATE each file with full, ready-to-use content";
|
||||
$parts[] = "- Fully responsive design (mobile-first, all screen sizes including smartphones)";
|
||||
$parts[] = "- Use only MIT-licensed or permissive open-source icons, images, and dependencies that are safe for commercial use";
|
||||
$parts[] = "- All password fields must include a toggle button (eye icon) to show/hide the password";
|
||||
|
||||
Reference in New Issue
Block a user