Agent skill

Preline UI Components via MCP

by htmlstreamofficial in htmlstreamofficial/preline

Adds Preline UI components and blocks to HTML files by querying the Preline MCP server, with rules for exact slugs and for clarifying vague requests.

Custom licenceAuto-check passedFrontend & Design

Install Preline UI Components via MCP

skills CLI
$ npx skills add htmlstreamofficial/preline --skill preline-mcp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install htmlstreamofficial/preline preline-mcp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/htmlstreamofficial/preline.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/preline-mcp .claude/skills/preline-mcp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
preline-mcp
GitHub stars
6.5k
Token cost
~2.9k tokens
SKILL.md length
1,478 words
Files
5 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
Custom licence

At a glance

Adds Preline UI components and blocks to HTML files by querying the Preline MCP server, with rules for exact slugs and for clarifying vague requests.

  • Works in 4 steps: Ask which category fits. Call… → Try to resolve in one round. If the… → Otherwise, ask which block fits best.… → …
  • Adding a Preline UI component, such as an accordion, to an HTML page
  • SKILL.md covers Intent, Defaults, Decision: Component vs Block and Clarifying Vague Requests, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The skill connects the agent to the Preline MCP server, which exposes 6 tools that return HTML, CSS and JavaScript ready to insert. It separates components from blocks, which are ready-made page sections: a request that says component follows the component workflow, one that says block or example follows the block workflow, and an ambiguous one leans toward blocks because they give more complete results.

The working rules are strict. The agent never guesses slugs and finds them through components_list or blocks_categories, retrieves and integrates one item at a time, and reads the target file before inserting anything. For abstract requests such as a pricing page, or when several candidates fit equally well, it asks you to choose, in English unless you write in another language. Reference files in the folder cover a catalog map, composite layouts and the MCP tools.

When your agent uses it

  • Adding a Preline UI component, such as an accordion, to an HTML page
  • Dropping a ready-made Preline block like a hero section into a site
  • Building a starter page out of Preline blocks

Example prompts

  • “/preline add a basic accordion to index.html”
  • “Use Preline to put the SaaS hero with tabs at the top of landing.html.”
  • “I need a pricing section for my page. Show me the Preline options.”

Requirements

  • The Preline MCP server connected to your agent
  • An HTML file to insert the markup into

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Ask which category fits. Call blocks_categories() and present the relevant mainSection / subSection / category paths with their titles and…
  2. 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…
  3. Otherwise, ask which block fits best. Call blocks_in_category({ mainSection, subSection, category }), list the block titles + descriptions…
  4. Fetch and integrate the chosen block with single_block.

What it can do on your machine

Read from SKILL.md and the folder at commit 05ca599. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Preline UI Components via MCP loads about 2.9k tokens when it runs, and up to ~7.7k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 1,478 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~2.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,478 words (~2,930 tokens).

“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.”

— opening of SKILL.md by htmlstreamofficial, Custom licence
name
preline-mcp

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (references) in skills/preline-mcp of htmlstreamofficial/preline.

  • SKILL.md
  • agents/openai.yaml
  • references/catalog-map.md
  • references/composite-layouts.md
  • references/mcp-tools-reference.md

Open the folder on GitHubat commit 05ca599

Compare with similar skills

