Borrowing it
Nothing to install: this file belongs to TrainLCD/StationAPI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/TrainLCD/StationAPI/dev/.claude/skills/create-pr/SKILL.mdgit clone --depth 1 https://github.com/TrainLCD/StationAPIWrote 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/trainlcd/stationapi/create-pr)<a href="https://agentmods.dev/skills/trainlcd/stationapi/create-pr"><img src="https://agentmods.dev/badge/skills/trainlcd/stationapi/create-pr/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/trainlcd/stationapi/create-pr"><img src="https://agentmods.dev/badge/skills/trainlcd/stationapi/create-pr.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.00061 | $0.06496 |
| Opus 5.5 | $0.00024 | $0.02598 |
| Sonnet 5.5 | $0.00012 | $0.01299 |
| Haiku 4.5 | $0.00006 | $0.00650 |
Grade A, and why
create-pr 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 1mo 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 — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
create-pr
このリポジトリの PR 作成手順を一本化したスキル。.github/pull_request_template.md を厳守し、Assignee・変更の種類・テスト欄を自動で組み立てる。
入力(呼び出し元が指定)
すべて任意。未指定なら下の既定値・推論で埋める。推論結果に不安があるとき(例: 多数のコミットで方向性がバラバラ)はユーザーに確認してから進める。
| 項目 | 既定値 / 推論元 |
|---|---|
base |
リポジトリの既定ブランチ(gh repo view --json defaultBranchRef -q .defaultBranchRef.name、StationAPI では通常 dev) |
head |
カレントブランチ(git rev-parse --abbrev-ref HEAD)。出力が HEAD(detached HEAD)のとき、または base と同じブランチのときは自動選択せず、手順 1 で切り出す |
title |
下の「タイトル推論ルール」参照 |
summary |
空なら「概要」「変更内容」本文はテンプレのコメントのみ残す |
related_issue |
ユーザー入力を最優先。指定が #N(数値のみ)なら Closes #N、Closes #N / Fixes #N / Refs #N 形式ならその接頭語を保って出力。related_issue が空のときに限り、コミット件名から Closes #N / Fixes #N / Refs #N を抽出(接頭語を維持。#N 単体表記なら Closes を補う)。両方とも見つからなければ節のコメントのみ |
skip_checks |
false(PR本文「テスト」節のチェック欄 3 項目を ON)。true なら全 OFF。本文表示のみを制御するフラグで、Step 1 の cargo fmt / clippy / test の実際の実行は保証しない(実行可否は「コードに変更があるか」で決める)。Step 1 で cargo チェックを実行していない(=コード/データ変更なし)ケースでは、skip_checks の値に関わらず 3 項目すべて OFF にする |
labels |
文字列配列、または未指定。通常は未指定で OK(.github/workflows/pr_labeler.yml がブランチ名と変更ファイルから自動付与する)。手動指定が必要な場合は gh pr create --label <name> で渡す(作成後に gh pr edit --add-label すると pull_request: opened トリガのワークフローに間に合わないため、必ず gh pr create 時に渡す) |
タイトル推論ルール
origin/<base>..origin/<head> のコミット件名を対象に、以下を順に試す:
- コミット 1 件のみ: その件名をそのまま使う。
- コミット複数・共通テーマあり: 最新コミットの件名、もしくは件名群を要約した日本語の単文を使う。
- ブランチ名が
feature//fix//data//chore//release/で始まる: プレフィックスを取り除き、残りのkebab-caseを日本語や自然文に整える。確信が持てないときは整形せずブランチ名のまま使ってよい。 - どれでも決まらない: 最新コミット件名を採用し、「このタイトルで作成してよいか」をユーザーに確認する。
このリポジトリの直近 PR タイトル(例: 近鉄生駒鋼索線 鳥居前駅と近鉄生駒駅をグループ接続、京急本線 line_symbol2_colorのコードが違う)に倣い、簡潔な日本語の単文に整形する。Conventional Commits プレフィックス(fix: feat: など)は基本的に剥がす。整形時は意味を変えないこと。
前提条件
- カレントディレクトリが
git rev-parse --show-toplevelで解決できるリポジトリ内。 ghCLI が認証済みで、Python 3 がある(prepare.pyは標準ライブラリしか使わない)。headブランチが origin に push 済み。未 push の場合はユーザーに push の可否を確認する(勝手に push しない)。未 push かどうかはprepare.pyがローカルと origin の commit ID を突き合わせて検出する。- ref の検証・解決、差分の取得、変更の種類の判定は
prepare.pyに任せ、シェルで書き直さない。prepare.pyは git と gh をシェルを通さずに起動する。そのため'/$( )/;を含む ref 名が実行されることも、zsh が"$BASE_REF:refs/..."の:rを修飾子として展開して ref を壊すこともない。スキル本文に位置引数($と数字)を書くと、Claude Code がスキルを読み込む時点で呼び出し時の引数に置き換えるので、シェル断片でも使わない。
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.
- 1mo ago Changed · -98 lines eee15f4f5d97
- 1mo ago Changed · -10 lines a9baf34bf6cc
- 2mo ago First seen · 321 lines · 61 tokens per session scan A 26dbe322d697
create-pr is a skill published in the GitHub repository TrainLCD/StationAPI (14 stars, last pushed 4d ago), licensed MIT. It adds 61 tokens to every session and 6,496 once invoked, about $0.0002 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-08-31.
Other skills, from other repositories
github-openapi-skill
Operate GitHub REST API through UXC with the official OpenAPI schema, explicit gh-to-uxc auth import, and read-first guardrails for repo, issue, pull request, and event workflows.
api-integration-architect
Design, implement, debug, and optimize API integrations with expert-level patterns for REST, GraphQL, webhooks, and authentication flows.
api-testing-patterns
Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strategies.
qa
QA test your code changes by reading your git diff, choosing the right validation path for frontend/browser and backend changes, and reporting pass/fail with evidence.
api-connector-builder
Use when writing a client for someone else's REST or GraphQL API: auth flow choice and token refresh, pagination to exhaustion, retry-with-jitter on transient failures only, rate-limit-aware throttling. NOT inbound callbacks (that is webhooks), NOT chaining services (that is automation-flows), NOT designing your own…
pr-threshold
Track commit accumulation and trigger PR when thresholds crossed.