kensaurus/mushi-mushi · Archived

mushi-health

>- Pass/fail health check across every Mushi Mushi pipeline component — CLI credentials, API reachability, edge functions, BYOK key pool, QA cron. Use when "is mushi working", "mushi health check", "check mushi pipeline", "mushi deploy check", "pipeline not responding", or right after setup.

First seen Aug 7, 2026

Installation

$ npx skills add kensaurus/mushi-mushi --skill mushi-health

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from kensaurus/mushi-mushi.

npx skills add kensaurus/mushi-mushi

Browse all from kensaurus/mushi-mushi

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 3
License LICENSE
Default branch master
Open issues 1
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseMIT

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 5,134 B
  • docs SUMMARY.md 311 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Mushi Health Check

Run these checks in order. Stop and fix at the first ❌ before continuing.

Component map

# Component How to check
1 CLI credentials mushi doctor
2 API + edge functions mushi deploy check
3 Project overview mushi status
4 BYOK key pool mushi keys list or MCP listbyokkeys
5 Supabase logs Supabase MCP get_logs
6 QA cron running DB query on qastoryruns

Step 1 — CLI credentials

mushi doctor

Expected output — every check prefixed OK (the CLI prints OK / WARN / FAIL text markers, not checkmarks):

OK CLI config file
OK API key configured
OK Project ID configured
OK Endpoint reachable

Exit codes: 0 all pass · 2 advisory warnings only · 1 any hard failure. Each FAIL line is followed by a → Fix: hint; mushi doctor --json includes the same hints in a hint field.

Fix if FAIL: follow the printed → Fix: hint, or re-run mushi login --api-key mushi_... --endpoint https://<ref>.supabase.co/functions/v1/api --project-id <pid>.


Step 2 — API + edge functions

mushi deploy check

Probes each edge function with a lightweight ping. Healthy output:

✓  api
✓  classify-report
✓  fix-worker
✓  story-mapper
✓  test-gen-from-story
✓  pdca-runner
✓  qa-story-runner

A ✗ on any line means that function is down. Check its logs in Step 5.


Step 3 — Project overview

mushi status

Confirm:

  • Report count is non-zero (or expected zero for a brand-new project).
  • autofixagent shows the expected agent (cursorcloud, mcp, etc.).
  • No billing: quota_exceeded warning.

Step 4 — BYOK key pool

Via CLI:

mushi keys list

Via MCP (if the Mushi MCP server is active in Cursor):

list_byok_keys(projectId)

Healthy: at least one anthropic key with status=active, at least one firecrawl key with status=active.

Fix: Add a missing or exhausted key:

mushi keys add --provider anthropic --key sk-ant-... --label "primary" --priority 100
mushi keys add --provider firecrawl --key fc-...   --label "primary" --priority 100

Step 5 — Supabase edge function logs

Use the Supabase MCP (requires SUPABASEACCESSTOKEN in MCP config):

get_logs(service: 'api')

Look for ERROR lines in the last 15 minutes, especially from:

  • story-mapper — Firecrawl timeout or Claude quota
  • test-gen-from-story — LLM key exhausted
  • pdca-runner — failed PDCA cycle
  • qa-story-runner — Browserbase quota or Firecrawl error

If the Supabase MCP is not wired in Cursor, use the CLI:

supabase functions logs story-mapper --project-ref <ref>
supabase functions logs qa-story-runner --project-ref <ref>

Step 6 — QA cron running

Verify scheduled tests are executing (requires Supabase MCP):

SELECT status, COUNT(*) 
FROM qa_story_runs 
WHERE created_at > NOW() - INTERVAL '2 hours'
GROUP BY status;

Healthy output: at least one completed row in the last 2 hours (if you have enabled stories).

If qastoryruns is empty:

  1. Confirm at least one story has enabled = true and approval_status = 'approved'.
  2. Confirm the pg_cron job is registered: SELECT jobname, schedule FROM cron.job WHERE jobname LIKE 'qa%';
  3. Manually trigger: mushi tdd run <qa-story-id> and re-check.

Pass/Fail Summary Template

After running all steps, record results:

Component Status Notes
CLI credentials ✅ / ❌
Edge functions ✅ / ❌ Which ones failed?
Project overview ✅ / ❌ Billing ok?
BYOK key pool ✅ / ❌ Missing providers?
Supabase logs ✅ / ❌ Any ERRORs?
QA cron ✅ / ❌ Last run at?

If all ✅ → pipeline is healthy. If any ❌ → use [mushi-debug](../mushi-debug/SKILL.md) for targeted diagnosis.


Common causes of all-red

Symptom Likely cause Fix
mushi doctor can't reach endpoint Wrong MUSHIAPIENDPOINT in ~/.config/mushi/config.json Re-run mushi login --endpoint https://...
All edge functions ❌ Supabase project paused (free tier) Restore the project in the Supabase dashboard
BYOK keys all quota_exhausted Rate limits hit on all keys Add a backup key for each provider
QA cron never fires pg_cron job missing Re-run migration 20260602000003pdcaqaimprovecron.sql