React + TypeScript Coding Standards
by Sanket Tikam
Get clean, professional React code with strict rules for organization, naming, and modern data fetching.
$5
What it does
- Organizes imports into 11 clear categories to make files easy to scan
- Standardizes component internal order so data, effects, and markup are always in the same place
- Enforces centralized color and typography management to prevent messy, hardcoded styles
- Replaces direct API calls with TanStack Query for better data management and performance
- Applies strict naming conventions for variables, functions, types, and database tables
- Detects and removes unused code, variables, and imports to keep the project light
Who it's for
Freelance React developers
Write clean, professional code that looks like it came from a top-tier engineering team.
Try asking: “Review this UserProfile component and make it follow the house coding standards.”
Founders building with AI agents
Ensure your AI-generated app is organized, scalable, and easy for a human developer to take over later.
Try asking: “Scaffold a new React project with the standard folder structure and Vite aliases.”
Engineering leads and CTOs
Enforce strict, consistent coding rules across your entire team without manual oversight.
Try asking: “Refactor our API layer to use TanStack Query and centralized error handling.”
React + TypeScript Coding Standards
Example session with this skill installed
I have a messy login component. Can you refactor it to follow the coding standards, especially fixing the imports and moving the styles out?
- Read your context and instructions
- Compiled the react + typescript
I will refactor your login component to meet the house coding standards. I will organize the imports, move the logic out of the JSX, and extract the styles into a separate file.
- Import Ordering: I have grouped your imports into the standard 11-category list, putting core packages at the top and types at the bottom.
- Styled Components: I moved all inline styles into a new
Login.styles.tsfile usingstyled-components. - Logic Extraction: I moved the form submission handler out of the JSX and added JSDoc documentation to explain its intent.
- Clean Up: I removed three unused variables and a commented-out block of code.
/**
* Renders the login form and handles user authentication.
*
* @returns The login card with email and password fields.
*/
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { useAuthMutation } from '@api/auth';
import { Button } from '@components/Common/Button';
import { Typography } from '@components/Common/Typography';
import { Wrapper, FormContainer } from './Login.styles';
export const LoginForm = () => {
const [email, setEmail] = useState('');
const navigate = useNavigate();
const { mutate, isLoading } = useAuthMutation();
const handleLogin = (e: React.FormEvent) => {
e.preventDefault();
mutate({ email }, { onSuccess: () => navigate('/dashboard') });
};
return (
<Wrapper>
<Typography variant="T_Bold_H5">Welcome Back</Typography>
<FormContainer onSubmit={handleLogin}>
{/* Form fields here */}
<Button type="submit" disabled={isLoading}>Sign In</Button>
</FormContainer>
</Wrapper>
);
};
I have also created the Login.styles.ts file for you. Would you like me to set up the TanStack Query hook for the login API next?
Connects securely to your tools. The creator never sees your data.
About this skill
Writing React code is easy, but keeping it organized as the project grows is hard. This skill gives your AI agent a specific set of rules to follow so every file stays consistent. It covers everything from where to put your imports to how to handle data fetching and security.
How it works
- You provide a piece of code, a feature request, or a project idea to your AI agent.
- The skill tells your AI agent exactly how to name variables, where to store files, and how to order the code inside a component.
- Your AI agent writes or fixes the code to match these professional standards.
- You get back clean, bug-resistant code that follows modern React patterns.
Frameworks & tools
This skill is built for React and TypeScript projects. It uses Vite for project setup, TanStack Query for data, styled-components for styling, dayjs for dates, and Axios for API calls.
Why this beats prompting it yourself
Most AI agents write code that "just works" but is messy and hard to maintain. This skill forces the agent to use a 11-category import order, specific folder structures, and professional patterns like the Strategy pattern. It prevents common mistakes like hardcoding colors or putting logic inside the markup.
Use cases
- Setting up a new React project with a professional folder layout.
- Reviewing a pull request to find unused code or messy imports.
- Converting a messy JavaScript component into a strictly typed TypeScript one.
- Moving all your data fetching logic into reusable TanStack Query hooks.
Known limitations
This skill focuses on React and TypeScript. It is not designed for Vue, Angular, or plain HTML projects.
Built for React/TypeScript environments using Vite. Enforces a specific directory structure (src/components, src/api, etc.) and path aliases. Configured for TanStack Query (React Query), styled-components, and dayjs. Includes specific rules for JSDoc documentation, import ordering, and component lifecycle sequencing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
Requires
Nothing to install.
Permissions
Reads and edits React source files in the project the agent is working on. No network access, no API keys.
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.