Agent skill

React Typescript Patterns

by makifbaysal in makifbaysal/tasktrooper

A skill your agent uses when writing React + TypeScript components - functional components, explicit typed props, derived state over effects, and no any/unsafe casts

Apache-2.0Auto-check passedFrontend & Design

Install React Typescript Patterns

skills CLI
$ npx skills add makifbaysal/tasktrooper --skill react-typescript-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install makifbaysal/tasktrooper react-typescript-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/makifbaysal/tasktrooper.git skills-src && mkdir -p .claude/skills && cp -r skills-src/catalog/agents/frontend-developer/skills/react-typescript-patterns .claude/skills/react-typescript-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
react-typescript-patterns
GitHub stars
109
Token cost
~561 tokens
SKILL.md length
230 words
Files
1
Skills in repo
99
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when writing React + TypeScript components - functional components, explicit typed props, derived state over effects, and no any/unsafe casts

  • Writing React + TypeScript components - functional components
  • SKILL.md covers Overview, Rules, Worked Example and Common Mistakes, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Explicit typed props

What it does

React Typescript Patterns is an agent skill from makifbaysal/tasktrooper. Use when writing React + TypeScript components - functional components, explicit typed props, derived state over effects, and no any/unsafe casts

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering React components. It works with React and TypeScript. The repository describes itself as: Local-first agent platform: board + role agents + agent CLI runs (Claude Code, Cursor, Antigravity, OpenCode) or local and API models (Ollama, LM Studio), all on your own Mac. The licence is Apache-2.0.

When your agent uses it

  • Writing React + TypeScript components - functional components
  • Explicit typed props
  • Derived state over effects
  • No any/unsafe casts

Example prompts

  • “/react-typescript-patterns”

What it can do on your machine

Read from SKILL.md and the folder at commit 09f6258. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

React Typescript Patterns loads about 561 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 230 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~561

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from makifbaysal/tasktrooper at commit 09f6258, republished under its Apache-2.0 licence (© makifbaysal). 230 words, ~561 tokens.

