comments

comments is a cursor rule for Cursor from afaraha8403/balakit. It costs 617 tokens per session, scanned A, original, MIT.

A set of rules for writing comments and other code documentation. It says to explain non-obvious reasons and constraints, rather than repeating what the code already shows.

In plain words
What is it for?
Use it when adding or reviewing code comments, documenting workarounds, recording hidden constraints, or marking technical debt and edge cases.
Why use it?
It keeps code readable by preventing unnecessary comments, outdated history notes, and commented-out code. It also provides standard tags for bugs, planned work, and risks.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when adding or reviewing code comments, documenting workarounds, recording hidden constraints, or marking technical debt and edge cases.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/afaraha8403/balakit/comments
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/afaraha8403/balakit

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 comments

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/afaraha8403/balakit/comments"><img src="https://agentmods.dev/badge/rules/afaraha8403/balakit/comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 617 This file is loaded in full into every session.
When invoked 617 The same file — it is already loaded in full.
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.00617 $0.00617
Opus 5.5 $0.00247 $0.00247
Sonnet 5.5 $0.00123 $0.00123
Haiku 4.5 $0.00062 $0.00062

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

Security

Grade A, and why

comments 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 13d 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.

plugins/balakit-core/rules/comments.mdc · 57 lines

How it starts

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

Comments & Documentation

Default to zero comments

Names document code. Add an inline comment only when the WHY is non-obvious:

  • A hidden constraint not visible in the code.
  • A subtle invariant a reader might violate.
  • A workaround for a specific bug (link the upstream issue).
  • Behavior a competent reader would find surprising.

If removing the comment wouldn't confuse a future reader, delete it.

Never write

  • Restatements of the code — increment counter above counter++.
  • Task / ticket references — added for CAN-123, fixes billing bug.
  • Caller references — used by the contacts module.
  • Change history — was async before, removed old logic.
  • Commented-out code.
  • Banner comments — === SECTION ===.

Authorized Tracking Tags (Exception)

You MUST use the following authorized tags to track technical debt and risks (as required by the Global Rules), using your language's comment syntax. These should cleanly describe the issue for IDE tracking:

  • BUG: — For critical, immediate issues.
  • FIXME: — For broken code or technical debt needing refactor.
  • TODO: — For general planned work.
  • CONCERN: — For edge cases or architectural risks.
  • OPTIMIZE: — For performance improvements or clean-up tasks.

Document every exported symbol

Every part of a module's public surface — exported functions, types, classes, constants — gets a documentation comment in your language's convention (doc comment, docstring, etc.). Internal/private helpers only get one when the WHY is non-obvious.

  • The first line is a one-sentence summary ending with a period.
  • Document a parameter only when its name isn't self-explanatory. Never restate information the signature already carries (e.g. the type, in a typed language).
  • Document the return only when it isn't obvious from the function name.
  • Document every error/exception the function can raise as part of its contract.
  • Add an example for non-trivial public APIs and shared utilities.
  • Keep noun clusters ≤3 words and use one canonical term per entity across the module (zero synonym rotation).
  • Format sharp-edge safety callouts as CAUTION: or WARNING: followed by a direct command, then the specific data-loss or security risk.
  • Don't duplicate what the language already expresses — let the type system, signatures, and tooling do their job.

Read the full file on GitHub · 57 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. 13d ago Changed · +2 lines · +53 tokens per session e0c746c2c830
  2. 3mo ago First seen · 55 lines · 564 tokens per session scan A b0e7a330a110

Subscribe to this mod's changes

comments is a cursor rule published in the GitHub repository afaraha8403/balakit (1 stars, last pushed 11d ago), licensed MIT. It adds 617 tokens to every session, about $0.0025 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-08-31.

Related

comments compared with cursor rules from other repositories

comments next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commentsafaraha8403/balakitCursor rule111d agoMITA617Cursor
file-organizationcoco-research/cocoCursor rule3233d agoApache-2.0A6Cursor
skill-routercoco-research/cocoCursor rule3233d agoApache-2.0A303Cursor
tf-plananmolnagpal/devops-skillsCursor rule9todayMITB4,253Cursor
clarify-firstmadebyaris/cursor-composer-rulesCursor rule32mo agoMITA21Cursor
orchestrator-mainmadebyaris/agent-orchestrationCursor rule218mo agoMITA11Cursor
tasksavedpixel/ai-agent-rules-generatorCursor rule87mo agoMITA1,949Cursor