Communitygithub.com

lguidolin/interface-craft-and-accessibility

Use ao construir ou estilizar UI — componentes, layouts, formulários, design tokens — ou ao tomar decisões de acessibilidade. Palavras-chave — a11y, WCAG, navegação por teclado, estado de foco, contraste, sistema de design, UI minimalista, reutilização de componentes, ARIA, HTML semântico.

O que é interface-craft-and-accessibility?

Este skill define padrões rigorosos para construção de interfaces: acessíveis, minimalistas e visualmente coesas. Ele converte princípios estéticos em restrições acionáveis e regras de escalonamento — eliminando a subjetividade. O agente não precisa 'ter bom gosto', apenas seguir os tokens do sistema de design, a precedência visual e a regra de escalonamento para decisões genuinamente novas. Suporta qualquer plataforma de desenvolvimento front-end, com ênfase em React/JSX para aplicação prática de regras como foco visível, contraste AA, semântica HTML e redução de movimento. Inclui referências a ferramentas de CI como eslint-plugin-jsx-a11y e axe para validação automática de acessibilidade.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lguidolin/agent-skills/tree/main/skills/interface-craft-and-accessibility

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Interface Craft e Acessibilidade

Visão Geral

O padrão é acessível, minimalista e bonito — por construção, não por ajuste final. Bom gosto não é acionável como regra, então é convertido em restrições, precedentes e escalonamento. O agente não é solicitado a inventar gosto, apenas a honrar restrições e escalonar o restante.

Acessibilidade — um Requisito, Não um Acabamento

Regras verificáveis:

  • Todo elemento interativo é alcançável por teclado com um estado de foco visível.
  • Todo controle possui um nome acessível; todo campo de formulário tem um rótulo associado e mensagens de erro claras.
  • HTML semântico e landmarks em vez de div em abundância.
  • Contraste de cores atende WCAG AA; significado nunca é transmitido apenas por cor.
  • Honre preferências de redução de movimento.

Bonito e Minimalista — como Restrições, Não Sensações

  • Consistência através de restrição. Use os tokens do sistema de design — espaçamento, escala tipográfica, escala de cores. Sem números mágicos isolados. Coerência é a estética.
  • Telas existentes são o guia de estilo. Siga a linguagem visual estabelecida antes de inventar.
  • Moderação (UI-YAGNI). Cada elemento conquista seu lugar; remova até que remover quebre algo. Hierarquia e espaços em branco sobre densidade e decoração.
  • Prefira os padrões da biblioteca de componentes antes de construir UI personalizada.
  • Dois elementos de UI semelhantes → um componente parametrizado. Diferenças são props/variantes, nunca copiar e colar. Uma terceira cópia é um defeito. (DRY aplicado à interface.)

A Regra de Escalonamento

Decisões de gosto escalonam; nunca são decididas autonomamente. Quando uma escolha é genuinamente estética e indeterminada por tokens ou precedentes, não adivinhe silenciosamente:

  1. Siga o precedente existente mais próximo, ou
  2. Apresente opções (protótipos, comparações lado a lado) para uma decisão humana de gosto.

Referência Rápida

SituaçãoFaça
Novo componente se assemelha a um existenteParametrize o existente; não copie
Um valor de espaçamento/cor não está nos tokensUse o token mais próximo; não invente um número mágico
Decisão visual genuinamente novaEscalone com opções; não decida autonomamente
Adicionar um elemento interativoTeclado + foco + nome acessível, desde o início

Fiscalização: linting/testes de a11y em CI (ex.: eslint-plugin-jsx-a11y, axe) para as regras verificáveis; moderação estética é critério do revisor através da regra de escalonamento.

Fundamentação completa: Artigo VII da constituição, anexado em engineering-constitution/references/engineering-constitution.md.

Individual skills in this repo

This repo contains 18 individual skills — each has its own dedicated page.

lguidolin/change-hygiene-and-code-craft

Use when writing or refactoring code, structuring a commit or PR, or deciding whether to abstract duplication. Symptoms — mixing reorg with logic changes, a PR doing several things at once, a file growing large, the second copy of similar code, or unsure whether to DRY something up.

lguidolin/cloud-delivery-aks

Use when deploying to Kubernetes or Azure Kubernetes Service (AKS), configuring cloud secrets, setting up progressive rollout/canary, per-PR ephemeral environments, or k8s health probes. Keywords — Kubernetes, AKS, Key Vault, Argo Rollouts, Flagger, canary, blue-green, liveness, readiness, PodDisruptionBudget, HPA, rollback, GHCR.

