# Frontend Best Practices

> Use for React, Next.js, TypeScript, and frontend UI work: components, forms, accessibility, i18n, responsive layouts, semantic HTML, performance, skeleton loading states, React 19 APIs, composition patterns, and Next.js/PPR architecture.

- **Type:** Skill
- **Install:** `agentstack add skill-antstudiocz-ant-marketplace-frontend-best-practices`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [antstudiocz](https://agentstack.voostack.com/s/antstudiocz)
- **Installs:** 0
- **Category:** [Search](https://agentstack.voostack.com/c/search)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [antstudiocz](https://github.com/antstudiocz)
- **Source:** https://github.com/antstudiocz/ant-marketplace/tree/master/plugins/ant/skills/frontend-best-practices
- **Website:** https://antstudio.cz

## Install

```sh
agentstack add skill-antstudiocz-ant-marketplace-frontend-best-practices
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Frontend Best Practices

Use this skill for frontend implementation, refactoring, review, and UI architecture work. This is the single public frontend engineering entrypoint; detailed guidance lives in `references/` and should be loaded only when relevant. For `(ant)` brand direction, pair it with `ant:brand-design`.

Reference files may contain original skill frontmatter. Treat it as reference metadata, not as separate skill invocation.

## Baseline

For any frontend change, consider:

- component ownership, naming, structure, and extraction boundaries;
- TypeScript props, nullability, and shared type placement;
- semantic HTML and accessibility for user-facing UI;
- responsive behavior across supported breakpoints;
- i18n for all user-visible text;
- performance, loading states, and layout stability;
- framework-specific boundaries for React, Next.js, Server Components, caching, and PPR.

Do not load every reference by default. Select the smallest useful set for the task.

## Reference Selection

- Components and refactors: `references/components.md`, `references/code-separation.md`, `references/typescript.md`, and `references/composition-patterns/overview.md`.
- Forms: `references/forms.md`, `references/accessibility.md`, `references/i18n.md`, `references/typescript.md`, and React 19 form references when the project uses React 19 actions.
- User-facing text: `references/i18n.md`.
- Layout/UI markup: `references/responsive.md`, `references/semantic-html.md`, and `references/accessibility.md`.
- Loading states: `references/skeleton-loading-states.md` plus `references/performance.md`.
- Performance work: `references/performance.md`, `references/react-best-practices/overview.md`, and specific files under `references/react-best-practices/rules/` found with `rg`.
- React 19 APIs: `references/react-19.md`.
- React composition APIs: `references/composition-patterns/overview.md` and specific files under `references/composition-patterns/rules/`.
- Next.js work: `references/next-best-practices/overview.md` and the relevant topic file in `references/next-best-practices/`.
- Next.js Partial Prerendering or caching: `references/nextjs-ppr.md`, then `references/next-best-practices/data-patterns.md`, `references/next-best-practices/rsc-boundaries.md`, or `references/next-best-practices/suspense-boundaries.md` as needed.

## Workflow

1. Identify the project framework, routing model, component conventions, i18n system, and UI library before editing.
2. Load only the references needed for the task.
3. Prefer existing project patterns and design system components over new abstractions.
4. Keep domain logic out of UI glue and avoid one-off shared utilities.
5. Verify that text, controls, loading states, error states, empty states, and responsive behavior are covered.
6. Run targeted checks that match the changed surface.

## Review Focus

When reviewing frontend work, look for:

- inaccessible controls, missing labels, weak keyboard behavior, or bad focus handling;
- untranslated text or hard-coded user-facing strings;
- layout shift, skeleton mismatch, or responsive overflow;
- incorrect Server/Client Component boundaries;
- avoidable re-renders, slow data fetching, or unnecessary client-side work;
- type gaps, weak null handling, or inline types that should be owned elsewhere;
- duplicated component logic or boolean-prop-heavy APIs that should be composed differently.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [antstudiocz](https://github.com/antstudiocz)
- **Source:** [antstudiocz/ant-marketplace](https://github.com/antstudiocz/ant-marketplace)
- **License:** MIT
- **Homepage:** https://antstudio.cz

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-antstudiocz-ant-marketplace-frontend-best-practices
- Seller: https://agentstack.voostack.com/s/antstudiocz
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
