Agent Skillsmtarcure/claude-vibe-squad › take-over-resume

take-over-resume

GitHub

用于在任务中断后恢复工作,通过比对记录锚点与当前仓库状态,检查差异及未跟踪文件,将人工修改视为意图并重建计划基线,防止因状态不同步导致的冲突或回归。

.agents/skills/take-over-resume/SKILL.md mtarcure/claude-vibe-squad

触发场景

任务暂停后恢复 手动干预后重启

安装

npx skills add mtarcure/claude-vibe-squad --skill take-over-resume -g -y
更多选项

非标准路径

npx skills add https://github.com/mtarcure/claude-vibe-squad/tree/main/.agents/skills/take-over-resume -g -y

不安装直接使用

npx skills use mtarcure/claude-vibe-squad@take-over-resume

指定 Agent (Claude Code)

npx skills add mtarcure/claude-vibe-squad --skill take-over-resume -a claude-code -g -y

安装 repo 全部 skill

npx skills add mtarcure/claude-vibe-squad --all -g -y

预览 repo 内 skill

npx skills add mtarcure/claude-vibe-squad --list

SKILL.md

Frontmatter
{
    "name": "take-over-resume",
    "audience": "specialist",
    "description": "Use when resuming work in a repository after a human or another process may have edited the tree—diff from the recorded anchor, inspect untracked files, treat changes as intent, and rebuild the plan and verification baseline from current contents."
}

Take-Over Resume

Resume work on a tree that a human may have changed while you were not looking. The failure mode is narrow and expensive: work resumes against a remembered state, the operator's manual fix is silently reverted or duplicated, and the conflict surfaces much later as a mysterious regression.

The controlling assumption is that the tree is the truth and your memory of it is a hypothesis.

When to use

  • Resuming a task that was paused for manual intervention.
  • Returning to a worktree after an operator hand-fix.
  • Any resume where time has passed and the tree was reachable by someone else.
  • A task that failed, was repaired by hand, and is being restarted.

Pausing cleanly

When work is being suspended for someone to intervene:

  1. Stop at a coherent point. Suspend between steps, not mid-write. A tree caught half way through a multi-file edit is one nobody can safely reason about.
  2. Record the resume anchor — the commit the work was built on, the tree involved, and the step that was about to run. This anchor is what makes the resume diff meaningful; without it, the diff has no baseline and the whole procedure degrades to guessing.
  3. State what is safe to touch, so intervention does not collide with in-flight state.
  4. Never remove a worktree with work still in flight. Removal kills the running work. Re-read in-flight status immediately before any cleanup, not from a status read earlier in the session.

Resuming

  1. Diff against the anchor before reading anything else. List the changed files, then read the actual diff. This is the first action on resume — not a check performed after planning, because a plan built on the remembered tree is already wrong.

    git diff <anchor> does not show untracked files, and a new file is the most common human edit. A file the human created is invisible to the diff alone, so the procedure would miss precisely the change that triggered it. Enumerate untracked paths separately and read them in full:

    git diff --stat <anchor>            # tracked changes
    git status --porcelain              # '??' lines are untracked and absent from the diff above
    

    Read every ?? path's contents, not just its name. Treat a .gitignored path as intentional scratch unless it is obviously a deliverable.

  2. Read the changes as intent. A human edit is a message: it says the previous approach was wrong, incomplete, or heading somewhere unwanted. Work out what the edit is telling you before deciding how to proceed.

  3. Reconcile the plan against reality. Steps the human already completed are done — do not redo them. Steps whose premise the edit invalidated need rework, not resumption. Say which is which.

  4. Do not revert a manual change to restore your plan. If a human edit conflicts with the plan, the plan yields, or the conflict is surfaced for a decision. Silently reverting an operator's fix is the central failure this procedure exists to prevent, and it is indistinguishable from a bug when it surfaces later.

  5. Re-run verification from the current tree. Prior results describe a tree that no longer exists. Establish a fresh baseline before attributing any failure to your own work — a failure that predates your changes is not yours to fix, and the only way to tell is to measure.

  6. Carry the change summary into the resumed work as explicit context: what changed, what it implies, and how the plan was adjusted.

Memory: what maps, and what does not

The source of this procedure re-indexed each changed file into a knowledge graph as a file-snapshot node.

That has no honest equivalent here, and none is invented. chrono-vault records canonical markdown notes — attempt, finding, learning — and is not a file-content index. There is no per-file snapshot upsert, and using record to stuff file contents into note bodies would be a misuse that pollutes recall for every future query. The repository itself, through git, already is the file index; the diff against the anchor is how it is queried.

