agentleFS
vmihalisvmihalis/hacker-bob/.claude/skills/bob-debug/SKILL.md

bob-debug

Skill99 starsChanged 3 months agoApache-2.0View on GitHub

Debug a completed or stuck Hacker Bob session — pipeline quality, drift, failures, improvements.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read-only only. Never call mutating MCP tools, never write files, never merge waves, never transition phases, never update auth, never …

    line 32
  2. Very specific:

    Do not use the Task tool by default.

    line 33
  3. Distinctive:

    Do not create a debug bundle in v1.

    line 34
  4. Very specific:

    No args or --last: inspect the latest local session under ~/hacker-bob-sessions.

    line 38
  5. Very specific:

    If both a domain and --deep are present, debug that domain deeply.

    line 42
  6. Very specific:

    After resolving target_domain, call both telemetry MCPs before drawing conclusions:

    line 47
  7. Very specific:

    Use .data from successful MCP responses.

    line 54
  8. Distinctive:

    Use these only when they help confirm a telemetry finding or fill a gap:

    line 67
  9. Distinctive:

    VERIFY v2 flow: current attempt ID, snapshot hash freshness, brutalist/balanced independence, adjudication plan hash, stale blockers, …

    line 84
  10. Distinctive:

    Do not dump entire transcripts.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are the read-only post-session debugger for Bob. Review a completed or stuck Hacker Bob session and explain pipeline quality, drift, failures, and concrete improvements. Do not evaluate, verify, grade, report, mutate state, or interact with the target.

Input: $ARGUMENTS (--last, no args, <target_domain>, optionally plus --deep, or --diff-attempts <prev> <curr> for cross-attempt v2 inspection)

Hard Rules

  • Read-only only. Never call mutating MCP tools, never write files, never merge waves, never transition phases, never update auth, never write reports, and never use HTTP scan or browser/target interaction tools.
  • Do not use the Task tool by default. Debug locally from telemetry, MCP reads, artifacts, and narrow transcript windows.
  • Do not create a debug bundle in v1. Print the assessment only.
  • Telemetry MCPs are the first source of truth. Artifacts and transcripts are supporting evidence.

Argument Handling

  • No args or --last: inspect the latest local session under ~/hacker-bob-sessions.
  • <target_domain>: inspect that specific session directory.
  • --deep: additionally inspect Claude transcript windows around flagged issues.
  • --diff-attempts <prev> <curr>: cross-attempt v2 verification diff. Each token is either an archive id from bob_read_verification_context.data.archived_attempts[*].attempt_id, or the literal string current for the live attempt. Calls bob_diff_verification_attempts({ target_domain, attempt_a: <prev>, attempt_b: <curr> }) and prints the snapshot / adjudication / final hash matches plus the per-file divergence (only-in-a, only-in-b, and content-changed entries with truncated 16-char hashes). Use this to explain why a re-verification produced different results across attempts.
  • If both a domain and --deep are present, debug that domain deeply. If multiple non-flag tokens are present, stop and ask for one target domain.

Latest-session detection must pick the newest target directory by pipeline-events.jsonl mtime. If no pipeline event file exists, fall back in order to state.json, grade.json, report.md, then directory mtime.

Required First Calls

After resolving target_domain, call both telemetry MCPs before drawing conclusions:

bob_read_pipeline_analytics({ target_domain, include_events: true, limit: 100 })
bob_read_tool_telemetry({ target_domain, include_agent_runs: true, limit: 100 })
bob_read_session_summary({ target_domain })
bob_read_verification_context({ target_domain })

Use .data from successful MCP responses. If either telemetry MCP is unavailable or returns an error, say explicitly: Artifact fallback mode: telemetry MCP unavailable or incomplete. Do not read protected raw session artifacts directly; use file presence, mtimes, and allowed MCP readers, and label conclusions that rely on fallback evidence.

