generate_automation_framework

A workflow for designing and scaffolding a complete automated-testing framework for web, mobile, or API projects. It supports Playwright, Selenium, and Appium with several programming languages and test runners.

In plain words
What is it for?
Use it to start an automation framework for browser, mobile, or API testing, including its test runner and reporting setup.
Why use it?
It provides a defined project structure and working files instead of leaving the team to assemble testing tools and conventions from scratch.

Command for Claude Code

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 commands/anhtester/claude-testing-kit/generate_automation_framework
Clone the repo
git clone --depth 1 https://github.com/anhtester/claude-testing-kit

Made for: Claude Code.

Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,859 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.00027 $0.03859
Opus 5 $0.00014 $0.01929
Sonnet 5 $0.00005 $0.00772
Haiku 4.5 $0.00003 $0.00386

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

Security

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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/generate_automation_framework.md · 305 lines

How it starts

The opening of the file, as written. The whole thing — 305 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 skills-framework-architect (tại .claude/skills/skills-framework-architect/SKILL.md) trước khi bắt đầu. Ngoài ra, tham khảo thêm skill skills-qa-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 skills-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)

  1. 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-framework
    Có 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

Read the full file on GitHub · 305 lines

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. 2d ago First seen · 305 lines · 27 tokens per session scan A a7c48a91fbcd

Subscribe to this mod's changes

generate_automation_framework is a command published in the GitHub repository anhtester/claude-testing-kit (49 stars, last pushed 24d ago), licensed MIT. It adds 27 tokens to every session and 3,859 once invoked, about $0.0001 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-30.