·alpinejs
</>

alpinejs

brettatoms/agent-skills

AlpineJS best practices and patterns. Use when writing HTML with Alpine.js directives to avoid common mistakes like long inline JavaScript strings.

10Installs·1Trend·@brettatoms

Installation

$npx skills add https://github.com/brettatoms/agent-skills --skill alpinejs

SKILL.md

Never put complex logic in HTML attributes. If your x-data, x-init, or any directive exceeds 50 characters, extract it.

| x-data | Declare reactive component state | x-data="{ open: false }" | | x-init | Run code on component init | x-init="fetchData()" | | x-show | Toggle visibility (CSS display) | x-show="open" | | x-if | Conditional rendering (must wrap ) | | | x-for | Loop (must wrap ) | | | x-bind: / : | Bind attribute to expression | :class="{ active: isActive }" |

| x-on: / @ | Listen to events | @click="open = !open" | | x-model | Two-way bind form inputs | x-model="email" | | x-text | Set text content | x-text="message" | | x-html | Set inner HTML | x-html="htmlContent" | | x-ref | Reference element via $refs | x-ref="input" |

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/brettatoms/agent-skills --skill alpinejs
Category
</>Dev Tools
Verified
First Seen
2026-02-02
Updated
2026-02-18

Quick answers

What is alpinejs?

AlpineJS best practices and patterns. Use when writing HTML with Alpine.js directives to avoid common mistakes like long inline JavaScript strings. Source: brettatoms/agent-skills.

How do I install alpinejs?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/brettatoms/agent-skills --skill alpinejs Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/brettatoms/agent-skills

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-02

Related Skills

None