# Handoff prompt stale user hint newer state

> Handoff prompt stale user hint newer state is an open-source agent skill for developer tools. Pauses a stale handoff or runbook prompt to re-check scope when newer issues or PRs land. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state
- **Repository:** https://github.com/wan-huiyan/agent-traffic-control
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** handoff-prompt-stale-user-hint-newer-state
- **Collection:** https://github.com/wan-huiyan/agent-traffic-control
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill handles the case where a user asks the agent to execute a structured prompt, such as a handoff, runbook, plan or ADR, and adds a note that related GitHub issues or pull requests have changed since it was written. Instead of running the original steps as written, the agent is directed to stop before any scope-affecting action and check the current state of each artifact the user named, using the GitHub CLI to read issue and PR details, labels and cross-references.

The workflow has the agent map each artifact to what it would change in the prompt, then ask the user a single gating question with concrete options such as merging as-is with a caveat, re-scoping before merging, or holding the change. The chosen path is then followed, and the PR description or commit message records which newer artifact drove the amendment.

The skill expects a Git repository with the GitHub CLI available for reading issues and pull requests, and it relies on the agent's ability to pose a structured question to the user before making changes. It also says to ask for clarification when a hint is operational context rather than a scope change.

## When your agent uses it

> Gate execution of a structured runbook/handoff/plan prompt behind an AskUserQuestion when the user explicitly hints that newer state (issues filed, PRs merged, probes shipped) has landed since the prompt was authored. Use when: (1) the user invokes "execute docs/handoffs/session_NNN_*.md" or "run this plan" or "implement this ADR" AND adds an inline aside like "but please be aware of #A, #B, #C" / "watch out for PR #N" / "FYI #issue landed since this was written"; (2) before executing, a scan reveals issues/PRs in the user's hint list were filed/merged AFTER the prompt's authoring timestamp; (3) the newer artifacts could materially change what the prompt should do (e.g., a P1 issue surfacing that the prompt's design decision needs revisiting, a probe correction flipping a verdict, a sibling PR's merge claiming an ID the prompt reserved). Default behavior to avoid: execute the prompt verbatim and paper over the divergence in a post-merge comment. Correct behavior: pause, fetch current state of each hinted arti

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state)
- [License: MIT](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state)

## Features

- **Pre-execution scope gate:** Pauses before any code-modifying step when the user's aside suggests the prompt's premise has changed.
- **Artifact state check:** Uses GitHub CLI commands to read the status, labels and body of each issue or PR the user mentions.
- **Implication mapping:** Has the agent note, for each artifact, which prompt step or design choice it would change.
- **Structured scope options:** Presents the user with concrete choices such as merge as-is, re-scope, or hold the work.
- **Divergence recording:** Asks that the PR description or commit message cite the newer issues that shaped the final scope.

## Good for

- Execute a session handoff file while noting that a related bug issue was filed after it was written
- Run an implementation plan after a teammate's PR has merged and may change the design
- Carry out an ADR while checking whether a newly opened P1 issue alters its decisions
- Confirm before merging a dashboard change when an input-quality issue has appeared since the plan

## Install

### Claude Code

This skill ships in the `agent-traffic-control` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-control
```

Or copy only this skill to `~/.claude/skills/handoff-prompt-stale-user-hint-newer-state`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/handoff-prompt-stale-user-hint-newer-state &&
cp -R "$tmp/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state" ~/.claude/skills/handoff-prompt-stale-user-hint-newer-state &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/handoff-prompt-stale-user-hint-newer-state` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/handoff-prompt-stale-user-hint-newer-state` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/handoff-prompt-stale-user-hint-newer-state &&
cp -R "$tmp/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state" ~/.agents/skills/handoff-prompt-stale-user-hint-newer-state &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/handoff-prompt-stale-user-hint-newer-state` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/handoff-prompt-stale-user-hint-newer-state` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/handoff-prompt-stale-user-hint-newer-state &&
cp -R "$tmp/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state" ~/.cursor/skills/handoff-prompt-stale-user-hint-newer-state &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/handoff-prompt-stale-user-hint-newer-state` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state
```

Or copy the folder to `~/.gemini/skills/handoff-prompt-stale-user-hint-newer-state` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/handoff-prompt-stale-user-hint-newer-state`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/handoff-prompt-stale-user-hint-newer-state &&
cp -R "$tmp/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state" ~/.copilot/skills/handoff-prompt-stale-user-hint-newer-state &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/handoff-prompt-stale-user-hint-newer-state` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git
```

Then copy `agent-traffic-control/plugins/agent-traffic-control/skills/handoff-prompt-stale-user-hint-newer-state` into your agent's skills folder as `handoff-prompt-stale-user-hint-newer-state`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Handoff prompt stale user hint newer state trigger?

When the user asks to execute or run a structured prompt and adds an aside naming issues or PRs that should be considered, and those artifacts were filed or merged after the prompt was authored.

### Does Handoff prompt stale user hint newer state execute the original prompt verbatim?

Not by default. It asks the user to choose how scope should shift, and the chosen option determines whether the original plan is followed as written.

### What tools does Handoff prompt stale user hint newer state need?

The skill's instructions use the GitHub CLI (gh issue view and gh pr view) and git log to check artifact state. It ships no scripts.

### Does Handoff prompt stale user hint newer state apply to casual scheduling notes?

No. The skill says calendar or operational context such as a deploy window does not count as a scope change, and it asks for clarification when a hint is ambiguous.

### How do I install Handoff prompt stale user hint newer state in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/handoff-prompt-stale-user-hint-newer-state to use it in all your projects, or to .claude/skills/handoff-prompt-stale-user-hint-newer-state in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.

### Does Handoff prompt stale user hint newer state run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Handoff prompt stale user hint newer state?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Handoff prompt stale user hint newer state?

The closest alternatives to Handoff prompt stale user hint newer state are Executed prompt not retired sibling redoes it, Commit push PR, Spec driven develop, Multi agent handoff and Agentic workflows.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Executed prompt not retired sibling redoes it](https://ai-powered.com/skills/executed-prompt-not-retired-sibling-redoes-it): Executed prompt not retired sibling redoes it is an open-source agent skill for developer tools.
- [Commit push PR](https://ai-powered.com/skills/commit-push-pr-redpanda-data): Commit push PR is an open-source agent skill for developer tools.
- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Multi agent handoff](https://ai-powered.com/skills/multi-agent-handoff): Multi agent handoff is an open-source agent skill for developer tools.
- [Agentic workflows](https://ai-powered.com/skills/agentic-workflows): Agentic workflows is an open-source agent skill for developer tools.
- [Handoff](https://ai-powered.com/skills/handoff-oneafrikan): Handoff is an open-source agent skill for developer tools.
- [Vibe handover doc](https://ai-powered.com/skills/vibe-handover-doc): Vibe handover doc is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-kripu77): Implement is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/handoff-prompt-stale-user-hint-newer-state
