/kunglao-agent:analysis <workspace> (alias analyze) — no args → guided workspace promptfrom kunglao-agent
Enters the kunglao-agent convergence loop for reverse-engineering: dispatches specialist workers, verifies evidence byte-by-byte, and drives the fact base to PROVEN convergence. Requires an initialized workspace.
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.
Enters the convergence-driven reverse-engineering loop on an initialized workspace. The loop dispatches specialist workers (static first), has an independent verifier re-derive every fact blind from raw evidence, and uses mechanical gates to decide when the analysis is done. The deliverable is a fact base where every claim is byte-anchored, independently verified, and evidence-indexed.
The workspace must already exist and be initialized (see
/kunglao-agent:init); a workspace that is not initialized is refused work.
Before entering the loop, run:
kunglao check-stale <workspace>
This emits a JSON envelope {status, rc, workspace_stamp, skill_version, advice}.
Three terminal outcomes:
status="current" + rc=0 → proceed with the loop.status="stale" + rc=5 → refuse. The workspace's template stamp is
older than the active skill version, so the hooks the current version
registers (completion_gate, violation_capture, _path_hygiene,
orchestrator_tool_guard) would silently not load — every gate the
loop relies on would be missing. Direct the operator to
/kunglao-agent:upgrade <workspace> and stop. The user must
explicitly run upgrade; do not auto-fix.status="no-stamp" + rc=5 → refuse and direct to
/kunglao-agent:init <workspace> first.status="deploy-drift" + rc=5 → refuse. The workspace carries deployed
framework copies (.claude/hooks) whose digest no longer matches the
skill package's deployment manifest — hand-edited copies, a missing
digest carrier, or content deployed by an older skill build. Same
remediation: /kunglao-agent:upgrade <workspace> (its refresh restores
the copies and re-stamps the carrier), then re-run the gate.The gate runs in <50ms and produces a parseable contract — call it once at entry rather than reasoning about stamps yourself.
After the stale gate passes — and before any dispatch — run:
kunglao analysis <workspace>
One command, two machine steps: the stale gate → the event-loop liveness verify. Exit contract (never proceed on failure):
rc=0 — entry is clear: the event loop is ARMED — a LIVE listener
process is registered in <workspace>/runs/.event-loop.json AND the
ref set is non-empty (pending workers or open claims). Liveness is
process liveness: the loop dies with its process; there is no cron
and no tick continuity. Register the listener at every analysis
entry. Enter the loop.rc=5 — identical to check-stale refusal : stale or missing stamp.rc=6 + stderr event loop UNARMED — monitoring is not verifiably alive — the loop-armed acceptance failed (no live listener, or no
refs left to act on). Direct to /kunglao-agent:resume; do not
hand-wave a dispatch through.rc=7 + stderr analysis entry refused - oracle anchors missing ... —
the required intake answers are not in task_spec.yaml
(goal_verbatim / success_criterion / verification_method, the
latter one of reproduction | replay-evidence | static | manual). Route
back to the init intake: collect the three answers (never guess or
default one), write them into task_spec.yaml, re-run this gate. For
phrasing help, point the user at the README section "How to state the
task".Machine self-check replaces remembering — the user should never need to
know what a heartbeat is to reach this fix: registration is one command
(event_loop.py <workspace> register --session <id>), and the gate
re-run settles it.
An empty $ARGUMENTS never enters the loop and never guesses the cwd:
print the guided workspace prompt and WAIT — one question, enumerated
candidates, never guess, no bare argparse-style error dump.
claim-register.yaml present),
propose exactly the cwd as the candidate and CONFIRM it — never silently
run on it.A missing workspace is the zero-args case: analysis takes exactly one
positional argument, so there is no separate partial-argument flow.
uv run --project <SKILL_DIR> python <SKILL_DIR>/scripts/env_check.py <workspace>; enter with OVERALL=PASS; degraded rows (marked T3-restricted: in the output and listed under degraded in runs/.env-check.json) enter the loop FLAGGED — they restrict T3 dynamic work, they do not block entry. Re-run Phase 0 after fixing any blocking row.skills/kunglao-agent/SKILL.md (Phases 1-5: activate → dispatch →
verify → completion transaction → delivery) and follow it exactly.scripts/convergence_check.py; drain pending_settlements via
kunglao-settler (carry the facts-snapshot: marker; it counts toward
the ≤3 cap and needs a no-open-step window) before the worker dispatch;
run scripts/convergence_health.py every 3rd turn.claim-register.yaml + facts/ + evidence/_index.json./kunglao-agent:analysis ~/cases/synth-dropper/kunglao-agent analysis ~/cases/synth-dropper (main skill, subcommand form)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (amd2g2zz/kunglao-agent) — no native marketplace selected
npx claudepluginhub p/amd2g2zz-kunglao-agent6 skills in this plugin
/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/./resumekunglao-agent:resumeCrash/reboot breakpoint recovery for a kunglao-agent workspace: a READ-ONLY brief of where the analysis stood (health, open claims, partial facts, in-flight workers, breakpoint timeline) plus the next action taken from convergence_check. Use after a system reboot, a crashed session, or any "where was this analysis?" moment. The CLI never writes; the command renews an expired activation TTL and then executes the decision's next step after the documented preconditions./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.Other plugins' skills for the same job