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.
npx agentmods add instructions/sonicgarden/copy-tuner-ruby-client/claude-mdgit clone --depth 1 https://github.com/SonicGarden/copy-tuner-ruby-clientWrote 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/instructions/sonicgarden/copy-tuner-ruby-client/claude-md)<a href="https://agentmods.dev/instructions/sonicgarden/copy-tuner-ruby-client/claude-md"><img src="https://agentmods.dev/badge/instructions/sonicgarden/copy-tuner-ruby-client/claude-md.svg" alt="Measured on agentmods" 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 | $0.01005 | $0.01005 |
| Opus 5 | $0.00502 | $0.00502 |
| Sonnet 5 | $0.00201 | $0.00201 |
| Haiku 4.5 | $0.00101 | $0.00101 |
Grade A, and why
copy-tuner-ruby-client CLAUDE.md 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 5d 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 — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
CopyTuner の Ruby クライアント gem。Rails アプリの I18n を CopyTuner サーバと同期する。
コマンド
- テスト:
bundle exec rspec(単一ファイル:bundle exec rspec spec/copy_tuner_client/cache_spec.rb) - 特定の Rails バージョンでテスト:
BUNDLE_GEMFILE=gemfiles/8.0.gemfile bundle exec rspec - Lint:
bundle exec rubocop(sgcopを継承) - フロントエンドビルド:
pnpm build(開発:pnpm dev) - フロントエンド Lint/Format:
pnpm check(Biome) - gem リリース:
bundle exec rake build|install|release
Node.js / pnpm は mise(mise.toml)で管理。フロントエンドのツールチェーンは pnpm + Biome + Vite + TypeScript。
アーキテクチャ
Configuration#apply(lib/copy_tuner_client/configuration.rb)が全コンポーネントを組み立てる起点:
Client— CopyTuner サーバ / S3 との HTTP 通信Cache— Mutex で保護された blurb ストア。Hash のように振る舞う。アップロードキューを管理I18nBackend— デフォルトの I18n backend を置き換える(I18n.backend = ...)。lookup で Cache を参照Poller/ProcessGuard— バックグラウンド同期スレッド- Rack middleware
RequestSync/CopyrayMiddleware— 開発環境でのリクエスト毎同期とオーバーレイ Rails 統合は engine.rb のイニシャライザ経由(ヘルパー/SimpleForm フック、アセット precompile)。
開発スタイル
- RED/TDD で進める: 実装前に必ず失敗するテストを書き、テストが RED になることを確認してから実装する
- 新機能・バグ修正ともに「テスト追加 → RED 確認 → 実装 → GREEN」のサイクルを守る
- テストを書かずに実装を先行させない
- コメントは WHY のみ日本語で書く: 識別子やコードから読み取れる WHAT は書かない (例外: RuboCop Style/Documentation 対応でクラス/モジュール直前に追加する一行の説明コメントは、名前だけでは把握しづらいクラスの役割を一目で示す目的のため、WHAT の説明も可)
- テストの
describe/context/itの説明文は日本語で書く: 識別子(クラス名・メソッド名など)はそのまま
Gotchas
- フロントエンドは
src/*.tsを編集する。app/assets/*は Vite のビルド成果物なので直接編集しない (vite.config.ts がsrc/main.ts→app/assets/javascripts/copytuner.jsを出力)。 local_first_key_regexp— locale を除いたキー対象・lookup 時に作用(ローカル YAML 優先)。 local_first キーのアップロード抑止はCache#[]=に集約されている。- アップロード抑止の新ルールは
Cache#[]=に足す。I18nBackendの書き込み経路(lookup/default/store_item)ごとに個別ガードを足さない (理由: cache への書き込みは全経路が最終的にCache#[]=を通る単一の関門。経路ごとにガードを足すと付け忘れの穴が生まれ、同じチェックが分散して保守負担になる。実際 local_first の抑止は当初default個別に足したが穴が残り、Cache#[]=への集約に作り直した)。
Claude Code スキル
skills/copy-tuner/ に i18n キー操作支援スキルがある(SKILL.md 参照)。
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.
- 5d ago First seen · 42 lines · 1,005 tokens per session scan A 23d83e9d7b0d
copy-tuner-ruby-client CLAUDE.md is an instructions file published in the GitHub repository SonicGarden/copy-tuner-ruby-client (11 stars, last pushed today), licensed MIT. It adds 1,005 tokens to every session, about $0.0050 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.
Other instructions, from other repositories
comma copilot-instructions.md
Copilot instructions for comma-csv/comma, covering copilot instructions for comma, build, test, and lint commands, install dependencies for the base gemfile, install all appraisal gemfiles used by ci and build the gem.
Shark AGENTS.md
Instructions for kaandedeoglu/Shark, covering agents.md, positioning (keep docs/marketing consistent with this), build and development commands, building the project and build in debug mode.
metasploit-framework tests.instructions.md
Instructions for rapid7/metasploit-framework, covering rspec test instructions, conventions, running tests, test data and module specs.
rails_api_base CLAUDE.md
Instructions for rootstrap/rails_api_base, covering claude.md, what this repo is, common commands, testing notes and architecture.
ruby2d AGENTS.md
Instructions for ruby2d/ruby2d, covering ruby 2d guide for ai coding agents, testing, architecture, multi-ruby support and documentation.
nosia AGENTS.md
AGENTS.md instructions for dilolabs/nosia, covering 37signals rails configuration, tech stack, architecture, core philosophy and key commands.