aghub: Skill for Claude Code

.agents/skills/project-form-patterns/SKILL.md

project-form-patterns is a skill for Claude Code, Codex from AkaraChen/aghub. It costs 0 tokens per session (914 once invoked), scanned A, original, MIT.

A project-specific guide for building and refactoring forms in the aghub desktop app using React, HeroUI, and react-hook-form, a library for managing form state and validation.

In plain words
What is it for?
Use it for settings dialogs, create or edit panels, text fields, selects, custom editors, and other forms in the desktop application.
Why use it?
It keeps validation, field control, and error messages consistent instead of letting multiple systems handle the same form behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is AkaraChen/aghub's own configuration. It tells Claude Code and Codex how to work on aghub itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aghub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AkaraChen/aghub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AkaraChen/aghub/main/.agents/skills/project-form-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AkaraChen/aghub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-form-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/akarachen/aghub/project-form-patterns/github.svg)](https://agentmods.dev/skills/akarachen/aghub/project-form-patterns)
Your own site
<a href="https://agentmods.dev/skills/akarachen/aghub/project-form-patterns"><img src="https://agentmods.dev/badge/skills/akarachen/aghub/project-form-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for project-form-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/akarachen/aghub/project-form-patterns"><img src="https://agentmods.dev/badge/skills/akarachen/aghub/project-form-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 914 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 80
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00914
Opus 5.5 $0.00000 $0.00366
Sonnet 5.5 $0.00000 $0.00183
Haiku 4.5 $0.00000 $0.00091

Measured 3mo ago against content hash 1c8683d2b557, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-form-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/project-form-patterns/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

aghub Form Patterns

Follow these rules when building forms in this project.

Source of Truth

  • Check the official docs first, not memory and not bundled/local docs, when form behavior is in question.
  • For HeroUI, prefer the official site:
    • https://v3.heroui.com/docs/react/components/form
    • https://v3.heroui.com/docs/react/components/text-field
    • https://v3.heroui.com/docs/react/components/field-error
    • https://v3.heroui.com/docs/react/components/select
  • Use local skill docs only as a convenience after confirming the official API.

Default Stack

  • Prefer react-hook-form for non-trivial forms.
  • Use Controller for HeroUI Select and any custom controlled widgets.
  • Keep one form state. Do not create a second derived validation state unless there is a concrete need the form library cannot express.

Validation Behavior

  • When RHF controls validation, set HeroUI form fields to validationBehavior="aria".
  • Do not rely on HeroUI/native validation defaults together with RHF. Native validation can steal focus and submission flow while bypassing the error UI you expect from RHF.
  • Let RHF own validation rules and submission blocking.

Error Rendering

  • For HeroUI text fields, use:
    • isInvalid={Boolean(fieldState.error)}
    • Conditionally render <FieldError>{fieldState.error.message}</FieldError> inside the same TextField.
  • Do not invent unsupported props. In particular, do not assume TextField supports an errorMessage prop.
  • Keep the official anatomy:
<TextField isInvalid={Boolean(fieldState.error)} validationBehavior="aria">
	<Label>Name</Label>
	<Input {...inputProps} />
	{fieldState.error && <FieldError>{fieldState.error.message}</FieldError>}
</TextField>
  • For non-form or custom composite controls, prefer HeroUI ErrorMessage instead of hand-rolled error text.
  • Use ErrorMessage for collection-style or custom editors that are not true form fields, including key/value editors, tag selectors, and similar composite controls.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 81 lines · 0 tokens per session scan A 1c8683d2b557

Subscribe to this mod's changes

project-form-patterns is a skill published in the GitHub repository AkaraChen/aghub (274 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 914 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

project-form-patterns compared with skills from other repositories

project-form-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-form-patternsAkaraChen/aghubSkill2745d agoMITA0Claude Code, Codex
vercel-react-native-skillsfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A57Claude Code
heroui-migrationfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A56Claude Code
vercel-react-best-practicescalesthio/OpenMontageSkill86k4d agoAGPL-3.0A67Claude Code, Codex
frontendcode-yeongyu/oh-my-openagentSkill71ktodaynoneA79Claude Code, Codex
vercel-composition-patternscalesthio/OpenMontageSkill86k4d agoAGPL-3.0A58Claude Code, Codex
yida-custom-pageopenyida/openyidaSkill236todayMITA67Claude Code, Codex