investigate-stuck

investigate-stuck is a skill for Claude Code from app-vitals/shipwright. It costs 73 tokens per session (3,919 once invoked), scanned A, original, MIT.

A diagnostic workflow for one stuck pull request or task. It checks the work queue, task records, live GitHub state, and the history of each pipeline phase dispatched for that item.

In plain words
What is it for?
Use it with a repository pull-request number or task ID to investigate missing progress, blocked phases, or differences between task-store and GitHub status.
Why use it?
It replaces assumptions about why work stopped with a comparison of the systems that track it. It focuses on one item rather than scanning the whole organisation or applying a fix.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the shipwright plugin — 27 skills, 32 commands, 5 agents shipped together

Good fit Use it with a repository pull-request number or task ID to investigate missing progress, blocked phases, or differences between task-store and GitHub status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/app-vitals/shipwright/investigate-stuck
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add app-vitals/shipwright --skill investigate-stuck
Clone the repo
git clone --depth 1 https://github.com/app-vitals/shipwright

Made for: Claude Code.

Or install shipwright, the plugin that ships this one along with the rest of its 27 skills, 32 commands, 5 agents.

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 investigate-stuck

README.md
[![agentmods](https://agentmods.dev/badge/skills/app-vitals/shipwright/investigate-stuck/github.svg)](https://agentmods.dev/skills/app-vitals/shipwright/investigate-stuck)
Your own site
<a href="https://agentmods.dev/skills/app-vitals/shipwright/investigate-stuck"><img src="https://agentmods.dev/badge/skills/app-vitals/shipwright/investigate-stuck/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for investigate-stuck

Your own site · 80×15
<a href="https://agentmods.dev/skills/app-vitals/shipwright/investigate-stuck"><img src="https://agentmods.dev/badge/skills/app-vitals/shipwright/investigate-stuck.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,919 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00073 $0.03919
Opus 5.5 $0.00029 $0.01568
Sonnet 5.5 $0.00015 $0.00784
Haiku 4.5 $0.00007 $0.00392

Measured 13d ago against content hash 5e2125f44dec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

investigate-stuck scanned grade A with 1 finding 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 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (SKILL.content.test.ts, SKILL.unit.test.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

CRONS_JSON=$(curl -sf -H "Authorization: Bearer $SHIPWRIGHT_AGENT_API_KEY" \
plugins/shipwright/skills/investigate-stuck/SKILL.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

investigate-stuck

Diagnose why a PR or task didn't proceed, by checking the Shipwright pipeline's ground truth for that one item (work queue, task-store, GitHub) and the dispatch history of every shipwright-loop phase against it. Generic cron-run analysis (run lookup by cron name, transcript reading, Sentry cross-check, synthesis structure) is owned by agent-platform:investigate-cron — this skill delegates to it rather than duplicating it.

Usage: /shipwright:investigate-stuck <org/repo#N|taskId>

Arguments:

  • <org/repo#N|taskId> — a PR (org/repo#N, e.g. acme/x#123) or a bare task id (e.g. IC-1.1).

Examples:

  • /shipwright:investigate-stuck acme/x#123
  • /shipwright:investigate-stuck IC-1.1

Out of scope: this skill is only the item-scoped ground-truth and dispatch-history flow. It is not a general why-is-it-stuck engine (no fleet-wide scans, no remediation). To investigate a cron by name and time, use agent-platform:investigate-cron directly.


Step 0: Bind the item

# /shipwright:investigate-stuck <org/repo#N|taskId>
ITEM_ARG="$1"   # e.g. "acme/x#123" or "IC-1.1"

If ITEM_ARG is empty, ask for it and stop. A PR reference splits into {org}/{repo} and {pr}; a bare task id matches ^[A-Z]+-[0-9]+\.[0-9]+$.


Step 1: Resolve the item's runs via the admin cron-runs API

The admin API ($SHIPWRIGHT_API_URL, authenticated with Authorization: Bearer $SHIPWRIGHT_AGENT_API_KEY, agent id $SHIPWRIGHT_AGENT_ID) is the exact source for cron run history.

1a. List crons and resolve loopCronId

CRONS_JSON=$(curl -sf -H "Authorization: Bearer $SHIPWRIGHT_AGENT_API_KEY" \
  "$SHIPWRIGHT_API_URL/agents/$SHIPWRIGHT_AGENT_ID/crons")

# The loop cron is the top-level cron: parentCronId === null (typically
# system === true and named "shipwright-loop"). Phase crons (dev-task, plan,
# review, patch, merge) are its children: parentCronId === <loop cron's id>.
LOOP_CRON_ID=$(echo "$CRONS_JSON" | jq -r '.crons[] | select(.parentCronId == null and .system == true) | .id' | head -1)

if [ -z "$LOOP_CRON_ID" ] || [ "$LOOP_CRON_ID" = "null" ]; then
  echo "No loop cron found via admin API — dispatch history unavailable; continue with Step 2 only."
else
  echo "loopCronId: $LOOP_CRON_ID"
fi

Read the full file on GitHub · 328 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago First seen · 328 lines · 73 tokens per session scan A 5e2125f44dec

Subscribe to this mod's changes

investigate-stuck is a skill published in the GitHub repository app-vitals/shipwright (16 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 3,919 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

investigate-stuck compared with skills from other repositories

investigate-stuck next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
investigate-stuckapp-vitals/shipwrightSkill16todayMITA73Claude Code
agent-debug-ciNVIDIA/elementsSkill122yesterdayApache-2.0A80Claude Code, Codex
omk-code-reviewdmae97/omkSkill154todayMITA38Claude Code, Codex
ci-triagecoo1white/cool-workflowSkill25d agoBSD-2-ClauseA66Claude Code, Codex
pstack-principle-attack-the-premisedmae97/omkSkill154todayMITA44Claude Code
pstack-statechartdmae97/omkSkill154todayMITA87Claude Code
pstack-principle-prove-it-worksdmae97/omkSkill154todayMITA53Claude Code