Generate Automation Framework logo

Generate Automation Framework

Community
anhtester
generate-automation-framework

Thiết kế và scaffold automation framework hoàn chỉnh. Hỗ trợ Playwright, Selenium, Appium — Web, Mobile, API.

Overview

Publisheranhtester
Repositorycodex-testing-kit
Skill namegenerate-automation-framework
Stars
34
Forks
14
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by anhtester on GitHub. Read the source before you install it.

Installation

Install the Generate Automation Framework AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-automation-framework
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anhtester/codex-testing-kit.git /tmp/codex-testing-kit
mkdir -p .claude/skills
cp -r /tmp/codex-testing-kit/.agents/skills/generate-automation-framework .claude/skills/generate-automation-framework
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Generate Automation Framework in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Generate Automation Framework on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Generate Automation Framework is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 .agents/skills/framework-architect/SKILL.md) trước khi bắt đầu. Ngoài ra, tham khảo thêm skill $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 $framework-architect

Stacks hỗ trợ

PlatformStackNgôn ngữRunnerReport
🌐 WebPlaywrightTypeScriptPlaywright TestHTML Report, Allure
🌐 WebPlaywrightJavaTestNG / JUnit5Allure
🌐 WebPlaywrightPythonPytestpytest-html, Allure
🌐 WebSeleniumJavaTestNGAllure, ExtentReports
🌐 WebSeleniumPythonPytestpytest-html, Allure
📱 MobileAppiumJavaTestNGAllure, ExtentReports
📱 MobileAppiumPythonPytestAllure
🔌 APIREST AssuredJavaTestNGAllure
🔌 APIPlaywright APITypeScriptPlaywright TestHTML 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ỏiMục đíchMặc định nếu không trả lời
    Ứng dụng cần test là gì? (Web / Mobile / API / Hybrid)Chọn platformWeb
    Framework nào? (Playwright / Selenium / Appium)Chọn toolPlaywright
    Ngôn ngữ? (TypeScript / Java / Python)Chọn languageTypeScript (Playwright), Java (Selenium/Appium)
    Project name?Đặt tên thư mụcautomation-framework
    Có cần CI/CD pipeline không?Sinh pipeline configCó (GitHub Actions)
    Reporting tool?Tích hợp reportMặc định theo stack
    Có test API song song không?Thêm API testing layerKhông
    Parallel execution?Config parallelKhông
  2. Xác nhận lại với user trước khi scaffold:

    📋 Tóm tắt framework sẽ tạo:
    - Platform: Web
    - Framework: Playwright
    - Language: TypeScript
    - Runner: Playwright Test
    - Report: HTML Report + Allure
    - CI/CD: GitHub Actions
    - Project name: my-automation
    
    Bạn xác nhận để tôi bắt đầu scaffold không?
  3. Chờ user xác nhận trước khi sang Bước 2

Bước 2: Scaffold Project Structure (Foundation)

  1. Tạo artifact task.md để theo dõi checklist:

    markdown
    # Framework Setup Progress
    - [x] Bước 1: Thu thập yêu cầu
    - [ ] Bước 2: Scaffold project structure
    - [ ] Bước 3: Sinh base classes
    - [ ] Bước 4: Sinh example tests
    - [ ] Bước 5: Cấu hình reporting & CI/CD
    - [ ] Bước 6: Verify & Deliver
  2. Tạo thư mục project theo template trong skill $framework-architect:

    • Tham khảo mục Project Structure Templates trong SKILL.md
    • Tạo toàn bộ thư mục + file cấu hình gốc
  3. Sinh file cấu hình build (tuỳ stack):

    Playwright + TypeScript:

    • package.json — dependencies: @playwright/test, devDependencies phù hợp
    • playwright.config.ts — baseURL, viewport (1920x1080), timeout, retries, reporter
    • tsconfig.json — paths, strict mode
    • .env.example — template environment variables

    Selenium + Java:

    • pom.xml — dependencies: selenium-java, testng, webdrivermanager, allure-testng, log4j
    • testng.xml — suite configuration, listeners
    • log4j2.xml — logging configuration

    Appium + Java:

    • pom.xml — dependencies: appium-java-client, selenium-java, testng, allure
    • testng.xml — suite configuration
    • Capabilities config file (JSON/YAML) cho Android + iOS

    Playwright + Python:

    • requirements.txt — playwright, pytest, pytest-playwright, allure-pytest
    • pyproject.toml — pytest config, tool settings
    • conftest.py — root fixtures, browser setup
  4. Tạo file .gitignore phù hợp (node_modules, target, pycache, .env, reports...)

  5. Tạo README.md với hướng dẫn:

    • Prerequisites (Node.js, Java, Python version)
    • Installation steps
    • Cách chạy test
    • Project structure overview
    • Conventions (naming, coding standards)

Bước 3: Sinh Core Classes (Base Layer)

  1. Configuration Management:

    StackFileNội dung
    Playwright TSsrc/utils/env.config.tsĐọc .env, export typed config object
    Selenium Javasrc/main/.../config/ConfigReader.javaĐọc properties file, singleton pattern
    Appium Javasrc/main/.../config/AppConfig.javaĐọc capabilities JSON, env variables
    Playwright Pythonsrc/utils/config.pyĐọc .env bằng python-dotenv
  2. Browser / Driver Management:

    StackFileNội dung
    Playwright TSplaywright.config.ts + fixturesBrowser config trong config, auth trong fixtures
    Selenium JavaDriverFactory.javaFactory pattern, WebDriverManager, thread-safe
    Appium JavaAppiumDriverFactory.java + CapabilitiesManager.javaAppium server URL, desired capabilities per device
    Playwright Pythonconftest.pyFixtures cho browser, context, page
  3. Base Page / Screen class:

    • Common methods: navigate(), click(), type(), getText(), isVisible()
    • Built-in smart waits (KHÔNG có hard sleep)
    • Screenshot on failure
    • Logging mỗi action
  4. Base Test class:

    • Setup: khởi tạo browser/driver, navigate to baseURL
    • Teardown: đóng browser/driver, capture screenshot nếu fail
    • Test lifecycle hooks (beforeAll, afterAll, beforeEach, afterEach)
  5. Utilities:

    • TestDataGenerator — sinh email, username, phone unique + traceable
    • WaitHelper — custom wait conditions (nếu cần ngoài built-in)
    • ScreenshotUtil — capture + attach to report
    • Logger — structured logging (Log4j / winston / Python logging)

Bước 4: Sinh Example Tests (Validation Layer)

  1. Tạo ít nhất 1 example Page Object:

    • LoginPage (hoặc LoginScreen cho mobile) với locators + methods thực tế
    • Locator dùng placeholder mô tả rõ cần thay thế:
      typescript
      // REPLACE: Update locator after inspecting actual DOM
      readonly usernameInput = this.page.getByLabel('Username');
      readonly passwordInput = this.page.getByLabel('Password');
      readonly loginButton = this.page.getByRole('button', { name: 'Login' });
  2. Tạo ít nhất 1 example Test:

    • LoginTest — demo happy path (login thành công)
    • Có đầy đủ: Arrange → Act → Assert
    • Assertion có message rõ ràng
    • Test data dùng TestDataGenerator (nếu applicable)
  3. Tạo 1 example data-driven test (nếu phù hợp):

    • Đọc data từ file JSON/YAML/CSV
    • Parameterized test với nhiều bộ data

