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.
git clone --depth 1 https://github.com/naotama2002/mcp-remote-goWrote 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.
[](https://agentmods.dev/rules/naotama2002/mcp-remote-go/001_bestpractices_common)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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ワークフロー
このドキュメントでは、コミットとプルリクエストの作成に関するベストプラクティスを説明します。
コミットの作成
コミットを作成する際は、以下の手順に従います:
-
変更の確認
# 未追跡ファイルと変更の確認 git status # 変更内容の詳細確認 git diff # コミットメッセージのスタイル確認 git log -
変更の分析
- 変更または追加されたファイルの特定
- 変更の性質(新機能、バグ修正、リファクタリングなど)の把握
- プロジェクトへの影響評価
- 機密情報の有無確認
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.
- 9d ago First seen · 305 lines · 3,284 tokens per session scan A 73786985bd5c
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.
Other cursor rules, from other repositories
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.