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 1mo 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 1mo 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. 1mo 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 (272 stars, last pushed yesterday), 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

Other skills, from other repositories

extract-source-sample

Given the path to a finished content-goose ad-run folder, extract everything that defines that ad — recipe shot list, VO script, characters, voices, world, atom-skills, master mp4 — and emit a source-sample.json in the exact shape the upload-ad-sample skill writes to the Goose Ads library. Also links every character…

gooseworks-ai/goose-skills · 160 tokens

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

fcakyon/claude-codex-settings · 57 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

calesthio/OpenMontage · 67 tokens

web-artifacts-builder

Suite of tools for creating elaborate, multi-component Prismer HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

Prismer-AI/PrismerCloud · 63 tokens

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

calesthio/OpenMontage · 58 tokens

frontend

Builds, styles, and polishes anything drawn with HTML, CSS, or SVG: web UI, pages, components, HTML reports rendered to PDF or print, figures, PNG/SVG diagrams, slides, and images for Notion or Slack. Use for any styling, layout, animation, or visual-quality task, or when asked to make something look or feel a certain…

code-yeongyu/oh-my-openagent · 79 tokens