HTML Page & Tool Briefing Protocol v2 runs a structured intake that ends with a complete, autonomous brief ready for AI to build a static HTML page or local tool in one shot. The operator answers questions in conversation; the AI listens, classifies, and guides. At the end of the process the AI generates the full brief on its own — the operator writes nothing in it. Nothing is invented during the build phase because every decision was already closed during intake and confirmed during synthesis.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xxyoudeadpunkxx/ai-protocol-kit/llms.txt
Use this file to discover all available pages before exploring further.
Fundamental rule: an unresolved ambiguity never passes to the next phase. If something is unclear, the AI stops and asks before moving on.
Three phases
Phase 1 — Intake
Phase 1 — Intake
Phase 1 is free discovery. The AI guides — it does not interrogate. One thing at a time, in the order that makes sense given what the operator is already saying. If something is missing, the AI says so before moving on. If something is ambiguous, the AI asks.WHAT IT IS AND WHAT IT DOES — The AI opens with the simplest possible question: what is this in one sentence? Who uses it and in what real context? What does the user do every time they open it? Is there a mandatory flow or can they enter from anywhere? This closes the identity and functional purpose before anything else is decided.HOW IT LOOKS — How many views does it have? What dominates the page? What is always visible, what is hidden or collapsible? How does the user move between views? Visual structure is closed here at the conceptual level, before HTML or CSS decisions are made.HTML STRUCTURE AND VISUAL ORDER — For any HTML output, the structural model is closed before moving on. The AI determines the logical DOM order of the content, which content is primary, secondary, supporting, or decorative, and which sections require semantic HTML5 structure. It checks whether visual order and reading order are the same — and if they conflict, it names the trade-off and resolves it before synthesis. No CSS is allowed to compensate for an unresolved HTML structure problem.STRUCTURE AND PROPORTION RAILS — Golden-ratio proportions are used as a visual guidance rail when they improve hierarchy, rhythm, section balance, or perceived visual growth. A Fibonacci-inspired spacing and sizing scale is used where practical for margins, gaps, section spacing, and major layout proportions. These are defaults, not mandates — if the operator chooses a different visual system during intake, that confirmed system takes over. Usability wins when proportion rules and usability conflict.HOW IT BEHAVES — Real-time or on explicit confirmation? Do system states change what is visible? Does every primary action have visual feedback? What happens when something fails silently? Behaviour is closed explicitly — silent failure modes are named and handled, not left open.WHAT IT HOLDS AND HOW — What does it save and where? Free, typed, or schematized format? Does it export or import? How much does the data grow over time? What happens if storage is full or disabled? One file or multiple files? External dependencies allowed? Every storage decision is closed here — GPT invents nothing about the data layer.FOR WHOM AND WHERE — Does the user already know the system or are they arriving for the first time? What tone? Desktop, mobile, or both? Used sitting down or under pressure on the move? Does a small screen change the visual hierarchy? Context of use closes here.RESPONSIVE BEHAVIOR — For HTML output, responsive behavior is closed explicitly: which breakpoints must be supported, which content changes priority on small screens, whether any element requires fixed dimensions and why, whether horizontal scroll is ever intentional, and whether the layout should be single-column, stacked, split, or grid-like at each breakpoint. Horizontal page scroll is not allowed unless explicitly justified. If it appears without justification it is treated as a layout failure, not a styling detail.BOUNDARIES AND HORIZON — What must this tool never do? What must it not make impossible later? Any future integrations already in mind? This closes the explicit out-of-scope list and the future log. Features that emerge here as future ideas are parked — not lost, not acted on now.Key rule: No feature without a surface. If a feature has no location — no view, no layer, no part of the page where it physically lives — it is blocked until the surface is decided.
Phase 2 — Synthesis
Phase 2 — Synthesis
When intake is closed, the AI processes everything. If something does not add up, it goes back and asks — it does not move forward with open doubts. The synthesis is entirely the AI’s work. The operator confirms it; the operator does not write it.The synthesis produces six outputs:
For HTML output, the synthesis includes explicit HTML/CSS quality rails — not as generic best practices but as explicit constraints GPT must obey. These cover: semantic HTML5 structure, logical DOM order, heading hierarchy, responsive behavior at each breakpoint, layout method (flex vs. grid), spacing system, decorative layer policy, JavaScript policy, accessibility baseline, and SEO baseline for public-facing pages.Only decisions actually closed during intake appear in the synthesis. Nothing is invented or inferred here.When the synthesis is complete, the AI shows it to the operator and asks for confirmation. Nothing is ambiguous when this phase closes. The brief is generated only after confirmation.
| Output | What it contains |
|---|---|
| FUNCTIONAL MAP | Real functions — primary, secondary, never — with surface for each one |
| DATA SCHEMA | Keys, formats, storage, limits — decided, not to be invented |
| FINAL TEXTS | All texts visible to the user — written by the AI from the process, not invented later by GPT |
| EXPLICIT RULES | Constraints, rails, trade-offs — GPT receives them as law |
| FUTURE LOG | Everything that emerged as LATER — parked, not lost |
| OPEN ASSUMPTIONS | Everything not yet decided — blocking or non-blocking, explicitly declared |
Phase 3 — Brief for GPT
Phase 3 — Brief for GPT
The brief is generated autonomously by the AI in a single message. The operator writes nothing. The brief is complete and self-contained — GPT builds from it in one shot.The brief has eight sections:
For HTML pages, the brief includes a mandatory HTML/CSS implementation block that covers DOM order, semantic elements, heading hierarchy, responsive layout, spacing scale, golden-ratio and Fibonacci rails, flex vs. grid rules, overflow rules, decorative element policy, JavaScript policy, accessibility baseline, and SEO baseline.The brief always closes with this line, added by the AI automatically:
| Section | What it contains |
|---|---|
| 1. IDENTITY | Name, subtitle, one sentence — no history |
| 2. STRUCTURE | Views, hierarchy, surface — with section comments already decided |
| 3. TEXTS | Exact copy-paste — GPT does not invent a single word |
| 4. DATA SCHEMA | Keys, formats, storage — complete and final |
| 5. AESTHETICS | Palette, CSS variables, visual reference |
| 6. RULES | Constraints, rails, trade-offs — written as explicit prohibitions |
| 7. OUT OF SCOPE | Explicit list of what does not go in — GPT does not add it even if it seems obvious |
| 8. ENVIRONMENT | Where it runs, how it saves, how it writes to disk |
“Read everything. Do not write anything yet. Tell me what you did not understand or what seems contradictory. Then build the complete file in one shot.”
HTML structure rules
The protocol establishes a set of structural principles that apply by default to every HTML page or web-surface output. These are not style suggestions — they are explicit rules that flow from intake through synthesis into the brief. HTML is structure. CSS is presentation. If an element must appear before another element in the actual reading or usage flow, it must appear earlier in the HTML. CSS may change presentation, spacing, emphasis, responsive layout, and visual treatment. It must not compensate for a wrong content order. DOM order must match logical reading order. The order of elements in the HTML file must reflect the order in which a reader or user encounters them. Visual repositioning with CSS is not a solution to a structural order problem — it is a cover that the protocol does not allow. Golden-ratio proportions as a visual guidance rail. When proportions improve hierarchy, rhythm, section balance, or perceived visual growth, the golden ratio is used as a default rail. It is not forced when it damages readability, accessibility, responsiveness, content fit, tap targets, or usability. Fibonacci-inspired spacing scale. Margins, gaps, section spacing, card spacing, and major layout proportions follow a Fibonacci-inspired scale where practical. The scale provides visual consistency and rhythm without requiring manual coordination of individual values. Usability wins. When proportion rules and usability conflict, usability wins. The golden ratio and Fibonacci scale are rails, not laws.Response classification
Every answer the operator gives is classified by the AI. The operator does not classify anything. If an answer touches multiple levels, the AI names all of them.NOW
Defines what the tool is and does today. Goes directly into the base.
LATER
Future feature, integration, or expansion. Parked in the log. The AI returns to the original question.
CONSTRAINT
What the tool must not do or must not break. Becomes an explicit rule.
ASSUMPTION
Taken for granted but not yet decided. Must be clarified before moving on.
SURFACE
Where a feature physically appears — which view, which layer, always visible or conditional. A feature without a surface is blocked.
PHILOSOPHY
A core principle driving decisions. Not a feature — a non-negotiable rail.
RAIL
An operating rule derived from a philosophy. Constrains design and code decisions throughout the build.
TRADE-OFF
A tension already sensed or intrinsic to the design. Must be named and confirmed before building.