Generate Combinatorial Test Data logo

Generate Combinatorial Test Data

Community
anhtester
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. Dùng đầu ra từ skill generate-cross-module-test-plan làm input.

Overview

Publisheranhtester
Repositorycodex-testing-kit
Skill namegenerate-combinatorial-test-data
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 Combinatorial Test Data 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-combinatorial-test-data
  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-combinatorial-test-data .claude/skills/generate-combinatorial-test-data
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Generate Combinatorial Test Data 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 Combinatorial Test Data 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 Combinatorial Test Data 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.

$generate-combinatorial-test-data — Sinh Test Data Cho Ma Trận Kết Hợp

Dùng khi: Đã có ma trận kết hợp (từ $generate-cross-module-test-plan) và cần tạo test data thực tế bằng cách chạy qua nhiều modules trên browser, hoặc sinh bộ data có cấu trúc sẵn sàng cho automation.

BẮT BUỘC (MANDATORY): Trước khi bắt đầu, PHẢI nạp và đọc kỹ:

  • Skill: .agents/skills/test-data-generator/SKILL.md — Quy tắc sinh data (xem phần Multi-Step Pipeline)
  • Skill: .agents/skills/ui-debug-agent/SKILL.md — Inspect DOM khi chạy browser
  • Workflow: .agents/skills/generate-cross-module-test-plan/SKILL.md — Hiểu cấu trúc ma trận đầu vào

Mối quan hệ với các workflows khác

$generate-cross-module-test-plan     →  Ma trận kết hợp (input)
        ↓
$generate-combinatorial-test-data    →  Bộ test data (workflow này)
        ↓
$generate-manual-testcases-rbt       →  Test cases chi tiết
        ↓
$generate-automation-from-testcases  →  Automation scripts

2 Modes

ModeKhi nào dùngOutput
GENERATE (mặc định)Sinh bộ data có cấu trúc từ ma trận — KHÔNG chạy browserFile JSON/CSV/Markdown với data cho mỗi bộ kết hợp
PIPELINECần tạo data THẬT trên hệ thống bằng cách chạy qua từng module trên browserData thật đã tạo + IDs + screenshots evidence

Agent tự chọn mode:

  • User nói "sinh data", "generate data" → GENERATE
  • User nói "tạo data trên hệ thống", "chạy tạo data", "setup data thật" → PIPELINE
  • Nếu không rõ → hỏi user

Input cần từ User

InputBắt buộcMô tả
Ma trận kết hợp✅File .md / bảng Markdown từ $generate-cross-module-test-plan
URL ứng dụng✅ (PIPELINE)Để agent chạy browser tạo data
Credentials⚠️ PIPELINENếu app cần đăng nhập
Output format❌json (mặc định), csv, markdown, code (TS/Java/Python)
Ngôn ngữ data❌Tiếng Việt / Tiếng Anh (mặc định: theo context)

Các bước thực hiện

Bước 1: Đọc & Parse Ma Trận Kết Hợp

  1. Đọc file ma trận từ user cung cấp:

    • File local → view_file
    • Inline trong chat → parse trực tiếp
    • URL → read_url_content
  2. Parse và validate:

    • Xác định danh sách dimensions (D1, D2, D3...)
    • Xác định values của mỗi dimension
    • Đọc expected template/formula cho mỗi bộ
    • Đếm tổng số bộ kết hợp cần sinh data
  3. Trình bày tóm tắt:

    markdown
    📊 Ma trận đã đọc:
    - Dimensions: 5 (Đối tác, Thanh toán, Thuế, Công nợ, Nguồn TS)
    - Tổng bộ kết hợp: 20 (Pairwise)
    - Mode: GENERATE / PIPELINE
    
    Bắt đầu sinh data? (Y/N)

Bước 2: Phân Tích Fields & Data Requirements Mỗi Module

  1. Với mỗi module trong chuỗi, xác định fields cần data:

    markdown
    | Module | Field | Type | Required | Constraints | Data Source |
    |--------|-------|------|----------|-------------|-------------|
    | Đối tác | partner_name | string | ✅ | max: 200 | Random + prefix |
    | Đối tác | partner_type | select | ✅ | enum: [TC, CN, HKD] | Từ dimension D1 |
    | Đối tác | tax_id | string | ✅ | 10-13 digits | Random unique |
    | Thanh toán | currency | select | ✅ | enum: [VND, USD] | Từ dimension D2 |
    | Thanh toán | amount | number | ✅ | min: 1 | Business-relevant values |
    | Thuế | tax_type | select | ✅ | enum: [PIT, VAT, NT, MT] | Từ dimension D3 |
    | ...| ... | ... | ... | ... | ... |
  2. Phân loại fields:

    LoạiMô tảCách sinh data
    Dimension fieldsGiá trị thuộc dimension trong ma trậnLấy từ bộ kết hợp (không random)
    Supporting fieldsFields bắt buộc nhưng không phải dimensionSinh random + unique + traceable
    Computed fieldsTự tính từ formulaTính theo business rules
    Reference fieldsID/code từ module trướcCopy từ output module trước

