feat: add /gsd:forensics for post-mortem workflow investigation (#1303)
New command that investigates failed or stuck GSD workflows by analyzing git history, .planning/ artifacts, and file system state. Detects 6 anomaly types: stuck loops, missing artifacts, abandoned work, crash/ interruption, scope drift, and test regressions. Inspired by gsd-build/gsd-2's forensics feature, adapted for gsd-1's markdown-prompt architecture. Uses heuristic (LLM-judged) analysis against available data sources rather than structured telemetry. - commands/gsd/forensics.md: command with success_criteria + critical_rules - get-shit-done/workflows/forensics.md: 8-step investigation workflow - tests/forensics.test.cjs: 21 tests (command, workflow, report, fixtures) - tests/copilot-install.test.cjs: bump expected skill count 55→56 Generates report to .planning/forensics/, offers interactive investigation, and optional GitHub issue creation from findings. Closes #1303 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -620,7 +620,7 @@ describe('copyCommandsAsCopilotSkills', () => {
|
||||
// Count gsd-* directories — should be 31
|
||||
const dirs = fs.readdirSync(tempDir, { withFileTypes: true })
|
||||
.filter(e => e.isDirectory() && e.name.startsWith('gsd-'));
|
||||
assert.strictEqual(dirs.length, 55, `expected 55 skill folders, got ${dirs.length}`);
|
||||
assert.strictEqual(dirs.length, 56, `expected 56 skill folders, got ${dirs.length}`);
|
||||
} finally {
|
||||
fs.rmSync(tempDir, { recursive: true });
|
||||
}
|
||||
@@ -1114,7 +1114,7 @@ const { execFileSync } = require('child_process');
|
||||
const crypto = require('crypto');
|
||||
|
||||
const INSTALL_PATH = path.join(__dirname, '..', 'bin', 'install.js');
|
||||
const EXPECTED_SKILLS = 55;
|
||||
const EXPECTED_SKILLS = 56;
|
||||
const EXPECTED_AGENTS = 18;
|
||||
|
||||
function runCopilotInstall(cwd) {
|
||||
|
||||
Reference in New Issue
Block a user