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,099 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.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.svg" alt="Measured on agentmods" 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,099 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.02099
Opus 5 $0.00023 $0.01050
Sonnet 5 $0.00009 $0.00420
Haiku 4.5 $0.00005 $0.00210

Measured 8d ago against content hash f4a37c61136c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 8d 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 · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 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 wedgedremote: 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 · 185 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. 8d 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 (353 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 2,099 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

comet-safe-delivery

A Chinese-language procedure for safely delivering specified Comet changes through Git. It covers checking worktrees and unrelated edits, staging exact files, validating hooks, and authorized commits or pushes.

rpamis/comet · 78 tokens

changelog

Auto-generates a changelog from git commits, sprint data, and design documents. Produces both internal and player-facing versions.

Donchitos/Claude-Code-Game-Studios · 29 tokens

close-task-commit-push-pr

Close the active backlog task (detected from branch name), commit all changes, push to remote, and open a pull request. Use when the user says "close task and ship it", "close task commit push pr", or invokes /close-task-commit-push-pr.

devoxx/DevoxxGenieIDEAPlugin · 64 tokens

git-workflow

Guides you through Git workflows — branching strategies, commit conventions, merge conflict resolution, and release management. Use when working with Git repositories or when the user asks about version control best practices.

ownpilot/OwnPilot · 42 tokens

development-workflow

Detailed development workflow with modular patterns for git, review, testing, and deployment.

athola/claude-night-market · 20 tokens