mcpbeat

Angular Forms

hoangnguyen0403/angular-forms

Build typed reactive forms with strict FormGroup typing, custom validators, and nonNullable controls in Angular. Use when implementing typed reactive forms, custom validators, or form control patterns.

2k tokens
context cost
the whole folder, loaded on every use
3
files
instructions only
0
copies elsewhere
how many repositories repackaged it
536
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill angular-forms

What comes with it

4 443 bytes besides the instruction
evals/evals.json
references/typed-forms.md

The instruction itself

8 sections, as written by the author

Forms

Priority: P2 (MEDIUM)

1. Use Strictly Typed Reactive Forms

  • Prefer Reactive Forms to Template-Driven for complex inputs.
  • Define typed FormGroup<T> with explicit control types — never use untyped FormGroup.

See typed forms for typed FormGroup examples.

2. Extract Validation Logic

  • Create standalone validator functions in separate file.
  • Name the validator module as a separate file (for example, validators.ts) in the response and keep validation out of the component class.
  • Sync valueChanges to stores using takeUntilDestroyed().

See typed forms for standalone validator examples.

3. Ensure NonNullable Controls

  • Use fb.nonNullable.group(...) or nonNullable: true on individual controls.
  • This ensures form values always strings — avoids null in form values.

Anti-Patterns

  • No Template-Driven Forms: Use Reactive Forms for any non-trivial inputs.
  • No untyped FormGroup: Always use strictly typed FormGroup<T>.
  • No validation in component: Extract into standalone validator functions.

References

  • Typed Forms

Canonical response anchors

  • Additional task-grounded exact anchors: separate file

How to use it

Copy the folder

Take hoangnguyen0403/angular-forms from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.