agentleFS
kumaran-iskumaran-is/claude-code-onboarding/.claude/skills/angular-ui-patterns/SKILL.md

angular-ui-patterns

Skill36 starsChanged 6 months agoMITView on GitHub

Angular 21.x UI/UX state patterns — loading states (show only when no data), error hierarchy (inline→toast→banner→full-screen), empty states, button loading, form patterns with validation, dialog/modal patterns. Load when building any Angular UI component that handles async data or user actions.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before completing any UI component:

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Iron Law

LOAD angular-spa FIRST for daisyUI component classes and TailwindCSS 4.x tokens. This skill provides UI state doctrine — use angular-spa reference files for the actual component HTML/CSS.

When to Use This Skill

Load this skill when:

  • Building any Angular component that fetches async data
  • Adding loading, error, or empty states to a list or page
  • Implementing form validation with inline field errors
  • Adding button loading states or disabling during async operations
  • Building confirmation dialogs or modals
  • Reviewing a component for missing UI state coverage

Five Non-Negotiable Principles

  1. Never show stale UI — Loading states only when actually loading, never over existing data
  2. Always surface errors — Users must know when something fails; never swallow silently
  3. Optimistic updates — Make the UI feel instant; roll back on failure
  4. Progressive disclosure — Use @defer to show content as available
  5. Graceful degradation — Partial data is better than no data

Pattern Selector

What are you building?

  • Async list/page → load reference/loading-control-flow.md
  • Error handling → load reference/error-handling.md
  • Button with loading → load reference/button-empty-states.md
  • Form with validation → load reference/form-dialog-patterns.md
  • Reviewing for mistakes → load reference/anti-patterns.md

Reference Files

ReferenceLoad When
reference/index.mdAny time — navigation
reference/loading-control-flow.mdBuilding async list or page
reference/error-handling.mdAdding error handling
reference/button-empty-states.mdButtons or collections
reference/form-dialog-patterns.mdForms or confirmation dialogs
reference/anti-patterns.mdReviewing a component

UI State Checklist

Before completing any UI component:

UI States

  • Error state handled and shown to user
  • Loading state shown only when no data exists
  • Empty state provided for collections (@empty block)
  • Buttons disabled during async operations
  • Buttons show loading indicator when appropriate

Data & Mutations

  • All async operations have error handling
  • All user actions have feedback (toast/visual)
  • Optimistic updates rollback on failure

Accessibility

  • Loading states announced to screen readers
  • Error messages linked to form fields
  • Focus management after state changes

daisyUI Integration

This skill provides the doctrine. Use these daisyUI classes from angular-spa skill:

  • Loading: class="loading loading-spinner loading-lg"
  • Alert: class="alert alert-error" / class="alert alert-success"
  • Button loading: class="btn btn-primary loading"
  • Skeleton: class="skeleton h-4 w-full"
  • Empty state: class="hero min-h-32"

Related Skills

  • angular-spa — workspace skill: daisyUI components, TailwindCSS tokens, conventions
  • angular — core API reference for signals and control flow
  • angular-best-practices — performance rules that complement these UI patterns

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.