Preline UI Components via MCP next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Preline UI Components via MCP compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Preline UI Components via MCP this skillhtmlstreamofficial/preline6.5k—~2.9kAutomated safety check: PassCustom licence
Spartan UI Angular Componentsspartan-ng/spartan2.9k—~2.4kAutomated safety check: PassMIT
Shadcn UIBuilderIO/agent-native7.1k—~3kAutomated safety check: PassNone
Fast Agent Designevalstate/fast-agent3.9k—~220Automated safety check: PassApache-2.0
UI Code Guidelinesrazorpay/blade656—~866Automated safety check: PassMIT
Cds Docscoinbase/cds506—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Helps add, compose, debug and style spartan/ui components in Angular projects, using its Brain headless primitives and Helm styled layer through the @spartan-ng/cli generators.

    2.9k GitHub stars~2.4k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Shadcn UI

    BuilderIO/agent-native

    Project-aware shadcn/ui components, registry MCP, theming, and design-system lint feedback.

    7.1k GitHub stars~3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Fast Agent Design

    evalstate/fast-agent

    A skill your agent uses to generate well-branded interfaces and assets for fast-agent, either for production or throwaway prototypes/mocks/etc.

    3.9k GitHub stars~220 tokensUpdated today
    Frontend & DesignAuto-check passed
  • UI Code Guidelines

    razorpay/blade

    Important guidelines for writing frontend UI code. An agent skill from razorpay/blade.

    656 GitHub stars~866 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Cds Docs

    coinbase/cds

    Retrieve Coinbase Design System (CDS) documentation: setup, installation, theming, tokens, and per-component APIs/examples.

    506 GitHub stars~1.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed

More from htmlstreamofficial/preline

  • Preline Theme Generator

    htmlstreamofficial/preline

    Generates light and dark Preline theme CSS from a brand color or mood, previews it, and validates token coverage through bundled local scripts.

    6.5k GitHub stars~619 tokensUpdated 1 mo ago
    Auto-check: warnings

Questions about Preline UI Components via MCP

What does Preline UI Components via MCP do?

Adds Preline UI components and blocks to HTML files by querying the Preline MCP server, with rules for exact slugs and for clarifying vague requests. The skill connects the agent to the Preline MCP server, which exposes 6 tools that return HTML, CSS and JavaScript ready to insert. It separates components from blocks, which are ready-made page sections: a request that says component follows the component workflow, one that says block or example follows the block workflow, and an ambiguous one leans toward blocks because they give more complete results.

When should I use Preline UI Components via MCP?

Preline UI Components via MCP fits situations like: adding a Preline UI component, such as an accordion, to an HTML page; dropping a ready-made Preline block like a hero section into a site; building a starter page out of Preline blocks.

How do I install Preline UI Components via MCP in Claude Code?

Run `npx skills add htmlstreamofficial/preline --skill preline-mcp -a claude-code`. Or copy the skill folder (skills/preline-mcp in htmlstreamofficial/preline) into .claude/skills/preline-mcp in your project. Claude Code loads it when a task matches its description.

How do I install Preline UI Components via MCP in Codex?

Run `npx skills add htmlstreamofficial/preline --skill preline-mcp -a codex`. Or copy the skill folder (skills/preline-mcp in htmlstreamofficial/preline) into .agents/skills/preline-mcp in your project. Codex loads it when a task matches its description.

Can I use Preline UI Components via MCP in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add htmlstreamofficial/preline --skill preline-mcp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/preline-mcp, .gemini/skills/preline-mcp, .github/skills/preline-mcp and .opencode/skills/preline-mcp in your project.

What does Preline UI Components via MCP need to run?

SKILL.md names no scripts, command-line tools or credentials: Preline UI Components via MCP is instructions for the agent only. Our summary lists: The Preline MCP server connected to your agent; An HTML file to insert the markup into.

Does Preline UI Components via MCP access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Preline UI Components via MCP safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Preline UI Components via MCP use?

Preline UI Components via MCP has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Preline UI Components via MCP use?

About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.7k tokens, read only when the agent opens those files.

What are the alternatives to Preline UI Components via MCP?

Skills that share tags, products or a category with Preline UI Components via MCP: Spartan UI Angular Components (spartan-ng/spartan, 2.9k stars), Shadcn UI (BuilderIO/agent-native, 7.1k stars), Fast Agent Design (evalstate/fast-agent, 3.9k stars) and UI Code Guidelines (razorpay/blade, 656 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Preline UI Components via MCP?

htmlstreamofficial (a GitHub organization) maintains it in htmlstreamofficial/preline, which has 6,478 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on August 31, 2026.

Source: htmlstreamofficial/preline on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.