docs-branch-off-feature-branch-smuggles-codelisted
Install: claude install-skill wan-huiyan/agent-traffic-control
# 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:
```sh
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
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-