handoff
Maintain concise, current task handoffs. MANDATORY first action whenever a task mentions a handoff or handoff.md, or involves resume, continue, pick up, next step, checkpoint, or context transfer. Load before touching handoff files; loading the skill does not authorize file changes.
- License 许可
- MIT
- 所属仓库
- japurcell/skills
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- handoff
- description
- Maintain concise, current task handoffs. MANDATORY first action whenever a task mentions a handoff or handoff.md, or involves resume, continue, pick up, next step, checkpoint, or context transfer. Load before touching handoff files; loading the skill does not authorize file changes.
02 资源文件 34
- 参考文档evals/evals.json12.0 KB
- 其他evals/files/fallback-noise-fixture/diffs/patch.diff106 B
- 其他evals/files/fallback-noise-fixture/logs/retry.log387 B
- 参考文档evals/files/fallback-noise-fixture/session_notes.md616 B
- 脚本evals/files/fallback-noise-fixture/src/sync_retry.py57 B
- 脚本evals/files/fallback-noise-fixture/tests/test_sync_retry.py114 B
- 参考文档evals/files/feature-update-fixture/.agents/scratchpad/payments/handoff.md175 B
- 参考文档evals/files/feature-update-fixture/reports/benchmark.txt93 B
- 参考文档evals/files/feature-update-fixture/session_notes.md592 B
- 脚本evals/files/feature-update-fixture/src/payment_retry.py57 B
- 脚本evals/files/feature-update-fixture/tests/test_payment_retry.py101 B
- 参考文档evals/files/guidance-edges-fixture/.agents/scratchpad/billing/handoff.md159 B
- 参考文档evals/files/guidance-edges-fixture/.agents/scratchpad/retries/handoff.history-2026-10-07.md195 B
- 参考文档evals/files/guidance-edges-fixture/.agents/scratchpad/retries/handoff.md536 B
- 参考文档evals/files/guidance-edges-fixture/reports/local-check.md274 B
- 参考文档evals/files/guidance-edges-fixture/session_notes.md1.3 KB
- 参考文档evals/files/history-resume-fixture/.agents/scratchpad/search/handoff.md624 B
- 其他evals/files/history-resume-fixture/logs/purge-run-history.log232 B
- 参考文档evals/files/history-resume-fixture/session_notes.md999 B
- 脚本evals/files/history-resume-fixture/src/cdn_purge.py104 B
- 脚本evals/files/history-resume-fixture/tests/test_cdn_purge.py188 B
- 参考文档evals/files/owner-action-fixture/.agents/scratchpad/releases/handoff.md211 B
- 参考文档evals/files/owner-action-fixture/session_notes.md679 B
- 脚本evals/files/owner-action-fixture/src/tenant_purge.py108 B
- 脚本evals/files/owner-action-fixture/tests/test_tenant_purge.py235 B
- 参考文档evals/files/root-create-fixture/logs/test-failure.txt283 B
- 参考文档evals/files/root-create-fixture/plans/refresh-plan.md159 B
- 参考文档evals/files/root-create-fixture/session_notes.md814 B
- 脚本evals/files/root-create-fixture/src/auth_refresh.py55 B
- 脚本evals/files/root-create-fixture/tests/test_auth_refresh.py141 B
- 脚本evals/grade_benchmark.py26.2 KB
- 参考文档evals/guidance-scenarios.json2.8 KB
- 参考文档evals/README.md1.5 KB
- 脚本evals/test_grade_benchmark.py17.8 KB
03 SKILL.md 正文
Handoff
Capture one concise handoff another agent can resume from immediately. Preserve state, evidence, and the first safe next action without copying the whole chat.
Workflow
-
Confirm the requested action
- For a read-only question, review, or audit, inspect only the relevant artifacts and report findings. Do not create or update handoff or history files.
- For authorized handoff maintenance or ongoing task work, follow the steps below. Reconcile the relevant handoff at resume, scope changes, milestone completion, and before stopping.
-
Reconcile current state
- Compare the inherited snapshot with the latest user direction, current notes, changed files, and verification results. Current evidence determines scope, status, and remaining work. Read only the artifacts needed; do not reread the whole repository.
- When asked to resume work, continue the inherited next step only if it remains current and authorized. Otherwise choose the current safe next action. Replace superseded active instructions instead of appending another status layer.
- Keep the current goal, done/in-progress/remaining status, user-provided next focus, exact next step, blockers, decisions, constraints, authorization limits, recovery path, and verification state inline.
- Preserve review findings, corrected assumptions, rejected options and their reasons, unresolved questions, and risks that affect what the next agent should trust or avoid.
- Record exact runnable commands, including the working directory and necessary arguments, and concise observed error text when needed for next work. Distinguish verified causes from hypotheses.
- State what was run or measured, what passed or failed, and what remains unverified or needs rerunning. An older pass does not prove a later change. Include the path of any retained log or report supporting a result.
- Name important files and explain why they matter. When a specific location matters, use
path:lineorpath:start-end, verified against line-numbered source output rather than inferred from a filtered or compressed read.
-
Choose the destination
- Honor a valid user-supplied path, even when several feature folders are plausible.
- With no supplied path, reuse the known handoff for the current task. Otherwise use
.agents/scratchpad/<feature>/handoff.mdfor the single clearly matching feature folder; if none or several match, use.agents/scratchpad/handoff.mdand explain any ambiguity. - A supplied path is invalid if it cannot name a file, a parent component is a file, it is outside the authorized scope, or it remains unwritable after permitted recovery. Fall back to
.agents/scratchpad/handoff.mdand state the reason. A missing parent directory alone is not invalid.
-
Preserve lessons and history
- Redact secrets and unnecessary personal data before writing any handoff, history file, or inline fallback.
- Keep lessons needed for current decisions, constraints, or prevention of repeated mistakes inline. Preserve other unique lessons and evidence in history. Move superseded run details and repeated error output behind clearly labeled historical references; archives are evidence, not current guidance.
- Prefer an existing retained artifact that preserves the required evidence. If the old handoff is the only copy, save that evidence to a sibling history file before replacing it.
- For a new archive, choose an unused filename such as
handoff.history-YYYY-MM-DD.md, adding a suffix if needed. When extending an existing archive, read it first and append a dated entry without replacing earlier unique evidence. - Verify each reference target exists and contains the evidence before removing it from the active handoff. Never point back to the handoff being replaced. If preservation cannot be verified, keep the needed evidence inline and report the limitation. Current blockers, owner actions, recovery instructions, and pending proof stay inline regardless of related archives.
-
Write a compact handoff
- Create parent directories for the selected destination if needed. Update that file in place when it exists.
- Before editing, reread the exact section being replaced. Prefer small independent patches so stale context cannot reject unrelated updates.
- Use compact bullets or short sections. A useful shape is Goal/status, Next focus/action, Decisions/constraints, Review findings, Relevant files, Commands/results, Blockers/recovery, Lessons, and Historical references. Omit empty sections; include suggested skills only when they materially help.
- Prefer dense evidence: one measured benchmark delta or failing assertion beats a pasted log. Reference artifacts by path or URL. Include raw logs, screenshots, large diffs, or full chat only when essential.
- If writing fails, emit the redacted handoff inline and explain the failure.
-
Report the outcome
- On success, state the written path, whether the context is root-scoped or feature-scoped, and the single most important next step.
- On failure, state the intended path and scope, report any partial write or uncertain file state, and provide the inline handoff and next step without claiming success.
Verification
- [ ] Read-only requests produced findings without document changes
- [ ] Maintenance used the requested valid path or explained the fallback
- [ ] Current scope, status, next action, and verification agree with the latest evidence
- [ ] Necessary decisions, lessons, owner limits, blockers, recovery, and pending proof remain inline
- [ ] Commands, observed errors, evidence paths, and source anchors are precise where needed
- [ ] Historical references preserve unique evidence without overwriting earlier entries
- [ ] The handoff is concise, redacted, and free of stale active instructions
- [ ] The outcome accurately reports the write result and next step
04 同仓库更多 Skills
spec-create
Create or revise a portable behavioral SPEC for a feature or whole product. Use when specifying a new idea, documenting an existing system for reimplementation, or defining a change while preserving compatibility. Implementation planning is a separate task.
prd-ralph
Complete at most one eligible unfinished PRD task, verify it, log progress, and optionally create one scoped commit.
fsdp-style-guide
Mandatory for all UI/UX design, implementation, review, audit, or visual regression tasks. Always use for any work that affects user-facing appearance, behavior, accessibility, branding, layout, navigation, forms, dialogs, alerts, tables, or visual design.
agency-priorities
Provide self-contained USDA strategic goals and Forest Service priorities for agency briefings, proposals, and work-plan alignment. Use when explaining agency direction or evaluating how a project contributes to USDA and Forest Service priorities.
accomplishment-report
Create a concise Forest Service executive accomplishment report when all work in an ExecPlan is completed, or update its existing report. Use at ExecPlan closeout and when asked to report completed work, agency alignment, and estimated AI-assisted versus human-only time and cost savings.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.