This protocol governs AI behavior when preparing or publishing any public-facing page, landing page, showcase, portfolio, documentation entrypoint, or GitHub Pages site. It does not assume the page belongs to a software project, does not assume every project needs a page, and does not assume every page should behave like a landing page. Every phase — from project classification through semantic HTML design, risk audit, and execution — must be completed in order. No file is generated, no branch is configured, and no push is executed until all risks are closed and the page model is confirmed.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.
Core Rule
Build the smallest correct public page that matches the real project, the real audience, and the real function of the page.Phases
Classify the project and the page role
Determine the project name, type, primary purpose, target audience, current maturity, intended public identity, whether a page is justified at all, the role of the page, and the primary public unit. Possible page roles include: landing page, project overview, orientation page, documentation entrypoint, showcase, portfolio surface, archive, reading surface, distribution surface, and support surface for a repository or product. Close these questions: what is this project in public terms; what should a visitor understand within the first seconds; what should a visitor do next; what is the page’s primary message; what belongs in the page and what explicitly does not. Use real evidence from the workspace. Stop and ask if classification remains materially ambiguous.
Analyze the source surface
Inspect the workspace enough to make sound page-publication decisions. Determine and report: current semantic HTML structure, whether DOM order matches the intended reading order, whether the page remains understandable before CSS is applied, whether HTML5 semantic elements are used appropriately, whether heading hierarchy is coherent, whether layout depends on fixed widths or absolute positioning, whether any element causes horizontal overflow, whether pseudo-elements are used for decoration or content, whether JavaScript is present with justified behavior, whether external CSS libraries are present and justified, whether accessibility baseline signals are present, whether SEO metadata is present, current page or site structure, entry files, internal links the page depends on, external links the page points to, whether linked external surfaces are live and consistent with the page’s public identity, whether the page is isolated or entangled with non-page content, and whether a published page already exists. Do not generate files in this phase.
Run the public-surface risk audit
Check and report: sensitive or private content that should not appear on the page, internal-only notes or drafts, assets with unclear license or attribution, links that expose unfinished or unintended surfaces, broken or stale internal links the page depends on, linked external surfaces that are unready or inconsistent with the intended public surface, content that misrepresents project status or maturity, stale claims presented as current public reality, structural mixing between page content and repository-only content, visual or messaging mismatch, and technical deployment risks. If publication-blocking issues are found, stop and provide remediation steps before continuing.
Design the public page model
Before generating or editing any file, decide and report: the semantic HTML5 skeleton, the logical DOM order, the heading hierarchy, the responsive model for mobile and desktop, whether layout should use normal flow, flex, or grid, the spacing scale, the maximum content width strategy, the decorative background strategy, whether pseudo-elements are allowed and for what purpose, whether JavaScript is needed at all, whether any external CSS library or framework is justified, the accessibility baseline, the SEO baseline, the role of the page, what content categories the page should contain, what content categories must stay out, what the visitor should see first, what the primary and supporting message are, what the next action is if any, and what level of visual identity is justified (minimal, coherent, or strong branded). Do not generate extra sections, multi-page structure, decorative assets, or interactivity by default.
Define the minimum page package
Generate only the elements justified by the page model. Possible elements include: page entry file, stylesheet, script, favicon, social/share preview image, title, description, canonical link, navigation, footer, public links, and minimal supporting assets. Build semantic HTML before writing CSS. Keep DOM order aligned with reading order. Use HTML5 semantic elements where appropriate. Keep heading hierarchy coherent. Use flex for simple one-dimensional layouts; use grid only when the page model requires two-dimensional layout. Avoid fixed widths and heights unless explicitly justified. Constrain media and wide elements to their containers. Prevent uncontrolled horizontal scroll. Do not solve overflow by blindly applying
overflow-x: hidden. Add JavaScript only for justified behavior. Include title and description for public-facing pages.Review before any publication action
Before committing, deploying, configuring a page source, or pushing, produce a concise review that states: whether the HTML structure is semantic and coherent, whether DOM order matches reading order, whether CSS is only handling presentation and not compensating for wrong structure, whether responsive behavior was checked, whether horizontal scroll is absent or explicitly justified, whether any element overflows or overlaps, whether decorative layers are implemented without polluting the DOM, whether JavaScript is justified and scoped, whether accessibility baseline is satisfied, whether SEO metadata is present, what the page is for, what it includes and excludes, what public claims it makes, which files were added or modified, where the page source will live, and which risks remain. Do not commit, deploy, configure, or push until this review is complete and the page package is confirmed.
Execute publication
After confirmation, perform the minimum clean publication sequence required by the environment. Possible actions include: isolate the page source if needed, create or update the page surface, execute the publication sequence required by the actual deployment model, stage files intentionally, commit intentionally, push the page source, configure the page source location, publish metadata and page identity elements, and verify the live public surface. Possible deployment models: source-based deployment, artifact-based deployment, platform-managed page hosting, externally hosted static deployment. Do not assume publication means only pushing files — it includes the visible public surface, its identity, its scope, and its deployment behavior.
Final post-publication checklist
After publication, produce a checklist of only the relevant remaining manual tasks. Possible items include: verify semantic structure in the rendered page, verify logical reading order, verify heading hierarchy, verify no unintended horizontal scroll, verify responsive behavior by resizing the viewport, verify that no content overlaps at normal viewport sizes, verify that media and wide elements stay inside their containers, verify that JavaScript is not required for basic reading of static content, verify keyboard navigation, verify visible focus states, verify basic contrast readability, verify alt text where images carry meaning, verify live and mobile rendering, verify title and description, verify share preview, verify favicon, verify links, and verify that excluded material stayed excluded.
Publication-Blocking Conditions
The external-link stop rule applies in full: do not publish a page that creates a false sense of readiness by pointing users into broken, abandoned, contradictory, or premature external surfaces. Do not publish a page that creates a false sense of completeness through broken or misleading internal navigation.Operating Rules
The following six rules govern every session using this protocol:- Follow the phases in order. Do not skip directly to visual edits, file generation, branch setup, deployment, or push.
- Before acting, identify the environment. Understand what kind of public surface is being created, anticipate likely failure points for that surface, choose the method that avoids them, and then act.
- If a meaningful ambiguity remains and could change public meaning, audience fit, structure, visibility, or publication scope, stop and ask before modifying anything.
- Do not generate a page, subpage, docs surface, navigation structure, assets, or deployment setup unless they are justified by the actual project and the intended public surface.
- Do not optimize for completeness by default. Optimize for correctness, clarity, minimality, and public-surface readiness.
- Never assume every project needs a public page, that every page is a landing page, or that the page should contain all public project material.