docs-branch-off-feature-branch-smuggles-code

docs-branch-off-feature-branch-smuggles-code is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 454 tokens per session (3,919 once invoked), scanned A, original, MIT.

A Git branching guide for creating documentation-only pull requests after feature work.

In plain words
What is it for?
Use it to check the starting branch and compare the final diff before opening a docs or handoff pull request.
Why use it?
It prevents a docs branch from accidentally including the feature branch's code and shipping it under a documentation title.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Claude Code.

Part of the agent-traffic-control plugin — 107 skills shipped together

Good fit Use it to check the starting branch and compare the final diff before opening a docs or handoff pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/docs-branch-off-feature-branch-smuggles-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wan-huiyan/agent-traffic-control --skill docs-branch-off-feature-branch-smuggles-code
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 107 skills.

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 docs-branch-off-feature-branch-smuggles-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/docs-branch-off-feature-branch-smuggles-code/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/docs-branch-off-feature-branch-smuggles-code)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/docs-branch-off-feature-branch-smuggles-code"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/docs-branch-off-feature-branch-smuggles-code/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 docs-branch-off-feature-branch-smuggles-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/docs-branch-off-feature-branch-smuggles-code"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/docs-branch-off-feature-branch-smuggles-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 454 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,919 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00454 $0.03919
Opus 5 $0.00227 $0.01959
Sonnet 5 $0.00091 $0.00784
Haiku 4.5 $0.00045 $0.00392

Measured 12d ago against content hash d756add9dc95, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

docs-branch-off-feature-branch-smuggles-code 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 12d 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.

plugins/agent-traffic-control/skills/docs-branch-off-feature-branch-smuggles-code/SKILL.md · 377 lines

How it starts

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

Docs follow-up branch off a feature branch smuggles feature code

Problem

You finish a feature session, the work lives on feat/sN-feature (PR already open). You want to write a session handoff + the next-session prompt as a docs-only PR. You run:

git checkout -b docs/sN-handoff-and-sN+1-prompt
# ...write docs, commit, push, gh pr create...

The new branch was created from the current HEAD — which is still feat/sN-feature's tip. The new docs branch carries the feature commit AND your docs commits. The PR title is docs(sN+1):.... The diff includes Dockerfile + src/routes/.py + tests/.py from the feature work.

If a reviewer squash-merges the "docs" PR, you've just landed the feature code under a docs title — bypassing the planned merge order, potentially auto-deploying if cloudbuild.yaml triggers on main push, and definitely confusing anyone who reads the git log later.

Context / Trigger Conditions

There are two variants with different symptoms depending on whether the feature PR is still open or was already squash-merged to main:

Variant A — Feature PR still open (silent code smuggling)

You are in this trap when all of these hold:

  1. End-of-session handoff workflow. You're wrapping up a session that produced code changes (already on a feature branch with an open PR) and you're about to write the handoff doc + next-session prompt as a separate PR.

  2. You created the docs branch via git checkout -b from inside the feature worktree without specifying an explicit base. Most common variant: you're sitting on feat/sN-feature and run git checkout -b docs/sN-handoff — the new branch points at feat/sN-feature's tip.

  3. gh pr diff --name-only shows non-docs/ files. Code, Dockerfile, tests, lock files, generated artefacts. The docs PR title says it ships docs but the diff contradicts.

  4. git log origin/main..HEAD shows more commits than you authored this session for docs. The extra commit(s) are from your own feature work, carried over by the implicit base.

Read the full file on GitHub · 377 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. 12d ago First seen · 377 lines · 454 tokens per session scan A d756add9dc95

Subscribe to this mod's changes

docs-branch-off-feature-branch-smuggles-code is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed today), licensed MIT. It adds 454 tokens to every session and 3,919 once invoked, about $0.0023 per session on Opus 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.

Related

Other skills, from other repositories

cloudflare-workers-ci-cd

Complete CI/CD guide for Cloudflare Workers using GitHub Actions and GitLab CI. Use for automated testing, deployment pipelines, preview environments, secrets management, or encountering deployment failures, workflow errors, environment configuration issues.

secondsky/claude-skills · 50 tokens

bump-sdk-version

Bump the FutureSearch SDK version across all files. Use when releasing a new SDK version, updating version numbers, or the user says bump version, release, version bump.

futuresearch/futuresearch-python · 40 tokens

claude-code-bash-patterns

Claude Code Bash tool patterns with hooks, automation, git workflows. Use for PreToolUse hooks, command chaining, CLI orchestration, custom commands, or encountering bash permissions, command failures, security guards, hook configurations.

secondsky/claude-skills · 52 tokens

pr-check

PR review compliance: fetch review comments from an open PR, categorize as resolved/unresolved/dismissed, critically evaluate fixable items, implement approved fixes, and reply inline. Pass --unattended to halt on human-judgment items (emitted as Pending-Human) instead of prompting via AskUserQuestion.

rube-de/cc-skills · 67 tokens

babysit

PR babysitter: monitors CI status, auto-rebases when behind, auto-fixes CI where possible, delegates review comment handling to dlc:pr-check, and re-requests review after fixes. Designed for /loop usage with Remote Control.

rube-de/cc-skills · 53 tokens

git-ops

Git hygiene: clean up merged branches, prune stale remotes, and verify repository state.

rube-de/cc-skills · 22 tokens