generate-e2e
Skill1 starsChanged 26 days agoMITView on GitHub
security-scan結果からPlaywright E2Eテストコードを自動生成。脆弱性タイプ別にテストファイルをtests/security/に出力。「E2Eテスト生成」「generate e2e」「セキュリティテスト作成」「Playwrightテスト生成」で起動。security-auditの--auto-e2eオプションでも自動実行される。Do NOT use for スキャン実行(→ security-scan)やレポート生成(→ attack-report)。
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- attack-reportSkill
- carefulSkill
- codify-insightSkill
- commitSkill
- context-reviewSkill
- cycle-retrospectiveSkill
- diagnoseSkill
- evolveSkill
- flask-qualitySkill
- flutter-qualitySkill
- greenSkill
- hugo-qualitySkill
- js-qualitySkill
- learnSkill
- onboardSkill
- orchestrateSkill
- php-qualitySkill
- python-qualitySkill
- redSkill
- refactorSkill
- reviewSkill
- security-auditSkill
- security-scanSkill
- skill-makerSkill
- specSkill
- sync-skillsSkill
- ts-qualitySkill
The file
Files
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 を参照。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

