For everyone — Decide the plan before cutting the wood
When you entrust the construction of a house to a contractor, you don't start with "build me a wall": you talk about the family, the plot, the budget, the heating — and it is the plan that comes out of those conversations, not the other way around. Designing a website with an AI agent works the same way: if you immediately ask for pages, you quickly get code that looks elsewhere — a poorly chosen stack, impossible maintenance, runaway JavaScript.
The recipe presented here reverses the order: the agent generates nothing at the start. Its first job is to ask questions — a few at a time, like a craftsman checking the level before each row of bricks — to pin down five pillars: the project and its audience, the tech stack, the JavaScript budget, the art direction, and the publishing pipeline. In the end, the agent delivers three pieces: the architecture document (the choices and their justifications), the complete file tree, and the final execution prompt — the one that will actually be used to generate the code, step by step.
For Yokul, this way of working is not theoretical: it is exactly how this site was redesigned — vibe coding and the redesign of yokul.org tells the whole story; below, the recipe itself, ready to copy.
The full text
The recipe at a glance
- Block generation. The prompt starts by forbidding any coding: no artifact, no page — architecture first.
- Explore five pillars through questions. The agent asks at most three short questions per turn, one pillar at a time: project and user, stack and storage, JavaScript budget and requirements (accessibility, SEO, Core Web Vitals), art direction, publishing workflow and CI/CD.
- Get the three deliverables. The architecture document (ADR), the file structure, then the final execution prompt — optimized for generating the code step by step.
- Review, then (only then) execute. The ADR can be discussed, corrected, kept: it's a durable contract, not a throwaway step.
The prompt, verbatim
This is the text as used, copied in full. It builds on principles proven on this very site: the written contract before generation (cf. the DESIGN.md of the redesign) and the JavaScript budget made explicit in three tiers, from strict zero JS to islands architectures.
Rôle :
Tu es un Architecte Web Principal et Designer UI/UX Senior. Ta mission est de
m'accompagner dans la conception, l'optimisation et l'industrialisation d'un
projet web moderne, performant et maintenable.
Objectif de ce méta-prompt :
Ne génère aucun code pour l'instant. Tu dois d'abord établir avec moi
l'architecture complète du projet en t'adaptant à mon profil technique, à mes
objectifs de performance et aux capacités de ton propre environnement
(ex. génération d'artefacts/Canvas, exécution de code, connecteurs).
Protocole d'interaction (Phase de découverte) :
Pose-moi des questions structurées, un thème à la fois (maximum 3 questions
courtes par tour), pour définir les 5 piliers suivants :
1. Le Projet et l'Utilisateur (Cible & Éditorial) :
- Quelle est la nature du site (blog technique, vitrine, documentation,
portfolio) et son sujet ?
- Quel est mon niveau d'aisance technique pour la maintenance
(non-codeur, éditeur Markdown, développeur) ?
2. La Stack Technologique & Génération :
- Souhaites-je un site purement statique (HTML/CSS brut), un générateur
statique moderne (Astro, Eleventy, Hugo, Pelican) ou un framework
hybride ?
- Comment les données ou articles seront-ils stockés (fichiers Markdown
locaux, base JSON/CSV, API externe) ?
3. Le Budget JavaScript & Optimisation :
- Quel niveau de sobriété numérique est visé : Zéro JS strict
(interactivité 100 % HTML5/CSS3 moderne : <dialog>, popover, :has(),
animation-timeline), JS minimal / Islands Architecture (uniquement pour
la recherche ou des composants isolés), ou Application riche ?
- Quelles sont les exigences en matière d'accessibilité, de SEO et de
score Core Web Vitals ?
4. La Direction Artistique & UI/UX :
- Quelle ambiance visuelle (minimaliste, éditoriale, bento-grid, mode
sombre par défaut) et quelles contraintes de marque (couleurs,
typographies) doivent être appliquées ?
5. Le Workflow de Publication et CI/CD :
- Comment vais-je publier du nouveau contenu au quotidien (éditeur visuel
sans code type Pages CMS / Sveltia CMS, dépôt Git direct, automatisation
via IA) ?
- Quelle infrastructure d'hébergement et de déploiement continu est
envisagée (Cloudflare Pages, Netlify, GitHub Actions) ?
Livrable attendu à la fin de notre échange :
Une fois que j'aurai répondu à tes questions, tu me fourniras :
1. Le Document d'Architecture Technique (ADR) résumant nos choix et
justifiant les compromis (notamment sur le JavaScript et le CI/CD).
2. L'arborescence complète des fichiers du projet.
3. Le Prompt d'Exécution Final, parfaitement optimisé pour que je puisse
lancer la génération du code étape par étape.
Commence maintenant par me poser uniquement les questions du Pilier 1.
Why it works
- The ban on generating is the key. Without it, the agent produces code from the very first answer — and every line produced too early becomes an architecture decision made in silence. The prompt forces the debate to happen before.
- Three questions per turn, not a hundred. An exhaustive questionnaire discourages; a dialogue in small steps keeps the human in command, with the review and the judgment remaining on their side at every moment — it's the same division of work as in vibe coding.
- The five pillars cover the real life cycle. Most generation prompts stop at design and the stack; here, day-to-day publishing (who updates the site? with which editor?) and CI/CD are part of the upfront architecture. Publication, image build and pod restart are decided like everything else: with a contract.
- The three deliverables are reusable. The ADR serves as a decision record (and reads well a year later); the file tree frames the subsequent generations; the final execution prompt is the only one you will give the agent to code — clean, pre-validated, sculpted by the exchange.
The recipe applied to yokul.org
Concretely, applied to this site, the recipe yields: a static site generator (Pelican), articles in Markdown with metadata (Title, Date, Category, Summary), a strict zero JS budget with all interactivity done in HTML5/CSS3 (<details>, Popover API, :has(), scroll-snap, animation-timeline: view()), a DESIGN.md serving as a visual ADR, and automated deployment from the agent (image build, registry push, pod restart). The Recipes category, where this document lives, was itself created by applying the recipe: one prompt, one review, one commit — never generation without a contract.
The recipe as a skill
A prompt buried at the bottom of an article is a recipe you never try again. Hence a second delivery, in skill format: a small instruction file — named SKILL.md, with its name and description at the top — that an AI agent loads on demand when the situation calls for it. It's the difference between a recipe book on the shelf and a companion who, when it's time to cook, opens the right page: an agent with this skill installed knows it must explore the five pillars and deliver the ADR, the file tree and the final prompt, without anyone having to copy the meta-prompt for every project.
The file is served directly by this site — you can install it in two commands:
mkdir -p ~/.vibe/skills/meta-prompt-architecture-web
curl -o ~/.vibe/skills/meta-prompt-architecture-web/SKILL.md \
https://yokul.org/skills/meta-prompt-architecture-web/SKILL.md
The skill can also be copied by hand — it's Markdown, readable without any tool; the description at the top of the file tells the agent when to use it. All the skills published by the site are listed on the skills page, with a dedicated RSS feed that references the URL of each SKILL.md and its summary — installable in a reader as well as in an agent. The source remains unique: the meta-prompt in this article and the one in the skill say the same thing — if one changes, the other must follow, like two editions of the same book.
License: credit the origin, use it anywhere
The meta-prompt and the skill are published under the Creative Commons Attribution 4.0 (CC BY 4.0) license. Three consequences, spelled out plainly: credit the origin — any use or adaptation references yokul.org and signals the changes made; commercial use is allowed — a firm, an agency or a paid product can use it freely, that is the very principle of a recipe; and no warranty or liability from the authors — the resulting architecture is meant for human review, the content is provided "as is" and the outcomes remain the responsibility of those who put it to use. A sample attribution is included in the skill itself, ready to copy as is.
See also
- Vibe coding and the redesign of yokul.org — the full experience report this recipe was extracted from
- Mistral AI, the models and the ecosystem — the CLI agent used for execution
- Large language models (LLM) — how the machines that read these prompts work