Skip to content
Back to skills

Cli Tool Traps

ASecurity

Use when working with gh, kubectl logs, or Tailscale SSH.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
devopspythonnodeapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add chnlich/charlie-bot --skill cli-tool-traps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cli Tool Traps?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cli Tool Traps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chnlich-cli-tool-traps/badge)](https://www.skillsdirectory.com/skills/chnlich-cli-tool-traps)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cli-tool-traps
description: Use when working with gh, kubectl logs, or Tailscale SSH.
---

# CLI tool traps

## gh: pull requests

- Patch a PR body through the REST API: `gh api -X PATCH repos/<owner>/<repo>/pulls/<N> -F body=@file`. `gh pr edit --body-file` can no-op silently or exit 1 with only a deprecation warning. Re-read the body after the patch to confirm it.
- `gh search prs` matches only a PR's title and body, never its comments. Put any text you need to search for later, such as a rejection ledger or an audit trail, in the PR body.
- A PR whose branch conflicts with the base registers no CI at all: zero check runs, "no checks reported". Probe `mergeStateStatus`, and rebase onto a fresh base to register the checks.
- A body-only edit does not re-fire CI; close and reopen the PR does.

## kubectl logs with a label selector

- With `-l <selector>`, the default tail is 10 lines per container. Pass `--tail=-1` to read the whole logs.

## Tailscale SSH

- A connection to a node waiting for check mode prints a `https://login.tailscale.com/a/...` approval link and waits for approval.
- While the connection waits for approval, tailscaled ignores ssh keepalive requests. Run the ssh in the background with `-o ServerAliveInterval=0` to hold the wait open.
- Tailscale SSH runs each remote command under a `tailscaled be-child ssh ...` wrapper whose argv contains the command text. Over ssh, `pgrep -f` matches that wrapper's argv and counts the ssh session itself. Anchor the pattern at the start of the target's argv, for example `pgrep -fc "^python3 -c while True"`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.