common-rules

common-rules is a cursor rule for Cursor from tienan92it/binance-mcp. It costs 891 tokens per session, scanned A, original, MIT.

A set of coding rules covering planning, design, implementation, research, and verification. It encourages clear interfaces, small components, and checking unfamiliar libraries before use.

In plain words
What is it for?
Use it when planning or building scripts, libraries, user interfaces, or other software. It helps break work into smaller parts and define how components should interact.
Why use it?
It reduces misunderstandings, accidental assumptions, and code that is difficult to test or maintain. It gives coding tasks a consistent process from requirements through implementation.

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/tienan92it/binance-mcp/common-rules
Clone the repo
git clone --depth 1 https://github.com/tienan92it/binance-mcp

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 common-rules

README.md
[![agentmods](https://agentmods.dev/badge/rules/tienan92it/binance-mcp/common-rules.svg)](https://agentmods.dev/rules/tienan92it/binance-mcp/common-rules)
Your own site
<a href="https://agentmods.dev/rules/tienan92it/binance-mcp/common-rules"><img src="https://agentmods.dev/badge/rules/tienan92it/binance-mcp/common-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 891 This file is loaded in full into every session.
When invoked 891 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.00891 $0.00891
Opus 5 $0.00445 $0.00445
Sonnet 5 $0.00178 $0.00178
Haiku 4.5 $0.00089 $0.00089

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

Security

Grade A, and why

common-rules 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 3d 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/common-rules.mdc · 65 lines

How it starts

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

I. Planning & Design Phase (Before Coding)

  1. Understand Goal & Context:
    • Thoroughly grasp the purpose and requirements of the task.
    • Ask clarifying questions if the request is ambiguous, incomplete, or could be interpreted in multiple ways. This is crucial to prevent incorrect assumptions that lead to flawed code.
    • Consider the context (e.g., script, library, UI) to apply appropriate rigor.
  2. Top-Down Design:
    • Start with a high-level overview.
    • Define the overall architecture, identifying key components and their interactions.
  3. Interface-First Design:
    • Define clear, simple, and stable interfaces for components before implementation.
    • Specify: Inputs (types, constraints), Outputs (types), Pre/Post-conditions, Expected behavior, Side effects.
    • Design for loose coupling and high cohesion.
  4. Decomposition:
    • Break the task into the smallest logical, independent subtasks (functions/methods/modules).
    • Ensure clear boundaries and responsibilities for each unit to facilitate testing and maintenance. II. Implementation Phase (Writing Code)
  5. Prioritize Research & Verification:
    • CRITICAL: If unfamiliar with a library, framework, API, function, method, or feature, stop and verify its existence and usage.
    • Consult Official Documentation First: Prioritize official documentation or highly reputable sources for verification.
    • Verify Signatures & Parameters: Double-check function/method names, parameter names, types, and return values.
    • Do Not Invent: Never invent functions, methods, classes, parameters, or API endpoints if they cannot be verified through reliable sources. It is better to state the inability to fulfill the request accurately or ask for more information than to generate potentially incorrect code.
    • Prefer Stable & Documented Features: Use well-established, documented features over experimental or potentially deprecated ones unless specifically requested and verified.
  6. Generate Incrementally & Verify Steps (for complex tasks):
    • For complex requests, generate code in smaller, logical increments.
    • Mentally (or actually, if possible) verify each step or snippet before proceeding to the next. Ensure the generated code aligns with verified information and the overall goal.
  7. Follow Conventions & Standards:
    • Strictly adhere to language-specific conventions (e.g., PEP 8 for Python) for naming, formatting, etc.
    • Use linters/formatters where possible.
  8. Write Clean, Readable, Maintainable Code:
    • Prioritize simplicity and clarity (KISS). Avoid unnecessary complexity.
    • Use meaningful and descriptive names.
    • Use named constants instead of magic numbers/strings.
  9. Apply Design Principles & Patterns Wisely:
    • Implement SOLID principles where appropriate.
    • Use design patterns when they solve a relevant problem effectively, but avoid over-engineering.
  10. Robust Error Handling & Logging:
    • Implement comprehensive error handling (e.g., exceptions, checks). Handle expected errors gracefully.
    • Integrate sensible logging using appropriate levels (DEBUG, INFO, WARNING, ERROR).
  11. Testing:
    • Write unit tests for individual components, covering core logic and edge cases.
    • Consider integration tests to verify component interactions.
  12. Security:
    • Be mindful of potential security vulnerabilities (input validation, data handling, etc.). Sanitize inputs.
  13. Performance:
    • Write efficient code, but avoid premature optimization. Use appropriate data structures/algorithms. Profile if necessary after ensuring correctness. III. Documentation & Explanation
  14. Meaningful Comments:
    • Comment code logically, explaining the "why" (intent, trade-offs) rather than just the "what".
    • Explain complex logic, assumptions, or workarounds.
    • If uncertainty exists about a specific API usage despite research, note it in the comments.
  15. Component Summaries (SUMMARY.md):
    • For each significant new module/component, create a SUMMARY.md in its folder.

Read the full file on GitHub · 65 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. 3d ago First seen · 65 lines · 891 tokens per session scan A 3ad035232ba8

Subscribe to this mod's changes

common-rules is a cursor rule published in the GitHub repository tienan92it/binance-mcp (20 stars, last pushed 1y ago), licensed MIT. It adds 891 tokens to every session, about $0.0045 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-30.