Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

preline-documentation-guide

БесплатноБез исполняемых скриптовНе проверен

Guides agent to check Preline documentation when markup or component patterns are needed that aren't available in standard components.

htmlstreamofficialот htmlstreamofficial★ 6 550 звёзд на GitHub

Об этом скилле

Preline Documentation Guide

This file is for the AGENT (LLM) only — not end users.

This skill helps you understand when and how to access Preline documentation to find the right markup patterns, component variations, and implementation details.


When to Check Documentation

You SHOULD check the Preline documentation when:

  1. User requests a component variant not available in the standard component list

    • Example: "floating label input", "accordion with icons", "navbar with mega menu"
    • These variants often exist in documentation but aren't separate components
  2. User needs specific markup patterns or HTML structure

    • Example: "how to structure a form", "proper card layout", "input group with button"
    • Documentation shows best practices and proper HTML structure
  3. User asks about component behavior or configuration

    • Example: "how to make accordion open by default", "how to disable a dropdown"
    • Documentation contains data attributes and configuration options
  4. User mentions specific features or functionality

    • Example: "auto-close on outside click", "keyboard navigation", "validation states"
    • These are often documented with specific HTML attributes and examples
  5. Component exists but user needs advanced usage

    • Example: "nested navigation", "multi-step forms", "conditional rendering"
    • Documentation often has advanced examples and patterns
  6. You're unsure about the correct HTML structure or classes

    • Always prefer documented patterns over making assumptions
    • Preline has specific conventions for semantic HTML and accessibility

How to Access Documentation

Primary Method: Use MCP Resources

Preline documentation is available through the MCP server. You can:

  1. List available documentation resources:

    Use ListMcpResources tool to see all available Preline documentation
    
  2. Fetch specific component documentation:

    Use FetchMcpResource tool with the appropriate URI to get detailed docs
    

What to Look For in Documentation

When you access documentation, focus on:

  1. HTML Structure

    • Exact element hierarchy
    • Required CSS classes
    • Data attributes for behavior
    • Accessibility attributes (aria-*, role, etc.)
  2. Variants and Options

    • Different visual styles (outlined, filled, ghost, etc.)
    • Size variations (sm, md, lg, xl)
    • State variations (disabled, loading, error, success)
    • Layout variations (horizontal, vertical, inline)
  3. Configuration

    • JavaScript initialization code
    • Data attribute options
    • Event handlers
    • Default values
  4. Integration Patterns

    • How components work together
    • Common combinations (e.g., input + button in input-group)
    • Best practices for composition

Example Workflows

Example 1: User asks for a specific variant

User: "Add a floating label input for email"

Agent workflow:

  1. Recognize this is a variant of the input component
  2. Check if standard input component has this variant
  3. If not in standard component, check documentation:
    • List MCP resources to find input documentation
    • Fetch input component documentation
    • Look for "floating label" variant
    • Extract the correct HTML structure and classes
  4. Implement using the documented pattern

Example 2: User needs component configuration

User: "Make the accordion stay open when clicking other items"

Agent workflow:

  1. Recognize this is about accordion behavior configuration
  2. Check documentation for accordion:
    • Fetch accordion documentation
    • Look for configuration options
    • Find data attributes for behavior control
    • Find the specific option (e.g., data-hs-accordion-always-open)
  3. Apply the correct data attribute to the HTML

Example 3: User asks about complex composition

User: "Create a search input with a button inside"

Agent workflow:

  1. Recognize this might be an input-group pattern
  2. Check documentation:
    • Check if input-group component exists
    • Fetch input-group documentation
    • Look for examples with buttons
    • Get the proper HTML structure
  3. Implement using the documented pattern

Key Preline Documentation Sections

Common documentation sections you should be aware of:

  1. Components - Individual UI components with variants
  2. Forms - Form elements and validation patterns
  3. Navigation - Navigation patterns and menu structures
  4. Layout - Grid systems, containers, spacing
  5. Utilities - Helper classes and utilities
  6. JavaScript - Initialization and API documentation
  7. Accessibility - ARIA patterns and keyboard navigation
  8. Examples - Real-world usage examples and templates

Documentation Priority Rules

When implementing components, follow this priority:

  1. FIRST: Check if a standard component exists in the component list
    • Use single_component or batch_components tools
Полный SKILL.md на GitHub

Установить preline-documentation-guide в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdexamples.mdquick-reference.md

FAQ

Что делает скилл preline-documentation-guide?

Guides agent to check Preline documentation when markup or component patterns are needed that aren't available in standard components.

Как установить скилл preline-documentation-guide?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл preline-documentation-guide запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить preline-documentation-guide с