Synthèse automatique
Construit un prototype jetable (démo logique interactive ou variantes d'interface) pour trancher rapidement une question de conception.
Points forts
- Répartit le travail entre deux branches clairement distinctes : validation d'un modèle d'état et exploration visuelle d'une UI
- Impose des artefacts immédiatement exécutables (fichier HTML unique ou une commande du task runner) et sans persistance
- Prévoit d'ancrer le prototype près du code concerné tout en le marquant explicitement comme non destiné à la production
- Termine par la capitalisation du verdict et l'archivage du prototype sur une branche jetable
Limites
- Ne fournit pas de squelette de code prêt à l'emploi : les détails d'implémentation vivent dans LOGIC.md et UI.md, absents de ce fichier
- Suppose que l'agent sache identifier la bonne branche ; en cas d'ambiguïté sans utilisateur joignable, il devine à partir du code environnant
- Le prototype est volontairement sans tests ni gestion d'erreurs, donc inutilisable tel quel comme base de production
À utiliser lorsqu'on veut vérifier en quelques minutes si une logique, un modèle d'état ou une direction visuelle tient la route avant d'écrire le vrai code.
À éviter pour du code destiné à rester en production, pour des fonctionnalités déjà spécifiées et validées, ou lorsqu'un vrai test automatisé répondrait mieux à la question.
Analyse de sécurité
SûrThe skill provides high-level guidance for building throwaway prototypes and does not instruct any destructive, exfiltrating, or obfuscated actions. It declares no tools and focuses on design decisions, state modeling, and UI exploration without requiring execution of risky commands.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Before I commit to this order state machine, build a throwaway prototype I can click through — I want to see whether the partial-ship and refund transitions actually feel right.Generate three radically different designs for the account settings page on one route, switchable with a URL param, so I can decide which direction to take.I'm not sure our retry and backoff logic handles the weird cases. Prototype it as a single HTML file with buttons for each action and show the full state after every step.name: prototype description: Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Prototype
A prototype is throwaway code that answers a question. The question decides the shape.
Pick a branch
Identify which question is being answered — from the user's prompt, the surrounding code, or by asking if the user is around:
- "Does this logic / state model feel right?" → LOGIC.md. Build a single shareable HTML file — free-play buttons plus tabbed guided walkthroughs — that pushes the state machine through cases that are hard to reason about on paper, and that a non-developer can drive.
- "What should this look like?" → UI.md. Generate several radically different UI variations on a single route, switchable via a URL search param and a floating bottom bar.
The two branches produce very different artifacts — getting this wrong wastes the whole prototype. If the question is genuinely ambiguous and the user isn't reachable, default to whichever branch better matches the surrounding code (a backend module → logic; a page or component → UI) and state the assumption at the top of the prototype.
Rules that apply to both
- Throwaway from day one, and clearly marked as such. Locate the prototype code close to where it will actually be used (next to the module or page it's prototyping for) so context is obvious — but name it so a casual reader can see it's a prototype, not production. For throwaway UI routes, obey whatever routing convention the project already uses; don't invent a new top-level structure.
- Trivial to run. A UI prototype starts from one command in the project's task runner —
pnpm <name>,python <path>,bun <path>, etc. A logic demo is a single HTML file the user double-clicks. Either way, no thinking required to start it. - No persistence by default. State lives in memory. Persistence is the thing the prototype is checking, not something it should depend on. If the question explicitly involves a database, hit a scratch DB or a local file with a clear "PROTOTYPE — wipe me" name.
- Skip the polish. No tests, no error handling beyond what makes the prototype runnable, no abstractions. The point is to learn something fast.
- Surface the state. After every action (logic) or on every variant switch (UI), print or render the full relevant state so the user can see what changed.
- Capture it when done. Fold any validated decision into the real code, then capture the prototype itself as a primary source: commit it to a throwaway branch, out of main, and leave a context pointer to that branch on the implementation issue. Capture the answer too — the verdict and the question it settled — in the issue or a commit. The main branch keeps only the validated decision.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/throwaway-prototypes-mte1lh1q' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/throwaway-prototypes-mte1lh1q/download' --output '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md.part' && mv '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md.part' '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md' && test -s '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/prototype' && cp -R '.skill-downloads/throwaway-prototypes-mte1lh1q' '.claude/skills/prototype'Cursor
test -f '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md' && test -s '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/prototype' && cp -R '.skill-downloads/throwaway-prototypes-mte1lh1q' '.cursor/skills/prototype'Codex
test -f '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md' && test -s '.skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/prototype' && cp -R '.skill-downloads/throwaway-prototypes-mte1lh1q' '.agents/skills/prototype'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/throwaway-prototypes-mte1lh1q'openskills read 'throwaway-prototypes-mte1lh1q'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/throwaway-prototypes-mte1lh1q/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.