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 8d 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.
- 8d 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 (113 stars, last pushed yesterday), 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.
Other skills, from other repositories
ts-debug
TypeScript/Node debugging expert. Use when the user needs to debug, profile, or trace TypeScript or Node.js code — e.g. "how do I debug this", "find the memory leak", "why is this slow", "add a breakpoint", "profile this function", "why won't the process exit".
cuopt-routing-api-python
Vehicle routing (VRP, TSP, PDP) with cuOpt — Python API only. Use when the user is building or solving routing in Python.
mcore-linting-and-formatting
Linting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.
doca-argp
Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…
cuopt-numerical-optimization-api
LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.
holoscan-install-wheel
Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.