Bước 5: Cấu hình Reporting & CI/CD (Integration Layer)

  1. Reporting setup:

    StackReportCấu hình
    Playwright TSHTML + Allurereporter trong playwright.config.ts
    Selenium JavaAllureallure-testng dependency + @Step, @Attachment annotations
    Appium JavaAllure + ExtentReportsallure-testng + ExtentManager singleton
    Playwright Pythonpytest-html + Allureconftest.py hooks + pytest addopts
    • Screenshot auto-attach on failure
    • Test step logging trong report
  2. CI/CD Pipeline (nếu user yêu cầu):

    GitHub Actions template:

    yaml
    # Sinh file .github/workflows/<framework>.yml
    # Nội dung tùy stack: install deps → run tests → upload report
    • Install dependencies
    • Run tests (headless mode cho CI)
    • Upload test report as artifact
    • Parallel execution (nếu được yêu cầu)
    • Environment variables từ GitHub Secrets
  3. Docker support (optional — chỉ nếu user yêu cầu):

    • Dockerfile cho test execution environment
    • docker-compose.yml nếu cần Selenium Grid / Appium server

Bước 6: Verify & Deliver (Quality Gate)

  1. Kiểm tra framework build được:

    bash
    # Playwright TS
    npm install && npx playwright install && npx playwright test --list
    
    # Selenium Java
    mvn clean compile
    
    # Appium Java
    mvn clean compile
    
    # Playwright Python
    pip install -r requirements.txt && playwright install
  2. Chạy example test để verify framework hoạt động:

    • Nếu PASS → framework sẵn sàng
    • Nếu FAIL do thiếu app/URL → acceptable (ghi note trong README)
    • Nếu FAIL do lỗi code framework → sửa ngay
  3. Review checklist trước khi bàn giao:

    • Project structure đúng template
    • Tất cả dependencies đã khai báo
    • Config management hoạt động (đọc .env)
    • Base Page/Test có đầy đủ common methods
    • POM pattern được tuân thủ
    • Smart waits — không có hard sleep
    • Example test chạy được (hoặc chạy được khi có app)
    • README.md hướng dẫn đầy đủ
    • .gitignore bao phủ đúng
    • Reporting tích hợp
    • Không có debug log, commented code, TODO placeholder
  4. Cập nhật task.md với trạng thái hoàn thành

Xử lý tình huống đặc biệt

Tình huốngCách xử lý
User muốn hybrid (Web + Mobile)Tạo shared layer (utils, config) + tách pages vs screens
User muốn hybrid (Web + API)Thêm API layer song song (api helpers + api tests folder)
User có framework cũ cần refactorĐọc code hiện tại → đề xuất migration plan → refactor từng phần
User muốn multi-browserConfig parallel projects trong playwright.config.ts hoặc test suite XML
User muốn multi-device (Appium)CapabilitiesManager hỗ trợ load từ JSON per device (Android/iOS)
User không biết chọn stackGợi ý dựa trên: team skill, project type, CI infra

Output

  • Project structure đầy đủ (tất cả thư mục + files)
  • Build config (package.json / pom.xml / requirements.txt)
  • Framework config (playwright.config.ts / testng.xml / conftest.py)
  • Base classes (BasePage, BaseTest, DriverFactory, ConfigReader)
  • Utilities (TestDataGenerator, WaitHelper, ScreenshotUtil, Logger)
  • Example Page Object + Test (LoginPage + LoginTest)
  • Reporting integration (Allure / HTML Report)
  • CI/CD pipeline (GitHub Actions template)
  • README.md (setup guide + project overview)
  • Artifact task.md (checklist tiến độ)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Generate Automation Framework AI skill do?

Thiết kế và scaffold automation framework hoàn chỉnh. Hỗ trợ Playwright, Selenium, Appium — Web, Mobile, API.

Why use Generate Automation Framework on TypingMind?

Because you install it once and use it with any model. Generate Automation Framework is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Generate Automation Framework in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-automation-framework. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Generate Automation Framework?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Generate Automation Framework?

As many as you like. As long as a model supports skills, you can use Generate Automation Framework with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Generate Automation Framework AI skill free?

Yes. It is published on GitHub by anhtester under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