一键导入
gsp-doctor
Check project health — use when: something's broken, check the project, is everything set up right, health check, what's the status of my GSP setup
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check project health — use when: something's broken, check the project, is everything set up right, health check, what's the status of my GSP setup
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | gsp-doctor |
| description | Check project health — use when: something's broken, check the project, is everything set up right, health check, what's the status of my GSP setup |
Checks: structure, phase ordering, stale outputs, config drift, missing chunks, broken references, review status, brand drift, upgrade detection
## Step 0: Find design directoryCheck for .design/ in the current directory.
If not found:
🩺 GSP Doctor — No project found
No .design/ directory detected. Run /gsp-start to start.
Stop here.
New dual-diamond structure: .design/branding/ or .design/projects/ exists
Legacy flat structure: .design/config.json exists at root (not inside branding/ or projects/)
Empty: .design/ exists but has neither
For legacy: run legacy checks (same as v0.3.0 doctor). For new: run multi-instance checks below.
Brands: List all directories in .design/branding/ that have a config.json with project_type: "brand"
Projects: List all directories in .design/projects/ that have a config.json with project_type: "design"
For each instance, read:
config.json — configurationSTATE.md — phase progressBRIEF.md — briefbrand.ref — brand reference (projects only)Load ${CLAUDE_SKILL_DIR}/checks.md — the full check catalog with pass/warn/fail criteria. Read it once at this step; do not load it before Step 2 because the applicable check sets depend on what was scanned.
Run only the sets applicable to the detected state:
| Detected | Run |
|---|---|
| Each brand instance | B1, B2, B3, B4 |
| Each project instance | P1–P10 |
| Always (installation) | I1, I2, I3, I4, I5 |
Project has implementation_target: shadcn and .design/system/STACK.md exists | S1–S5 |
| Multiple projects reference the same brand | X1 |
For each check, record the verdict (PASS/WARN/FAIL/INFO) plus a short instance-tagged message for issues.
De-duplication: if the same underlying issue is caught by multiple checks, only report it once — keep it in the most specific check.
Score per instance (100 points each):
Overall score: average of all instance scores.
Render to terminal only (no file writes). One section per instance, then installation, stack, cross-instance, then issues, then summary.
🩺 GSP Doctor — Project Health Check
═══════════════════════════════════════
Brands: {N} found
Projects: {N} found
Overall Health: {SCORE}/100 {emoji}
{health bar}
─── Brand: {name} ─────────────────────
Phases: {N}/4 complete
{check ID}. {short label} ............ {PASS|WARN|FAIL}
...
─── Project: {name} (brand: {brand}) ──
Phases: {N}/6 complete
P1. Structure .................. {verdict}
... (P2–P10)
─── Installation Health ───────────────
I1. Skills invocable ........... {verdict}
... (I2–I5)
─── Stack Compliance (shadcn) ───────── (only if S checks ran)
S1–S5. Stack compliance ........ {aggregate verdict}
─── Cross-Instance ────────────────────
X1. Brand Consistency .......... {verdict}
─── Issues Found ──────────────────────
FAIL:
• [{instance}/{check}] {message}
→ Fix: {suggested command}
WARN:
• [{instance}/{check}] {message}
→ Fix: {suggested command}
INFO:
• [{instance}/{check}] {message}
─── Summary ───────────────────────────
{summary line based on score band}
Verdict glyphs: ✅ PASS · ⚠️ WARN · ❌ FAIL · ℹ️ INFO Health emoji: 90–100: 💚 · 70–89: 💛 · 50–69: 🟠 · 0–49: ❤️ Health bar: 20-char using █ and ░.
Summary lines by score band:
≥ 90 — "Project is healthy. Ship it! 🚀"70–89 — "Project has minor issues. Address warnings when convenient."50–69 — "Project needs attention. Fix the warnings above."< 50 — "Project has significant issues. Address failures first."Add reference material to a project — use when: add a reference, save inspiration, attach examples, link this site as reference, drop in a moodboard
Craft ASCII art interactively — you direct, the artist creates — use when: make ASCII art, terminal art, decorative banner, splash screen, hero ASCII
Audit an existing brand before evolving it — use when: audit our brand, what do we have, before a rebrand, brand health check, current brand state, brand inventory
Sync brand to match a project's shipped state — tokens, voice, visual patterns, personality — use when: brand drifted from the app, reverse-engineer the brand, the code is ahead of the brand docs, sync brand to shipped, update brand from production
Design color systems — palettes, contrast, semantic mapping, dark mode — use when: pick colors, build a palette, semantic tokens, dark mode pairings, brand color, accent color
Design icon systems — library selection, sizing, containers, custom SVG direction — use when: pick an icon library, icon sizing rules, icon containers, custom SVG direction, swap icons, icon strategy