preline-mcp
하는 일
이 스킬은 에이전트가 Preline의 UI 부품과 페이지 섹션을 골라 웹 페이지에 넣도록 돕습니다. Tailwind 스타일 HTML로 웹사이트를 만드는 사람을 위한 스킬입니다.
사용하는 경우
- ✓HTML 페이지에 버튼, 메뉴, 양식 또는 다른 Preline 구성 요소를 추가하고 싶을 때.
- ✓히어로나 가격 블록처럼 Preline에서 준비된 페이지 섹션을 요청할 때.
- ✓Preline을 언급하며 페이지에 그것을 쓰고 싶을 때.
스킬 링크
https://github.com/htmlstreamofficial/preline/blob/main/skills/preline-mcp/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 index.html 파일에 Preline 가격 섹션을 추가해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트가 정확히 원하는 구성 요소나 블록을 Preline 서버에 요청하고, 먼저 파일을 읽은 뒤, 반환된 HTML, CSS, JavaScript를 삽입합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
구성 요소 이름을 추측하나요?
아니요. 이 스킬은 무엇이든 추가하기 전에 Preline 목록에서 정확한 이름을 찾으라고 말합니다.
여러 부품을 한 번에 추가하나요?
아니요. 한 번에 구성 요소나 블록 하나만 다루고 끝낸 뒤 다음으로 넘어갑니다.
요청이 너무 모호하면 어떻게 하나요?
에이전트는 어떤 구성 요소를 뜻하는지 추측하지 않고, 옵션 중에서 고르도록 요청합니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 6.5k
- 순위
- #13880
- 라이선스
- —
- 업데이트
- 2026. 8. 30.
댓글
- …
이 저장소의 다른 스킬
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.