coding-standards

coding-standards is a cursor rule for Cursor from zeyadelosherey/tapwisper-desktop. It costs 1,114 tokens per session, scanned A, original, MIT.

Rules for naming files and writing TypeScript, React, styling, and translated user-interface text in a project.

In plain words
What is it for?
Choosing file and variable names, defining TypeScript types, organizing React components and hooks, styling with Tailwind CSS, and adding translated interface text.
Why use it?
They give contributors one consistent way to structure and format code, which reduces avoidable differences and makes the project easier to maintain.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/zeyadelosherey/tapwisper-desktop/coding-standards
Clone the repo
git clone --depth 1 https://github.com/zeyadelosherey/tapwisper-desktop

Made for: Cursor.

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 coding-standards

README.md
[![agentmods](https://agentmods.dev/badge/rules/zeyadelosherey/tapwisper-desktop/coding-standards.svg)](https://agentmods.dev/rules/zeyadelosherey/tapwisper-desktop/coding-standards)
Your own site
<a href="https://agentmods.dev/rules/zeyadelosherey/tapwisper-desktop/coding-standards"><img src="https://agentmods.dev/badge/rules/zeyadelosherey/tapwisper-desktop/coding-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,114 This file is loaded in full into every session.
When invoked 1,114 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01114 $0.01114
Opus 5 $0.00557 $0.00557
Sonnet 5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

Measured 5d ago against content hash 0458693741e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-standards 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 5d 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.

.cursor/rules/coding-standards.mdc · 116 lines

How it starts

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

Coding Standards

File Naming

  • kebab-case for all files: my-component.tsx, use-audio.ts, ai-router.ts
  • PascalCase for React component exports: export function MyComponent()
  • camelCase for hooks, utilities, and variables: useAudio, formatDuration

TypeScript

  • Never use any -- use proper type definitions
  • Use interface for object shapes, type for unions and intersections
  • Define shared types in src/renderer/models/ or src/renderer/types/
  • Prefix unused function parameters with _ (e.g. _event)

React

  • Functional components only -- no class components
  • Extract reusable logic into custom hooks in src/renderer/hooks/
  • Keep components focused; split large ones into smaller pieces
  • Use React.lazy() for overlay components loaded on demand

Styling

  • Use Tailwind CSS utility classes -- no custom CSS unless necessary
  • Theme-aware colors via CSS variables (defined in src/renderer/styles/globals.css)
  • Custom theme values go in tailwind.config.js

Internationalization

  • All user-facing strings must use useTranslation() from react-i18next
  • Add translations to every locale file in src/renderer/i18n/ (en, ar, de, es, fr, it)

Formatting (Prettier)

These rules are enforced by Prettier -- do not deviate:

  • No semicolons
  • Single quotes
  • No trailing commas
  • 100 character line width
  • 2-space indentation
  • LF line endings
  • Always use parentheses around arrow function parameters

Linting (ESLint)

  • @typescript-eslint/no-explicit-any: warn
  • @typescript-eslint/no-unused-vars: warn (ignored if prefixed with _)
  • no-console: warn -- avoid console.log in production code (stripped in prod builds)

Git Branching Strategy (Git Flow)

Primary Branches

Branch Purpose Merges Into
main Production-ready releases. Always stable and tagged. --
develop Integration branch for features. All new work starts here. main (via release/*)

Read the full file on GitHub · 116 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. 5d ago First seen · 116 lines · 1,114 tokens per session scan A 0458693741e5

Subscribe to this mod's changes

coding-standards is a cursor rule published in the GitHub repository zeyadelosherey/tapwisper-desktop (5 stars, last pushed 4mo ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0056 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.