generate-e2e

A skill that creates Playwright end-to-end tests from a security-scan JSON file. End-to-end tests exercise an application through realistic user-facing flows rather than checking isolated functions.

In plain words
What is it for?
It reads the latest or a specified scan result, creates Playwright configuration and vulnerability-specific files under tests/security, and can overwrite existing files with --force.
Why use it?
Turning scan findings into test files manually takes time and can leave vulnerabilities untested. This connects security results to repeatable browser tests.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/morodomi/dev-crew/generate-e2e
Any agent
npx skills add morodomi/dev-crew --skill generate-e2e
Clone the repo
git clone --depth 1 https://github.com/morodomi/dev-crew

Made for: Claude Code, Codex.

Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 701 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00117 $0.00701
Opus 5 $0.00059 $0.00351
Sonnet 5 $0.00023 $0.00140
Haiku 4.5 $0.00012 $0.00070

Measured yesterday against content hash c327ad3aaead, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate-e2e scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/generate-e2e/SKILL.md · 93 lines

What it actually says

Generate E2E

security-scan結果からPlaywright E2Eテストコードを自動生成するスキル。

Usage

/generate-e2e                    # 直前のscan結果からテスト生成
/generate-e2e ./scan-result.json # 指定JSONから生成
/generate-e2e --force            # 既存ファイル上書き

Options

Option Description Required
[path] security-scan JSON file No (uses last scan)
--force 既存ファイルを上書き No

Input Format

security-scan が出力するJSON形式を入力として受け取る。

{
  "metadata": {
    "scan_id": "<uuid>",
    "scanned_at": "<timestamp>",
    "target_directory": "<path>"
  },
  "summary": {
    "total": 3,
    "critical": 1,
    "high": 1,
    "medium": 1,
    "low": 0
  },
  "vulnerabilities": [
    {
      "id": "XSS-001",
      "vulnerability_class": "xss",
      "severity": "high",
      "file": "app/Controllers/UserController.php",
      "line": 45,
      "endpoint": "/users/{id}"
    }
  ]
}

Output

生成されるファイルは tests/security/ ディレクトリに出力される。

<target-project>/
└── tests/
    └── security/
        ├── playwright.config.ts  # Playwright設定
        └── <vuln-type>.spec.ts   # 脆弱性別テストファイル

Behavior

Empty Vulnerabilities (0件)

脆弱性が0件の場合、playwright.config.ts のみ生成される。テストファイルは生成されない。

File Overwrite

  • デフォルト: 既存ファイルがある場合は警告して中断
  • --force: 既存ファイルを強制的に上書き

Workflow

1. security-scan JSON読み込み
2. 脆弱性タイプ別にグループ化
3. テンプレートから設定ファイル生成
4. 各脆弱性タイプのテストファイル生成
5. tests/security/ に出力

Reference

詳細は reference.md を参照。

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 93 lines · 117 tokens per session scan A c327ad3aaead

Subscribe to this mod's changes

generate-e2e is a skill published in the GitHub repository morodomi/dev-crew (1 stars, last pushed 3d ago), licensed MIT. It adds 117 tokens to every session and 701 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

green-impl

Use after RED is verified failing. Writes the minimum code to make RED tests pass, then verifies on a live stack with Playwright screenshots before any hand-off. Implements the verify-before-scan rule.

Harshvardhan86/claude-wave-plugin · 44 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

use-agent-browser-for-airi

Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…

moeru-ai/airi · 87 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens