AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Ag Avaliar Arquitetura

skill-andregusman-raiz-a-gusman-claude-ag-avaliar-arquitetura · by andregusman-raiz

Maquina autonoma de saude arquitetural. 5D (STRUCTURE/COUPLING/DEBT/PATTERNS/SCALE), imports circulares, tech debt, consistencia. AQS >= 80.

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-andregusman-raiz-a-gusman-claude-ag-avaliar-arquitetura

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-andregusman-raiz-a-gusman-claude-ag-avaliar-arquitetura)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Ag Avaliar Arquitetura? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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

  • useContext em > 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 importa infra/, ui/, api/
  • application/ NUNCA importa ui/
  • infra/ pode importar domain/ (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/ ou use-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 calculateDiscount para services/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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.