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 skills add SonicGarden/sgcop --skill rubocop-todo-fixgit clone --depth 1 https://github.com/SonicGarden/sgcopWrote 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/skills/sonicgarden/sgcop/rubocop-todo-fix)<a href="https://agentmods.dev/skills/sonicgarden/sgcop/rubocop-todo-fix"><img src="https://agentmods.dev/badge/skills/sonicgarden/sgcop/rubocop-todo-fix/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/skills/sonicgarden/sgcop/rubocop-todo-fix"><img src="https://agentmods.dev/badge/skills/sonicgarden/sgcop/rubocop-todo-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00080 | $0.09198 |
| Opus 5.5 | $0.00032 | $0.03679 |
| Sonnet 5.5 | $0.00016 | $0.01840 |
| Haiku 4.5 | $0.00008 | $0.00920 |
Grade A, and why
rubocop-todo-fix 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 2mo 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 — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rubocop-todo-fix
rubocop --auto-gen-config で生成された .rubocop_todo.yml には、既存コードの違反が「いったん許容」
として列挙されている。これを潰していくための運用支援スキル。safe autocorrect(-a)だけで完結する
Cop はまとめてバッチ処理し、unsafe autocorrect や手動修正が必要な Cop も、挙動変更のリスクに応じた
(safe バッチより狭い)単位でバッチにまとめて潰す。
sgcop-setup が .rubocop_todo.yml を生成するところで終わるのに対し、
本スキルはその続き——生成済みの todo を実際に消化する工程——を担う。
導入先の Rails/Ruby プロジェクトで実行する(sgcop gem 本体の開発スキルではない)。
このスキルがやること / やらないこと
- やる:
.rubocop_todo.ymlから 潰す対象を選ぶ。Tier(safe autocorrect / unsafe autocorrect / 手動修正)ごとに、そのリスクに見合ったしきい値・基準で複数 Cop をバッチにまとめる。- 対象 Cop のエントリを todo から削除して 違反を再び検出される状態に戻す。
- 修正する: Tier 順(
rubocop -a→rubocop -A〈unsafe・要テスト〉→ 手動修正)でバッチを 処理する。同じ Tier のバッチはまとめて一度に適用・確認する。 - アプリ仕様上やむを得ない違反だけ、理由コメント付きで最小範囲の
Exclude/ 無効化に倒す。 - 再 rubocop で 違反ゼロを確認(挙動を変えたら関連テストだけ実行)し、必要なら
.rubocop_todo.ymlを作り直して 停止する。
- やらない:
.rubocop_todo.ymlの生成そのものはしない(sgcop-setupの担当。本スキルは「生成済みを潰す」)。- コミット / push / PR 作成はしない。 1 サイクル潰したら停止し、差分確認とコミットはユーザーに委ねる。
- Tier をまたいでバッチにしない。 safe / unsafe / 手動修正はリスクの質が異なるので、 1 回のバッチは同じ Tier の Cop だけで構成する。
なぜこの形か: 既存違反を一度に全部直すと差分が巨大化してレビュー不能になる。「潰す → ユーザーが差分を確認してコミット → 次へ」というレビュー単位の運用にすると、変更の責任範囲が 把握しやすく、挙動が変わっても切り分けやすい。一方で 1 Cop ずつ処理すると、サイクル数 (起動〜レビュー〜コミットの往復)だけが無駄に増えてしまう。そこで Tier ごとに「レビューが 破綻しない範囲」を見極めてバッチ化する:safe autocorrect は挙動を変えないので件数ベースで 最も広く(目安100件)まとめられる。unsafe autocorrect は挙動が変わりうるので、それより 狭い件数(目安30件)に抑える。手動修正はさらに読み解きコストが件数に比例しないため、 件数ではなく「性質が近い少数の Cop(目安2〜3個)」という基準でまとめる。
引数
--auto: 起動時にこの引数が渡されたら、1 サイクルをユーザー確認なしで回しきるモードに入る。 スキップするのは「進めてよいか」の確認ゲートだけで、それ以外の原則は一切変わらない:- **1 サイクル = 選んだバッチ(Tier をまたがない)**の原則、コミット・push・PR をしない原則、
サイクル完了で停止する原則は
--autoでも不変。複数サイクルの自動連続実行はしない。 - 人間の判断が要る曖昧な分岐は
--autoでも勝手に決めない(手順 5 参照)。触らず残して報告する。 - 手順 6 の関連テスト検証は
--autoでも省かない。 unsafe autocorrect を無確認で当てる分、 関連テストが挙動変更を検知する唯一の安全網になるため、むしろ飛ばしてはいけない。 - WHY: 確認ゲートは「差分が想定外に大きくならないか」「挙動変更を許容するか」を人に確かめる
ためのもの。
--autoは呼び出し側がその判断を事前に委譲した状態、と位置づける。委譲できるのは 「自動で潰してよい」判断までで、曖昧な Exclude 判断や壊れたテストの承認までは委譲されない。
- **1 サイクル = 選んだバッチ(Tier をまたがない)**の原則、コミット・push・PR をしない原則、
サイクル完了で停止する原則は
- 引数が無ければ(従来どおり)各確認ゲートでユーザーに確認する。
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 333 lines · 80 tokens per session scan A 58144f27efb0
rubocop-todo-fix is a skill published in the GitHub repository SonicGarden/sgcop (23 stars, last pushed 3d ago), licensed MIT. It adds 80 tokens to every session and 9,198 once invoked, about $0.0003 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-09-04.
rubocop-todo-fix compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rubocop-todo-fixSonicGarden/sgcop | Skill | 23 | 3d ago | MIT | A | 80 | Claude Code |
| newclacky-ai/openclacky | Skill | 1.2k | yesterday | MIT | A | 10 | Claude Code |
| dhh-rails-styledavekilleen/Dex | Skill | 522 | 2d ago | MIT | A | 115 | Claude Code |
| rspec-conventionsrootstrap/rails_api_base | Skill | 635 | 19d ago | MIT | A | 82 | Claude Code |
| ruby-patternssoftspark/ai-toolkit | Skill | 180 | today | Apache-2.0 | A | 60 | Claude Code |
| rigor-rbs-contractrigortype/rigor | Skill | 108 | yesterday | MPL-2.0 | A | 95 | Claude Code, Codex |
| ruby-rulessoftspark/ai-toolkit | Skill | 180 | today | Apache-2.0 | A | 48 | Claude Code |