clr-forms
Skill by vmware-clarity
Guides an AI assistant in building Clarity forms with @clr/angular. It covers the clrForm directive, layouts, form controls, and validation messages, for developers who build or validate Angular forms.
Install clr-forms
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vmware-clarity/ng-clarity /tmp/ng-clarity && mkdir -p ~/.claude/skills && cp -r /tmp/ng-clarity/projects/angular/forms ~/.claude/skills/clr-formsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vmware-clarity/ng-clarity /tmp/ng-clarity && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ng-clarity/projects/angular/forms ~/.gemini/antigravity-cli/skills/clr-formsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The clr-forms skill gives an AI assistant guidance for building forms with Clarity in @clr/angular. It covers the clrForm directive, layouts set with clrLayout and clrLabelSize, and control containers for input, textarea, select, checkbox, radio, toggle, password, number, range, file picker and datalist. It also covers helper, error and success messages.
The source gives markup examples for each control and a validation pattern that calls markAsTouched() on the ClrForm directive when a submit fails. It includes a table for choosing a control, based on the Clarity forms pattern and control guidance. Rules cover visible labels, required field marking, and file inputs, which must not be bound to a value. The skill is aimed at developers who create, validate or choose form controls in Angular apps that use Clarity.
Written from the project's SKILL.md and checked against it.
What it can do
- Form and layout setupSets up clrForm with clrLayout (horizontal, vertical, compact) and clrLabelSize.
- Control containersShows container and directive markup for input, select, checkbox, radio, toggle and more.
- Validation messagesExplains clrIfError and clrIfSuccess for helper, error and success messages.
- Validate on submitDescribes calling markAsTouched() on the ClrForm directive so errors appear.
- Choose a form controlOffers guidance on picking radios, select, datalist, checkbox, toggle or password.
- File picker handlingDescribes binding rules for clrFileInput and reading files from the change event.
What you need
- @clr/angular package
- Angular with ReactiveFormsModule or FormsModule
- ClrFormsModule imported in the component
Try asking
- Build a horizontal Clarity form with name and email fields and validation
- Which Clarity control should I use for choosing one of four plans?
- Add a file picker with a 1 MB size limit and a helper message
Good to know
- File controls (clrFileInput) must not be bound to a value with ngModel.
- Per-control modules are NgModules, not standalone components.
- Errors show only after a field is touched or markAsTouched() is called.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: projects/angular/forms/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to clr-forms
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
clr-forms: common questions
What is clrForm in Clarity?
clrForm is the form directive in @clr/angular. The source uses it with clrLayout and clrLabelSize to set the form layout.
How do I show validation errors on submit?
Call markAsTouched() on the ClrForm directive when the form is invalid. The source notes that markAllAsTouched() on the form group does not show the messages.
Which Clarity controls does this skill cover?
The source covers input, textarea, select, password, number, range, datalist, file picker, checkbox, radio and toggle switch.
How do I install clr-forms?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clr-forms free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is clr-forms safe to use?
It scores 68 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to clr-forms?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
