/agent-almanac:write-continue-herefrom agent-almanac
Creates a structured CONTINUE_HERE.md file capturing session state so a fresh Claude Code session can resume unfinished work. Records facts from git and conversation, drafts five sections, and installs without overwriting prior editions.
Ships in agent-almanac. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write a structured continuation file so the next session starts with full context. This is a short stop: one verification pass, then install. A handoff that must meet the full gate goes through verify-continue-here between Steps 3 and 4.
Run git log --oneline -5, git status and git diff --stat, and review the conversation: the objective, what is done and what is partial, what failed and why, what was decided. Then write a facts file (handoff-facts.md, outside the repository or ignored by it): one line per fact you will cite, naming the command that produced it and quoting its output verbatim, for the range you actually read. Step 3's verifier drops a draft without one, and a claim that traces to no line is an assertion.
Expected: Every number, sha, quoted output and status line you will write has a line in the facts file.
On failure: Outside a git repository, skip the git commands; the facts file still records what you measured.
The draft belongs beside wherever the installed file goes. This is the shared resolver: read-continue-here Step 1 carries the same block byte-for-byte, and scripts/test/continue-here-blocks.test.js fails if the two ever diverge.
ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || ROOT=$PWD
CONTINUE_FILE=
for candidate in CONTINUE_HERE.md docs/CONTINUE_HERE.md .claude/CONTINUE_HERE.md; do
if [ -f "$ROOT/$candidate" ]; then CONTINUE_FILE="$ROOT/$candidate"; break; fi
done
if [ -n "$CONTINUE_FILE" ]; then
echo "handoff: $CONTINUE_FILE"
else
ELSEWHERE=$(find "$ROOT" -maxdepth 3 -name 'CONTINUE_HERE.md' \
-not -path '*/.git/*' -not -path '*/node_modules/*' 2>/dev/null | head -5)
if [ -n "$ELSEWHERE" ]; then
echo "no handoff at a resolved path, but one exists elsewhere:"
echo "$ELSEWHERE"
else
echo "no handoff"
fi
fi
Write CONTINUE_HERE.draft.md beside a resolved handoff; beside one at an unresolved path, so the next session is not handed two; or, for a first handoff, at the repository root. Fill every section from this session. Tag an unmeasured claim in place as inferred, not re-measured, by-construction or the operator's call, with a facts-file line saying why it was not measured, and never tag a sha, count or status line a reader would act on.
# Continue Here
> Last updated: YYYY-MM-DDTHH:MM:SSZ | Branch: <branch> | HEAD: <short sha>
> Verified: <one of the three values in Step 3, or the value verify-continue-here records>
## Objective
Why, in one paragraph; git log shows what changed, not why.
## Completed
- [x] Finished items with key paths, and decisions with their rationale
## In Progress
- [ ] Partial work, specific enough to resume: branch, file:line, known issues
## Next Steps
1. The next action first; **[USER]** marks each item needing a user decision
## Context
- Failed approaches and why, constraints, links; each blocking finding Step 3 applied, with the line it changed, and each it answered, listed as open with its line or section
Expected: A draft at the resolved location, all five sections filled, every claim backed by the facts file or tagged.
On failure: If Write fails, check permissions on the resolved directory, not on the project root by assumption.
Read the draft back: the timestamp is current, Branch: and HEAD: match git branch --show-current and git rev-parse --short HEAD, no placeholder is left, Next Steps are numbered, and In Progress says enough to resume. Then run workflows/verify-handoff.mjs once, from an almanac checkout or plugin install (<almanac> is two directories above the realpath of this skill's directory): Workflow({ scriptPath: '<almanac>/workflows/verify-handoff.mjs', args: { drafts: [{ key, draft, facts, sources, context }], round: 1 } }). sources names at least one file: the previous edition, which is the handoff still at the install path if one is there, else the newest archived edition, CONTINUE_HERE.prev.md, or for a consumed tracked handoff the file git show "$(git rev-list -1 HEAD -- <path>)^:<path>" > <file> writes, run from the repository root with <path> relative to it; or the plan the work follows when there is none. Without a source the completeness lens is skipped, and coverage.complete can never be true.
Write the findings to a file beside the facts file, apply every blocking finding, list each in Context with the line it changed, and do not re-run. Record exactly one Verified: value:
single pass, N blocking applied, coverage <complete|incomplete>, findings <file>verify-handoff round N, 0 blocking, coverage complete — only when this round returned blocking 0 and coverage.complete truenot run (workflow unavailable)One pass still leaves a blocking defect in about one handoff in three (10 of 32 measured, #1040); read-continue-here re-checks the repaired and open lines for that reason, and re-confirms the branch, HEAD: and the named PRs and issues on every handoff, since those move with time. When the reader may not run it, or the next session is days away, use verify-continue-here.
Expected: A findings file, every blocking finding applied or answered and listed in Context, and one honest Verified: value.
On failure: Answer a finding you disagree with in the draft (tag the claim, cite the fact), never by deleting the finding, and list a blocking one in Context as open, with its line or section.
Re-stamp the header. If a handoff still exists at the install path, archive it with the fence in read-continue-here Step 5 (../read-continue-here/SKILL.md, the one that guards ARCHIVE_STATE), with CONTINUE_FILE set to the install path and ARCHIVE_STATE=superseded, which moves it into the named archive or to CONTINUE_HERE.prev.md, or leaves a tracked edition to git history. Then mv -n the draft into place and check that the draft is gone, since some mv versions skip an existing target with exit 0. Over a tracked edition the fence left in place, use mv -f.
Expected: CONTINUE_HERE.md at the resolved location, no draft beside it, and the prior edition archived, kept as CONTINUE_HERE.prev.md, or in git history.
On failure: If the archive fence prints REFUSED (an unedited <dir>, or uncommitted changes to a tracked handoff), resolve that first; never clobber an edition nobody has consumed.
A handoff can be tracked or ignored; both are legitimate, and this skill never edits a project's .gitignore (#775). Detect the project's choice, with CONTINUE_FILE set to the path Step 4 installed:
: "${CONTINUE_FILE:?set this to the path Step 4 installed, or re-run the Step 2 resolver now that the file exists}"
HOME_DIR=$(dirname -- "$CONTINUE_FILE")
if ! git -C "$HOME_DIR" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "lifecycle: NOT IN A REPOSITORY — an ordinary file; deleting it is final"
elif git -C "$HOME_DIR" ls-files --error-unmatch -- "$CONTINUE_FILE" >/dev/null 2>&1; then
echo "lifecycle: TRACKED — deletions are recoverable; every edition is in git log"
elif RULE=$(git -C "$HOME_DIR" check-ignore -v -- "$CONTINUE_FILE" 2>/dev/null); then
echo "lifecycle: IGNORED — deletions are final; archive before consuming"
echo " decided by: $(printf '%s' "$RULE" | cut -f1)"
else
echo "lifecycle: UNDECIDED — untracked and not ignored, the state most likely to be swept into an unrelated commit"
fi
It asks from the handoff's own directory, because git asked about another repository's path exits 128 for both checks; with no repository it says so rather than reporting UNDECIDED blind; -v names the deciding file, since a user-level core.excludesFile gives the same verdict for another reason; and -- keeps a leading-dash path from being read as an option.
| Tracked | Ignored | |
|---|---|---|
| Consuming it | git rm plus a commit; git log -p -- <path> recovers every edition | rm; the content is gone unless it was archived first |
A stray git add -A | harmless, it belongs in the repository | sweeps nothing, the ignore rule covers it |
| Cost | handoffs and their churn live in the project's history forever | no history, so an unconsumed edition can be destroyed by the next session |
| Suits | a repository whose handoffs are part of its record | a repository where the handoff is scratch between two sessions |
UNDECIDED is the one state worth acting on: the handoff, its draft and CONTINUE_HERE.prev.md are visible to git add -A, as they are under a bare-name ignore rule; only a glob (CONTINUE_HERE*.md) covers all three. Say so, and let the project choose.
Expected: The lifecycle is named, and whoever consumes the handoff knows whether deleting it is recoverable.
On failure: With no stated preference, report UNDECIDED and leave it; a .gitignore edited by a tool nobody asked is not obviously recoverable.
CONTINUE_HERE.md at the resolved location, no draft beside it, no second handoff elsewhereHEAD: and Verified: valueverify-handoff ran once with a source, every blocking finding is applied or answered and listed in Context, and the prior edition is archived, kept as CONTINUE_HERE.prev.md, or in git history, and the lifecycle is named, not changedverify-continue-here, which has a stop rule.read-continue-here — the complement: reading, re-confirming, archiving and consuming the fileverify-continue-here — the full verification loop, stopping at the first passing round or after round 3coordinate-peer-sessions — a peer sharing this worktree may consume the same handoffbootstrap-agent-identity, manage-memory — the cold start that reads the handoff, and the durable knowledge it should not repeatWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (pjt222/agent-almanac) — no native marketplace selected
npx claudepluginhub p/pjt222-agent-almanac377 skills in this plugin
/adapt-architectureExecute structural metamorphosis using strangler fig migration, chrysalis phases, and interface preservation. Covers transformation planning, parallel running, progressive cutover, rollback design, and post-metamorphosis stabilization for system architecture evolution. Use when assess-form has classified the system as READY for transformation, when migrating from monolith to microservices, when replacing a core subsystem while dependents continue operating, or when any architectural change must be gradual rather than big-bang.
/adapticMaster skill composing the 5-step synoptic cycle for panoramic synthesis across multiple domains. Orchestrates meditate, expand-awareness, observe, awareness, integrate-gestalt, and express-insight into a coherent process that produces unified understanding rather than sequential compromise. Use when a problem genuinely spans 3+ domains and the interactions between domains matter more than depth in any one, when sequential analysis feels like compromise rather than integration, or before major architectural decisions affecting multiple stakeholders.
/add-puzzle-typeScaffold a new puzzle type across all 10+ pipeline integration points in jigsawR. Creates the core puzzle module, wires it into the unified pipeline (generation, positioning, rendering, adjacency), adds ggpuzzle geom/stat layers, updates DESCRIPTION and config.yml, extends the Shiny app, and creates a comprehensive test suite. Use when adding a completely new puzzle type to the package or following the 10-point integration checklist to ensure nothing is missed end-to-end.
Other plugins' skills for the same job