agentleFS
eusouwilsoneusouwilson/angular-nest-ai-kit/skills/angular-primeng-audit/SKILL.md

angular-primeng-audit

Skill2 starsChanged 4 months agoMITView on GitHub

Audit Angular + PrimeNG components for compliance with smart/dumb boundaries and modern Angular APIs. Use when reviewing or fixing p-table, p-dialog, p-select, signal inputs/outputs, RBAC template visibility, PrimeNG imports, deprecated DropdownModule usage, inline templates/styles, or dialog overlay close bugs.

The file

Files
SKILL.md

Angular + PrimeNG Audit

Revisao focada de conformidade de UI PrimeNG em componentes existentes.

Fontes obrigatorias

  • references/primeng-audit-checklist.md (nesta skill).
  • Doc de templates do projeto destino, se existir: prevalece sobre esta skill.

Fluxo de auditoria

  1. Identificar o tipo do componente: smart page, dumb list, dialog create/edit, dialog de detalhe ou UI compartilhada.
  2. Comparar .ts, .html e .scss juntos: muita violacao so aparece no cruzamento.
  3. Reportar achados com referencia concreta de arquivo e linha.
  4. Se pedirem correcao, alterar o minimo de arquivos e preservar comportamento local.
  5. Rodar o teste/build mais focado disponivel apos corrigir.

Checagens

  • Estrutura: standalone, ChangeDetectionStrategy.OnPush em dumbs, HTML/SCSS separados.
  • API: input() / output() em dumbs; @Input() / @Output() so em legado fora de escopo.
  • DI: inject() apenas; sem DI por construtor em codigo novo/refatorado.
  • Fronteira Smart/Dumb: dumb nao injeta facade/service e nao faz HTTP.
  • Templates: @if / @for, leitura de signal com (), sem *ngIf / *ngFor.
  • PrimeNG: modulo exato por seletor; SelectModule/p-select no lugar de DropdownModule.
  • Overlay: appendTo="body" em selects dentro de dialog ou tabela.
  • Dialog: pai com @if exige dialogVisible interno; X e footer chamam closeDialog(), nunca cancel.emit() direto.
  • RBAC: acoes que modificam dados protegidas por diretiva de permissao.
  • Forms: submit desabilitado (nao escondido) em invalido/carregando; mensagem de validacao exibida apos touched + invalid.

Formato do relatorio

Por achado: severidade (alta/media), arquivo:linha, regra violada, correcao proposta. Agrupar por severidade, alta primeiro. Nao misturar sugestao de estilo com defeito real.

Alinhamento de arquitetura

Estrutura assumida: frontend por dominio com data-access/, feature/, ui/; contratos HTTP publicos na lib compartilhada. Se o projeto destino diverge, ajustar antes de auditar para nao gerar achado falso positivo.

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.