Best for
- Use when "is mushi working", "mushi health check", "check mushi pipeline", "mushi deploy check", "pipeline not responding", or right after setup.
kensaurus/cursor-kenji/skills/mushi-health/SKILL.md
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.
Decision brief
Degree of freedom: MIXED. First-red diagnosis [HIGH freedom]; Steps 1–6 in order [LOW freedom — run exactly].
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/kensaurus/cursor-kenji --skill "skills/mushi-health"Inspect the Agent Skill "mushi-health" from https://github.com/kensaurus/cursor-kenji/blob/28a0bd8403c950f58ed063d47a858ee3493b0038/skills/mushi-health/SKILL.md at commit 28a0bd8403c950f58ed063d47a858ee3493b0038. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Observe — doctor, deploy check, keys, logs, cron — in that order 2. Interpret — first red is root vs downstream symptom 3. Classify — creds / functions-down / keys / logs / cron-missing 4. Severity — paused project or invalid API key outranks a quiet QA cron on a new project
Expected output — all lines green:
Probes each edge function with a lightweight ping. Healthy output:
Confirm: - Report count is non-zero (or expected zero for a brand-new project). - autofixagent shows the expected agent (cursorcloud, mcp, etc.). - No billing: quotaexceeded warning.
Via MCP (if the Mushi MCP server is active in Cursor):
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 95/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 9 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Degree of freedom: MIXED. First-red diagnosis [HIGH freedom];
Steps 1–6 in order [LOW freedom — run exactly].
doctor, deploy check, keys, logs, cron — in that orderObserve:
mushi doctorgreen;mushi deploy check✗qa-story-runner;qa_story_runsempty for 2h. Interpret: first red is the runner; empty cron is downstream. Classify: function-down — checkget_logsforqa-story-runner; do not add keys yet. Verify: stop at Step 2; fix the runner; continue remaining steps only after it is green.
mushi-integration; targeted diagnosis → diagnose_setupRun these checks in order. Stop and fix at the first ❌ before continuing.
| # | 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 list_byok_keys |
| 5 | Supabase logs | Supabase MCP get_logs |
| 6 | QA cron running | DB query on qa_story_runs |
mushi doctor
Expected output — all lines green:
✓ ~/.mushirc found
✓ MUSHI_API_KEY valid (mushi_...)
✓ MUSHI_API_ENDPOINT reachable (200 OK)
✓ MUSHI_PROJECT_ID matches a live project
✓ Feature flags fetched
Fix if red: Re-run mushi login --api-key mushi_... --endpoint https://<ref>.supabase.co/functions/v1/api --project-id <pid>.
mushi deploy check
Probes each edge function with a lightweight ping. Healthy output:
✓ api
✓ classify-report
✓ fix-worker
✓ story-mapper
✓ test-gen-from-story # Mushi edge function, not a pack skill
✓ pdca-runner
✓ qa-story-runner
A ✗ on any line means that function is down. Check its logs in Step 5.
mushi status
Confirm:
autofix_agent shows the expected agent (cursor_cloud, mcp, etc.).billing: quota_exceeded warning.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
Use the Supabase MCP (requires SUPABASE_ACCESS_TOKEN in MCP config):
get_logs(service: 'api')
Look for ERROR lines in the last 15 minutes, especially from these
Mushi edge functions (not pack skills):
story-mapper — Firecrawl timeout or Claude quotatest-gen-from-story — LLM key exhaustedpdca-runner — failed PDCA cycleqa-story-runner — Browserbase quota or Firecrawl errorIf 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>
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 qa_story_runs is empty:
enabled = true and approval_status = 'approved'.SELECT jobname, schedule FROM cron.job WHERE jobname LIKE 'qa%';mushi tdd run <qa-story-id> and re-check.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 ❌ → run the mushi MCP diagnose_setup tool for targeted diagnosis.
| Symptom | Likely cause | Fix |
|---|---|---|
mushi doctor can't reach endpoint | Wrong MUSHI_API_ENDPOINT in ~/.mushirc | 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 20260602000003_pdca_qa_improve_cron.sql |
Frequently asked questions
Degree of freedom: MIXED. First-red diagnosis [HIGH freedom]; Steps 1–6 in order [LOW freedom — run exactly].
The source record exposes this install command: npx skills add https://github.com/kensaurus/cursor-kenji --skill "skills/mushi-health". Inspect the command and pinned source before running it.
Alternatives
vasilyu1983/AI-Agents-public
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
garrytan/gbrain
Generate a publication-quality PDF from any brain page via the gstack make-pdf binary. Strips YAML frontmatter, sanitizes emoji, applies running headers and page numbers. Brain page is always the source of truth; PDF is a rendering.
NVIDIA/skills
How to swap the DeepStream CV detection model in the VSS Alerts Blueprint verification (2d_cv) mode - covers ONNX export, custom bbox parsers, compose mount gotchas, nvinfer config, runtime TRT engine build, deployment, and a segmentation-capable model addendum handoff.
vasilyu1983/AI-Agents-public
Scans public GitHub repos for agent skills, dev practices, and code patterns. Use when enriching skills, setting team policy, or researching a build domain.