diagnose-run

diagnose-run is a skill for Claude Code from appsec-foundry/appsec-advisor. It costs 117 tokens per session (1,130 once invoked), scanned A, original, no licence file.

A read-only diagnostic tool that reads issues recorded by a threat-model run and compares each symptom with the plugin's source code. It reports a file and line for the likely cause, or marks the issue as environmental or expected.

In plain words
What is it for?
Use it after a create-threat-model run to investigate the issues stored in .run-issues.json and write the results to .run-bugs.json.
Why use it?
It helps separate defects in the plugin from problems caused by the surrounding environment or normal behavior.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the appsec-advisor plugin — 27 skills, 2 commands, 23 agents, 8 hooks shipped together

Good fit Use it after a create-threat-model run to investigate the issues stored in .run-issues.json and write the results to .run-bugs.json.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add appsec-foundry/appsec-advisor
Claude Code
/plugin install appsec-advisor

Made for: Claude Code.

Or install appsec-advisor, the plugin that ships this one along with the rest of its 27 skills, 2 commands, 23 agents, 8 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagnose-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/appsec-foundry/appsec-advisor/diagnose-run.svg)](https://agentmods.dev/skills/appsec-foundry/appsec-advisor/diagnose-run)
Your own site
<a href="https://agentmods.dev/skills/appsec-foundry/appsec-advisor/diagnose-run"><img src="https://agentmods.dev/badge/skills/appsec-foundry/appsec-advisor/diagnose-run.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,130 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.01130
Opus 5 $0.00059 $0.00565
Sonnet 5 $0.00023 $0.00226
Haiku 4.5 $0.00012 $0.00113

Measured 8d ago against content hash adbeef2fe936, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

diagnose-run scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/diagnose-run/SKILL.md · 109 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 109 lines · 117 tokens per session scan A adbeef2fe936

Subscribe to this mod's changes

diagnose-run is a skill published in the GitHub repository appsec-foundry/appsec-advisor (16 stars, last pushed today), with no licence file. It adds 117 tokens to every session and 1,130 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ffuf-claude-skill

Skill "ffuf-claude-skill" from Agent-Threat-Rule/agent-threat-rules, covering ffuf claude skill, when to use this skill and instructions.

Agent-Threat-Rule/agent-threat-rules · 14 tokens

codeinspectus-fix-one

Investigate and remediate exactly one user-selected CodeInspectus finding with evidence-gated reproduction, a separately approved minimal patch, focused regression testing, and an exact-prior-scan rescan. Use when a user asks an agent to examine, reproduce, fix, or verify one CodeInspectus finding without batching…

Synvoya/codeinspectus · 76 tokens

hunting-business-logic-flaws

Hunt for vulnerabilities that live in what an application is allowed to do, not in how it is coded: workflow steps that can be skipped or reordered, quantity/price/limit values that go negative or overflow a cap, state transitions that should be unreachable, replay and concurrency abuse, and privileged outcomes…

UnboundCompute/security-agent-skills · 109 tokens

detecting-memory-safety-bugs

Find memory-safety bugs in C/C++ and other unmanaged code - use-after-free, double-free, out-of-bounds read/write, uninitialized use, and NULL deref - by reasoning about object lifetime and buffer bounds along real code paths. Use on an authorized source target when a candidate catalog does NOT model these…

UnboundCompute/security-agent-skills · 124 tokens

detecting-race-conditions

Find concurrency and time-of-check/time-of-use bugs - TOCTOU, unsynchronized shared state, check-then-act, and atomicity violations - by reasoning about what state is shared, what can interleave, and where a window opens between a check and its use. Use on an authorized source target when the risk is ordering, not a…

UnboundCompute/security-agent-skills · 133 tokens

finding-fail-open-flaws

Find security controls that grant access when they should deny it: an authorization check that returns allow on error or timeout, an empty or wildcard allowlist that matches everything, a default-allow branch when input is missing or unrecognized, and a caught exception that swallows a denial and continues. Use when…

UnboundCompute/security-agent-skills · 107 tokens