gsd-forensics

Diagnose failed GSD workflow executions by analyzing git history and `.planning/` artifacts.

Updated May 21, 2026
One-click install
npx skills add https://github.com/jedmamosto/m-and-ms --skill gsd-forensics-jedmamosto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsd-forensics
Source: https://github.com/jedmamosto/m-and-ms/tree/main/.agents/skills/gsd-forensics
Command: npx skills add https://github.com/jedmamosto/m-and-ms --skill gsd-forensics-jedmamosto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you understand why a GSD workflow failed or got stuck by collecting evidence from git history and the workflow’s .planning/ artifacts, then turning that evidence into a clear diagnostic report.

Core Features & Use Cases

  • Evidence-driven diagnosis: Pulls signals from git log, git status/git diff, and .planning/ state files to avoid guessing.
  • Stuck-loop and interruption detection: Checks for anomalies such as stuck loops, missing artifacts, abandoned work, and crash/interruption patterns.
  • Actionable output: Writes a structured forensics report to .planning/forensics/, presents findings inline, and offers deeper interactive investigation plus optional issue creation.

Quick Start

Run gsd-forensics with a short description of the failure so it can analyze the workflow artifacts and produce a timestamped report in .planning/forensics/.

Frequently Asked Questions about gsd-forensics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I investigate a stuck workflow execution using git history and planning artifacts?

To investigate a stuck workflow execution, analyze repository state, commit history, and `.planning/` artifacts to detect anomalies. Collect read-only evidence from `git log`, `git status`, and plan files to identify interrupted sessions or missing artifacts, then generate a structured diagnostic report.

What causes missing or inconsistent planning files during a post-mortem analysis?

Missing or inconsistent planning files during a post-mortem analysis are caused by interrupted sessions, stuck loops, or abandoned work. Checking `.planning/` state files alongside `git diff` reveals crash patterns and anomalous execution phases that leave artifacts incomplete.

How do I diagnose interrupted GSD sessions and anomalous execution patterns?

Diagnose interrupted GSD sessions by pulling signals from `git log`, `git status`/`git diff`, and `.planning/` state files. This evidence-driven approach detects stuck loops, abandoned work, and crash patterns without guessing, producing a timestamped forensic report.

Does forensic workflow analysis require write access to the repository?

Forensic workflow analysis does not require write access to the repository. It relies on read-only evidence collection from git history and `.planning/` files, redacts sensitive data, and writes the output report safely under `.planning/forensics/`.

What is the best way to document post-mortem findings for incident analysis?

The best way to document post-mortem findings for incident analysis is to save a structured forensic report under `.planning/forensics/`. This report presents findings inline and offers deeper interactive investigation plus optional issue creation for tracking.

Why does my workflow get stuck in a loop and leave abandoned planning artifacts?

Your workflow gets stuck in a loop and leaves abandoned planning artifacts due to crash or interruption patterns during execution phases. Analyzing `.planning/` state files and `git status` reveals these anomalies and helps pinpoint the exact failure point.