Skip to content

Guide · Agent skill

How to use the Frontend Dev Guidelines agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The frontend-dev-guidelines skill is a set of written rules that an AI agent reads before it writes React and TypeScript front-end code. It covers Suspense-based data fetching, lazy loading, feature-folder organization, MUI v7 styling and TanStack Router. This guide explains what the skill changes, how to install it, how to trigger it, and where it fits best.

Frontend Dev Guidelinesdiet103/claude-code-infrastructure-showcase · MIT

Quick start

  1. 1Download the ZIP. Get the frontend-dev-guidelines ZIP from our page.
  2. 2Unzip into a skills folder. Place the frontend-dev-guidelines folder in ~/.claude/skills/ for all projects, or in a project's .claude/skills/ folder for one project.
  3. 3Or upload in the Claude apps. Open Settings → Capabilities → Skills and upload the skill there instead.
  4. 4Check the stack. Confirm your project uses React 18, TypeScript, MUI v7 and TanStack Router/Query, or plan to adapt the rules.
  5. 5Ask in plain language. Request a component, feature, route or styling change and mention your stack.
  6. 6Review the output. Check the generated code against your project's aliases and config files.

What the skill makes the agent do

The skill is documentation for the agent rather than a tool that acts on its own. When it is installed and relevant to your request, the agent follows its guidance while creating components, pages, features, data fetching, styling and routing.

The guidance is written for React 18, TypeScript, MUI v7 and TanStack Router/Query. Its main rules include using React.FC<Props> components, lazy loading heavy components, wrapping them in a SuspenseLoader, fetching data with useSuspenseQuery, organizing code into features/ folders, using the sx prop with SxProps<Theme>, and using useMuiSnackbar for notifications instead of react-toastify.

  • Use useSuspenseQuery for data fetching instead of isLoading checks.
  • Avoid early returns with loading spinners; wrap content in SuspenseLoader to prevent layout shift.
  • Use MUI v7 Grid syntax such as <Grid size={{ xs: 12, md: 6 }}>.
  • Keep styles inline under 100 lines and move them to a .styles.ts file above that.
  • Use strict TypeScript, avoid any, and add explicit return types.

Install the skill in Claude

Download the ZIP file for frontend-dev-guidelines from our page. Unzip it so the frontend-dev-guidelines folder, which contains SKILL.md and a resources/ folder, sits in one of two places: ~/.claude/skills/ to make it available across your projects, or a project's .claude/skills/ folder to share it with that project only.

You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.

~/.claude/skills/frontend-dev-guidelines/

Trigger the skill with natural requests

You do not need a special command. The skill's description tells the agent to use it when you create components, pages or features, fetch data, style UI, set up routing, or work with frontend code. Ask for the work in plain language and mention your stack so the agent applies the right rules.

Requests that tend to match the skill's description include creating a new component, building a feature with its own folder, adding a route, or styling a form.

  • Create a React component for a user profile card that fetches data with useSuspenseQuery.
  • Add a new feature folder for comments with an API service file and types.
  • Set up a TanStack Router route for a settings page with lazy loading.
  • Style this dashboard panel using MUI v7 and the sx prop.

What the skill needs and what to expect

The skill works best in a React 18 + TypeScript project that uses MUI v7 and TanStack Router/Query. The source notes that it refers to a CLAUDE_INTEGRATION_GUIDE.md file and a vite.config.ts file in the original repository. Those files are not part of this skill folder, so the import alias details and repository-level references will not be available from the skill alone.

If your project uses a different stack, the skill says to adapt the principles rather than follow the rules literally. It is not a beginner tutorial: it gives rules, not explanations of React.

  • Works best with React 18, TypeScript, MUI v7, TanStack Router and TanStack Query.
  • Does not include the CLAUDE_INTEGRATION_GUIDE.md or vite.config.ts files referenced by the original repository.
  • Assumes you already know React.

Safety notes: scripts and network access

The skill does not run scripts and does not use the network. It consists of Markdown guidance files that the agent reads. Because it contains no executable scripts, installing it does not add programs to your machine. As with any skill, review the files before relying on them in a production codebase.

  • Runs scripts: no.
  • Uses network: no.

Tips for getting the best results

Name your stack in the request so the agent knows whether the rules apply. Review generated code against your project's real aliases and config, since the skill's alias table points to a vite.config.ts that is not included. If you work in a different framework, ask the agent to adapt the principles instead of copying the patterns.

  • Say 'React 18 with MUI v7 and TanStack Query' in your request.
  • Ask the agent to show which resource file it followed when the output looks unusual.
  • Check the import aliases (@/, ~types, ~components, ~features) against your own config.

What people use it for

  • Generating a new React component that uses useSuspenseQuery and SuspenseLoader.
  • Scaffolding a new feature folder with api/, components/, hooks/, helpers/ and types/ subdirectories.
  • Adding a lazy-loaded TanStack Router route for a new page.
  • Styling MUI v7 components consistently with the sx prop and a .styles.ts file for larger components.
  • Writing forms with React Hook Form and Zod validation following the common patterns guide.

Frequently asked questions

Is the frontend-dev-guidelines skill free?

The skill is released under the MIT licence, as stated on this page. Check the licence file in the original repository for the full terms.

How do I install the frontend-dev-guidelines skill?

Download the ZIP from this page and unzip the frontend-dev-guidelines folder into ~/.claude/skills/ or a project's .claude/skills/ folder. You can also upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need to use this skill?

It works best with a React 18 and TypeScript project that uses MUI v7 and TanStack Router/Query. It does not run scripts or use the network, but it assumes you already know React.

Does this skill work with Vue, Tailwind or Redux?

The skill is written for React 18, MUI v7 and TanStack. Its own guidance says to adapt the principles for a different stack, so it is not a direct fit for Vue, Tailwind or Redux projects.

Why does the agent avoid isLoading checks?

The skill's rules prefer useSuspenseQuery with Suspense boundaries and say not to return early with loading spinners, because that causes layout shift.

Is this skill a beginner React tutorial?

No. It gives the agent rules to follow and does not explain React concepts, so it suits developers who already know React and TypeScript.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if your React app already runs on React 18, TypeScript, MUI v7 and TanStack Router/Query, and you want an AI agent to produce consistent code that follows a written style guide. Pick something else if your project uses a different stack or if you are learning React, since the skill gives rules without explanations.

Download the skill