agent-skills-conventions

agent-skills-conventions is a skill for Claude Code from MohammadShehadeh/agent-skills. It costs 46 tokens per session (2,121 once invoked), scanned A, original, MIT.

Coding conventions for TypeScript, React, and Next.js projects. TypeScript adds types to JavaScript, React builds user interfaces, and Next.js is a React web framework.

In plain words
What is it for?
Use them when writing or reviewing TypeScript or frontend code, including components, hooks, forms, services, data handling, errors, and tests.
Why use it?
They keep new code consistent with the existing project and reduce avoidable differences in naming, structure, components, styling, and tests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-skills plugin — 6 skills, 6 commands, 1 agent shipped together

Good fit Use them when writing or reviewing TypeScript or frontend code, including components, hooks, forms, services, data handling, errors, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohammadshehadeh/agent-skills/agent-skills-conventions
Install

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.

Any agent
npx skills add MohammadShehadeh/agent-skills --skill agent-skills-conventions
Clone the repo
git clone --depth 1 https://github.com/MohammadShehadeh/agent-skills

Made for: Claude Code.

Or install agent-skills, the plugin that ships this one along with the rest of its 6 skills, 6 commands, 1 agent.

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

agentmods badge for agent-skills-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohammadshehadeh/agent-skills/agent-skills-conventions/github.svg)](https://agentmods.dev/skills/mohammadshehadeh/agent-skills/agent-skills-conventions)
Your own site
<a href="https://agentmods.dev/skills/mohammadshehadeh/agent-skills/agent-skills-conventions"><img src="https://agentmods.dev/badge/skills/mohammadshehadeh/agent-skills/agent-skills-conventions/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.

agentmods 80×15 button for agent-skills-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohammadshehadeh/agent-skills/agent-skills-conventions"><img src="https://agentmods.dev/badge/skills/mohammadshehadeh/agent-skills/agent-skills-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,121 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.02121
Opus 5 $0.00023 $0.01060
Sonnet 5 $0.00009 $0.00424
Haiku 4.5 $0.00005 $0.00212

Measured 12d ago against content hash a31d3cad6a2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

agent-skills-conventions 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 12d 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.

skills/agent-skills-conventions/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Conventions

Condensed house style. Adapt to the repo first — read existing layout, aliases, UI layer, and toolchain; match established patterns (core-principles). Full rules with examples live in this skill's references/ directory — read the topic file when detail is needed: core-principles · naming · typescript · components · hooks-state · forms · nextjs · styling · ui-composition · ui-ux · icons · services · data · optimistic-ui · errors · structure · testing

Cheat sheet

Process — inspect the repo before imposing patterns; plan before coding and confirm the approach; be concise; say "I don't know" instead of guessing; simplest code that works; surgical diffs only.

Naming — kebab-case filenames (components too); camelCase vars; booleans is/has/should; handlers handle*, callback props on*; name business meaning, not technical accident. .tsx iff the file contains JSX.

No barrels — never create re-export index.ts files; import directly from the file that defines the symbol.

Components — named arrow-function const exports; no default exports except Next.js file conventions. Props: interface <Component>Props (no I prefix), destructured in the signature. children: React.ReactNode. Compound components as flat named exports from one file (Card/CardHeader — never Card.Header statics). Data-driven rendering: typed as const arrays + .map(), content out of markup.

Flat trees — design for the flattest tree possible: page → section → primitive. No pass-through wrapper components; no prop drilling past one intermediate — compose via children/slot props, fetch/read data where it's used, lift state only to the lowest common owner. Tracing a prop must never take 3–6 file jumps.

Hooks — return an object (never a tuple) exposing status plus only the derived flags call-sites read; booleans derived from status, never stored. Async state is ONE status union ('idle' | 'loading' | 'success' | 'error') in one useState — bare union by default, discriminated-with-payload only when data/errorKey must be tied to the state; never parallel booleans. Failures carry an errorKey, not a message. Server state lives in a query cache (TanStack Query), never useState+useEffect+fetch; live updates are refetchInterval/invalidateQueries/setQueryData from a socket — never a hand-rolled setInterval poll. Context via a createSafeContext factory that throws without a provider.

Read the full file on GitHub · 44 lines

Changes

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.

  1. 12d ago First seen · 44 lines · 46 tokens per session scan A a31d3cad6a2e

Subscribe to this mod's changes

agent-skills-conventions is a skill published in the GitHub repository MohammadShehadeh/agent-skills (2 stars, last pushed 28d ago), licensed MIT. It adds 46 tokens to every session and 2,121 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

custom-features

Author a TanStack Table v9 feature plugin across every FeatureMap and API installation surface: state, options, column definitions, table, column, row, cell, header, row-model functions/caches, defaults, prototypes, and table/row/column instance data lifecycles. Load for initTableInstanceData, resetTableInstanceData…

TanStack/table · 93 tokens

frontend-conventions

Coding conventions, architecture patterns, and testing rules for the SkillHub React frontend. Ensures agents follow Feature-Sliced Design and use the generated OpenAPI types.

iflytek/skillhub · 36 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

typescript-react

Apply, review, and explain React conventions from the TypeScript Style Guide. Use automatically for TypeScript and TSX tasks involving prop-derived state, prop typing, component responsibilities, data flow, compound components, or client and server state.

mkosir/typescript-style-guide · 50 tokens

electron-dev

Electron desktop apps with React, TypeScript, and Vite. Use for IPC, window/tray, PTY terminals, WebRTC, and packaging.

jamditis/claude-skills-journalism · 34 tokens

typescript-rules

React/TypeScript frontend development rules including type safety, component design, state management, and error handling. Use when implementing React components, TypeScript code, or frontend features.

shinpr/claude-code-workflows · 39 tokens