Skip to content

Add .claude/skills for the two areas that punish a tidy-up - #5

Merged
gilesknap merged 2 commits into
mainfrom
add-claude-skills
Aug 15, 2026
Merged

gilesknap merged 2 commits into
mainfrom
add-claude-skills

Conversation

@gilesknap

Copy link
Copy Markdown
Member

Captures the non-obvious rules this repo runs on, as agent-readable skills plus
two environment foot-guns in CLAUDE.md.

Both skills cover the same kind of thing: a collection of rules that look
arbitrary, are individually cheap to "simplify", and fail silently when you
do
. Every rule in them was hit for real against a cluster during the build.

.claude/skills/ephemeral-containers/

Read before changing spec.py, launcher.py, or anything authoring a container spec.

  • subPath and resources are forbidden outright by the API server
  • a container name is burnt on first use — so the agent must degrade rather than
    raise, and a failing rung must take a fresh name
  • capabilities.add: [SYS_PTRACE] on a non-root uid is a silent no-op
    (CapEff: 0) — admitted, and useless
  • refusal arrives through two unrelated channels, only one of which can be
    caught by wrapping the call, and only the other of which burns a name
  • why the seat's identity has two mechanisms split by container kind
  • why dev pods are authored rather than kubectl debug --copy-to'd

.claude/skills/ssh-over-exec/

Read before touching sshcfg.py or agent.py.

  • sshd -e keeps fd 2 open; it is not about log tidiness, and closing stderr
    truncates the whole CRI exec stream with rc=0. Includes the full ProxyCommand
    matrix, and the one form that masks the bug in testing
  • -t hangs the client forever against a real TTY
  • a second SetEnv line is silently ignored (sshd is first-match-wins) — this
    shipped as a bug
  • sshd leaks none of its own environment to sessions, and nothing is on PATH there
  • ControlPath and the 108-byte sun_path limit, and creating its parent
  • why host keys are managed rather than StrictHostKeyChecking no
  • the measured latency/throughput budgets

CLAUDE.md

Adds a pointer to both skills, the PODBENCH_E2E_NODE_SELECTOR note for
mixed-arch clusters, and two environment foot-guns that cost real time and
announce themselves not at all: the devcontainer's UV_PROJECT_ENVIRONMENT
pointing at a different project's venv, and pre-commit --all-files only seeing
git-tracked files (so it passes locally and fails in CI).

Docs only — no code change.

Both of these are collections of rules that look arbitrary, are individually
cheap to "simplify", and fail silently when you do.

ephemeral-containers: the API refuses subPath and resources outright, names are
burnt on first use, a capability on a non-root uid is a silent no-op, and
refusal arrives through two unrelated channels. Most of the odd shapes in
spec.py and launcher.py are one of these.

ssh-over-exec: sshd's -e keeps fd 2 open rather than tidying logs, -t hangs the
client, a second SetEnv line is ignored, and sshd leaks none of its own
environment. Each of these shipped as a bug at least once here.

Also records the two environment foot-guns that cost time in the first session
- the devcontainer's UV_PROJECT_ENVIRONMENT pointing at another project, and
pre-commit only seeing tracked files - neither of which announces itself.
@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@gilesknap, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 56 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9226c0cf-72fa-4474-90c7-bb72b5315db6

📥 Commits

Reviewing files that changed from the base of the PR and between c7a8998 and ebf8725.

📒 Files selected for processing (3)
  • .claude/skills/ephemeral-containers/SKILL.md
  • .claude/skills/ssh-over-exec/SKILL.md
  • CLAUDE.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-claude-skills

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Dropped the Skills and Key paths sections. A skill's name and description are
injected into an agent's context automatically, so listing them again is a
table of contents for something already in the prompt; and `ls src/podbench`
plus the module docstrings cover the paths better than a second copy can.

The three hard rules the new skills now cover in depth collapse to one line
naming the danger and pointing at them. They keep an always-loaded tripwire
without duplicating the rationale, and two of them already raise in code
(validate_security_context, validate_ephemeral_volume_mounts) with exact-string
tests behind them.

103 lines to 69, and nothing that is only true in one place got deleted.
@gilesknap
gilesknap merged commit 0f9d515 into main Aug 15, 2026
13 checks passed
@gilesknap
gilesknap deleted the add-claude-skills branch August 15, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant