Source profileQuality 95/100

kensaurus/cursor-kenji/skills/mushi-health/SKILL.md

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.

Source repository stars
9
Declared platforms
0
Static risk flags
0
Last source update
2026-08-21
Source checked
2026-08-28

Decision brief

What it does: where it fits

Degree of freedom: MIXED. First-red diagnosis [HIGH freedom]; Steps 1–6 in order [LOW freedom — run exactly].

Best for

  • Use when "is mushi working", "mushi health check", "check mushi pipeline", "mushi deploy check", "pipeline not responding", or right after setup.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/kensaurus/cursor-kenji --skill "skills/mushi-health"
Safe inspection promptEditorial

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

What the source asks the agent to do

  1. 01

    How to reason

    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

    Observe — doctor, deploy check, keys, logs, cron — in that orderInterpret — first red is root vs downstream symptomClassify — creds / functions-down / keys / logs / cron-missing
  2. 02

    Step 1 — CLI credentials [LOW freedom — run exactly]

    Expected output — all lines green:

    Expected output — all lines green:Fix if red: Re-run mushi login --api-key mushi... --endpoint https://.supabase.co/functions/v1/api --project-id .
  3. 03

    Step 2 — API + edge functions [LOW freedom — run exactly]

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

    Probes each edge function with a lightweight ping. Healthy output:A ✗ on any line means that function is down. Check its logs in Step 5.
  4. 04

    Step 3 — Project overview [LOW freedom — run exactly]

    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.

    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.
  5. 05

    Step 4 — BYOK key pool [LOW freedom — run exactly]

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

    Via MCP (if the Mushi MCP server is active in Cursor):Healthy: at least one anthropic key with status=active, at least one firecrawl key with status=active.Fix: Add a missing or exhausted key:

Permission review

Static risk signals and limitations

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

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score95/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars9SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
kensaurus/cursor-kenji
Skill path
skills/mushi-health/SKILL.md
Commit
28a0bd8403c950f58ed063d47a858ee3493b0038
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Mushi Health Check

Degree of freedom: MIXED. First-red diagnosis [HIGH freedom]; Steps 1–6 in order [LOW freedom — run exactly].

How to reason

  1. Observedoctor, 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

Worked example

Observe: mushi doctor green; mushi deploy checkqa-story-runner; qa_story_runs empty for 2h. Interpret: first red is the runner; empty cron is downstream. Classify: function-down — check get_logs for qa-story-runner; do not add keys yet. Verify: stop at Step 2; fix the runner; continue remaining steps only after it is green.

Self-critique before reporting

  • In order — did not skip ahead of the first ❌
  • Evidence — each row cites command output or a query, not memory
  • Stopped to fix — first red was remediated before later steps
  • Right owner — e2e loop proof → mushi-integration; targeted diagnosis → diagnose_setup

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

Component map

#ComponentHow to check
1CLI credentialsmushi doctor
2API + edge functionsmushi deploy check
3Project overviewmushi status
4BYOK key poolmushi keys list or MCP list_byok_keys
5Supabase logsSupabase MCP get_logs
6QA cron runningDB query on qa_story_runs

Step 1 — CLI credentials [LOW freedom — run exactly]

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>.


Step 2 — API + edge functions [LOW freedom — run exactly]

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.


Step 3 — Project overview [LOW freedom — run exactly]

mushi status

Confirm:

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

Step 4 — BYOK key pool [LOW freedom — run exactly]

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 [LOW freedom — run exactly]

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 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 [LOW freedom — run exactly]

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:

  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 [LOW freedom — do not skip]

After running all steps, record results:

ComponentStatusNotes
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.


Common causes of all-red [HIGH freedom]

SymptomLikely causeFix
mushi doctor can't reach endpointWrong MUSHI_API_ENDPOINT in ~/.mushircRe-run mushi login --endpoint https://...
All edge functions ❌Supabase project paused (free tier)Restore the project in the Supabase dashboard
BYOK keys all quota_exhaustedRate limits hit on all keysAdd a backup key for each provider
QA cron never firespg_cron job missingRe-run migration 20260602000003_pdca_qa_improve_cron.sql

Frequently asked questions

What to verify before installation and use

What does the mushi-health source document cover?

Degree of freedom: MIXED. First-red diagnosis [HIGH freedom]; Steps 1–6 in order [LOW freedom — run exactly].

How do I install mushi-health?

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

Compare before choosing