preline-mcp
Ce qu’il fait
Aide votre agent à choisir des éléments d'interface et des sections de page Preline et à les placer dans une page web. Elle s'adresse aux personnes qui construisent des sites en HTML de style Tailwind.
Quand l’utiliser
- ✓Quand vous voulez ajouter à une page HTML un bouton, un menu, un formulaire ou un autre composant Preline.
- ✓Quand vous demandez une section de page prête à l'emploi, comme un en-tête ou un bloc de tarifs, venant de Preline.
- ✓Quand vous mentionnez Preline et voulez qu'il soit utilisé dans votre page.
Lien du skill
https://github.com/htmlstreamofficial/preline/blob/main/skills/preline-mcp/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu ajouter une section de tarifs Preline à mon fichier index.html ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent demande au serveur Preline le composant ou le bloc exact que vous voulez, lit d'abord votre fichier, puis insère le HTML, le CSS et le JavaScript renvoyés.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Preline MCP
Intent
Use this skill to integrate Preline UI components and blocks into HTML files via the Preline MCP server. The server exposes 6 tools that return integration-ready HTML, CSS, and JS.
Activate when:
- User says "preline", "add preline", "/preline", "use preline"
- User asks for a Tailwind CSS component from the Preline library
- User asks for a block (ready-made page section) or a starter page
Defaults
- Never guess slugs. All section, component, and category identifiers are exact kebab-case strings. Always discover them via
components_listorblocks_categoriesfirst. - One at a time. Retrieve one component or block, integrate it fully, then move to the next.
- Always read the target file before inserting anything.
- Call
components_list({ section: "<inferred-slug>" })when the component type is known - this keeps the response small. Omit section only when unsure.
Decision: Component vs Block
| User says | Use |
|---|---|
| "component" / "components" | Component workflow |
| "block" / "blocks" (or "example" / "examples") | Block workflow |
| Ambiguous | Use judgment; blocks give more complete results |
Clarifying Vague Requests
Ask the user to pick instead of guessing in either of these cases:
- Abstract request. Too abstract to confidently map onto one category/section, let alone one block/component - e.g. "give me something for a pricing page", "I need a nice form", "show me a dashboard example". Start at step 1 below.
- Tied candidates. The request is concrete enough to reach a single category/section, but
blocks_in_category/components_list({ section })still leaves 2+ candidates whose titles + descriptions satisfy every criterion the request named about equally well (same layout/feature/style class), with nothing in the request to break the tie. Skip straight to step 3 below with just the tied candidates.
If exactly one candidate matches everything the request names ("a basic accordion", "the SaaS hero with tabs"), skip straight to the normal workflow - don't interrogate the user for things you can already resolve, and don't ask just to be safe when one option is clearly the best fit.
All clarifying questions and lists are in English by default - switch to the user's language only once they write to you in it.
Blocks:
- Ask which category fits. Call
blocks_categories()and present the relevantmainSection / subSection / categorypaths with their titles and descriptions - the catalog carries a one-line description for every category, so present it directly rather than inventing your own summary. - Try to resolve in one round. If the user's reply both names a category and describes the item distinctively enough to identify a single match (a specific layout, feature, or style), call
blocks_in_categoryto confirm the exact ID and go straight tosingle_block- skip step 3 entirely. - Otherwise, ask which block fits best. Call
blocks_in_category({ mainSection, subSection, category }), list the block titles + descriptions - or just the tied candidates, for the case above - and ask the user to pick the one closest to their needs. - Fetch and integrate the chosen block with
single_block.
Components - same shape, sections instead of categories:
- Ask which section fits (
components_list()for the full list, orcomponents_list({ section })once you can infer one). - If the reply names a section and describes the component distinctively enough → resolve directly via
single_component(lean onrelativemetadata - see Smart Component Selection - to land on the right default/variant). - Otherwise list the components in that section (titles + descriptions, with
relative.categorygroupings where present - or just the tied candidates, for the case above) and ask which fits best. - Fetch and integrate with
single_component.
Keep each round to one focused question with a short, scannable list - that beats an open "what do you want?" and beats guessing a slug just to avoid asking.
Composite & Layout Requests
When a request describes more than a single component - several pieces, a region, a full page, or an app shell - don't fetch ad-hoc. Plan the whole result first, then fetch and integrate one node at a time. The same steps apply to any shape: a dashboard, a settings page, a product page, a multi-step form, "a card/section/layout with X, Y and Z", etc.
- **Lock cross-cutting const
Questions fréquentes
Devine-t-elle les noms de composants ?
Non. La compétence indique de rechercher les noms exacts dans la liste Preline avant d'ajouter quoi que ce soit.
Ajoute-t-elle plusieurs éléments à la fois ?
Non. Elle travaille sur un composant ou un bloc à la fois et le termine avant de passer au suivant.
Que se passe-t-il si ma demande est trop vague ?
L'agent vous demande de choisir entre plusieurs options au lieu de deviner le composant voulu.
Détails
Description originale de l’auteur
Add, integrate, or build Preline UI components and blocks into HTML files via the Preline MCP server. Use when the user mentions "preline", says "/preline", asks to add a UI component, or requests a Preline block (a ready-made page section) using Preline UI.
Popularité
- Étoiles GitHub
- 6.5k
- Position au classement
- #13880
- Licence
- —
- Mis à jour
- 30/08/2026
Commentaires
- …
Autres skills de ce dépôt
Skills similaires
canvas
394kPermet à votre agent d'afficher un widget visuel hébergé sur un panneau Mac connecté, puis de masquer ce panneau ou de le déplacer vers une autre page.
control-ui
394kAide votre agent à organiser et dépanner l'interface de contrôle d'OpenClaw, y compris les sessions, les tableaux de bord et les passerelles connectées.
diagram-maker
394kAide votre agent à créer des diagrammes clairs en SVG, HTML ou Excalidraw modifiable, pour des processus, des architectures système et des croquis de tableau blanc.