Logo di Framework Architect

Framework Architect

Community
anhtester
Framework Architect

Skill thiết kế và scaffold automation framework hoàn chỉnh cho Playwright, Selenium, và Appium — bao gồm project structure, base classes, config management, reporting, và CI/CD integration.

Panoramica

Autoreanhtester
Repositoryantigravity-testing-kit
Nome della skillFramework Architect
Stelle
149
Fork
57
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da anhtester su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Framework Architect in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/anhtester/antigravity-testing-kit/tree/main/.agent/skills/framework_architect
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anhtester/antigravity-testing-kit.git /tmp/antigravity-testing-kit
mkdir -p .claude/skills
cp -r /tmp/antigravity-testing-kit/.agent/skills/framework_architect .claude/skills/anhtester-framework-architect
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Framework Architect in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Framework Architect non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Framework Architect non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Framework Architect

Description

Skill chuyên biệt giúp agent thiết kế, scaffold và triển khai automation framework từ đầu. Hỗ trợ đa nền tảng (Web, Mobile, API) với các framework phổ biến nhất.

Agent có thể:

  • Thiết kế project structure theo best practices
  • Sinh base classes, config management, driver/browser management
  • Tích hợp reporting (Allure, HTML Report, Playwright Report)
  • Cấu hình CI/CD pipeline (GitHub Actions, GitLab CI, Jenkins)
  • Sinh template Page Object Model, fixtures, helpers
  • Tạo file cấu hình (package.json, pom.xml, build.gradle, playwright.config.ts)

When to Use

Sử dụng skill này khi:

  • User yêu cầu tạo/thiết kế automation framework mới
  • User cần scaffold project structure cho test automation
  • User muốn chuẩn hóa framework hiện tại
  • User cần tích hợp reporting hoặc CI/CD vào framework
  • User hỏi về best practices cho framework design

Trigger keywords: "create framework", "design framework", "scaffold project", "thiết kế framework", "tạo project mới"


Supported Stacks

🌐 Web Automation

StackNgôn ngữRunnerReportBuild Tool
Playwright + TypeScriptTypeScriptPlaywright TestHTML Report, Allurenpm
Playwright + JavaJavaTestNG / JUnit5Allure ReportMaven / Gradle
Playwright + PythonPythonPytestAllure, pytest-htmlpip
Selenium + JavaJavaTestNGAllure, ExtentReportsMaven / Gradle
Selenium + PythonPythonPytestAllure, pytest-htmlpip

📱 Mobile Automation

StackNgôn ngữRunnerReportBuild Tool
Appium + JavaJavaTestNGAllure, ExtentReportsMaven / Gradle
Appium + PythonPythonPytestAllure, pytest-htmlpip

🔌 API Automation

StackNgôn ngữRunnerReport
REST AssuredJavaTestNGAllure
Playwright APITypeScriptPlaywright TestHTML Report
Requests + PytestPythonPytestAllure

Framework Components

Mỗi framework PHẢI bao gồm các thành phần sau (tùy chỉnh theo stack):

1. Project Structure (Mandatory)

  • Cấu trúc thư mục rõ ràng, phân tách pages/tests/utils/config
  • File README.md hướng dẫn setup + chạy test
  • File .gitignore phù hợp

2. Configuration Management (Mandatory)

  • Quản lý environment (dev/staging/prod) qua config file hoặc .env
  • Centralized config — không hardcode giá trị trong test
  • Sensitive data (credentials) qua environment variables, KHÔNG commit vào repo

3. Browser / Driver Management (Mandatory)

  • Playwright: playwright.config.ts / conftest.py với browser setup
  • Selenium: WebDriverManager hoặc Driver Factory pattern
  • Appium: Desired Capabilities factory, Appium server config

4. Base Classes (Mandatory)

  • Base Page — chứa common methods (wait, click, type, screenshot)
  • Base Test — chứa setup/teardown, test lifecycle hooks
  • Không hardcode waits — chỉ dùng smart waits

5. Page Object Model (Mandatory)

  • Mỗi page/screen → 1 Page class
  • Locators khai báo ở đầu class, không inline trong test
  • Methods mô tả hành vi người dùng (không phải thao tác DOM)

6. Test Data Management (Mandatory)

  • Data factory / builder pattern cho test data
  • Data external (JSON/YAML/CSV) cho data-driven tests
  • Data unique + traceable (timestamp/random prefix)

7. Utilities (Mandatory)

  • Wait helpers (smart waits, custom conditions)
  • Screenshot utilities (capture on failure)
  • Logger (structured logging, không dùng print/console.log)
  • Date/Time helpers, String generators

8. Reporting (Mandatory)

  • Tích hợp ít nhất 1 reporting tool
  • Screenshot attach on failure
  • Test execution summary (pass/fail/skip counts)

9. CI/CD Pipeline (Optional — nhưng khuyến khích)

  • GitHub Actions / GitLab CI / Jenkins pipeline template
  • Parallel execution config
  • Artifact upload (reports, screenshots)

Project Structure Templates

Playwright + TypeScript

project-root/
├── playwright.config.ts        # Playwright configuration
├── package.json                # Dependencies + scripts
├── .env.example                # Environment template
├── .gitignore
├── README.md
├── src/
│   ├── pages/                  # Page Object classes
│   │   ├── base.page.ts        # Base page (common methods)
│   │   ├── login.page.ts
│   │   └── dashboard.page.ts
│   ├── fixtures/               # Custom fixtures
│   │   ├── auth.fixture.ts     # Authentication fixture
│   │   └── base.fixture.ts     # Extended test with all fixtures
│   ├── utils/                  # Helpers & utilities
│   │   ├── test-data.ts        # Data generators
│   │   ├── env.config.ts       # Environment config reader
│   │   └── helpers.ts          # Common helper functions
│   └── tests/                  # Test specs
│       ├── auth/
│       │   └── login.spec.ts
│       └── dashboard/
│           └── dashboard.spec.ts
├── test-data/                  # External test data (JSON/YAML)
│   └── users.json
└── .github/
    └── workflows/
        └── playwright.yml      # CI pipeline

