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.
npx agentmods add commands/anhtester/claudecode_playwright_demo/generate_automation_frameworkgit clone --depth 1 https://github.com/anhtester/ClaudeCode_Playwright_DemoWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/generate_automation_framework)<a href="https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/generate_automation_framework"><img src="https://agentmods.dev/badge/commands/anhtester/claudecode_playwright_demo/generate_automation_framework.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00027 | $0.02972 |
| Opus 5 | $0.00014 | $0.01486 |
| Sonnet 5 | $0.00005 | $0.00594 |
| Haiku 4.5 | $0.00003 | $0.00297 |
Grade A, and why
generate_automation_framework 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 4d ago.
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.
This is a copy
86% identical to generate_automation_framework — 70 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Workflow: Thiết Kế Automation Framework
BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp và đọc kỹ nội dung của skill
framework_architect(tại.agent/skills/framework_architect/SKILL.md) trước khi bắt đầu. Ngoài ra, tham khảo thêm skillqa_automation_engineerđể nắm các quy tắc automation chung.
Workflow này giúp agent thiết kế, scaffold và triển khai một automation framework hoàn chỉnh từ đầu, phù hợp với nhu cầu cụ thể của project.
⚠️ Nguyên tắc thực thi
- Tất cả output bằng Tiếng Việt
- KHÔNG đoán tech stack — phải hỏi user xác nhận trước khi scaffold
- PHẢI tạo artifact
task.mdđể theo dõi tiến độ - Mỗi file sinh ra phải biên dịch/chạy được ngay — không để placeholder
// TODO - Framework phải tuân thủ design principles trong skill
framework_architect
Stacks hỗ trợ
| Platform | Stack | Ngôn ngữ | Runner | Report |
|---|---|---|---|---|
| 🌐 Web | Playwright | TypeScript | Playwright Test | HTML Report, Allure |
| 🌐 Web | Playwright | Java | TestNG / JUnit5 | Allure |
| 🌐 Web | Playwright | Python | Pytest | pytest-html, Allure |
| 🌐 Web | Selenium | Java | TestNG | Allure, ExtentReports |
| 🌐 Web | Selenium | Python | Pytest | pytest-html, Allure |
| 📱 Mobile | Appium | Java | TestNG | Allure, ExtentReports |
| 📱 Mobile | Appium | Python | Pytest | Allure |
| 🔌 API | REST Assured | Java | TestNG | Allure |
| 🔌 API | Playwright API | TypeScript | Playwright Test | HTML Report |
Các bước thực hiện
Bước 1: Thu thập yêu cầu (Requirements Gathering — ⏸️ CHECKPOINT)
-
Hỏi user các thông tin cần thiết:
Câu hỏi Mục đích Mặc định nếu không trả lời Ứng dụng cần test là gì? (Web / Mobile / API / Hybrid) Chọn platform Web Framework nào? (Playwright / Selenium / Appium) Chọn tool Playwright Ngôn ngữ? (TypeScript / Java / Python) Chọn language TypeScript (Playwright), Java (Selenium/Appium) Project name? Đặt tên thư mục automation-frameworkCó cần CI/CD pipeline không? Sinh pipeline config Có (GitHub Actions) Reporting tool? Tích hợp report Mặc định theo stack Có test API song song không? Thêm API testing layer Không Parallel execution? Config parallel Không
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.
- 4d ago First seen · 267 lines · 27 tokens per session scan A b3a90779c5af
generate_automation_framework is a command published in the GitHub repository anhtester/ClaudeCode_Playwright_Demo (2 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 2,972 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to generate_automation_framework, differing in 70 lines, and is treated as a copy.
Other commands, from other repositories
analyze_requirement_document
Phân tích requirement document (Jira ticket, .docx/.pdf/.xlsx/.csv/.xml, user story) — sinh tài liệu phân tích chi tiết, KHÔNG sinh test cases.
generate_cross_module_test_plan
Phân tích tính năng đi qua nhiều modules nối tiếp, xây dựng Module Map + Dimension Catalog, và sinh ma trận kết hợp (Output-Class Coverage/Pairwise/Full Cartesian). Hỗ trợ 2 modes — DOCUMENT (từ tài liệu) và BROWSER (inspect DOM thực tế).
generate_automation_framework
Thiết kế và scaffold automation framework hoàn chỉnh. Hỗ trợ Playwright, Selenium, Appium — Web, Mobile, API.
generate_combinatorial_test_data
Sinh test data cho ma trận kết hợp đa chiều bằng pipeline chạy thật qua nhiều modules. Input từ /generatecrossmoduletestplan.
analyze_flaky_tests
Phân tích automation tests không ổn định (flaky), xác định root cause và tự động khắc phục. Hỗ trợ 2 mode — ANALYZE (chỉ báo cáo) và FIX (báo cáo + tự sửa code).
generate_automation_from_testcases
Convert manual test cases into automation scripts autonomously using the 6-step AI-RBT Framework via Claude Code Capabilities.