From xe-templ
Learn and write templ component syntax including expressions, conditionals, loops, and Go integration. Use when writing .templ files, learning templ syntax, or mentions 'templ component', 'templ expressions', or '.templ file syntax'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xe-templ:templ-syntaxThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill with progressive disclosure: start at Level 1, then read deeper sections only when needed.
Use this skill with progressive disclosure: start at Level 1, then read deeper sections only when needed.
Use this skill when you need to write or fix .templ syntax.
{ expr }.@OtherComponent(...).if, for, switch) directly in markup.package components
templ Greeting(name string, isAdmin bool) {
<h1>Hello, { name }</h1>
if isAdmin {
<p>Admin mode</p>
}
}
{ value } auto-escapes text.class={ classes }, disabled?={ isDisabled }.{ children... }, pass with block syntax.@Component(...).templ.URL(...)) when appropriate.templ Card(title string) {
<section class="card">
<h2>{ title }</h2>
<div>{ children... }</div>
</section>
}
templ UserList(users []string) {
if len(users) == 0 {
<p>No users</p>
} else {
<ul>
for _, user := range users {
<li>{ user }</li>
}
</ul>
}
}
templ-components.templ-http.templ-htmx.resources/foundations.mdresources/patterns.mdresources/reference.mdnpx claudepluginhub xe/agent-plugins --plugin xe-templCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.