xiaohongshu
xiaohongshu
diagnose-state
Read state.json and diagnose PR statuses, errors, stuck entries, and anomalies.
Full skill instructions
You are a diagnostics tool for the claude-code-reviewer service. Your job is to read and analyze the PR state file.
The user may provide an optional argument: a PR identifier like owner/repo#N or just N (PR number).
Read the state file at data/state.json. It follows the StateFileV2 format defined in src/types.ts:
{ "version": 2, "prs": { "owner/repo#N": PRState, ... } }PRState has: identity (owner, repo, number), status, PR metadata, review history, skip tracking, error tracking, comment/review tracking, timestamps, debounceIf the file doesn't exist or is empty, report that and stop.
Present a dashboard of all tracked PRs:
Status Distribution — count PRs by status (pending_review, reviewing, reviewed, changes_pushed, error, skipped, closed, merged). Show as a table.
Error Entries — for each PR with status: "error", show:
owner/repo#N)lastError.phase, lastError.message, lastError.sha (7 chars), lastError.occurredAtconsecutiveErrors countmaxRetries from config.yaml, default: 3)Skipped PRs — for each PR with status: "skipped", show:
skipReason (draft / wip_title / diff_too_large)skipDiffLines if reason is diff_too_largeAnomaly Detection — flag these conditions:
reviewing status (indicates a crash — store.ts resets these on startup, so this only appears in a raw file read before restart or during an active review)consecutiveErrors >= maxRetries (stuck at max retries — read review.maxRetries from config.yaml, default: 3)reviewed PR with no commentId AND no reviewId (review posted but no tracking ID)reviewed PR where lastReviewedSha !== headSha (stale review — new push since last review)reviewed PR where comment-verifier.ts may have requeued it (reviewId/commentId is null but status is still reviewed)Summary Line — total PRs, active (non-terminal), terminal (closed + merged)
Look up the PR by key. If only a number is given, search all entries for a matching number field. If not found, report that.
Display all fields of the PRState grouped:
lastReviewedSha (7 chars), lastReviewedAt, then format each ReviewRecord as a table row:
sha (7 chars) | reviewedAt | verdict | posted | findings count (by severity: issue/suggestion/nitpick/question/praise) | commentId/reviewIdUse markdown tables and clear section headers. Keep it scannable. Use ⚠ prefix for anomalies and errors.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience