Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Mushi Debug

ASecurity

Debug Mushi Mushi issues — SDK not reporting, API errors, LLM key exhaustion, story mapping failures, QA test failures, PDCA loop not running, edge function errors. Use when "mushi is not working", "sdk not pinging", "story map failed", "tdd test not running", "api key exhausted", "fix-worker failed", "pdca not improving", or any mushi error/failure.

3 stars
0 votes
0 copies
0 views
Added 9/23/2026
developmentgobashsqlgitapi

Works with

cliapimcp

Security Analysis

A100/100

Scanned 9/23/2026

$npx -y skills add kensaurus/mushi-mushi --skill mushi-debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mushi Debug?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Mushi Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kensaurus-mushi-debug/badge)](https://www.skillsdirectory.com/skills/kensaurus-mushi-debug)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: mushi-debug
description: Debug Mushi Mushi issues — SDK not reporting, API errors, LLM key exhaustion, story mapping failures, QA test failures, PDCA loop not running, edge function errors. Use when "mushi is not working", "sdk not pinging", "story map failed", "tdd test not running", "api key exhausted", "fix-worker failed", "pdca not improving", or any mushi error/failure.
---

# Mushi Debug Guide

## SDK Not Reporting Events

**Symptoms**: Inventory → Discovery shows 0 events.

1. Check the SDK is initialized before any navigation:
   ```ts
   Mushi.init({ projectId: '...', apiKey: '...', capture: { discoverInventory: { enabled: true } } })
   ```
2. Verify the API key starts with `mushi_` and belongs to the correct project.
3. Check browser console for `[Mushi]` errors.
4. Run `mushi doctor` — confirms reachability.

## API Key Exhausted / Rate Limited

**Symptoms**: "ALL_KEYS_EXHAUSTED" error, quota banner in Settings.

```bash
# Check key health
mushi keys list

# Add a backup key
mushi keys add --provider anthropic --key sk-ant-... --label "Backup"
```

In the console: **Settings → API Key Pool** → keys in `quota_exhausted` state show cooldown timer (resets in 1 hour automatically).

## Story Mapping Failed

**Symptoms**: `mushi stories map` returns error or crawl run shows `failed`.

1. Confirm Firecrawl key is configured:
   ```bash
   mushi keys list
   # Should show firecrawl [active]
   ```
2. Verify the URL is publicly reachable (not localhost).
3. Check the console: **Inventory → Discovery → Recent crawls** for the error message.
4. Try with fewer pages: `mushi stories map --url <url> --max-pages 5 --wait`

## QA Story Failing Hourly

**Symptoms**: Slack message every hour — `:warning: QA story <name> errored` — or `Firecrawl 401`.

Most common root causes and fixes:

| Error | Cause | Fix |
|-------|-------|-----|
| `Firecrawl 401 Unauthorized: Token missing` | No Firecrawl BYOK key in project | `mushi integrations test firecrawl` → if fails, add key: `mushi keys add --provider firecrawl --key fc-...` |
| `no_target_url: set a Target URL on this story` | Story has no `target_url` and prompt doesn't contain a URL | Edit story in **QA Coverage → Edit → Target URL** |
| Link in Slack opens wrong page | Old story created before Jun 2026 deep-link fix | Links now go to `/qa-coverage?story=<id>&run=<run-id>` — verify admin console URL is correct |

```bash
# Check all QA health in one command
mushi doctor --server --qa-stories

# See recent run errors
mushi qa runs <story-id>

# Manually trigger a run to verify the fix
mushi qa run <story-id>
```

## Slack Not Receiving Notifications

**Symptoms**: No Slack message when a QA story fails or a report is classified.

```bash
# Check connection
mushi slack status

# Send test message
mushi slack test
```

If `slack status` shows "not connected":
1. Go to **Integrations → Slack → Add to Slack** (OAuth flow)
2. Select the channel and click Save
3. Re-run `mushi slack test`

If connected but no notifications for QA failures:
- Check **Integrations → Notification Preferences** — `qa_story.failed` must be enabled
- Verify the story's `browser_provider` is set (not null)

## TDD Test Not Running

**Symptoms**: Generated test stays in `pending_review`, doesn't appear in QA schedule.

1. Check approval status:
   ```bash
   mushi tdd pending
   ```
2. Approve the test: `mushi tdd approve <id>`
3. Verify `enabled=true` in the console: **QA Coverage** page.
4. Manual run: `mushi qa run <qa-story-id>`

## Edge Function Errors

Check Supabase logs via MCP:
```
Use the Supabase MCP: get_logs(service: 'edge-functions') to see function errors.
```

Or in Supabase dashboard: Functions → Logs → filter by function name.

Common edge function errors:
- `FIRECRAWL_API_KEY not set` → Add key: `mushi keys add --provider firecrawl --key fc-...`
- `no_target_url: set a Target URL on this story` → Edit story in QA Coverage and set Target URL
- `No accepted inventory` → Accept a proposal in Inventory → Discovery first
- `story not found` → The story id must match an `id` in the accepted inventory's `user_stories[]`

## PDCA Improve Not Running

**Symptoms**: Failing tests not getting improved automatically.

1. Check cron is registered:
   ```sql
   SELECT * FROM cron.job WHERE jobname = 'pdca-qa-story-improve';
   ```
2. Trigger manually:
   ```bash
   mushi tdd improve
   ```
3. Check that failing stories have `source='test_gen_from_story'` and `automation_mode IN ('auto', 'review')`.

## Fix Worker Not Opening PRs

1. Verify GitHub token is set in **Settings → Integrations → GitHub**.
2. Confirm the repo URL matches exactly (with `.git` stripped).
3. Check `fix_attempts` table for error messages.

## MCP Tool Errors

- `MISSING_PROJECT`: pass `projectId` argument explicitly
- `HTTP 403`: API key lacks `mcp:write` scope — regenerate with correct scopes
- `HTTP 429`: All keys exhausted — add backup keys

Attribution

kensauruskensaurus
View sourceSee grades on GitHubMore from kensaurus →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Clean Code

Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

304955 votes

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

286712 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Writing Plans

Use when you have a spec or requirements for a multi-step task, before touching code

2927051 votes
View all in development →