Agent skill

Templ Components

by Xe in Xe/site

Create reusable templ UI components with props, children, and composition patterns.

ZlibAuto-check passedFrontend & Design

Install Templ Components

skills CLI
$ npx skills add Xe/site --skill templ-components -a claude-code

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

GitHub CLI
$ gh skill install Xe/site templ-components --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/Xe/site.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/templ-components .claude/skills/templ-components && 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
templ-components
GitHub stars
731
Token cost
~552 tokens
SKILL.md length
155 words
Files
4
Skills in repo
12
Repo updated
First seen
Licence
Zlib

At a glance

Create reusable templ UI components with props, children, and composition patterns.

  • Works in 5 steps: Define a small, single-purpose component. → Prefer typed props (structs for complex… → Support composition with { children... }. → …
  • Building UI components
  • SKILL.md covers Level 1: Component Checklist, Level 2: API Design Rules, Level 3: Reusable Patterns and Escalate to Other Skills, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Templ Components is an agent skill from Xe/site. Create reusable templ UI components with props, children, and composition patterns. Use when building UI components, creating component libraries, mentions 'button component', 'card component', or 'reusable templ components'.

Its SKILL.md is about 550 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `resources/foundations.md`, `resources/patterns.md` and `resources/testing-and-api.md`).

It sits in Frontend & Design, covering Design systems and Design patterns. The repository describes itself as: The new frontend/backend code for https://xeiaso.net. The licence is Zlib.

When your agent uses it

  • Building UI components
  • Creating component libraries
  • Mentions button component
  • Reusable templ components

Example prompts

  • “button component”
  • “card component”
  • “reusable templ components”
  • “/templ-components”

Workflow steps

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

  1. Define a small, single-purpose component.
  2. Prefer typed props (structs for complex APIs).
  3. Support composition with { children... }.
  4. Keep variants explicit and predictable.
  5. Extract shared layout wrappers instead of duplicating markup.

What it can do on your machine

Read from SKILL.md and the folder at commit 45c532e. 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 (its code samples are templ).

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

  • Network

    Links to these hosts (documentation or services it may open):

    • templ.guide
    • pkg.go.dev

    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

Templ Components loads about 552 tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 155 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~552

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

The full file from Xe/site at commit 45c532e, republished under its Zlib licence (© Xe). 155 words, ~552 tokens.

Download SKILL.mdSave it as .claude/skills/templ-components/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
templ-components
description
Create reusable templ UI components with props, children, and composition patterns. Use when building UI components, creating component libraries, mentions 'button component', 'card component', or 'reusable templ components'.

Templ Components

Use progressive disclosure: solve with Level 1 first, then pull deeper guidance only if complexity requires it.

Level 1: Component Checklist

Use this skill for reusable templ UI components.

  1. Define a small, single-purpose component.
  2. Prefer typed props (structs for complex APIs).
  3. Support composition with { children... }.
  4. Keep variants explicit and predictable.
  5. Extract shared layout wrappers instead of duplicating markup.
templ
type ButtonProps struct {
    Label    string
    Variant  string
    Disabled bool
}

templ Button(props ButtonProps) {
    <button class={ "btn btn-" + props.Variant } disabled?={ props.Disabled }>
        { props.Label }
    </button>
}

Level 2: API Design Rules

  • Small surface area: avoid giant prop lists.
  • Typed options: enums/constants beat free-form strings for critical variants.
  • Composition first: prefer wrappers (Card, Modal, Layout) over monolith components.
  • No hidden side effects: components render; handlers/loaders do data work.
  • Stable contracts: avoid breaking prop shape without migration.

Level 3: Reusable Patterns

templ
templ Card(title string) {
    <article class="card">
        <header><h3>{ title }</h3></header>
        <div class="card-body">{ children... }</div>
    </article>
}

templ WithError(err error) {
    if err != nil {
        <p class="error">{ err.Error() }</p>
    } else {
        { children... }
    }
}

Escalate to Other Skills

  • Need syntax details: use templ-syntax.
  • Need HTTP routing/rendering: use templ-http.
  • Need partial updates/interactions: use templ-htmx.

References

© Xe, Zlib. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in .agents/skills/templ-components of Xe/site.

  • SKILL.md
  • resources/foundations.md
  • resources/patterns.md
  • resources/testing-and-api.md

Open the folder on GitHubat commit 45c532e

Compare with similar skills

Templ Components 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.

