form-patterns
About
This Claude Skill provides DaisyUI v5 form components and patterns for building styled forms with Svelte. It includes ready-to-use templates for inputs, selects, textareas, and validation with proper fieldset/legend structure. Use it when you need pre-built form layouts that follow DaisyUI v5's updated class conventions.
Documentation
Form Patterns
Quick Start
<form {...my_form} class="space-y-4">
<fieldset class="fieldset">
<legend class="fieldset-legend">Name</legend>
<label class="validator input w-full">
<input
type="text"
name="name"
placeholder="Your name"
class="grow"
required
/>
</label>
</fieldset>
{#if my_form.error}
<div class="alert alert-error">{my_form.error}</div>
{/if}
<button class="btn btn-block btn-primary" type="submit"
>Submit</button
>
</form>
Core Principles
- v5 structure: Use
fieldset/fieldset-legend(NOT oldform-control/label-text) - Input wrapper:
<label class="input w-full">contains<input class="grow"> - Validation: Add
validatorclass to label for automatic validation UI - Selects/textareas: Apply classes directly (e.g.,
select w-full) - no wrapper - Error handling: Remote functions provide
.errorproperty automatically - Spacing: Use
space-y-4on forms for consistent spacing
Reference Files
- forms-guide.md - Complete DaisyUI v5 form patterns and examples
Quick Install
/plugin add https://github.com/spences10/devhub-crm/tree/main/form-patternsCopy and paste this command in Claude Code to install this skill
GitHub 仓库
Related Skills
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
llamaguard
OtherLlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