Bước 3: Sinh Test Data — Mode GENERATE

Thực hiện khi mode = GENERATE (mặc định)

  1. Với mỗi bộ kết hợp trong ma trận, sinh 1 bộ data đầy đủ:

    json
    {
      "combination_id": "COMBO_01",
      "dimensions": {
        "D1_partner_type": "Tổ chức",
        "D2_payment_type": "VND",
        "D3_tax_type": "VAT 10%",
        "D4_debt_type": "Thông thường",
        "D5_asset_source": "Quỹ A"
      },
      "module_data": {
        "module_1_partner": {
          "partner_name": "auto_combo01_tc_1712049200",
          "partner_type": "Tổ chức",
          "tax_id": "0123456789",
          "address": "Số 1 Nguyễn Huệ, Q1, HCM"
        },
        "module_2_payment": {
          "currency": "VND",
          "amount": 100000000,
          "payment_date": "2026-04-15",
          "description": "Thanh toán combo01"
        },
        "module_3_tax": {
          "tax_type": "VAT",
          "tax_rate": 10,
          "tax_amount": 10000000
        },
        "module_4_debt": {
          "debt_type": "Thông thường",
          "advance_amount": 0
        }
      },
      "expected_output": {
        "template": "BB_TC_VND_VAT",
        "formula": "Amount × 1.10",
        "computed_total": 110000000,
        "expected_fields": ["partner_name", "tax_id", "amount", "tax_amount", "total"]
      }
    }
  2. Sinh đủ data cho TẤT CẢ bộ kết hợp → đóng gói vào 1 file output

  3. Đảm bảo data rules:

    • Unique per combo (không trùng giữa các bộ)
    • Traceable: prefix auto_combo{XX}_{dimension_short}
    • No real PII
    • Computed values phải đúng theo formula

Bước 3P: Sinh Test Data — Mode PIPELINE (chạy thật trên browser)

Thực hiện khi mode = PIPELINE

  1. Mở browser bằng MCP:

    browser_navigate → URL ứng dụng
    browser_resize → 1920 × 1080
  2. Loop qua từng bộ kết hợp:

    FOR each combo in matrix:
      FOR each module in chain:
        1. Navigate → module URL
        2. browser_snapshot → xác nhận state
        3. Điền data theo bộ combo:
           - Dimension fields → chọn giá trị theo combo
           - Supporting fields → sinh random + traceable
        4. Submit / Save
        5. browser_wait_for → confirm success
        6. browser_snapshot → capture kết quả
        7. Extract output (ID, code...) → lưu cho module tiếp theo
      END FOR
      
      // Ở module cuối — verify output
      8. Capture biên bản / output cuối
      9. browser_take_screenshot → evidence
      10. Ghi nhận: combo_id, created_ids, template_found, formula_verified
    END FOR
  3. Xử lý lỗi trong pipeline:

    LỗiCách xử lý
    Submit fail (validation)Screenshot → ghi log → skip combo → báo user
    Module load chậmbrowser_wait_for với timeout tăng dần
    Session expiredRe-login → retry từ module bị fail
    Data trùngSinh lại data unique, retry
    Combo không hợp lệ (constraint)Skip → đánh dấu "INVALID" trong report
  4. Giới hạn pipeline:

    • Tối đa 30 bộ kết hợp / phiên chạy (tránh timeout)
    • Nếu > 30 → chia batch, hỏi user "Tiếp tục batch tiếp?"
    • Sau mỗi 10 bộ → báo progress cho user

Bước 4: Đóng Gói Output & Báo Cáo

Output cho Mode GENERATE:

Tạo artifact file(s) theo format user yêu cầu:

JSON (mặc định):