Templ Components compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Templ Components this skillXe/site731—~552Automated safety check: PassZlib
Kaizen UINVIDIA/Personal-AI-Router1.6k—~4.7kAutomated safety check: PassApache-2.0
Project-Native Component Builderkostja94/bricks199—~965Automated safety check: PassMIT
React Render Types CompositionHorusGoul/eslint-plugin-react-render-types111—~1.1kAutomated safety check: PassMIT
Svelte UI Designpodman-desktop/extension-bootc474—~1.3kAutomated safety check: PassApache-2.0
Components BuildAsymmetric-al/core382—~2.1kAutomated safety check: PassMIT

Similar skills

  • Kaizen UI

    NVIDIA/Personal-AI-Router

    Official

    Kaizen UI (KUI) component library and design-pattern advisor for NVIDIA applications.

    1.6k GitHub stars~4.7k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Builds new interface components inside an existing project, reusing its design system, stack and conventions instead of producing isolated demo UI.

    199 GitHub stars~965 tokensUpdated 12 days ago
    Frontend & DesignAuto-check passed
  • React Render Types Composition

    HorusGoul/eslint-plugin-react-render-types

    Composition patterns for building React components with @renders type annotations from eslint-plugin-react-render-types.

    111 GitHub stars~1.1k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Svelte UI Design

    podman-desktop/extension-bootc

    Guides designing and building Svelte 5 UI components in the bootc extension.

    474 GitHub stars~1.3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Components Build

    Asymmetric-al/core

    Build modern, composable, and accessible React UI components following the components.build specification.

    382 GitHub stars~2.1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Frontend Enhancer

    ailabs-393/ai-labs-claude-skills

    This skill should be used when enhancing the visual design and aesthetics of Next.js web applications.

    454 GitHub stars~3k tokensUpdated 11 mo ago
    Frontend & DesignAuto-check passed
  • Stop Slop

    Xe/site

    Remove AI writing patterns from prose. An agent skill from Xe/site.

    731 GitHub starsUsed in 8 repos~423 tokens
    Auto-check passed
  • Choose and create the right Neon branch type for testing and development.

    731 GitHub starsUsed in 3 repos~2.4k tokens
    Auto-check: notes
  • Guides and best practices for working with Neon Serverless Postgres.

    731 GitHub starsUsed in 2 repos~1.8k tokens
    Auto-check passed
  • A skill your agent uses when creating git commits, writing commit messages, or following version control workflows

    731 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • A skill your agent uses when asked to generate a "no way to prevent this" / no-way-to-prevent-this satire post for a memory-safety CVE (out-of-bounds write/read, buffer/heap overflow…

    731 GitHub stars~816 tokensUpdated 2 days ago
    Auto-check passed
  • Templ HTTP

    Xe/site

    Integrate templ components with Go HTTP server using net/http.

    731 GitHub stars~591 tokensUpdated 2 days ago
    Auto-check passed

Questions about Templ Components

What does Templ Components do?

Create reusable templ UI components with props, children, and composition patterns. Templ Components is an agent skill from Xe/site. Create reusable templ UI components with props, children, and composition patterns.

When should I use Templ Components?

Templ Components fits situations like: building UI components; creating component libraries; mentions button component; reusable templ components.

How do I install Templ Components in Claude Code?

Run `npx skills add Xe/site --skill templ-components -a claude-code`. Or copy the skill folder (.agents/skills/templ-components in Xe/site) into .claude/skills/templ-components in your project. Claude Code loads it when a task matches its description.

How do I install Templ Components in Codex?

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

Can I use Templ Components 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 Xe/site --skill templ-components -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/templ-components, .gemini/skills/templ-components, .github/skills/templ-components and .opencode/skills/templ-components in your project.

What does Templ Components need to run?

SKILL.md names no scripts, command-line tools or credentials: Templ Components is instructions for the agent only.

Does Templ Components access the network?

SKILL.md names 2 domains. As links in the text: templ.guide and pkg.go.dev. This is read from the text; nothing was executed.

Is Templ Components 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 Templ Components use?

Templ Components is published under the Zlib licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Templ Components use?

About 552 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Templ Components?

Skills that share tags, products or a category with Templ Components: Kaizen UI (NVIDIA/Personal-AI-Router, 1.6k stars), Project-Native Component Builder (kostja94/bricks, 199 stars), React Render Types Composition (HorusGoul/eslint-plugin-react-render-types, 111 stars) and Svelte UI Design (podman-desktop/extension-bootc, 474 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Templ Components?

Xe (a GitHub user) maintains it in Xe/site, which has 731 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 5, 2026.

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