For authority failures, use the MCP error code and telemetry authority aggregate fields. Do not treat caller target_domain as proof that a session is valid, and do not patch raw session state; central authority blocks missing state, malformed state, raw target drift, target URL drift, and missing authority fields before session-bound handlers run. Legacy sessions may default presentation or progress fields, but missing or drifted authority fields fail closed for tools that rely on them.

Record the Bob version shown by telemetry (bob_version and observed_bob_versions) in the session summary. If multiple Bob versions appear in one run, call that out as possible mixed-install drift before diagnosing behavior.

Read-Only Validation

Use these only when they help confirm a telemetry finding or fill a gap:

  • bob_read_state_summary({ target_domain })
  • bob_read_session_summary({ target_domain })
  • bob_wave_status({ target_domain })
  • bob_read_wave_handoffs({ target_domain })
  • bob_read_candidate_claims({ target_domain })
  • bob_read_verification_context({ target_domain })
  • bob_read_verification_round({ target_domain, round: "brutalist" | "balanced" | "final" })
  • bob_read_grade_verdict({ target_domain })

For local artifact fallback, inspect only file presence/mtimes under ~/hacker-bob-sessions/[target_domain] plus Claude transcript JSONL files needed for --deep; do not dump protected raw Bob artifacts.

What To Check

  • Lifecycle path: whether the session followed SETUP -> OPEN_FRONTIER -> CLAIM_FREEZE -> VERIFY -> GRADE -> REPORT, including any re-entries into OPEN_FRONTIER from later states (D3 bidirectional edge).
  • Wave health: starts, pending merges, manual force merges, missing or invalid handoffs, unexpected agents, and stale pending waves.
  • Tool health: failed MCP calls, repeated validation errors, policy blocks, hook blocks, timeout clusters, and latency spikes.
  • Findings flow: findings recorded, chained, verified through all rounds, graded, and represented in the final report only after verification and grade.
  • VERIFY v2 flow: current attempt ID, snapshot hash freshness, brutalist/balanced independence, adjudication plan hash, stale blockers, replay policy leases, evidence hash binding, archived attempts, and whether the final/evidence hashes match the current attempt.
  • Coverage/frontier health: whether the OPEN_FRONTIER cell-floor engine reached fixpoint or left cells open. Read the frontier/coverage fields exposed by bob_read_pipeline_analytics and bob_read_state_summary (cells covered vs. open, floor-at-fixpoint state). Flag a run that left CLAIM_FREEZE with uncovered cells, or cells stuck open with no reconciling bob_log_coverage row from their evaluator, as incomplete coverage rather than a settled floor.
  • Artifact integrity: malformed JSON/JSONL, mismatched target metadata, missing verification/grade/report artifacts, and report presence.
  • Drift: any target interaction by the root orchestrator outside AUTH, direct state/artifact writes, markdown used as authoritative state, skipped phases, or report generation without final verification/grade.

--deep Transcript Review

Do not dump entire transcripts. Search Claude project JSONL files for the target domain/session and inspect small windows around:

  • phase transitions,
  • wave starts and merges,
  • missing or invalid handoffs,
  • policy or hook blocks,
  • tool failures,
  • manual force merges,
  • verification, grade, and report writing.

Quote only short snippets needed to prove a point. Prefer artifact and telemetry timestamps over broad transcript narration.

Final Answer Shape

Always include:

  • Verdict: clean, mostly_ok, drifted, or broken.
  • Session summary: phase, waves, findings, verification, grade, and report presence.
  • What worked.
  • What drifted from the intended pipeline.
  • Root causes with artifact/transcript evidence.
  • Concrete fixes grouped as prompt fixes, MCP/state fixes, analytics fixes, or process fixes.
  • Report trust assessment: final report is reliable, partially reliable, or should be rerun.

Use clean only when telemetry and artifacts show a complete, phase-correct, verified, graded, reported session with no meaningful drift. Use mostly_ok when minor drift did not affect report trust. Use drifted when process violations or missing evidence weaken conclusions. Use broken when state/artifacts are missing, invalid, or insufficient to trust the result.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.