kube-coder: Skill for Claude Code

.claude/skills/kc-ship-pr/SKILL.md

kc-ship-pr is a skill for Claude Code from imran31415/kube-coder. It costs 45 tokens per session (2,221 once invoked), scanned C, original, MIT.

A shipping guide for committing changes and opening a GitHub pull request from a kube-coder workspace. A pull request is a proposed change that others can review before it is merged.

In plain words
What is it for?
Use it when pushing a branch or creating, updating, and troubleshooting a pull request from the workspace.
Why use it?
It explains the workspace's GitHub credentials and the common causes of failed pushes, so changes can reach the repository safely.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

This is imran31415/kube-coder's own configuration. It tells Claude Code how to work on kube-coder itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kube-coder configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/dev/.credentials/.github-token.

Reuse

Borrowing it

Nothing to install: this file belongs to imran31415/kube-coder. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/imran31415/kube-coder/main/.claude/skills/kc-ship-pr/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/imran31415/kube-coder

Made for: Claude Code.

Wrote 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.

agentmods badge for kc-ship-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/imran31415/kube-coder/kc-ship-pr/github.svg)](https://agentmods.dev/skills/imran31415/kube-coder/kc-ship-pr)
Your own site
<a href="https://agentmods.dev/skills/imran31415/kube-coder/kc-ship-pr"><img src="https://agentmods.dev/badge/skills/imran31415/kube-coder/kc-ship-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.

agentmods 80×15 button for kc-ship-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/imran31415/kube-coder/kc-ship-pr"><img src="https://agentmods.dev/badge/skills/imran31415/kube-coder/kc-ship-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,221 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.02221
Opus 5.5 $0.00018 $0.00888
Sonnet 5.5 $0.00009 $0.00444
Haiku 4.5 $0.00005 $0.00222

Measured 1mo ago against content hash 0878b1f05ba4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

kc-ship-pr scanned grade C with 3 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

> grep github.com ~/.git-credentials

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> (`curl -H "Authorization: token $(cat /home/dev/.credentials/.github-token)"

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

FILES = subprocess.check_output(
.claude/skills/kc-ship-pr/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ship a PR from a kube-coder workspace

The only GitHub credential here is the App installation token (/home/dev/.credentials/.github-token, ghs_…). The token-refresh sidecar installs a self-refreshing global credential.helper that reads that file fresh on every call, so ordinary git push works — no Git Data API dance needed. gh api also works (it reads GITHUB_TOKEN from ~/.github-env).

There is no user-level gh auth login and no SSH key here, so do not suggest gh auth login or a fork — the App token pushes to origin directly.

If git push is wedged — remote: Invalid username or token or could not read Username — something is shadowing that helper with a point-in-time token. The token file itself is almost never the problem (curl -H "Authorization: token $(cat /home/dev/.credentials/.github-token)" https://api.github.com/user proves it in one line). Diagnose in this order:

git config --show-origin --get-all credential.helper
git config --show-origin --get-all credential.https://github.com.helper
printf 'protocol=https\nhost=github.com\n\n' | git credential fill  # vs. the token file
grep github.com ~/.git-credentials

Three known causes, all "a token frozen an hour ago":

  1. A stale baked http.<host>.extraheader in .git/config — git sends it verbatim and it shadows the helper: git config --unset-all http.https://github.com/.extraheader.
  2. A host-scoped helper chain reset (issue #454) — gh auth setup-git writes an empty helper = under [credential "https://github.com"], which clears the chain and drops the self-refreshing reader; gh auth git-credential then answers with the stale GH_TOKEN your long-lived shell captured before the last rotation. The workspace re-asserts that section every 50 min, so this self-heals — to fix it now, run python3 /github-app/github-app-token.py --configure-git (or --once, which also asks the github-app-token sidecar for a fresh token; the private key lives only in that sidecar since #558, so nothing in your shell can mint one).
  3. A stale github.com line in ~/.git-credentials (persistent on the PVC, so a captured ghs_… outlives its 1-hour validity). The daemon purges these in app mode; delete by hand if you're ahead of it.

One-shot escape hatch that bypasses all three:

git -c credential.helper= \
    -c 'credential.helper=!f() { echo username=x-access-token; echo "password=$(cat /home/dev/.credentials/.github-token)"; }; f' \
    push -u origin <branch>

Only if push is still broken after that, fall back to the Git Data API (§3b). See your github-auth memory for the full background.

Read the full file on GitHub · 195 lines

Changes

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.

  1. 1mo ago Changed · +10 lines 0878b1f05ba4
  2. 2mo ago First seen · 185 lines · 45 tokens per session scan C f4a37c61136c

Subscribe to this mod's changes

kc-ship-pr is a skill published in the GitHub repository imran31415/kube-coder (399 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 2,221 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 3 findings (reaches for credential files, makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

kc-ship-pr compared with skills from other repositories

kc-ship-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kc-ship-primran31415/kube-coderSkill3992d agoMITC45Claude Code
github-automationruvnet/rufloSkill81kyesterdayMITA61Claude Code
changelogDonchitos/Claude-Code-Game-StudiosSkill36k18d agoMITA22Claude Code
comet-safe-deliveryrpamis/cometSkill3.3kyesterdayMITA78Claude Code, Codex
coco-shipcoco-research/cocoSkill785yesterdayApache-2.0A69Claude Code
close-task-commit-push-prdevoxx/DevoxxGenieIDEAPluginSkill687yesterdayMITA64Claude Code
git-workflowjezweb/claude-skillsSkill1.1k28d agoMITA52Claude Code