Selenium + Java (Maven + TestNG)

project-root/
├── pom.xml                     # Maven config + dependencies
├── testng.xml                  # TestNG suite config
├── .env.example
├── .gitignore
├── README.md
├── src/
│   ├── main/java/
│   │   └── com/project/
│   │       ├── pages/          # Page Object classes
│   │       │   ├── BasePage.java
│   │       │   ├── LoginPage.java
│   │       │   └── DashboardPage.java
│   │       ├── drivers/        # Driver management
│   │       │   └── DriverFactory.java
│   │       ├── config/         # Configuration
│   │       │   └── ConfigReader.java
│   │       └── utils/          # Utilities
│   │           ├── WaitHelper.java
│   │           ├── ScreenshotUtil.java
│   │           └── TestDataGenerator.java
│   └── test/java/
│       └── com/project/
│           ├── base/
│           │   └── BaseTest.java
│           └── tests/
│               ├── LoginTest.java
│               └── DashboardTest.java
├── test-data/
│   └── users.json
└── .github/
    └── workflows/
        └── selenium.yml

Appium + Java (Maven + TestNG)

project-root/
├── pom.xml
├── testng.xml
├── .env.example
├── .gitignore
├── README.md
├── src/
│   ├── main/java/
│   │   └── com/project/
│   │       ├── screens/        # Screen Object classes (mobile POM)
│   │       │   ├── BaseScreen.java
│   │       │   ├── LoginScreen.java
│   │       │   └── HomeScreen.java
│   │       ├── drivers/        # Appium driver management
│   │       │   ├── AppiumDriverFactory.java
│   │       │   └── CapabilitiesManager.java
│   │       ├── config/
│   │       │   └── AppConfig.java
│   │       └── utils/
│   │           ├── MobileGestures.java    # Swipe, scroll, tap
│   │           ├── ScreenshotUtil.java
│   │           └── TestDataGenerator.java
│   └── test/java/
│       └── com/project/
│           ├── base/
│           │   └── BaseTest.java
│           └── tests/
│               ├── LoginTest.java
│               └── HomeTest.java
├── apps/                       # APK/IPA files
│   └── .gitkeep
├── test-data/
│   └── users.json
└── .github/
    └── workflows/
        └── appium.yml

Playwright + Python (Pytest)

project-root/
├── playwright.config.py        # Pytest-playwright config (nếu có)
├── pyproject.toml              # Python project config
├── requirements.txt            # Dependencies
├── conftest.py                 # Root fixtures + browser setup
├── .env.example
├── .gitignore
├── README.md
├── src/
│   ├── pages/
│   │   ├── base_page.py
│   │   ├── login_page.py
│   │   └── dashboard_page.py
│   ├── utils/
│   │   ├── config.py           # Env config reader
│   │   ├── test_data.py        # Data generators
│   │   └── helpers.py
│   └── tests/
│       ├── conftest.py         # Test-level fixtures
│       ├── test_login.py
│       └── test_dashboard.py
├── test-data/
│   └── users.json
└── .github/
    └── workflows/
        └── playwright.yml

Design Principles

  1. DRY (Don't Repeat Yourself) — Mỗi logic chỉ viết 1 lần, tái sử dụng qua Base classes và Utils
  2. Single Responsibility — Mỗi class/module làm 1 việc (Page chỉ chứa UI interaction, Test chỉ chứa test logic)
  3. Open/Closed — Framework dễ mở rộng (thêm page, thêm test) mà không sửa core
  4. Configuration over Code — Env, browser, timeout... quản lý qua config, không hardcode
  5. Fail Fast, Log Rich — Screenshot on failure, structured logging, clear assertion messages

Anti-Patterns (FORBIDDEN)

❌ Anti-Pattern✅ Đúng cách
Hardcode URL/credentials trong codeĐọc từ .env hoặc config file
Locator inline trong testKhai báo trong Page class
Thread.sleep() / waitForTimeout()Smart waits (expect(), WebDriverWait)
Global mutable stateIsolated fixtures/setup per test
Monolithic test file (1 file 500+ dòng)Tách theo module/feature
System.out.println() / console.log()Logger framework (Log4j, winston, logging)

Rules References

Agent PHẢI tuân thủ các rules chi tiết:

  • .agent/rules/automation_rules.md — General automation best practices
  • .agent/rules/locator_strategy.md — Locator selection priority
  • .agent/rules/playwright_rules.md — Playwright-specific rules
  • .agent/rules/selenium_rules.md — Selenium-specific rules
  • .agent/rules/appium_rules.md — Appium mobile automation rules

Domande frequenti

Cosa fa la skill IA Framework Architect?

Skill thiết kế và scaffold automation framework hoàn chỉnh cho Playwright, Selenium, và Appium — bao gồm project structure, base classes, config management, reporting, và CI/CD integration.

Perché usare Framework Architect su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Framework Architect è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Framework Architect in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/anhtester/antigravity-testing-kit/tree/main/.agent/skills/framework_architect. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Framework Architect?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Framework Architect?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Framework Architect: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Framework Architect è gratuita?

Sì. È pubblicata su GitHub da anhtester con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