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 Test

ASecurity

Run, review, and improve Mushi Mushi TDD tests — story mapping, Playwright test generation, QA coverage, PDCA improvement loop, test approval workflow. Use when "run tdd tests", "generate tests for my stories", "check qa coverage", "improve failing tests", "test my app with mushi", "review generated tests", or any TDD/QA workflow in mushi.

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

Works with

cursorclimcp

Security Analysis

A100/100

Scanned 9/23/2026

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

Installs into .claude/skills of the current project.

Are you the author of Mushi Test?

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

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

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-test
description: Run, review, and improve Mushi Mushi TDD tests — story mapping, Playwright test generation, QA coverage, PDCA improvement loop, test approval workflow. Use when "run tdd tests", "generate tests for my stories", "check qa coverage", "improve failing tests", "test my app with mushi", "review generated tests", or any TDD/QA workflow in mushi.
---

# Mushi TDD Testing Guide

## The TDD Loop

```
Live App → map stories → generate tests → approve → run → analyze failures → improve → repeat
```

## Step 1: Map User Stories

```bash
# Automatic discovery from live app (recommended)
mushi stories map --url https://your-app.com --wait

# Or use the console: Inventory → Discovery → "Map from live app"
```

Review the draft in **Inventory → Discovery → Past proposals** and click **Accept**.

## Step 2: Generate Playwright Tests

```bash
# From CLI (after accepting a proposal)
mushi tdd gen <story-id> --mode review

# Options:
# --mode auto   → enabled immediately, no approval needed
# --mode review → lands in pending queue (default)
# --no-pr       → skip GitHub PR

# Or via MCP in Cursor:
# generate_tdd_from_story(projectId, storyNodeId, automationMode: 'review')
```

Each generated test includes:
- Full TypeScript Playwright spec (`@playwright/test`)
- Firecrawl Actions YAML equivalent (for cloud-only execution)
- Draft GitHub PR (if configured)

## Step 3: Review and Approve

```bash
# See what needs review
mushi tdd pending

# Approve a test (enables it in QA schedule)
mushi tdd approve <qa-story-id>

# Reject a test
mushi tdd approve <qa-story-id> --reject
```

In the console: **QA Coverage → "TDD Tests Pending Review"** banner shows the queue.

## Step 4: Run Tests

Tests run automatically on cron (default: hourly).

```bash
# Trigger manually
mushi tdd run <qa-story-id>

# Or via MCP: run_qa_story(projectId, qaStoryId)
```

Monitor results in **QA Coverage** — each card shows pass rate, last run status, and Browserbase replay link.

## Step 5: PDCA Auto-Improve

When tests fail repeatedly, the PDCA improver proposes fixes:

```bash
# Run immediately
mushi tdd improve

# Runs automatically every 6 hours via pg_cron
```

Improved tests appear in the pending review queue with `source=pdca` and a `(PDCA v2)` suffix.

## Automation Modes

| Mode | What happens | Use when |
|------|-------------|----------|
| `auto` | Tests run immediately after generation | You trust the LLM output, CI-only projects |
| `review` | Tests queued for human approval | Default — verify before running in schedule |
| `approve` | Same as review | Explicit approval-first workflow |

## Running Tests Locally

```bash
# Install Playwright
npx playwright install chromium

# Run a generated test file
BASE_URL=https://your-app.com npx playwright test tests/user-login.spec.ts
```

## Checking QA Health

Via MCP in Cursor:
```
list_pending_review_stories(projectId) → shows queue
get_map_run_status(projectId) → shows recent crawls
```

Via CLI:
```bash
mushi tdd pending   # approval queue
mushi stories map --url <url> --wait  # re-map after app changes
```

## RED-GREEN-REFACTOR with Mushi

1. **RED**: Generate a test from a story (`mushi tdd gen`) — it may fail on first run if UI changed
2. **GREEN**: The PDCA improver (`mushi tdd improve`) fixes selector/timing issues
3. **REFACTOR**: Accept the improved version, reject the old one

The `parent_story_id` chain tracks test lineage across PDCA iterations.

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 →