/john-skills:pass-alongfrom john-skills
Writes session pass-along documents capturing operational state, half-done work, open loops, and time-wasting traps for agent handoffs. Useful when wrapping up a session or handing off a branch.
Ships in john-skills. 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.
Read when SKILL.md points to them; scripts run unread.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jbdamask/john-claude-skills --plugin john-skillsWrite the document the next session needs — human or agent, possibly on another machine, with none of your context.
A pass-along is not a summary of the conversation and not a changelog. Git already has the changelog. The pass-along carries what git cannot: which work is half-finished and where the seam is, what you tried that did not work, what was decided and why, and what might have moved after you stopped.
Recommend, but don't decide. Whoever directs the next session — a human, an orchestrator agent — may be pointing it somewhere you know nothing about. You spent this session on Stripe payments; they may have already decided the next one is security hardening. So say what you'd do next and why, especially when scoped work went unfinished — that judgment is worth having. Just make sure it reads as this session's recommendation, held next to a neutral inventory of everything you left open, so it can be weighed and overruled. A recommendation stated as a directive gets obeyed, because the pass-along is the most-trusted document in the next session's context.
<repo root>/.pass-along/<YYYY-MM-DD-HHMM>-PASS-ALONG.md — local time, e.g. .pass-along/2026-08-19-1430-PASS-ALONG.md.
One file per pass-along. Never overwrite or edit an earlier one; the folder is an append-only chain, and each pass-along names its predecessor. Pass-alongs are committed to the repo, so they travel with the branch — which means never put secrets, tokens, or credentials in one. Reference where a value lives (the SA key is in 1Password / SSM at /foo/bar), never the value.
Run scripts/gather.sh from this skill's own directory — every harness tells you where that
is when it loads the skill.
bash "<this skill's directory>/scripts/gather.sh"
Under Claude Code you can write the line below instead. It uses the plugin-root placeholder
— the name CLAUDE_PLUGIN_ROOT wrapped in ${…} braces — which Claude Code replaces with an
absolute path when it loads this file, so by the time you read it the path is already filled
in. (That substitution is why this paragraph spells the name out instead of showing the
token: written literally, it would be replaced here too, and the sentence would describe a
path instead of a placeholder.)
bash "${CLAUDE_PLUGIN_ROOT}/skills/pass-along/scripts/gather.sh"
No other harness substitutes it, and it is not a shell variable — it is exported to hook and
MCP subprocesses only, never to an ordinary tool call. If that token reaches a shell unexpanded
it becomes /skills/pass-along/scripts/gather.sh and fails with a bare "No such file or
directory". Seeing a path that starts at /skills/ means you are on a harness that did not
substitute: use the skill directory instead.
Read-only, and needs python3 for the session block. It returns the timestamp slug, the running harness with its model and effort, other agents' recent sessions in this repo, the previous pass-along and its HEAD_SHA, branch/remote/upstream state, the working tree, the commits since the last pass-along, beads or other tracker state, open PRs, per-agent project config, and whether .pass-along/ is properly tracked.
Everything else comes from the session you just lived through. The script supplies facts; you supply judgment about what those facts mean.
---
DATE: 2026-08-19T14:30:00-0400
TITLE: Wire the pack registry to the shop page
STATUS: in_progress # in_progress | blocked | milestone_complete | abandoned
MODEL: claude-opus-5 # the API model id, not a harness label
MODEL_EFFORT: high # low | medium | high | xhigh | max
HARNESS: claude-code 2.1.235 # or codex 0.148.0 | amp | opencode 1.1.53 | grok 1.0.5
SESSION_ID: d14bf04b-e7f1-4a20-b851-e0f5abb0c04e
REPO: jbdamask/john-claude-skills # owner/name from the origin remote; blank if there is none
WORKING_DIR: /Users/j/code/john-claude-skills # where the work happened; omit if same-as-obvious
BRANCH: feat/pack-registry
HEAD_SHA: 1578eff
UPSTREAM: origin/feat/pack-registry (ahead 2)
WORKTREE: dirty # clean | dirty — see "Uncommitted work" below if dirty
ISSUE_TRACKER: GitHub # GitHub | Linear | Jira | Beads | none
ISSUES: ["#9", "#28"]
TASK_TRACKER: Beads # omit if the project has none
BEADS: ["rockysurf-arym (epic, 11/13)", "rockysurf-4aed (ready, unclaimed)"]
PRS: ["#28 open, CI pending"]
OPEN_LOOPS: ["PR #28 open, CI unverified", "migrate.py handles users, not orgs", "webhook retry deliberately deferred"]
RECOMMENDED_NEXT: Finish migrate.py org handling — it is the only in-scope item left unfinished. # this session's view, not a decision
SCOPE_COMPLETE: false # was everything this session set out to do actually finished?
PREDECESSOR: .pass-along/2026-08-18-0912-PASS-ALONG.md
PRIME: ["bd ready", "npm run dev"] # commands the next session should run first
---
Rules for the fields:
gather.sh resolves them where it can. Precedence: harness transcript or environment → your own session context → unknown. Never guess a model id.
MODEL must be the id an API would accept (claude-opus-5), not a harness label. Claude Code shows the running model as claude-opus-5[1m], where [1m] marks the 1M-context session variant — that suffix is client-side notation and is not a valid model id. The transcript's message.model has the clean value; use it.
gather.sh resolves six harnesses. Where it prints unknown, write unknown — that is the honest answer, and better than a plausible guess a later reader would trust.
| Harness | Env override | mac / Linux | Windows | Model / effort |
|---|---|---|---|---|
| Claude Code | CLAUDE_CONFIG_DIR relocates all of it | ~/.claude/projects/<cwd, / as ->/<id>.jsonl | %USERPROFILE%\.claude\... | message.model, top-level effort, version |
| Codex CLI | CODEX_HOME | ~/.codex/sessions/YYYY/MM/DD/rollout-*-<id>.jsonl | %USERPROFILE%\.codex\... | turn_context.payload.model; effort often absent |
| Amp | AMP_HOME, AMP_PWD | ~/.local/share/amp/threads/T-*.json, else ~/.cache/amp/logs/threads/<id>.log | tries the same unix-style layout, then %LOCALAPPDATA%/%APPDATA% | last messages[].usage.model; agentMode is the effort analogue |
| opencode | OPENCODE_DB | $XDG_DATA_HOME/opencode/opencode.db (SQLite, ≥1.18); legacy storage/session/*/ses_*.json | %LOCALAPPDATA%\opencode\data\opencode.db | modelID / providerID off the newest assistant message; agent mode, no reasoning effort |
| Grok CLI | GROK_HOME | ~/.grok/sessions/<percent-encoded cwd>/<id>/summary.json | %USERPROFILE%\.grok\... | current_model_id (or model_id in chat_history.jsonl), reasoning_effort |
| Cursor CLI | CURSOR_HOME | ~/.cursor/chats/<workspace-hash>/<chat-id>/ — meta.json has cwd+title, store.db has the model | %USERPROFILE%\.cursor\... | providerOptions.cursor.modelName on an assistant blob in store.db; no effort recorded |
Cursor writes its chats only on first run, not at install — the installer just drops the
binary in ~/.local/share/cursor-agent/versions/<version>/, which is where the reported
version comes from. An install with no sessions yet has no ~/.cursor/chats at all.
meta.json records the workspace directly, so cursor sessions match this repo by cwd
like codex, opencode and grok rather than needing an env var. session_id is the chat id
cursor-agent --resume=<id> accepts.
How much of that is documented. The env overrides, the four home directories and
opencode's Windows location are vendor-documented. The per-harness file layouts inside
those directories are not — Amp's thread store especially is undocumented, and everything
below the home directory was read off live installs on one macOS machine. Treat the homes as
reliable and the internals as observed-not-promised: they have already moved once (opencode
went from a JSON tree to SQLite between 1.1 and 1.18, which silently broke detection until
the DB was added). If a harness reports none for this repo and you believe otherwise, the
layout is the first thing to suspect.
Windows runs this script through Git Bash or WSL — it is bash, and there is no native
cmd/PowerShell path. Under Git Bash $HOME is %USERPROFILE%, so the ~-rooted paths
resolve. Under WSL they resolve to the Linux home, which is a different set of sessions
than a native Windows install writes; a session started on one side is invisible from the
other.
Codex, opencode and Grok record the session's cwd, so the script matches sessions to this repo by path. Amp and Claude Code key off an env var or the workspace root. A session opened at a parent directory does not count as this repo's.
Inference never picks an unconfirmed session. A candidate whose workspace cannot be
tied to this repo is reported under OTHER_AGENT_SESSIONS, never as the active session —
a wrong HARNESS/SESSION_ID pair is worse than unknown, because the next reader
trusts it. If the block says unknown, write unknown.
detected_via tells you how much to trust the block. An env var or grok's active_sessions.json is direct evidence. INFERRED means the script guessed from the most recent matching session — check the session id is really yours before copying it into frontmatter.
On a harness not in that table: look for an equivalent local transcript or env var before falling back to unknown.
## May have moved since I stopped; the next session may be walking into someone else's uncommitted work. A row marked workspace unverified is a session the script could see but could not tie to this repo — don't assert it as fact.SESSION_ID is what lets a later session go read the raw log when this pass-along leaves a gap. Omit both if the harness doesn't expose them.REPO is the remote's owner/name, and nothing else. If the directory
has no origin remote, leave REPO blank — a local path is not a repo identity, and writing
one there makes an unpushed scratch directory look like a project a later reader can clone.
Put the path in WORKING_DIR instead. gather.sh prints both, already resolved.git log <HEAD_SHA>..HEAD and detect anything that landed after this pass-along was written.false if work the session set out to do went unfinished. This is the flag that tells an orchestrator your recommendation deserves weight: unfinished in-scope work is exactly the case where the session that did it knows best.TASK_TRACKER in a project without one). Never write N/A filler.Lead with what could bite, not with what you accomplished. Use these headings so session-recap can find things; drop any section that is genuinely empty.
## Start hereTwo or three lines: the one-sentence state of the work, and the literal first commands to run. Point at the predecessor pass-along and any plan or devlog that carries the narrative.
## May have moved since I stoppedState you left in flight and could not confirm: a CI run still going, a PR awaiting checks, a deploy mid-flight, a background job, a rate limit that resets at a known time, a service someone else was restarting. Say what to check and what the expected outcome was. This section is why the pass-along exists — put it first and be specific enough to verify.
## What this session didHeadlines only, each with a pointer to the evidence — commit sha, PR number, bead id, file path. Do not restate the diff. Include the why where a reader could otherwise undo it: "split-horizon registry, because the owner ruled official packs ship in the tarball."
## CommitsThe list from the gather script, since the predecessor pass-along. Bounded — if it runs past ~25, summarize the bulk and list only the ones that carry a decision or a risk. Note any commit that is not pushed.
## Uncommitted workOnly if the tree is dirty. For each meaningful change: the file, what it does, and whether it is finished, half-finished, or a scratch experiment to delete. A next session cannot tell a deliberate WIP from abandoned debris — say which. Note stashes too.
## Open threadsEvery loop this session left open — the neutral inventory, unranked. Your recommendation goes in the next section; keep this one clean so it can be read independently.
For each: what it is, what state it's in (ready to pick up / blocked / needs a human decision), where the full context lives (bead, issue, ADR, file path), and what "done" would look like. Where a real dependency exists, state it as a constraint — "the schema migration has to land before the backfill" is a fact about the work, not a preference about priority. Mark which items were in scope for this session and went unfinished, versus which are new discoveries or deferred extras; an orchestrator weighs those differently.
If you left a piece of work mid-edit, say where the seam is: what's implemented, what isn't, and the approach in flight.
## Recommended next — this session's viewWhat you'd do first if it were your call, and why. The reasoning matters more than the pick: an orchestrator redirecting to unrelated work still needs to know that the migration is half-applied, or that leaving the webhook un-retried has a deadline attached.
Keep the frame honest. You saw one session; the person reading this may be steering a program you know nothing about. Write "I'd finish the org branch of migrate.py first — it's the only in-scope item left, and the half-applied state is a hazard if anyone runs the migration meanwhile," not "next, finish migrate.py."
Flag consequences of not doing it, where real. That's the part an orchestrator genuinely cannot reconstruct, and it's what makes a recommendation worth overriding deliberately rather than by accident.
## Stated directionOnly what the user actually said about what comes next, attributed and close to their words: "the user said the retry logic can wait until after the launch." This outranks your recommendation — if the two conflict, say so explicitly. Never put your own inference here, and omit the section entirely if they said nothing.
## Decisions and rulesChoices made this session that constrain future work, each with its reason. Also any rule you learned the hard way — the thing that must not be done again. These are the entries most likely to be silently violated by a session that skips the pass-along.
## TrapsThings that cost time and will cost it again: a flaky test and its real cause, a command that resolves the wrong database, a tool whose flag is a lie, an error message that means something other than it says. Be blunt.
## Waiting on a humanDecisions, approvals, credentials, or console clicks only the user can do. Name each one and what is blocked behind it.
## HousekeepingScratch checkouts, temp files, env changes, running processes, anything left in a nonstandard state — and whether it's safe to clean up.
.pass-along/ if it doesn't exist. If it's gitignored, tell the user — these are meant to be committed.git add the new pass-along. Don't commit it unless the user asks; they usually want it in the same commit as their work.Before writing, check the draft against these. Every one of them is a real failure mode:
32 skills in this plugin
/architecture-decision-recordsWrite and maintain Architecture Decision Records (ADRs) that capture the context and rationale behind significant technical decisions. Use when documenting an architectural or technology choice, recording a design trade-off, superseding a past decision, or setting up an ADR process. Also use proactively to offer an ADR when a significant decision is made during a coding session (database, framework, auth scheme, API style, integration pattern). Triggers on "write an ADR", "document this decision", "record this architecture choice", "add a decision record", "supersede ADR"./aws-learningsProactively catch common AWS infrastructure mistakes before they happen. Use when creating or modifying AWS components — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, or SSM — to find and apply hard-won deployment lessons and avoid known pitfalls. Read-only: fetches lessons, does not add them./aws-learnings-addContribute a new lesson to the AWS Learnings library (the llms.txt-format library at github.com/jbdamask/aws-learnings-library). Use this whenever you've just debugged, fixed, or discovered a non-obvious AWS gotcha — CloudFormation, CDK, Lambda, API Gateway, IAM, S3, CloudFront, EC2, EventBridge, SQS, Secrets Manager, SSM — and want to capture it for next time. Triggers on phrases like 'add an AWS learning', 'save this AWS lesson', 'capture this gotcha', 'add this to the learnings library', or after solving a tricky AWS deployment problem worth remembering. This skill WRITES files (a new lesson file + an updated index) and prepares a pull request; it is the write companion to the read-only 'aws-learnings' skill./aws-quick-endpointCreate a token-secured REST API endpoint backed by AWS Lambda and DynamoDB with full CRUD and paginated list support. Deploys via CloudFormation. Use when user wants to quickly spin up an API endpoint, create a simple REST API on AWS, build a quick data store with an API, set up a Lambda+DynamoDB endpoint, or needs a fast way to log and retrieve structured data. Triggers on "create an endpoint", "quick API", "Lambda endpoint", "DynamoDB API", "CRUD endpoint", "log data to AWS"./build-my-voiceAnalyzes samples of the user's writing and creates or updates a structured `voice-profile.yaml` describing their writing voice as weighted, evidence-backed features, then asks the author a short round of questions to confirm the inferences the samples cannot settle on their own. Use when the user wants to capture, build, learn, profile, or update their writing voice or style from writing samples — "build my voice profile", "analyze my writing style", "learn how I write", "create a voice profile from these posts", "update my voice profile with this new sample". This skill only ANALYZES writing and produces the profile; it never drafts new content in the user's voice — use the my-voice skill for that./bullshit-testsAudit a codebase's test suite for tests that pass for no good reason — no assertions, tautologies, assertions on mocks only, swallowed exceptions, unawaited async assertions, permanently skipped tests, and other patterns that stay green no matter how broken the code is. Produces a red/yellow/green report. Use when the user says "bullshit tests", "find fake tests", "audit my test suite", "which tests are useless", "are these tests actually testing anything", "check test quality", "find tests that always pass", or asks whether green CI means anything.Other plugins' skills for the same job