preline-documentation-guide
БесплатноБез исполняемых скриптовНе проверенGuides agent to check Preline documentation when markup or component patterns are needed that aren't available in standard components.
от 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:
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
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
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
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
Component exists but user needs advanced usage
- Example: "nested navigation", "multi-step forms", "conditional rendering"
- Documentation often has advanced examples and patterns
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:
List available documentation resources:
Use ListMcpResources tool to see all available Preline documentationFetch 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:
HTML Structure
- Exact element hierarchy
- Required CSS classes
- Data attributes for behavior
- Accessibility attributes (aria-*, role, etc.)
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)
Configuration
- JavaScript initialization code
- Data attribute options
- Event handlers
- Default values
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:
- Recognize this is a variant of the input component
- Check if standard input component has this variant
- 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
- Implement using the documented pattern
Example 2: User needs component configuration
User: "Make the accordion stay open when clicking other items"
Agent workflow:
- Recognize this is about accordion behavior configuration
- 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)
- 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:
- Recognize this might be an input-group pattern
- Check documentation:
- Check if input-group component exists
- Fetch input-group documentation
- Look for examples with buttons
- Get the proper HTML structure
- Implement using the documented pattern
Key Preline Documentation Sections
Common documentation sections you should be aware of:
- Components - Individual UI components with variants
- Forms - Form elements and validation patterns
- Navigation - Navigation patterns and menu structures
- Layout - Grid systems, containers, spacing
- Utilities - Helper classes and utilities
- JavaScript - Initialization and API documentation
- Accessibility - ARIA patterns and keyboard navigation
- Examples - Real-world usage examples and templates
Documentation Priority Rules
When implementing components, follow this priority:
- FIRST: Check if a standard component exists in the component list
- Use single_component or batch_components tools
Установить preline-documentation-guide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic