Install
$ agentstack add skill-andregusman-raiz-a-gusman-claude-ag-referencia-nextjs ✓ 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 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.
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
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
- Image: Sempre usar
next/imagecomwidtheheight - Fonts: Usar
next/font - Dynamic imports:
next/dynamicpara lazy loading - Memoization:
useMemo/useCallbackapenas quando necessario - 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.
- 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.