coding-standards

coding-standards is a cursor rule for Cursor from gosha70/code-copilot-team. It costs 1,315 tokens per session, scanned A, original, MIT.

A set of coding rules for writing and reviewing software, including quality checks, forbidden patterns, and self-review steps.

In plain words
What is it for?
It is for checking code before a commit or merge, enforcing lint and test standards, and guiding safe handling of configuration, errors, imports, and logging.
Why use it?
It helps prevent common problems such as unused code, exposed secrets, inconsistent configuration, and changes merged without enough testing.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It is for checking code before a commit or merge, enforcing lint and test standards, and guiding safe handling of configuration, errors, imports, and logging.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/gosha70/code-copilot-team/coding-standards
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.

Clone the repo
git clone --depth 1 https://github.com/gosha70/code-copilot-team

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/gosha70/code-copilot-team/coding-standards/github.svg)](https://agentmods.dev/rules/gosha70/code-copilot-team/coding-standards)
Your own site
<a href="https://agentmods.dev/rules/gosha70/code-copilot-team/coding-standards"><img src="https://agentmods.dev/badge/rules/gosha70/code-copilot-team/coding-standards/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 coding-standards

Your own site · 80×15
<a href="https://agentmods.dev/rules/gosha70/code-copilot-team/coding-standards"><img src="https://agentmods.dev/badge/rules/gosha70/code-copilot-team/coding-standards.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,315 This file is loaded in full into every session.
When invoked 1,315 The same file — it is already loaded in full.
Security scan A 1 finding. 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.01315 $0.01315
Opus 5.5 $0.00526 $0.00526
Sonnet 5.5 $0.00263 $0.00263
Haiku 4.5 $0.00131 $0.00131

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

Security

Grade A, and why

coding-standards scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Execute your own test plan.** If you write test commands (curl, bash, docker, etc.) as part of a build summary, run every command yourself and report results before declaring done.
adapters/cursor/.cursor/rules/coding-standards.mdc · 54 lines

How it starts

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

Coding Standards

Applied to all code generation and review sessions.

Quality Gates (enforce before merge/commit)

  • Lint errors: 0
  • Test coverage: >= 80% (critical paths >= 95%)
  • No commented-out code
  • No unused imports or dead code
  • No hard-coded secrets or credentials

Prohibited Patterns

  • No hard-coded structured data (JSON/XML literals) inside source — use config files or env vars. This includes default values on Python dataclasses/Pydantic models and equivalents in other languages — define only the schema in code; put actual defaults in config/defaults.yaml (or equivalent). A config loader reads the file and populates the schema; env vars or override files layer on top.
  • Configuration before constants: a schema default, fallback default, or operator-tunable value stays in configuration (the rule above), even when an in-code value would be shorter. A tiny in-code default is not the simpler choice when configuration policy applies. Named constants are for fixed internal values that genuinely cannot be configured at runtime.
  • No magic numbers or strings — use named constants. When a string key crosses a module boundary (config key, variable name, prompt template name), define it as a constant in the lowest common ancestor package and import it everywhere. A hardcoded string in two modules is a silent breakage waiting to happen.
  • No secrets in source — use env vars or a secrets manager.
  • No print() debugging in committed code — use structured logging.
  • No wildcard imports.
  • No bare except / catch without specific exception types.
  • No SQL string concatenation — use parameterized queries.

Verification Discipline

  • Never suggest skipping a failing verification step. When a test, build, lint check, Docker build, or script execution fails, diagnose and fix the issue. Do not suggest workarounds that bypass the deliverable.
  • Execute your own test plan. If you write test commands (curl, bash, docker, etc.) as part of a build summary, run every command yourself and report results before declaring done.
  • Build it, run it. Any executable artifact you create (Dockerfile, shell script, CI workflow, launcher flag) must be executed at least once before committing. Syntax validity alone is not sufficient.
  • Check every command a page shows. A command in documentation gets the cheapest real check that applies before it is committed (pip install --dry-run / npm install --dry-run for install lines, --help or --dry-run for CLI lines, a parse for config blocks); "not executed in CI" is a label, not an exemption. The table of checks is in infra-verification, "Shown Commands Are Checked".
  • Re-review after fix. After applying a fix for a bug flagged in code review or a reviewer note, run the review process again (e.g., /team-review or the equivalent specialist agent) before declaring done. Do not just apply the fix and move on — the re-review may catch secondary issues exposed by the fix itself.
  • Confirm against origin before declaring done. Run scripts/check-origin-alignment.sh <feature-id> before presenting any feature for review. Exit ≥ 2 means the working artifact has drifted from the user's origin and you must surface the three-resolution escalation (rescope / restart / document divergence) — do not proceed. See shared/skills/origin-confirmation/SKILL.md for the full protocol.

Read the full file on GitHub · 54 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 Changed · +1 lines · +65 tokens per session 863859006d22
  2. 22d ago Changed · +2 lines · +210 tokens per session 1e10e750e920
  3. 3mo ago First seen · 51 lines · 1,040 tokens per session scan A 7a51402ca1a0

Subscribe to this mod's changes

coding-standards is a cursor rule published in the GitHub repository gosha70/code-copilot-team (10 stars, last pushed today), licensed MIT. It adds 1,315 tokens to every session, about $0.0053 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

coding-standards compared with cursor rules from other repositories

coding-standards next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coding-standardsgosha70/code-copilot-teamCursor rule10todayMITA1,315Cursor
cursor-rule.snippetonesimplecode/agent-engineering-standardsCursor rule43mo agoMITA14Cursor
ponytailDietrichGebert/ponytailCursor rule202k9d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor