001_bestPractices_common

001_bestPractices_common is a cursor rule for Cursor from naotama2002/mcp-remote-go. It costs 3,284 tokens per session, scanned A, original, MIT.

A set of Cursor coding rules written in Japanese that emphasizes communication, avoiding duplicate implementations, small responsibilities, readable design, and protected environment files.

In plain words
What is it for?
Use it in projects that require Japanese communication, checks for existing similar code before implementation, simple maintainable design, and brief updates to CHANGELOG.md or documentation when work is finished.
Why use it?
It gives the agent project conventions for making changes safely and consistently, including a ban on creating, reading, editing, or deleting .env files.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it in projects that require Japanese communication, checks for existing similar code before implementation, simple maintainable design, and brief updates to CHANGELOG.md or documentation when work is finished.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/naotama2002/mcp-remote-go/001_bestpractices_common
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/naotama2002/mcp-remote-go

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 001_bestPractices_common

README.md
[![agentmods](https://agentmods.dev/badge/rules/naotama2002/mcp-remote-go/001_bestpractices_common/github.svg)](https://agentmods.dev/rules/naotama2002/mcp-remote-go/001_bestpractices_common)
Your own site
<a href="https://agentmods.dev/rules/naotama2002/mcp-remote-go/001_bestpractices_common"><img src="https://agentmods.dev/badge/rules/naotama2002/mcp-remote-go/001_bestpractices_common/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 001_bestPractices_common

Your own site · 80×15
<a href="https://agentmods.dev/rules/naotama2002/mcp-remote-go/001_bestpractices_common"><img src="https://agentmods.dev/badge/rules/naotama2002/mcp-remote-go/001_bestpractices_common.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,284 This file is loaded in full into every session.
When invoked 3,284 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.03284 $0.03284
Opus 5 $0.01642 $0.01642
Sonnet 5 $0.00657 $0.00657
Haiku 4.5 $0.00328 $0.00328

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

Security

Grade A, and why

001_bestPractices_common 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 9d 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/.cursor/rules/001_bestPractices_common.mdc · 305 lines

How it starts

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

基本原則

以下のルールを遵守して下さい。

1. コミュニケーション

  • ユーザーとのコミュニケーションは常に日本語でお願いします。

2. 重複実装の防止

  • 実装前に以下の確認を行ってください:
    • 既存の類似機能の有無
    • 同名または類似名の関数やコンポーネント
    • 重複するAPIエンドポイント
    • 共通化可能な処理の特定

3. 単一責任の原則

  • 関数が長くなりすぎた場合は、小さな関数に分割して下さい。
  • ファイルが大きくなりすぎた場合は、小さなファイルに分割して下さい。

4. 参照禁止ファイル

  • .envファイルの作成・読込・編集・削除は厳禁です。ユーザーに作業を促して下さい。
  • .envファイルはプロジェクトルートに配置しています。

5. 終わるときのドキュメントの更新について

  • CHANGELOG.md に追記する
  • これはなるべく簡略にかく
  • docs 以下を必要であれば更新する
  • 図が必要ならば mermaid で書く

開発原則

コード品質と保守性を最優先とする。

1. 基本原則

  • コードは設計書である: 可読性の高いコードを記述し、適切なコメントを追加する。
  • コードは必ず変更される: 変更容易性を考慮した設計を行う。

2. 設計・実装指針

  • KISS (Keep It Simple, Stupid): シンプルで直感的な設計を心がける。
  • DRY (Don't Repeat Yourself): コードの重複を排除し、適切に抽象化する。
  • YAGNI (You Ain't Gonna Need It): 未来の要件を過剰に考えず、必要な機能のみを実装する。
  • SLAP (Single Level of Abstraction Principle): 1つの関数やクラス内で異なる抽象度のコードを混在させない。

3. アーキテクチャ原則

  • OCP (Open-Closed Principle): 既存コードを変更せずに拡張できる設計を行う。
  • 関心の分離 (Separation of Concerns): 各コンポーネントは単一の責務を持つように設計する。
  • インタフェースと実装の分離: 具象クラスではなく、インタフェースや抽象クラスを利用する。
  • 変更容易性 (Modifiability): 将来の変更を見越した拡張しやすいコードを書く。

4. UNIX哲学の適用

  • 小さくシンプルな関数・クラスを設計する: 1つの関数は1つの仕事をする (1つ1仕事の原則)。
  • データは可能な限りテキスト形式で扱う: 可読性と移植性を向上させる。
  • フィルタのようなモジュール設計: 小さなコンポーネントを組み合わせて強力なシステムを構築する。

5. コード品質の維持

  • ボーイスカウトの規則: 変更時には、コードの品質を向上させる。
  • エゴレスプログラミング: 他者が理解しやすいコードを書くことを優先する。
  • 直交性の確保: 各モジュールが独立して動作するように設計する。

6. アンチパターンの回避

  • 割れ窓理論の回避: 乱雑なコードが発生したら放置せず修正する。
  • ヤクの毛刈りに注意: 本質的でない作業に時間を浪費しない。
  • セカンドシステム症候群の回避: 過度な機能追加を防ぎ、シンプルな設計を維持する。

7. テストと品質保証

  • テスト容易性 (Testability): すべてのコードはテスト可能であるべき。
  • TDD (Test-Driven Development) を推奨: 可能な限り、テストを先に書く。
  • 防御的プログラミング: 予期しない入力や異常系に対する適切なハンドリングを行う。

Gitワークフロー

このドキュメントでは、コミットとプルリクエストの作成に関するベストプラクティスを説明します。

コミットの作成

コミットを作成する際は、以下の手順に従います:

  1. 変更の確認

    # 未追跡ファイルと変更の確認
    git status
    
    # 変更内容の詳細確認
    git diff
    
    # コミットメッセージのスタイル確認
    git log
    
  2. 変更の分析

    • 変更または追加されたファイルの特定
    • 変更の性質(新機能、バグ修正、リファクタリングなど)の把握
    • プロジェクトへの影響評価
    • 機密情報の有無確認

Read the full file on GitHub · 305 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. 9d ago First seen · 305 lines · 3,284 tokens per session scan A 73786985bd5c

Subscribe to this mod's changes

001_bestPractices_common is a cursor rule published in the GitHub repository naotama2002/mcp-remote-go (6 stars, last pushed today), licensed MIT. It adds 3,284 tokens to every session, about $0.0164 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.