一键导入
handoff-prompt
Generate a compact handoff prompt for the next agent or stage. Output the prompt only.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate a compact handoff prompt for the next agent or stage. Output the prompt only.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Audit the structural and logical integrity of a mathematics paper — quantifier scope, domain-of-definition guards, proof/computation honesty, theorem hierarchy, contribution-list discipline (mapping every claimed contribution to its formal result, prior baseline, concrete gain, and independent significance), stale claims, notation accuracy at introduction, standing assumptions, and undefined relation symbols or coined terms in summary prose — without touching prose style or rhetorical prose inflation (structural inflation of contribution lists and result hierarchy is in scope).
Audit a LaTeX mathematics document for notation drift — symbols used under different names across sections, orphaned macros, undeclared aliases (including cross-language pairs where a term defined in one language is later used in another), symbols or relation signs used with no definition site anywhere, symbol reuse across scopes, and first-use-after-gap without back-reference — without evaluating mathematical correctness or prose style.
Review or rewrite mathematical prose so an edit, paraphrase, terminology migration, or explanatory description preserves the exact mathematical meaning fixed by its semantic source — referent identity, operation versus result, domain/codomain and representation level, quantifier and equality mode, role and provenance, notation role, and classified-before-replacement terminology migration with concept-cluster synchronization — without auditing claim-versus-proof strength (use math-claim-integrity), notation bookkeeping (use math-notation-consistency), Japanese style or translation events (use wabun-math-style), or audience prerequisites and ordering (use exposition-flow).
Detect and correct Japanese-language anti-patterns in mathematical writing — epistemic hedges weakening proved claims, incorrect verb tense, passive/active confusion in proofs, ambiguous particles, unjustified 明らか, decorative connectives, redundant meta-discourse, double negation, stacked の, generic/general conflation, borrowed non-mathematical vocabulary, vague category names for explicit formulas, full-width semicolons or untranslated English, canonical-terminology drift, and translation-level concept conflation — without evaluating mathematical correctness or structural hierarchy.
Turn repository-grounded source material into a self-contained, audience-admissible document or presentation by modelling the intended audience, extracting information units with explicit discourse roles, and enforcing dependency-ordered exposition in which every load-bearing statement follows the prerequisites needed to interpret it — without factual verification or citation checking (use sot-integrity), prose polishing (use deslop-prose), mathematical-correctness review (use the mathematical-writing skills), or typography and slide layout.
Workspace-level Git cleanup — discover repositories under the current directory and prune merged branches, merged linked worktrees, stale remote-tracking refs, and stale worktree metadata.
| name | handoff-prompt |
| description | Generate a compact handoff prompt for the next agent or stage. Output the prompt only. |
Generate a minimal sufficient prompt for the next agent — one that lets it start the correct work immediately, with no needless background, duplicated documentation, user-side clarification, or avoidable rework.
This is a handoff / stage-transition skill, not a summarisation skill.
The user wants to pass work to another agent, role, or stage: continuing in a fresh coding-agent context, handing a completed plan/spec to an orchestrator, passing research results to an implementer, passing implementation state to a reviewer or debugger, or splitting work across agents.
Every handoff prompt must satisfy all five. The rest of this skill exists to apply them — no other section restates them:
AGENTS.md, specs, plans, architecture docs, or workflow instructions; point to the source instead.Prioritise, in this order: (1) the immediate task, (2) correct starting references, (3) decisions already fixed, (4) non-obvious constraints or context, (5) unresolved points that materially affect the next step, (6) the required output.
For (4), include only context the next agent is unlikely to recover reliably on its own: decisions already made, options explicitly rejected, hidden constraints, priority ordering not evident from the files, known traps or misleading artefacts.
Output only the prompt — no preface, explanation, or follow-up text. Every prompt must contain:
/skill-name reference (e.g. /github-driven-workflow, /lite-spec) when an applicable installed skill governs the next agent's execution. If no installed skill applies to the handoff, do not invent or force one — omit the anchor rather than reference an irrelevant skill.#N), commit SHA, file path, session log path.Once these are present, decision boundaries are deferred to whatever the anchors point to (the governing skill, or, absent one, the referenced document/issue). Verbal acceptance phrasing — merge after CI is green, proceed when ready, 完了したら次へ — is not prohibited: it reads naturally, and the anchors keep the next agent from being trapped in an unresolvable gate.
Reject only these well-defined structural violations:
explicit authorization granted, you are authorized to .... Permission grants belong in environment configuration, not the prompt body.--dangerously-skip-permissions or an equivalent flag.Do not enumerate verbal acceptance phrases (complete when, after review, once green) as forbidden — the expression space is unbounded, any such list is trivially bypassed by rephrasing, and it causes false positives on legitimate usage (e.g. implement #42 following /github-driven-workflow until complete is fine; the anchored skill defines the actual gates).
Pick the row matching the next agent; use only elements the immediate task doesn't already make obvious.
| Target role | Emphasise |
|---|---|
| Coding agent | the concrete implementation task; files/docs to read first; fixed design decisions; constraints; expected code/test/doc outputs |
| Orchestrator | the task to coordinate and its complexity; required sub-agent decomposition; the model tier suited to each sub-agent's complexity; decisions already fixed; the final deliverable/coordination objective |
| Reviewer / debugger | the review or debug target; intended behaviour; likely failure points; areas needing scrutiny; required review output |
| Research agent | the concrete research question; scope boundaries; fixed assumptions; the form findings must take; what's explicitly out of scope |
This skill only renders the final transfer prompt. It does not decide what to do next:
/metaplan first./lite-spec first./light-orchestration first.Invoke this skill last, to produce the transfer text once those upstream decisions are already fixed.
# Good — skill anchor + concrete anchor + bounded length
Implement t-uda/example#42 following /github-driven-workflow.
Report when complete.
# Bad — no skill anchor, criteria leaking into prompt body
Implement the example issue. Wait until CI is green and review is sufficient,
then merge with squash, delete the branch, clean up the worktree, report ...
(800+ characters)
# Bad → Good — verbal "until complete" is fine when structure is right
Implement t-uda/example#42 following /github-driven-workflow until complete.
Report to channel ABC.
# A — an applicable governing skill exists: anchor it
Implement t-uda/example#42 following /github-driven-workflow.
Do not reopen the API shape — fixed: REST, not GraphQL.
Report when merged.
# B — no applicable skill exists: no anchor is forced
Fix the flaky test at tests/test_retry.py::test_backoff (t-uda/example#57).
Root cause is suspected in the jitter calculation, not the retry count.
Report the fix and root cause.
# C — the referenced document already has all acceptance criteria: reference, don't restate
Implement the design in docs/plans/auth-redesign.md (t-uda/example#88) following /lite-spec.
Acceptance criteria are fully specified there.
# D — a non-obvious constraint must carry over
Continue the migration in t-uda/example#101 following /github-driven-workflow.
State: services/billing migrated, services/orders pending.
Constraint: do not touch services/legacy-invoicing — frozen pending a separate deprecation decision.
Before finalising, verify the prompt meets every Invariant and every Required output structure item:
#N, SHA, file path, or log path).Output the prompt only.