json
{
  "feature": "Biên bản thanh toán đối tác",
  "generated_at": "2026-04-15T17:00:00Z",
  "strategy": "pairwise",
  "total_combinations": 20,
  "dimensions": ["partner_type", "payment_type", "tax_type", "debt_type", "asset_source"],
  "data_sets": [
    { "combination_id": "COMBO_01", "dimensions": {...}, "module_data": {...}, "expected_output": {...} },
    { "combination_id": "COMBO_02", ... }
  ]
}

Markdown Table:

markdown
| Combo | Đối tác | Thanh toán | Thuế | Công nợ | Nguồn | Partner Name | Amount | Expected Template | Expected Total |
|-------|---------|-----------|------|---------|-------|-------------|--------|------------------|----------------|
| 01 | Tổ chức | VND | VAT | Thường | Quỹ A | auto_c01_tc | 100M | BB_TC_VND_VAT | 110M |
| 02 | ... | ... | ... | ... | ... | ... | ... | ... | ... |

Code (TypeScript example):

typescript
// test-data/payment-record.data.ts
export const combinatorialData = [
  {
    id: 'COMBO_01',
    partner: { name: `auto_combo01_${Date.now()}`, type: 'Tổ chức', taxId: '0123456789' },
    payment: { currency: 'VND', amount: 100_000_000 },
    tax: { type: 'VAT', rate: 10 },
    expected: { template: 'BB_TC_VND_VAT', total: 110_000_000 },
  },
  // ... more combos
];
Output cho Mode PIPELINE:
markdown
## Pipeline Execution Report

| # | Combo | Status | Module 1 ID | Module 2 ID | Module 3 ID | Output Template | Formula ✓ | Screenshot |
|---|-------|--------|------------|------------|------------|-----------------|-----------|------------|
| 1 | COMBO_01 | ✅ PASS | PTR-001 | PAY-001 | TAX-001 | BB_TC_VND_VAT | ✅ Match | combo01.png |
| 2 | COMBO_02 | ✅ PASS | PTR-002 | PAY-002 | TAX-002 | BB_TC_USD_PIT | ✅ Match | combo02.png |
| 3 | COMBO_03 | ❌ FAIL | PTR-003 | PAY-003 | — | — | — | combo03_fail.png |

### Summary
- ✅ Passed: 18/20
- ❌ Failed: 2/20 (COMBO_03: Tax module validation error, COMBO_17: Timeout)
- 📊 Data created: 18 partners, 18 payments, 18 tax configs, 18 biên bản

Data Rules (BẮT BUỘC)

#RuleMô tả
1Unique per comboMỗi bộ kết hợp dùng data riêng — không chia sẻ giữa combos
2TraceablePrefix: auto_combo{XX}_{dimension_short}_{timestamp}
3Dimension values exactGiá trị dimension PHẢI đúng như trong ma trận — KHÔNG random
4Supporting fields randomFields không thuộc dimension → sinh random + unique
5Computed values verifiedGiá trị tính toán phải đúng theo formula trong ma trận
6No real PIIKHÔNG dùng dữ liệu cá nhân thật
7Include expected outputMỗi combo PHẢI có expected template + formula + computed values

NGHIÊM CẤM

❌ Không được làm✅ Thay thế đúng
Random dimension valuesDimension values lấy chính xác từ ma trận
Hardcode data giống nhau cho mọi comboData unique per combo với traceable prefix
Bỏ qua expected outputMỗi combo PHẢI có expected template + values
Chạy pipeline > 30 combos / phiên không hỏiChia batch 30, hỏi user tiếp tục
Bỏ qua combo fail, không reportGhi log đầy đủ: combo nào fail, tại sao, screenshot
Đọc .env để lấy credentialsHỏi User hoặc dùng fixture sẵn có

Checklist cuối

  • Đã đọc và parse ma trận kết hợp đầy đủ
  • Phân loại fields: dimension / supporting / computed / reference
  • Data sinh ra unique per combo + traceable
  • Dimension values đúng 100% so với ma trận
  • Computed values đúng theo formula
  • (PIPELINE) Screenshots evidence cho mỗi combo
  • (PIPELINE) Report pass/fail cho mỗi combo
  • Không chứa real PII
  • Output file đúng format user yêu cầu

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 Combinatorial Test Data AI skill do?

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. Dùng đầu ra từ skill generate-cross-module-test-plan làm input.

Why use Generate Combinatorial Test Data on TypingMind?

Because you install it once and use it with any model. Generate Combinatorial Test Data 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 Combinatorial Test Data in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-combinatorial-test-data. 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 Combinatorial Test Data?

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 Combinatorial Test Data?

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

Is the Generate Combinatorial Test Data 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 👇