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

Ag Referencia Nextjs

skill-andregusman-raiz-a-gusman-claude-ag-referencia-nextjs · by andregusman-raiz

Patterns e convencoes para projetos Next.js com React

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

Install

$ agentstack add skill-andregusman-raiz-a-gusman-claude-ag-referencia-nextjs

✓ 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 No
  • 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-referencia-nextjs)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo 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 Referencia Nextjs? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Skill: Next.js + React Patterns

Referencia de patterns e convencoes para projetos Next.js + React.

Quando Ativar

  • Trabalhando em projeto Next.js
  • Criando componentes React
  • Decidindo entre Server e Client Components

App Router (Next.js 13+)

Estrutura de Pastas

src/app/
├── layout.tsx          # Root layout (Server Component)
├── page.tsx            # Home page
├── loading.tsx         # Loading UI
├── error.tsx           # Error boundary (Client Component)
├── not-found.tsx       # 404 page
├── (auth)/             # Route group
│   ├── login/page.tsx
│   └── register/page.tsx
├── dashboard/
│   ├── layout.tsx      # Nested layout
│   └── [id]/page.tsx   # Dynamic route
└── api/
    └── route.ts        # API route handler

Server vs Client Components

| Criterio | Server Component | Client Component | |----------|-----------------|------------------| | Default | Sim (padrao) | Precisa 'use client' | | Fetch data | Sim (async/await) | Via hooks | | useState/useEffect | Nao | Sim | | Event handlers | Nao | Sim | | Bundle size | Nao inclui | Inclui no bundle |

Regra: Comece como Server Component. Adicione 'use client' apenas quando precisar de interatividade.

Data Fetching (Server Component)

export default async function UsersPage() {
  const users = await getUsers();
  return ;
}

Composicao Server + Client

export default async function Page() {
  const data = await fetchData();
  return (
    
      Server rendered
      
    
  );
}

React Patterns

Custom Hooks

export function useDebounce(value: T, delay: number): T {
  const [debouncedValue, setDebouncedValue] = useState(value);
  useEffect(() => {
    const timer = setTimeout(() => setDebouncedValue(value), delay);
    return () => clearTimeout(timer);
  }, [value, delay]);
  return debouncedValue;
}

Error Boundaries

'use client';
export default function Error({ error, reset }: { error: Error; reset: () => void }) {
  return (
    
      Algo deu errado
      Tentar novamente
    
  );
}

Tailwind CSS

  • Responsive: mobile-first (sm:, md:, lg:, xl:)
  • Dark mode: dark: prefix
  • Hover/Focus: hover:, focus:, focus-visible:

Performance

  1. Image: Sempre usar next/image com width e height
  2. Fonts: Usar next/font
  3. Dynamic imports: next/dynamic para lazy loading
  4. Memoization: useMemo/useCallback apenas quando necessario
  5. Suspense: Para loading states granulares

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.