/kunglao-agent:resume <workspace> — no args → guided workspace promptfrom kunglao-agent
Recovers a kunglao-agent workspace after crash or reboot by producing a read-only brief of health, open claims, partial facts, in-flight workers, and breakpoint timeline, then executing the next step from convergence_check.
Ships in kunglao-agent. 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.
Before producing the brief, the CLI runs the stale-workspace gate
automatically (it is part of scripts/kunglao.py resume, not a separate
call). If the gate refuses:
status="stale" + rc=5 → workspace template stamp trails the active
skill version. Direct the operator to
/kunglao-agent:upgrade <workspace> and stop. The user must explicitly
act — there is no auto-fix per user ruling.status="no-stamp" + rc=5 → workspace has no version stamp at all;
direct to /kunglao-agent:init <workspace> first.Only when the gate passes does the resume brief render. The gate is machine-checkable and cannot be skipped by the slash command.
Run after a crash, reboot, or dead session to rebuild the breakpoint from
mechanical state — never from the dying session's narrative. The brief is
produced by scripts/kunglao_resume.py (also uv run --project <SKILL_DIR> python scripts/kunglao.py resume <workspace> [--json]) and covers:
runs/.event-loop.json listener rows + refs; the legacy
runs/.heartbeat.json credential where the dispatch gate still
reads it), activation TTL (.hook_state.json), blockersconvergence_check.decide (the state machine — resume never
recomputes it)| rc | verdict | meaning |
|---|---|---|
| 0 | RESUMABLE | state coherent, loop armed (live listener + refs non-empty) — the COMMAND follows through after the safe preconditions (see Handoff contract); the CLI itself only reads |
| 1 | NEEDS-MANUAL | a manual step first: loop not armed (register a listener: event_loop.py <ws> register --session <id>), missing claim-register, or BLOCKED/INVALID decision |
| 2 | NO-STATE | nothing to resume — initialize with /kunglao-agent:init |
Two faces, one contract:
scripts/kunglao_resume.py) is READ-ONLY: it registers
no listener, renews no TTL, dispatches nothing, and writes no file. The
brief is diagnosis; the CLI never follows through on the decision./kunglao-agent:resume) owns the follow-through. On
rc 0 it applies the safe preconditions IN ORDER:
.hook_state.json expires_at in the past)
→ run hook_activation.py <ws> --renew first, then continue;DISPATCH_VERIFIER → dispatch an independent verifier for the named
partial facts; DISPATCH → the priority top claim; SATURATED →
poll the active workers; CONVERGED → run the handoff checklist;
BLOCKED → the self-recovery ladder; INVALID → fix
task_spec.primary_questions first.
When the command cannot execute the step itself it hands off explicitly
to /kunglao-agent analysis <workspace> — it never silently stops.scripts/external_kicker.py recovers the
DYING session and writes; resume diagnoses the CRASHED workspace, and
only the command acts on it.The regression fixture for this split is the observed RESUMABLE state
with an expired activation TTL plus a DISPATCH_VERIFIER decision: the
command renews the TTL first, then dispatches the verifier.
An empty $ARGUMENTS never guesses the cwd and never dumps a bare
argparse error: print the guided workspace prompt and WAIT — one
question, enumerate known candidate workspaces (recent ~/cases/*
paths) if available, and only proceed on an explicit answer. A cwd
candidate may be PROPOSED but must be explicitly confirmed — never
silently run against it. Never guess.
$ARGUMENTS when present: /kunglao-agent:resume <workspace>.uv run --project <SKILL_DIR> python scripts/kunglao_resume.py <workspace> (add --json for the
machine-readable brief) and relay the brief, its exit code, and the
next step. rc 0 → follow the Handoff contract (preconditions first, then
the decision's next step); rc 1 → surface the manual reasons and the
re-arm advice BEFORE any other action. rc 2 → point the operator at
/kunglao-agent:init <workspace> [--type ...].analysis_state.txt / progress.txt are data-age rows only — LLM
self-descriptions are never events.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/analysiskunglao-agent:analysisEnter the kunglao-agent convergence loop on an initialized workspace: dispatch specialist workers, verify evidence byte-by-byte, and drive the fact base to PROVEN convergence. The workspace must already be initialized (see /kunglao-agent:init)./helpkunglao-agent:helpPrint the kunglao-agent subcommand usage list: the commands, their arguments, and an example invocation for each. Also shown automatically when /kunglao-agent runs with no arguments./initkunglao-agent:initInitialize a kunglao-agent analysis workspace. Intakes task_spec.yaml FIRST (needs-first: the environment derives from the task), aligns the analysis lane + target + project type, scaffolds the directory skeleton, writes the workspace CLAUDE.md, mounts the material (a binary sample only on the malware lane), probes the toolchain, and deploys hooks. One fresh workspace per engagement — a lane, not necessarily a sample./kunglao-agentUse when the user runs, starts, dispatches, or continues kunglao-agent (/kunglao-agent), or when a reverse-engineering target needs deep analysis with unresolved claims. Also auto-triggers on the user's problem phrases — Chinese OR English: "kunglao-agent 笨了", "傻等", "空转", "不收敛", "方法错了", "分析办法有问题", "失败归因", "实际进度和计划不匹配", "kunglao-agent stuck / not moving", "plan doesn't match reality", "worker reports problem / 卡住", "VM 网络不通", "should just ping". Convergence-driven RE orchestrator: dispatches specialist workers, verifies evidence byte-by-byte, refuses to conclude NEGATIVE from a failed method (forces failure_analysis first). NOT for: report writing, single quick questions, re-running CTI that already produced artifacts. Convergence loop, failure gate, and reference protocols are loaded on demand from references/./upgradekunglao-agent:upgradeMigrate a legacy workspace's framework scaffold forward to the current kunglao-agent release. Hooks rewire, template refresh, ALWAYS_ARMED hook state repair, toolchain manifest refresh, event vocabulary updates, and `.agent/` metadata seeding. **User data is never touched** — the seven user-data dirs (claims/ facts/ runs/ hypotheses/ notes/ evidence/ oracle/) are sha256-normalized before/after; any byte difference aborts with `RC_IRON_RULE=4` and the pre-upgrade snapshot stays on disk for forensics. Use `--dry-run` to print the per-item plan without writing. Wraps `scripts/kunglao_upgrade.py` + the post-upgrade git snapshot path (legacy no-git workspaces only). Use when an initialized workspace's version stamp trails the skill package and you want it brought current without losing analysis data.Generated from the plugin's indexed repository (amd2g2zz/kunglao-agent) — no native marketplace selected
npx claudepluginhub p/amd2g2zz-kunglao-agentOther plugins' skills for the same job