RT

    React + TypeScript Coding Standards

    by Sanket Tikam

    0

    Get clean, professional React code with strict rules for organization, naming, and modern data fetching.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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.”

    RT

    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.

    1. Import Ordering: I have grouped your imports into the standard 11-category list, putting core packages at the top and types at the bottom.
    2. Styled Components: I moved all inline styles into a new Login.styles.ts file using styled-components.
    3. Logic Extraction: I moved the form submission handler out of the JSX and added JSDoc documentation to explain its intent.
    4. 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

    1. You provide a piece of code, a feature request, or a project idea to your AI agent.
    2. The skill tells your AI agent exactly how to name variables, where to store files, and how to order the code inside a component.
    3. Your AI agent writes or fixes the code to match these professional standards.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.

    Frequently Asked Questions

    Get clean, professional React code with strict rules for organization, naming, and modern data fetching.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use React + TypeScript Coding Standards on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.