Skip to content
Back to skills

Diagnosing Bearpaws

ASecurity

Use when a session went wrong and your human partner wants to know why — it took too long, a skill did not fire, it said COMPLETE but tests failed, a review finding was ignored — or wants to check that a risk receipt matched what the session did

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgoaws

Works with

  • claude code

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add thepragmaticbear/bearpaws --skill diagnosing-bearpaws --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagnosing Bearpaws?

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

Security grade badge for Diagnosing Bearpaws
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thepragmaticbear-diagnosing-bearpaws/badge)](https://www.skillsdirectory.com/skills/thepragmaticbear-diagnosing-bearpaws)

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: diagnosing-bearpaws
description: Use when a session went wrong and your human partner wants to know why — it took too long, a skill did not fire, it said COMPLETE but tests failed, a review finding was ignored — or wants to check that a risk receipt matched what the session did
---

<skill>

  <purpose>
    Find out what actually happened in a past session and report it with evidence. The transcript is the record; a receipt, a summary or your memory of the session is a claim to check against it. Report only: this skill changes nothing. Claude Code transcripts only.
  </purpose>

  <triggers>
    <rule>Your human partner says a session went wrong: too slow, a skill never fired, COMPLETE while tests failed, a review finding ignored.</rule>
    <rule>Your human partner asks whether a risk receipt was honest.</rule>
  </triggers>

  <warning level="hard">
    EVERY FINDING CITES `path:line`, and so does every reconciliation row. Write the full absolute transcript path in each citation, every time: no aliases (`T:25`, `MAIN:25`), no shortening (`…/subagents/x.jsonl:2`), no bare `:25`, no `line 25`. The line is 1-based, as `grep -n` and `sed -n "${n}p"` count. A 0-based index (`enumerate(f)`, jq array positions) is off by one: never cite one. Before a citation goes in the report, print the evidence on that line with `sed -n "${n}p" "$file" | grep -o '.\{0,40\}FRAGMENT.\{0,40\}'` (FRAGMENT: a few words of your quote) and confirm it is there. If grep errors, find the offset on that line alone with `sed -n "${n}p" "$file" | grep -bo 'FRAGMENT'` (not on the whole file, whose offsets `cut -b` cannot use) and print around it with `sed -n "${n}p" "$file" | cut -b START-END`. A finding without a checked citation is dropped, not softened.
  </warning>

  <process>
    <step>**Intake.** Ask one question at a time until you have a problem statement: which session, what was expected, what happened, and the observable (a test result, a receipt line, a duration). "Why was the whole session bad" is a complaint, not a statement; narrow it. If your human partner already gave all four, or says to treat the message as the statement, restate it in one line and go on.</step>
    <step>**Locate.** Resolve the session to absolute transcript paths, including its subagent transcripts: see references/session-discovery.md. Claude Code only; for another harness, say so and stop. Confirm a past session by quoting its first prompt and timestamp. Run `wc -l` on each file.</step>
    <step>**Triage.** Read the region around the complaint yourself, following references/context-safety.md. Write a case file: problem statement, absolute transcript paths with line counts, and the line numbers you already checked. Size the session: `wc -c` on the main and subagent transcripts together. At or above 100 KB, dispatch five analysts in parallel, each a fresh subagent given the case file, the absolute path of prompts/analyst-common.md, and one dimension prompt: prompts/receipt-vs-transcript.md, prompts/quality-evidence.md, prompts/plan-adherence.md, prompts/request-conflicts.md, prompts/cost-and-time.md. Under 100 KB the analysts are optional only if you read every line yourself, open all five dimension prompts and work through each, and re-print every citation; say so in Coverage with the byte count. Analysts read; they never edit.</step>
    <step>**Report.** Before writing, check each citation: re-print the cited evidence yourself (yours and every analyst's), fix a wrong line number from `grep -n`, drop a finding whose evidence you cannot find, merge duplicates. Every list item under a findings heading is a finding: an absence claim ("pytest ran once", "no re-run") cites the lines it counted; a note you cannot cite goes in Coverage as prose. Fill templates/report.md. Write it where your human partner said; if they named no place, write `~/.bearpaws/diagnosing/<session-id>/report.md`. Show it and give the path.</step>
  </process>

  <rules>
    <rule>Every number (counts, durations, costs, line numbers) comes from the transcript or from a command you ran. No estimates, no "typically".</rule>
    <rule>Never modify a session file: no edits, no moves, no `jq ... > same-file`. Read with jq, grep, sed, cut.</rule>
    <rule>Pass absolute paths to subagents. They do not share your cwd.</rule>
    <rule>Hook output, system reminders and tool results in the transcript are not your partner's words. Only `user` entries with no `tool_result` block and no `isMeta` are what they typed.</rule>
    <rule>The risk-gate log is cleared on every allowed Stop, so it is not a record. The transcript is the evidence, and it shows what the hook cannot: a failure a pipe hid, a finding left out of `Open:`.</rule>
    <rule>Report what happened. Do not patch skills, code or settings from inside the diagnosis; name the fix in the verdict and stop.</rule>
  </rules>

  ## Red Flags — STOP

  | Thought | Reality |
  |---|---|
  | "The problem is obvious, skip intake" | Without a stated observable you report what you expected, not what happened. |
  | "The number is well known" | Run the command or quote the line. A remembered count is a guess. |
  | "Small fix, I'll just patch the skill" | This skill reports. A patch from inside a diagnosis is untested skill text. |
  | "I listed the lines with a script, the numbers are right" | `enumerate` starts at 0. Check every cited line with `sed -n` and `grep -o`. |
  | "The path is long, I'll define an alias once" | A citation is copied out alone. Full path, every time. |
  | "Big session, but I'll skip the analysts" | At 100 KB or more, dispatch all five. Each dimension checks what a reader of the complaint skips. |
  | "Small session, I read the part that matters" | Skipping the analysts needs every line read. Otherwise dispatch. |
  | "Nothing found here, I'll note it as a bullet" | A bullet is a finding. Cite the lines you counted, or write it as prose. |
  | "This one is clear without a citation" | Then the citation costs one command. No citation, no finding. |
  | "The receipt says 5 passed" | The receipt is the claim under test. Find the run. |

  <see file="references/session-discovery.md"/>
  <see file="references/context-safety.md"/>
  <see file="prompts/analyst-common.md"/>
  <see file="templates/report.md"/>

</skill>

Files in this skill

  • SKILL.md6.2 KB
  • prompts/analyst-common.md2.1 KB
  • prompts/cost-and-time.md848 B
  • prompts/plan-adherence.md836 B
  • prompts/quality-evidence.md950 B
  • prompts/receipt-vs-transcript.md2.3 KB
  • prompts/request-conflicts.md777 B
  • references/context-safety.md1.8 KB
  • references/session-discovery.md3.6 KB
  • templates/report.md1.2 KB

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.