What is worth recording is the lesson, not the contents:

the anchor commit, files changed, inferred intent, and how the plan was adjusted. The exact record call shape, sequence, and fields are owned by the task packet's injected memory contract — see wirework-reflect; do not copy a record(...) example or add fields such as source_task, which the server binds.

Best-effort only — a memory error is logged in one line and never blocks the resume.

Failure modes

  • Resuming from memory — continuing without diffing, and reverting the operator's fix.
  • Missing anchor — no recorded commit at pause, so the resume diff has no baseline.
  • Redoing completed steps — treating the plan as authoritative over the tree.
  • Stale verification — trusting results from before the manual edits, and attributing a pre-existing failure to your own change.
  • Snapshot-stuffing memory — pushing file contents into notes because the source pattern indexed files and something felt owed.

Acceptance

  • The resume began with a diff against a recorded anchor, and the diff was read rather than just listed.
  • Manual changes were interpreted as intent, and no manual change was reverted without surfacing it.
  • The plan was reconciled against the tree: completed steps dropped, invalidated steps reworked.
  • Verification was re-run from the current tree before any failure was attributed.
  • No file contents were pushed into memory; only the transferable lesson was recorded, best-effort.

版本历史

  • d5262e2 当前 2026-09-11 11:46

同 Skill 集合

.agents/skills/accessible-media-authoring/SKILL.md
.agents/skills/agent-prompt-engineering/SKILL.md
.agents/skills/agentic-safety-audit/SKILL.md
.agents/skills/audio-event-map-authoring/SKILL.md
.agents/skills/auto-scaffold/SKILL.md
.agents/skills/claim-verification/SKILL.md
.agents/skills/code-reachability-audit/SKILL.md
.agents/skills/code-review-loop/SKILL.md
.agents/skills/color-theory/SKILL.md
.agents/skills/conversation-design/SKILL.md
.agents/skills/copy-refinement/SKILL.md
.agents/skills/cross-file-relationship-synthesis/SKILL.md
.agents/skills/dependency-cycle-audit/SKILL.md
.agents/skills/dependency-health-triage/SKILL.md
.agents/skills/detection-as-code/SKILL.md
.agents/skills/diff-aware-semgrep-scan/SKILL.md
.agents/skills/differential-review/SKILL.md
.agents/skills/dimensional-analysis-check/SKILL.md
.agents/skills/dual-level-retrieval/SKILL.md
.agents/skills/figma-implement-design/SKILL.md
.agents/skills/forensic-timeline-authoring/SKILL.md
.agents/skills/game-design-fundamentals/SKILL.md
.agents/skills/game-mechanics-balancing/SKILL.md
.agents/skills/head-tail/SKILL.md
.agents/skills/incident-response-runbook/SKILL.md
.agents/skills/interactive-audio-design/SKILL.md
.agents/skills/interface-ambiguity-check/SKILL.md
.agents/skills/keyword-clustering/SKILL.md
.agents/skills/knowledge-base-integration/SKILL.md
.agents/skills/layered-analysis-loop/SKILL.md
.agents/skills/level-design-patterns/SKILL.md
.agents/skills/locale-adaptation/SKILL.md
.agents/skills/narrative-structure/SKILL.md
.agents/skills/platform-compliance/SKILL.md
.agents/skills/player-engagement-psychology/SKILL.md
.agents/skills/requirements-elicitation/SKILL.md
.agents/skills/rule6-rights-gate/SKILL.md
.agents/skills/rule8-truth-gate/SKILL.md
.agents/skills/sandbox-provision-discipline/SKILL.md
.agents/skills/scope-decomposition/SKILL.md
.agents/skills/scope-estimation/SKILL.md
.agents/skills/security-ownership-map/SKILL.md
.agents/skills/security-threat-model/SKILL.md
.agents/skills/semgrep-rule-author/SKILL.md
.agents/skills/skill-description-trigger-authoring/SKILL.md
.agents/skills/sound-design-principles/SKILL.md
.agents/skills/structured-data-authoring/SKILL.md
.agents/skills/supply-chain-audit/SKILL.md
.agents/skills/technical-seo-audit/SKILL.md

元信息

文件数
0
版本
d5262e2
Hash
7a07b64b
收录时间
2026-09-11 11:46

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-12 15:31
浙ICP备14020137号-1 $访客地图$