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 skills/tk0miya/skills/init-ruby-projectnpx skills add tk0miya/skills --skill init-ruby-projectgit clone --depth 1 https://github.com/tk0miya/skillsWhat 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.00020 | $0.06595 |
| Opus 5 | $0.00010 | $0.03298 |
| Sonnet 5 | $0.00004 | $0.01319 |
| Haiku 4.5 | $0.00002 | $0.00660 |
Grade B, and why
init-ruby-project scanned grade B with 1 finding 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 yesterday.
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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
/.claude/settings.local.json How it starts
The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.
init-ruby-project
Ruby プロジェクトの初期セットアップを自動化するスキルです。
事前チェック(自動実行)
実行環境
以下を実行し、gh が認証済みか、Bundler が 4.0.13 以降かをチェックする。
gh auth status
bundle --version
4.0.13 未満の Bundler は Phase 1 で付与する cooldown(公開直後の gem を一定期間使わない
供給チェーン対策)を黙って無視するため、cooldown の効かないプロジェクトができあがる。
その場合は gem install bundler で更新してから再実行するようユーザーに伝えて中断する
(ユーザーの環境を断りなく書き換えない)。
カレントディレクトリの状況
このスキルはカレントディレクトリをプロジェクトディレクトリとして扱う。ディレクトリの作成も
bundle gem による雛形生成も行わない(gem を作るなら、先にユーザーが bundle gem を実行して
そのディレクトリでこのスキルを呼ぶ)。初期セットアップの一部が済んでいることがあるので、
カレントディレクトリを調べてどこまで済んでいるかを判定する。
ls -1d .git Gemfile *.gemspec 2>/dev/null
[[ -e .git ]] && git remote get-url origin 2>/dev/null
[[ -e .git ]] && git rev-parse --verify -q HEAD && git status --porcelain
| 判定 | 条件 | 影響 |
|---|---|---|
| gem のプロジェクト | *.gemspec がある |
以降の各フェーズで gem 用の分岐を選ぶ |
| リポジトリ作成済み | カレントディレクトリに .git があり、origin がある |
Phase 3 の gh repo create をスキップする |
origin を見る前にカレントディレクトリの .git を確認するのは、別のリポジトリの配下に作った
ディレクトリで実行したときに、親リポジトリの origin を拾って「作成済み」と誤判定しないため
(worktree や submodule では .git がファイルなので、ディレクトリかどうかでは判定しない)。
コミットが 1 つ以上あるリポジトリで git status --porcelain に未コミットの変更があれば、Phase 3 の
コミットにユーザーの作業を巻き込むことになるので、この時点でユーザーに伝えて、先に片付けるか承知の
うえで進めるかを確認する。履歴がまだ無い場合(手動で bundle gem を実行した直後など)は、雛形が
まるごと未コミットなのが当たり前なので確認しない。
想定している典型シナリオは次の 4 つ。
- 手動で
bundle gemを実行し、そのディレクトリでこのスキルを実行する(gem・履歴なし・ リポジトリ未作成) - GitHub で作ったリポジトリを clone したディレクトリでこのスキルを実行する(gem ではない・ 履歴あり・リポジトリ作成済み)
- 作ったばかりの空のディレクトリでこのスキルを実行する(gem ではない・履歴なし・ リポジトリ未作成)
- ドキュメントだけ、あるいは他言語で書かれた既存プロジェクトに Ruby を足す(gem ではない・ 履歴あり・リポジトリ作成済み。Ruby 以外のファイルが既にある)
プロジェクト名は *.gemspec のベース名 → origin のリポジトリ名 → カレントディレクトリ名の順で
決める。判定はディレクトリの中身から決まるもので、名前もカレントディレクトリがプロジェクト
ディレクトリである以上そこから決まるので、確認は求めない。判定結果と決定したプロジェクト名は
Phase 0 の質問と一緒に伝える(何をスキップして何の名前で進むかが分かるように)。
Phase 0: ユーザーへの確認(未確定の項目だけを一度に質問する)
事前チェックで確定しなかった項目だけをまとめて質問し、回答を得てから次のフェーズに進む。
| 項目 | 質問する条件 |
|---|---|
| 対象 Ruby バージョン(例: 3.3) | 常時 |
| サポートする Ruby バージョン一覧(例: 3.2, 3.3, 3.4) | gem のプロジェクトの場合 |
| GitHub リポジトリを今すぐ作成するか(yes / no)。yes の場合は visibility(public / private) | リポジトリ作成済みでない場合 |
What ships with it
18 files 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.
- .rspec 48 B
- add-required-checks.sh 5.4 KB runs code
- claude-settings.json 1022 B
- dependabot.yml 344 B
- hooks/claude-code-web-session-start.sh 420 B runs code
- hooks/pre-commit-check.sh 2.2 KB runs code
- hooks/protect-sig-files.sh 1.7 KB runs code
- hooks/rbs-inline.sh 2.5 KB runs code
- Rakefile 1.2 KB
- rubocop.yml 1.2 KB
- spec/spec_helper.rb 127 B runs code
- Steepfile 133 B
- vscode/extensions.json 92 B
- vscode/settings.json 168 B
- workflows/ci-gem.yml 652 B
- workflows/ci.yml 533 B
- workflows/rbs_collection.yml 1.2 KB
- workflows/release.yml 1.0 KB
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.
- yesterday First seen · 414 lines · 20 tokens per session scan B 2730b0428541
init-ruby-project is a skill published in the GitHub repository tk0miya/skills (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 20 tokens to every session and 6,595 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
agent-host-chat-contributions
Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.