refactor-diagnose

Installation
SKILL.md

Diagnose the Request — refactor-chain · diagnose

Bundle: refactor-chain (self-diagnosing, self-healing fix-it pipeline). Phase: diagnose · Prerequisite: refactor-understand · Next: plan. Adaptivity / conditional: repo-agnostic engine; adapts its questions to confidence and to monorepo/ambiguity signals.

Purpose

This is the brain of the intake. It takes the Project Profile (from refactor-understand) plus what the person actually said, and classifies the job into {case, os, platform, confidence, mode} using the harness's diagnose.mjs. It then runs the mode logic — careful (confirm before acting), autopilot (proceed on high confidence), or ask (default) — and, when two lanes are plausible or the repo is a monorepo, it asks exactly one plain-language "did you mean A or B?" question. It reasons step by step, but never edits code.

Installs
5
GitHub Stars
3
First Seen
Jul 6, 2026
refactor-diagnose — ahmedbenaw/refactor-chain