/flightwake:fw-coldstartfrom flightwake
Restores flightwake-managed repo state on cold start or takeover. Reads STATE.md, initializes if needed, and recovers context before touching files.
Ships in flightwake. 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.
Purpose: before touching any file, recover to a "safe takeover" state with the minimum reading — cold-start cost (time and tokens to a correct report) is this framework's quality metric.
.flightwake/ folder at all? flightwake is not set up in this repo yet. Say so and ask the user before writing anything;
with their yes, run npx flightwake init --plugin when this repo has no .claude/skills/fw-coldstart/ (the skills came from
the Claude Code plugin, which also brings the hooks), otherwise npx flightwake init. Then continue with step 1..flightwake/STATE.md (where we are, in progress, next entry points, standing facts)
Not initialized yet? If STATE still carries the shipped template's own placeholders — the frontmatter
updated: {{DATE}}, updated_by: {{SESSION_OR_PERSON}}, latest_record: records/{{YYMMDD}}-{{slug}}.md, or body lines
that are exactly the template's {{…}} lines — STATE was never initialized. Fill in the unfilled fields first:
{{…}} is the user's content (an example, a template of
their own) and stays as written; anything already filled in stays as written too — replace only the unfilled linesgit log --oneline -20, the directory layout, obvious open work.
updated = today, updated_by = you (model/session), latest_record = the newest file in .flightwake/records/, or nonehealth: the template's pre-filled health: green counts as unfilled. Mark green only with verification evidence from
this session (e.g. you ran the tests and they passed); otherwise mark yellow and say why in the comment
(e.g. health: yellow # first STATE — nothing verified yet)latest_record: none — exactly that, lowercase, no quotes or brackets: it is the one spelling doctor reads as
"no record yet" (a normal state, not a problem). Write "unknown" rather than guess.flightwake/records/, entries in
DECISIONS/TRAPS beyond the template, or commits — this is a takeover with a half-filled STATE: continue with steps 2–4
as usual (latest record, relevant DECISIONS/TRAPS, the lag check). Only a truly fresh install (none of those) goes
straight to step 5. Either way, the step-5 report includes the STATE you filled in and what you could not determinelatest_record the STATE frontmatter points to (full context of the last wrap-up)DECISIONS.md (mandatory before changing an established direction), TRAPS.md (check when hitting weird symptoms;
also — if the work you're about to do touches the territory of a trap, read that entry before you act, don't wait for the
symptom, by then you've already stepped in it)
— in both, skip entries marked superseded (they are history; when old and new conflict, trust active / the newer date)
— for TRAPS entries, check confidence first: only confirmed may be treated as a rule; probable/suspected/
legacy entries without the field are leads, not facts — and must never be used to argue "doing it this way is safe"
(a wrong safety call hits prod and your users directly). To proceed on one, verify it yourself first, then write the result
back and raise the entry's confidencegit rev-list --count "$(git log -1 --format=%H -- .flightwake/STATE.md)"..HEAD
(≥1 = the last session didn't wrap up — raise your guard; if STATE was never committed, use git log --oneline -10 instead)npx flightwake traps stats (read-only) first — its count is sessions that tripped the entry
(once per session), and only Edit/Write paths, Bash command prefixes and paths a Bash command writes count; a path a command only reads or mentions does not.
Unanchored entries → candidates for adding paths/commands anchors; anchored but no session tripped it in a long time →
candidates to re-verify or supersede; tripped by many sessions → keep. stats only covers Claude Code sessions with the mod
(Codex/Gemini never record trips); when it says there is no trip data, don't read "never tripped" as "unused"
The proposal must be approvable with a single word: give the diagnosis first (what's slow: STATE too long/stale?
last session never wrapped up? too many stale TRAPS/DECISIONS entries? records using codenames outsiders can't read?),
then an item-by-item plan (which entry gets superseded and why; which get merged). Don't touch anything before the user confirms —
a wrong "is this still true" call propagates to every future session. The judgment stays with the human; the work stays with the model.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
flightwake, state-restore, cold-start, takeover, repo-context
Generated from the plugin's indexed repository (kaiwutech-tw/flightwake) — no native marketplace selected
npx claudepluginhub p/kaiwutech-tw-flightwake16 skills in this plugin
/fw-handoffflightwake cross-session handoff — write CONTEXT for work that is unfinished and will continue later. Use when stopping mid-build on multi-session work, when the user says handoff / continue next time, or before context runs out on a large task./fw-recordflightwake wrap-up record — write the flight record and update STATE. Use when wrapping up: 3+ commits since the last record, the session is ending, or (in code repos) work that touched schema/prod; also when the user says wrap up / record this./fw-trapflightwake trap registration — write a non-obvious trap into the TRAPS registry. Use immediately when a surprising root cause is found (weird error, vendor quirk, encoding trap), or when the user says log this trap / trap./fw-coldstartflightwake コールドスタート — repo に触る前に状態を復元する。Use when starting work in a repo that has .flightwake/, when the user says 引き継ぎ/続きから/coldstart, or at the start of any session touching a flightwake-managed repo./fw-handoffflightwake セッションをまたぐ引き継ぎ — 「まだ終わっておらず、後で続ける」作業のために CONTEXT を書く。Use when stopping mid-build on multi-session work, when the user says 引き継ぎ/handoff/次回続き, or before context runs out on a large task./fw-recordflightwake 締めの記録 — 飛行記録を書いて STATE を更新する。Use when wrapping up: 3+ commits since the last record, the session is ending, or (in code repos) work that touched schema/prod; also when the user says 締め/記録して/record.Other plugins' skills for the same job