Agent skill

Session Start Recovery

by kunchenguid in kunchenguid/firstmate

Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.

MITAuto-check passed

Install Session Start Recovery

skills CLI
$ npx skills add kunchenguid/firstmate --skill session-start-recovery -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kunchenguid/firstmate session-start-recovery --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/kunchenguid/firstmate.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/session-start-recovery .claude/skills/session-start-recovery && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
session-start-recovery
GitHub stars
7.7k
Token cost
~1.8k tokens
SKILL.md length
949 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.

  • Works in 7 steps: Lock - acquires the per-home session… → Bootstrap - detect-only checks… → Wake queue - when locked, drains and… → …
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Session Start Recovery is an agent skill from kunchenguid/firstmate. Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Talk to one agent. Ship with a crew. The licence is MIT.

Example prompts

  • “/session-start-recovery”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Lock - acquires the per-home session lock first, before anything mutates shared state, then starts the deferred startup stage above.
  2. Bootstrap - detect-only checks (tool/version problems, the worktree-tangle check, harness override, dispatch-profile validation…
  3. Wake queue - when locked, drains and presents the durable wake queue without running the inactive-outcome scan inline, and prints the raw…
  4. Supervision operating instructions - after the wake queue and before both digests, the digest emits exactly one operating block for the…
  5. Fleet-state digest - after that read-once contract and ahead of the context digest, the compact backlog listing owned by…
  6. Network checks - after the fleet-state digest, the deferred stage's result, or an explicit statement of what it has not confirmed yet.
  7. Context digest and next step - last of the bulk sections, the full contents of data/projects.md, data/secondmates.md, data/captain.md…

What it can do on your machine

Read from SKILL.md and the folder at commit 19fcbbd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Session Start Recovery loads about 1.8k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 949 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from kunchenguid/firstmate at commit 19fcbbd, republished under its MIT licence (© kunchenguid). 949 words, ~1,767 tokens.

Download SKILL.mdSave it as .claude/skills/session-start-recovery/SKILL.md (or your agent's skills folder).
name
session-start-recovery
description
Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.
user-invocable
false
metadata.internal
true

Session-start recovery

The digest itself makes no external-network call and never waits for one. Every network check a session start owes - GitHub auth, dead-secondmate relaunch, secondmate convergence, pending handoff delivery, and project clone refresh - runs off the digest's blocking path in a bounded worker owned by bin/fm-startup-network.sh and is reported in the digest's own NETWORK CHECKS section. The locked startup inactive-outcome scan joins that worker so a slow local current-state read cannot block the digest; its findings use the ordinary durable wake queue.

  1. Lock - acquires the per-home session lock first, before anything mutates shared state, then starts the deferred startup stage above.
  2. Bootstrap - detect-only checks (tool/version problems, the worktree-tangle check, harness override, dispatch-profile validation, backlog-backend status) always run, but routine confirmations stay silent by default. When the lock could not be acquired, the worktree-tangle check uses read-only advisory wording without a checkout repair command. Home-local stale Herdr projection cleanup and the six bootstrap MUTATING sweeps - same-home backlog reconciliation, fleet sync, secondmate convergence, secondmate liveness, pending remote handoff retry, and Relay artifact writes - run only when this session actually holds the lock from step 1; the four network ones among them run in the deferred stage rather than in this section. The secondmate liveness sweep deterministically accounts for every registered secondmate: it relaunches only from the recovery-grade dead or missing states, preserves ambiguous, unreadable, or unreachable remote targets, and reports skipped or failed guarantees as SECONDMATE_LIVENESS: lines (bin/fm-bootstrap.sh; bin/fm-backend.sh's fm_backend_agent_state; docs/remote-secondmates.md). Ordinary supervision continues the same guarantee through the watcher's cadence-gated liveness tick over the shared bin/fm-secondmate-liveness-lib.sh, so a mate that dies mid-session is relaunched without waiting for the next session start.
  3. Wake queue - when locked, drains and presents the durable wake queue without running the inactive-outcome scan inline, and prints the raw records prominently as this turn's first work queue; a clearly labeled status-event annotation may follow a valid signal record and includes every status line still unread at the presentation cursor, but never replaces the raw record or current-state reconciliation, and a lapsed watcher chain still surfaces here via the same guard alarm. Presented records remain durable until the handling turn runs the generation-bound acknowledgement printed by the drain. Every locked drain also prints a bounded fleet-wide OPEN DECISIONS section when durable decision records remain open, including when the queue itself is empty; reconcile those entries before continuing. A main drain may also print a bounded, one-shot STATUS OUTCOME BACKSTOP when a task's newest captain-facing status event has no covering supervision-branch outcome; handle it as a recovered wake even when no queue row remains. The same drain prints every still-unread note: line and pending-reply resolution since the last presentation in an unbounded UNREAD STATUS section, so an answer buried under a later routine line is not dropped; those lines are not re-printed after that presentation. It also prints a bounded RECORD DIVERGENCE section naming every captain call the status log reads as resolved while its backlog task is still held; nothing is closed for you, and captain-hold-lifecycle owns the reconciliation. When the lock could not be acquired and verified, the queue is left untouched because no session mutation is authorized, and the guard's tangle/watcher-liveness alarms still print in read-only advisory mode without drain, supervision repair, or checkout repair commands.
  4. Supervision operating instructions - after the wake queue and before both digests, the digest emits exactly one operating block for the detected primary harness, followed by the read-once contract that governs them. The script itself never starts supervision; the emitted harness protocol owns the exact wait or wake mechanism.
  5. Fleet-state digest - after that read-once contract and ahead of the context digest, the compact backlog listing owned by bin/fm-session-start.sh; every state/<id>.meta; a bounded tail of each task's state/<id>.status (labeled as wake-EVENT history, not current state, with the full log path printed for a deeper read); the away or quiet posture (state/.afk-contract, plus the state/.afk daemon flag where a daemon runs); and one cheap alive/dead read of each task's recorded backend endpoint. That liveness line is a fast presence check only, not a full state read - when you need a crew's actual current state (a run-step, not just "is the pane there"), read it with bin/fm-crew-state.sh <id> as before; the digest deliberately skips that deeper, slower read for every task so it stays fast and bounded.
  6. Network checks - after the fleet-state digest, the deferred stage's result, or an explicit statement of what it has not confirmed yet. A read-only session runs no network checks at all and says so.
  7. Context digest and next step - last of the bulk sections, the full contents of data/projects.md, data/secondmates.md, data/captain.md, data/captain-shared.md, and data/learnings.md, each clearly delimited, followed by the closing reminder. A file that does not exist prints an explicit ABSENT marker, never confused with an empty-but-present file: absence is meaningful (captain.md absent means use the firstmate repo's built-in defaults, projects.md absent means rebuild it from the clones under projects/, etc.). The closing reminder points back to the emitted supervision block and preserves only the lock, afk, Relay, and read-once reminders.
Show full SKILL.md (108 more words)Show less

Bootstrap detects first, asks for consent, and installs only after the captain approves in the current session. Do not dispatch until the essential launch tools are present and GitHub authentication is good; presentation availability follows bootstrap-diagnostics and does not block nonvisual work. Use gh-axi for GitHub, chrome-devtools-axi for browser work, and compatible lavish-axi for visual decisions or reports; consult current help rather than memorizing flags. A silent bootstrap section needs no action; for any printed actionable diagnostic line, load bootstrap-diagnostics and follow its owner procedure. BOOTSTRAP_INFO: lines are completed no-action facts and do not require loading a skill. secondmate-provisioning owns startup secondmate sync, liveness, and inherited local-material convergence.

© kunchenguid, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/session-start-recovery of kunchenguid/firstmate.

Open the folder on GitHubat commit 19fcbbd

Compare with similar skills

Session Start Recovery next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Session Start Recovery compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Session Start Recovery this skillkunchenguid/firstmate7.7k—~1.8kAutomated safety check: PassMIT
Backup Recoverysickn33/agentic-awesome-skills47k2 repos~3kAutomated safety check: WarnMIT
Disaster Recoverysickn33/agentic-awesome-skills47k2 repos~3kAutomated safety check: PassMIT
Testing Ransomware Recovery Proceduresmukul975/Anthropic-Cybersecurity-Skills34k—~1.9kAutomated safety check: PassApache-2.0
Validating Backup Integrity For Recoverymukul975/Anthropic-Cybersecurity-Skills34k—~1.9kAutomated safety check: PassApache-2.0
Collection Digestoutline/outline41k—~498Automated safety check: PassCustom licence

Similar skills

  • Backup Recovery

    sickn33/agentic-awesome-skills

    Implement backup and recovery strategies. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~3k tokens
    DevOps & CloudAuto-check: warnings
  • Disaster Recovery

    sickn33/agentic-awesome-skills

    Implement disaster recovery strategies and runbooks. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~3k tokens
    DevOps & CloudAuto-check passed
  • Testing Ransomware Recovery Procedures

    mukul975/Anthropic-Cybersecurity-Skills

    Tests and validates ransomware recovery procedures - backup restore operations (e.g.

    34k GitHub stars~1.9k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Validating Backup Integrity For Recovery

    mukul975/Anthropic-Cybersecurity-Skills

    Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery…

    34k GitHub stars~1.9k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Collection Digest

    outline/outline

    Summarize what changed in an Outline collection since a date; use when the user asks what is new, what was updated, or wants a digest of recent documents.

    41k GitHub stars~498 tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Morning Digest

    yc-software/qm

    Assemble and deliver one short morning digest for the person who owns the cron — what changed overnight in the sources they already connected, and what it means for their day.

    15k GitHub stars~754 tokensUpdated today
    Productivity & AutomationAuto-check passed

More from kunchenguid/firstmate

All 29 skills in this repo
  • Project Management

    kunchenguid/firstmate

    Agent-only procedure for Firstmate project management. An agent skill from kunchenguid/firstmate.

    7.7k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Stow

    kunchenguid/firstmate

    Sweep the current conversation for durable knowledge - user preferences, project facts, operational gotchas, standing decisions, and unfinished next steps - and file each through explicit…

    7.7k GitHub stars~5.1k tokensUpdated yesterday
    Auto-check passed
  • Updatefirstmate

    kunchenguid/firstmate

    Self-update a running firstmate and its secondmates to the latest from origin.

    7.7k GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Harness Adapters

    kunchenguid/firstmate

    Agent-only reference for firstmate harness operations. An agent skill from kunchenguid/firstmate.

    7.7k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Secondmate Provisioning

    kunchenguid/firstmate

    Agent-only reference for persistent secondmate setup and retirement.

    7.7k GitHub stars~8.1k tokensUpdated yesterday
    Auto-check passed
  • Stow

    kunchenguid/firstmate

    Sweep the current session for uncaptured durable knowledge, file it to disk, persist the open work records this session knows are unfiled or now wrong, and curate the home's tiered, decaying startup…

    7.7k GitHub stars~9k tokensUpdated yesterday
    Auto-check passed

Questions about Session Start Recovery

What does Session Start Recovery do?

Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation. Session Start Recovery is an agent skill from kunchenguid/firstmate. Load when the session-start digest reports unfinished checks, actionable diagnostics, recovery inputs, or output requiring interpretation.

How do I install Session Start Recovery in Claude Code?

Run `npx skills add kunchenguid/firstmate --skill session-start-recovery -a claude-code`. Or copy the skill folder (.agents/skills/session-start-recovery in kunchenguid/firstmate) into .claude/skills/session-start-recovery in your project. Claude Code loads it when a task matches its description.

How do I install Session Start Recovery in Codex?

Run `npx skills add kunchenguid/firstmate --skill session-start-recovery -a codex`. Or copy the skill folder (.agents/skills/session-start-recovery in kunchenguid/firstmate) into .agents/skills/session-start-recovery in your project. Codex loads it when a task matches its description.

Can I use Session Start Recovery in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kunchenguid/firstmate --skill session-start-recovery -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/session-start-recovery, .gemini/skills/session-start-recovery, .github/skills/session-start-recovery and .opencode/skills/session-start-recovery in your project.

What does Session Start Recovery need to run?

SKILL.md names no scripts, command-line tools or credentials: Session Start Recovery is instructions for the agent only.

Does Session Start Recovery access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Session Start Recovery safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Session Start Recovery use?

Session Start Recovery is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Session Start Recovery use?

About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Session Start Recovery?

Skills that share tags, products or a category with Session Start Recovery: Backup Recovery (sickn33/agentic-awesome-skills, 47k stars), Disaster Recovery (sickn33/agentic-awesome-skills, 47k stars), Testing Ransomware Recovery Procedures (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Validating Backup Integrity For Recovery (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Session Start Recovery?

kunchenguid (a GitHub user) maintains it in kunchenguid/firstmate, which has 7,707 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 8, 2026.

Source: kunchenguid/firstmate on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.