Install
$ agentstack add skill-andregusman-raiz-a-gusman-claude-ag-avaliar-arquitetura ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
ARCHITECT — Saude Arquitetural
> Reasoning protocol (Opus, equivalente a reasoning_effort=xhigh): Audit arquitetural raso = falso confort. Para cada dimensao (STRUCTURE/COUPLING/DEBT/PATTERNS/SCALE): Exhaust riscos plausiveis; Verify com Read de pelo menos 5 arquivos relevantes por dimensao; Falsify (esta dimensao realmente tem o problema que aparenta?); Connect achados a impacto operacional concreto; Report com paths/linhas exatos para cada finding. Findings sem path:linha = nao contam. Detalhes: .claude/rules/deep-reasoning-directive.md.
/architect ~/Claude/GitHub/example-platform
/architect ~/Claude/GitHub/payroll-app --threshold 90
5 dimensoes: STRUCTURE (camadas), COUPLING (dependencias), DEBT (tech debt), PATTERNS (consistencia), SCALE (performance). So modo local. Produz Architecture Certificate + Tech Debt Register + Fix PR.
Dimensao PATTERNS — Checklist obrigatorio de Separation of Concerns
Para projetos React/Next/TS, a dimensao PATTERNS DEVE executar este checklist concreto (nao abstrato):
1. Fetch / mutation em componentes apresentacionais
# Componentes em pastas "burras" nunca devem chamar API direto
grep -rEn 'fetch\(|axios\.|supabase\.|prisma\.' \
src/components/ui/ src/components/atoms/ src/components/presentational/ \
2>/dev/null | grep -v ".test." | grep -v ".stories."
Resultado > 0 → finding HIGH (severidade ALTO).
2. Regra de negocio em UI components
# Calculos, validacoes, business rules dentro de componentes JSX
# Heuristica: funcoes nao-trivial dentro de .tsx (> 10 linhas, > 2 branches)
# Combinada com: file path em /components/ui ou /presentational
# AST custom: countFunctionsInFile + filterByComplexity
Cada match e candidato a extracao para hook (useX) ou service (services/X.ts).
3. Props drilling > 3 niveis (candidato a container)
# Buscar componentes que passam props sem usa-los (pass-through)
# AST: para cada componente, contar props recebidos vs usados localmente
# Se > 50% dos props sao apenas re-passados → candidato a container
4. Context usado para state que deveria ser local
useContextem > 5 componentes para mesma fatia de state → candidato a state local + lifting- Context com 1 unico consumer → eliminar Context
5. Inversao de dependencia em camadas
Para projetos com clean architecture / DDD:
domain/NUNCA importainfra/,ui/,api/application/NUNCA importaui/infra/pode importardomain/(implementa portas)- Detectar via
madge --json+ filter por path patterns
6. Server Components vs Client Components (Next.js App Router)
"use client"em arquivo que NAO precisa de interatividade (no useState/useEffect/event handlers) → finding MEDIO"use server"em handler que poderia ser Route Handler → finding BAIXO- Server Component renderizando Client Component grande sem boundary → finding MEDIO
7. Mistura de responsabilidades em Server Actions / API routes
- API route fazendo: validation + business logic + DB query + email + analytics em 1 funcao → finding HIGH
- Sugestao: extrair para
services/ouuse-cases/
Output esperado da PATTERNS
Para cada finding, registrar:
path:linha- Categoria (1-7 acima)
- Severidade (HIGH/MED/LOW)
- Fix sugerido em 1 linha (ex: "Extrair
calculateDiscountparaservices/pricing.ts") - Estimativa de impacto (LOC + numero de arquivos afetados)
Cobre prompts benchmark: separacao de responsabilidades, container/presentational, fetch direto em UI.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: andregusman-raiz
- Source: andregusman-raiz/a-gusman-claude
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.