Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add makifbaysal/tasktrooper --skill react-typescript-patternsgit clone --depth 1 https://github.com/makifbaysal/tasktrooperWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/makifbaysal/tasktrooper/react-typescript-patterns)<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/react-typescript-patterns"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/react-typescript-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/react-typescript-patterns"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/react-typescript-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00033 | $0.00525 |
| Opus 5.5 | $0.00013 | $0.00210 |
| Sonnet 5.5 | $0.00007 | $0.00105 |
| Haiku 4.5 | $0.00003 | $0.00052 |
Grade A, and why
react-typescript-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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; avoidascasts — 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;
useStatefor 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
useEffecthas 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
// ❌ 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
anyorasto silence the compiler instead of fixing the type.useEffectcomputing a value that could be derived inline.- State that mirrors a prop.
- Class components.
Red Flags
: anyoras SomeTypein the diff.- A
useEffectwhose only job issetStatefrom props. - A missing/incorrect effect dependency array.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 53 lines · 33 tokens per session scan A 54e80eae7149
react-typescript-patterns is a skill published in the GitHub repository makifbaysal/tasktrooper (123 stars, last pushed today), licensed Apache-2.0. It adds 33 tokens to every session and 525 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-05.
react-typescript-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-typescript-patternsmakifbaysal/tasktrooper | Skill | 123 | today | Apache-2.0 | A | 33 | Claude Code, Codex |
| V3 CLI Modernizationruvnet/ruflo | Skill | 83k | today | MIT | A | 35 | Claude Code |
| V3 Core Implementationruvnet/ruflo | Skill | 83k | today | MIT | A | 37 | Claude Code |
| V3 DDD Architectureruvnet/ruflo | Skill | 83k | today | MIT | A | 34 | Claude Code |
| ts-debugberekvolgyipeter/dotclaude | Skill | 2 | yesterday | MIT | A | 68 | Claude Code, Codex |
| cuequivariance-jaxNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 38 | Claude Code, Codex |
| cuequivariance-torchNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 37 | Claude Code, Codex |