/ash:parallel-work-reconfrom ash
Prevents duplicated work and identifier collisions when multiple machines, sessions, or agents operate on the same repo. Runs git fetch, gh pr list, and git log --all at session start and before commits; claims sequential identifiers by scanning all refs; enforces one session per working copy and git -C for worktrees.
Ships in ash. 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.
Eight incidents of duplicated work, colliding identifiers, and edits landing in trees that no longer existed — plus five more where a session or subagent silently edited the wrong checkout. All from one cause: treating a snapshot of repo state as a lease on it. Layer: session-boundary hub; the session-start half is mechanised by the SessionStart hook (hooks/session-recon.mjs), which injects live state at session open.
At session start AND again immediately before any commit, merge, or identifier claim:
git fetch --quiet
git log --oneline --decorate --all -8
gh pr list --state open
The pre-commit re-run is the sharp edge. The session-start check (even the hook's) is a
snapshot, not a lease — another machine or session may have pushed while you worked. A
session once nearly rebuilt a fully-shipped PR because it trusted a stale handover; another
inferred a migration was "phantom" when it was simply unpushed (git ls-remote before
inferring absence).
Migration numbers, version strings, and anything else claimed by "next in sequence" collide
silently under parallel work — git flags nothing when two branches ship the same numbers.
Claim by scanning ALL refs including remote, at merge time, not just when the file is
created. A 009*-style glob can misread the ceiling; list and sort, don't pattern-guess.
git rev-parse --absolute-git-dir from each path answers it in one command, and
on Windows fsutil reparsepoint query <path> names the target. Check before trusting,
because nothing at either path announces the sharing.reset --hard in
a sibling session destroys it with no trace in reflog or fsck --unreachable, so
"recoverable by SHA" applies only to what was committed. The commit is the unit of safety,
not the file save. After a loss, establish committed-or-not before hunting: the two cases
have completely different answers.git -C <path> exclusively for worktree git operations — a cd between tool calls
silently lands elsewhere.git add app/src in the wrong checkout stages nothing you meant.A chip — any background task or session spun off from a live one — starts life mid-parallel-work by construction: the spawning session is still pushing, rebasing and merging while the chip runs. Every chip prompt therefore states these as verbatim duties, never as context the chip must infer:
Ratified 2026-08-06 (PropOS, Ben): a chip was spawned to investigate a smoke-teardown leak while the spawning session was mid-rebase on an open PR; its prompt scoped files and live-data rules but never declared the parallelism. No collision that day; the rule closes the class, not the instance.
It does not probe non-repo state — database catalogs, deployed surfaces, and config are live-state-first's territory. It does not gate the push itself (confirm-before-push and the push-gate hook own that moment).
Parallel work makes staleness the default, not the exception, and git provides no collision signal for identifiers or duplicated effort. Evidence: PropOS LESSONS_LEARNED Sessions 26, 31, 33, 38, 45, 2026-05-22, 2026-07-16, 2026-07-19; worktree incidents Sessions 5, 6, 44, 2026-07-05, 2026-07-07.
Evidence for the two rules above, added 2026-09-21: two sessions ran against one working
copy of this very library, because ~/.claude/projects/Unslop/claude-skills is a directory
junction onto ~/.claude/skills rather than a second clone. A reset --hard in one
destroyed forty minutes of written and verified work in the other, plus a pushed commit, and
left nothing in reflog or fsck. The session had re-probed before committing exactly as
the recon section requires; what it did not do was commit, and it was editing on the strength
of a start-up reading. LESSONS_LEARNED entry 21.
%LOCALAPPDATA%\Temp had every tracked file deleted from disk by
something never identified, and the branch then read as 175 files of unsaved work when the
truth was 175 deletions. Committing them would have committed the removal of the whole
library. Put a worktree next to its clone, where no cleaner reaches it. (Library 40.)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub randommonicle/claude-skills --plugin ash60 skills in this plugin
/ai-surface-disciplineApply input minimisation, output discipline, and a human-in-the-loop gate to every surface that sends data to an LLM. Triggers when building or editing any send-to-LLM path: an Edge Function calling a model, a draft-commentary or summary generator, an auto-resolver, a cash-allocation suggestion, a classification call, or any new AI-assist feature, and when changing the model or the prompt behind one, especially in a RICS or UK GDPR regulated context./blast-radius-grepThe unit of change is the action or the fact, never the list of places someone handed you. Load BEFORE editing when a change reaches code or text it does not name: deleting, moving or renaming anything; rewording a message or label; changing what a status, total or column means; narrowing a grant; adding a constraint, gate or new kind; a lookup on an email, reference or name; fixing one instance of a bug; working from a spec's list of affected places; correcting a duplicated fact; or concluding from a sweep that errored or was truncated. Grep the whole repo and fix every occurrence in one pass. Not for citations in prose (verified-citations)./checkpoint-logKeep a live, committed checkpoint log during any work unit expected to span multiple commits or sessions. Each commit ships with a short note in the log, what the commit did, the key decision and why, any deviation from plan; closing the unit requires an explicit walk of the checklist including the wiring steps. Triggers when starting multi-commit work, when resuming a unit after a crash or a gap, and when declaring a multi-commit work unit done. Does not fire on single-commit fixes, where the commit message carries the note.Other plugins' skills for the same job