lguidolin/commit-history-rewrite

Use when an existing repository has messy commit history that needs to conform to conventional commits before adopting release-please, or when intermediate WIP/fixup/merge commits need to be cleaned up.

lguidolin/conventional-commits-and-releases

Use when committing, writing a commit message, opening a PR that will be squash-merged, or configuring automated versioning/changelogs. Keywords — conventional commits, release-please, semver, feat/fix/chore, breaking change, changelog.

lguidolin/defense-in-depth-security

Use when handling untrusted input, secrets, authentication/authorization, or dependencies — or threat-modeling a new surface. Keywords — STRIDE, threat model, least privilege, secrets management, supply chain, dependency scanning, input validation, audit log, defense in depth.

lguidolin/designing-before-building

Use when starting a feature, fixing a non-trivial bug, or about to write implementation code — before any code exists. Symptoms you need this: "this is simple, I'll just code it", reaching for the editor before a design is approved, or an idea that hasn't been turned into a spec and plan.

lguidolin/engineering-constitution

Use when starting work in a project that follows the engineering constitution, orienting to its rules, or deciding which engineering practice applies to a task — spec writing, commits, testing, security, deploys, database, or UI work.

lguidolin/graphql-contract-testing

Use when writing a GraphQL query/mutation that the UI and a test will share, or building route/schema contract or smoke tests. Symptoms — copying a query into a test, a test asserting on query text, schema change that didn't break the UI build, or RLS/permission drift. Keywords — graphql-codegen, typed document, contract test, route smoke test.

lguidolin/init-repo-CI

Use when setting up a new repository with conventional commits, release-please, and CI automation, or when retrofitting an existing repository that lacks automated versioning and PR validation workflows.

lguidolin/merge-gates-and-automation

Use when setting up or changing CI, pre-push hooks, or a task runner, or deciding what must pass before merge. Symptoms — tempted to put authoritative checks only in a local hook, skip CI, bypass with --no-verify, or unsure what gates a merge vs. runs locally.

lguidolin/observability-and-slos

Use when adding logging, metrics, tracing, health checks, SLOs, or alerting — or when building a service surface that needs to be operable and debuggable. Keywords — structured logs, OpenTelemetry, correlation id, RED metrics, liveness, readiness, SLI, SLO, error budget, alerting.

lguidolin/performance-and-scale

Use when working on hot paths, list endpoints, pagination, data-access in loops, or public interfaces/schemas. Symptoms — unbounded queries, N+1 access, no latency budget, optimizing without measuring, or changing an interface many consumers depend on. Keywords — pagination, N+1, Hyrum's Law, performance budget, bundle size.

lguidolin/postgres-postgraphile-rls-and-sql

Use when writing PostgreSQL, PostGraphile config, Row-Level Security policies, SQL schema files, or working on the Browser→App→PostGraphile→Postgres data path. Keywords — RLS, SECURITY DEFINER, search_path, pgSettings, grants, roles, GraphQL depth limit, query cost, statement_timeout, SQL file organization.

lguidolin/recording-decisions

Use when a design or architecture decision has been made and needs to be captured — writing a decision record or ADR, updating a decision index, noting a deferred idea, or superseding a past decision. Keywords — ADR, decision record, rationale, rejected alternatives, dependency index.

lguidolin/resilience-and-deploy-safety

Use when planning a deploy, designing a rollback, or responding to an incident or writing a postmortem. Keywords — deploy safety, rollback, immutable artifact, progressive delivery, canary, blast radius, incident response, blameless postmortem, error budget.

lguidolin/ship-it

Use when the user wants to ship work — push, PR, archive decision records, merge, and clean up. Handles the full lifecycle from committing final changes through post-merge cleanup including converting specs/plans to compact decision records.

lguidolin/tests-as-a-control

Use when writing or modifying tests, when a test breaks during a refactor, or when testing permission/role rules. Symptoms — tempted to edit a test to make it pass, testing only the happy path, a deny-test that started passing, flaky tests, or unsure what to assert.

lguidolin/zero-downtime-migrations

Use when changing a database schema where data must survive the change — adding/removing/renaming columns, constraints, indexes, or backfilling. Symptoms — a destructive migration bundled with a code deploy, a NOT NULL column with a backfill, a table-locking UPDATE, or a rename. Keywords — expand/contract, parallel change, backfill, NOT VALID, CREATE INDEX CONCURRENTLY, graphile-migrate.

Habilidades Relacionadas