Download SKILL.mdSave it as .claude/skills/react-typescript-patterns/SKILL.md (or your agent's skills folder).
name
react-typescript-patterns
description
Use when writing React + TypeScript components - functional components, explicit typed props, derived state over effects, and no any/unsafe casts
category
frontend
tech_stack
React

React + TypeScript Patterns

Overview

The compiler is your first test. The recurring defects are any/as casts that hide type errors, useEffect used where a derived value or event handler belongs, and state that should have been derived.

Core principle: Type at the source, derive over effect, functional components only.

Rules

  • Functional components with hooks — no class components.
  • Explicit, exported props interfaces next to the component. Never any; avoid as casts — fix the type at the source.
  • Named exports for pages/components, one component per file; shared UI lives in the atomic levels (component-composition), page-only wiring next to its page.
  • Derive state where possible; useState for genuinely local state; lift to a hook only when multiple components need it.
  • Effects are a last resort. Prefer event handlers and derived values. Every useEffect has a correct dependency array and a cleanup when it subscribes/allocates.
  • Type all API responses with interfaces matching the backend JSON — the compiler is your contract test.

Worked Example

tsx
// ❌ effect + state to compute something derivable; `any` hides the shape
const [fullName, setFullName] = useState("");
useEffect(() => { setFullName(user.first + " " + user.last); }, [user]);

// ✅ derived value, typed
interface Props { user: User }
export function UserBadge({ user }: Props) {
  const fullName = `${user.first} ${user.last}`;   // derived, no state, no effect
  return <span>{fullName}</span>;
}

The derived version has no effect to get wrong, no stale state, and the User type flows through.

Common Mistakes

  • any or as to silence the compiler instead of fixing the type.
  • useEffect computing a value that could be derived inline.
  • State that mirrors a prop.
  • Class components.

Red Flags

  • : any or as SomeType in the diff.
  • A useEffect whose only job is setState from props.
  • A missing/incorrect effect dependency array.

© makifbaysal, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in catalog/agents/frontend-developer/skills/react-typescript-patterns of makifbaysal/tasktrooper.

Open the folder on GitHubat commit 09f6258

Compare with similar skills

React Typescript Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

React Typescript Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Typescript Patterns this skillmakifbaysal/tasktrooper109—~561Automated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
Dify Component Writing Guidelanggenius/dify158k—~626Automated safety check: PassCustom licence
React Frontend Development Guidelinesdiet103/claude-code-infrastructure-showcase10k2 repos~2.9kAutomated safety check: PassMIT
Formik Form PatternsChrisWiles/claude-code-showcase6.1k3 repos~2.1kAutomated safety check: PassNone
Animated React Component LibrariesHainrixz/editor-pro-max2611 repos~5.7kAutomated safety check: PassCustom licence

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data…

    158k GitHub stars~626 tokensUpdated today
    Frontend & DesignAuto-check passed
  • React Frontend Development Guidelines

    diet103/claude-code-infrastructure-showcase

    Guidelines for React 18 and TypeScript apps covering Suspense data fetching, lazy loading, feature folders, MUI v7 styling, TanStack Router and performance.

    10k GitHub starsUsed in 2 repos~2.9k tokens
    Frontend & DesignAuto-check passed
  • Formik Form Patterns

    ChrisWiles/claude-code-showcase

    Shows how to build forms with Formik and Yup validation, including conditional rules, field helpers, GraphQL submission, edit forms and multi-step flows.

    6.1k GitHub starsUsed in 3 repos~2.1k tokens
    Frontend & DesignAuto-check passed
  • Animated React Component Libraries

    Hainrixz/editor-pro-max

    Helps choose and drop in animated React components from Magic UI and React Bits for landing pages, marketing sites and dashboards, instead of hand-coding animations.

    261 GitHub starsUsed in 1 repo~5.7k tokens
    Frontend & DesignAuto-check passed
  • Fast Typescript Check

    internet-development/www-sacred

    Keep www-sacred's TypeScript fast to type-check and fast to run.

    1.6k GitHub stars~4.3k tokensUpdated today
    Frontend & DesignAuto-check passed

More from makifbaysal/tasktrooper

All 99 skills in this repo
  • API Contract Testing

    makifbaysal/tasktrooper

    A skill your agent uses when a task adds or changes an HTTP endpoint, its request/response shape, status codes, auth or error format - the request matrix, curl templates and what counts as a…

    109 GitHub starsUsed in 1 repo~771 tokens
    Auto-check passed
  • Acceptance Criteria Gwt

    makifbaysal/tasktrooper

    A skill your agent uses when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases

    109 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Accessibility Check

    makifbaysal/tasktrooper

    A skill your agent uses when a task changes any screen, form, dialog, menu or control - Lighthouse/axe scan of the changed screens, a keyboard walk, and the thresholds that fail a task

    109 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Analiz Gate

    makifbaysal/tasktrooper

    A skill your agent uses when deciding whether a request needs an analiz task before implementation - the conditions that require the architect's analysis versus going straight to implementation

    109 GitHub stars~641 tokensUpdated today
    Auto-check passed
  • Analiz HTML Report

    makifbaysal/tasktrooper

    A skill your agent uses when you write or revise the analiz deliverable - the ONE self-contained HTML report (spec and plan as sections) a human reviews passage by passage

    109 GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • Analiz Human Review Gate

    makifbaysal/tasktrooper

    A skill your agent uses when you finish an analiz report - the human must approve the analysis before any implementation task is created, via the analizreview column

    109 GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Works with

Questions about React Typescript Patterns

What does React Typescript Patterns do?

A skill your agent uses when writing React + TypeScript components - functional components, explicit typed props, derived state over effects, and no any/unsafe casts. React Typescript Patterns is an agent skill from makifbaysal/tasktrooper.

When should I use React Typescript Patterns?

React Typescript Patterns fits situations like: writing React + TypeScript components - functional components; explicit typed props; derived state over effects; no any/unsafe casts.

How do I install React Typescript Patterns in Claude Code?

Run `npx skills add makifbaysal/tasktrooper --skill react-typescript-patterns -a claude-code`. Or copy the skill folder (catalog/agents/frontend-developer/skills/react-typescript-patterns in makifbaysal/tasktrooper) into .claude/skills/react-typescript-patterns in your project. Claude Code loads it when a task matches its description.

How do I install React Typescript Patterns in Codex?

Run `npx skills add makifbaysal/tasktrooper --skill react-typescript-patterns -a codex`. Or copy the skill folder (catalog/agents/frontend-developer/skills/react-typescript-patterns in makifbaysal/tasktrooper) into .agents/skills/react-typescript-patterns in your project. Codex loads it when a task matches its description.

Can I use React Typescript Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add makifbaysal/tasktrooper --skill react-typescript-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-typescript-patterns, .gemini/skills/react-typescript-patterns, .github/skills/react-typescript-patterns and .opencode/skills/react-typescript-patterns in your project.

What does React Typescript Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: React Typescript Patterns is instructions for the agent only.

Does React Typescript Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is React Typescript Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does React Typescript Patterns use?

React Typescript Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does React Typescript Patterns use?

About 561 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to React Typescript Patterns?

Skills that share tags, products or a category with React Typescript Patterns: Web Artifacts Builder (anthropics/skills, 180k stars), Dify Component Writing Guide (langgenius/dify, 158k stars), React Frontend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars) and Formik Form Patterns (ChrisWiles/claude-code-showcase, 6.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Typescript Patterns?

makifbaysal (a GitHub user) maintains it in makifbaysal/tasktrooper, which has 109 GitHub stars. The repository holds 99 skills in this directory. The repository was last updated on October 7, 2026.

Source: makifbaysal/tasktrooper on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.