Skip to content
Back to skills

Resident Start

ASecurity

Orient a resident after boot or resume, reconcile recovery and report readiness without choosing work.

  • 88 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 20, 2026
ai-agentsgo

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add gtapps/claude-code-hermit --skill resident-start --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Resident Start?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Resident Start
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gtapps-resident-start/badge)](https://www.skillsdirectory.com/skills/gtapps-resident-start)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: resident-start
description: Orient a resident after boot or resume, reconcile recovery and report readiness without choosing work.
---
# Resident Start

## Inputs and goal

Use the startup hook context, `.hermit/config.json`, `state/runtime.json`, `state/execution.json`, and open task records to establish resident readiness. OPERATOR.md and TASKS.md are injected by SessionStart; use their policy and read them only when absent from context. Startup does not select a task or ask what to work on next.

## Workflow

1. **Upgrade classification.** `---Upgrade Available---` is a notification only: the agent's queue runs the upgrade after this turn. If the hook emits `---Stale Plugin Runtime---`, relay the stale-install notice: an upgrade cannot replace the plugin copy loaded by this process.
2. **Boot classification.** Freshly read runtime and execution state. A missing runtime is a first boot. A resumed process is still a new boot for process-scoped watches. Observe execution without writing its state: hook observations own `execution.json`, and `unknown` is not evidence that work finished. If the lifecycle lock is held, report that the boot operation is still in progress and stop this readiness flow.
3. **Record inventory and recovery.** Run `bun ${CLAUDE_PLUGIN_ROOT}/scripts/task.ts list .hermit --open`. Use the returned execution observation and each open record's result or waiting state. Run `bun ${CLAUDE_PLUGIN_ROOT}/scripts/routines.ts recover --report` and include its retried and closed routine facts in the readiness report. Report its `pending` runs as awaiting the recovery scan, not as retried or closed; the mod owns recovery, so do not dispatch retries here. For `last_error` of `unclean_shutdown`, report the interruption and the open records, including `watchdog_restart_reason` when present. Preserve records and pending results; an interrupted process neither completes nor cancels a commitment. Report readiness with the recovery facts, without an archive-or-resume question. After reporting, clear only the acknowledged `last_error` and `watchdog_restart_reason`. If `orphaned_process` is recorded, alert the operator that the prior process may still exist and needs verification before treating the resident as ready; do not start duplicate work.
4. **Duty and session recovery.** Run `/hermitd:watch start` unconditionally. List the open task threads with `bun ${CLAUDE_PLUGIN_ROOT}/scripts/task.ts list .hermit --open --owner 'worker:*' --json` and report them: the next reply in each thread goes to the worker id the record names, and only a failed send starts a fresh worker. Also run `bun ${CLAUDE_PLUGIN_ROOT}/scripts/task.ts list .hermit --open --owner 'helper:*' --json` and match owners by name against `claude agents --json`. For each matching row with `status == "busy"` or non-null `waitingFor`, re-arm via `/hermitd:watch session <n> --id <bg-id> --record <T-id> --prior-report <id|null>` for that helper's in-progress record only (no result and no `waiting_on`), using its current `report_id` as `prior_report`. The agent row’s `state` does not determine eligibility. Include open helper records with a result or `delivery: "pending"` in readiness without resending. Load `/hermitd:hermit-routines load` and start `/hermitd:heartbeat start` when enabled and not already running.
5. **Readiness report.** Use the configured identity and language, and notify per CLAUDE.md Operator Notification policy. Give one brief report of readiness, interrupted or waiting records, and duty availability. Recovery notification is the boot notification, so do not send a second ping. In always-on mode never ask for a task. Leave task selection to an operator assignment, a routine or the queued-record workflow.

## Result

A ready resident with reconciled duties and an accurate open-record inventory. This skill does not open, close, cancel or select a task. There is no task argument path. Task mutations and lessons belong to `task.ts` and `/hermitd:task`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.