Project form patterns

From AkaraChen/aghub · View interactive version

Project form patterns is an AI agent skill from the GitHub repository AkaraChen/aghub. Form implementation guidance for the aghub desktop app. Use when building or refactoring forms in `crates/desktop/src`, especially HeroUI v3 + React forms, RHF integration, validation, custom editors, and error presentation. Triggers: MCP forms, settings dialogs, create/edit panels, `TextField`, `Fi

How to use this skill

Skill file

aghub Form Patterns

Follow these rules when building forms in this project.

Source of Truth

Default Stack

Validation Behavior

Error Rendering

<TextField isInvalid={Boolean(fieldState.error)} validationBehavior="aria">
	<Label>Name</Label>
	<Input {...inputProps} />
	{fieldState.error && <FieldError>{fieldState.error.message}</FieldError>}
</TextField>

Custom Editors

Key/Value Editors

Practical Rules

Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.