$npx -y skills add anhtester/codex-testing-kit --skill qa-automation-engineerSkill hỗ trợ agent thực hiện các tác vụ QA automation testing bao gồm generate test cases, automation scripts, API tests, locators, phân tích flaky tests, và tạo test data.
| 1 | # QA Automation Engineer |
| 2 | |
| 3 | ## Description |
| 4 | |
| 5 | This skill enables the agent to assist with software testing and automation tasks. |
| 6 | |
| 7 | The agent can: |
| 8 | |
| 9 | - Generate manual test cases from requirements |
| 10 | - Generate test automation scripts from test cases or UI flows |
| 11 | - Generate API tests from Swagger/OpenAPI specifications |
| 12 | - Explore applications and discover test scenarios |
| 13 | - Generate automation frameworks |
| 14 | - Generate test data |
| 15 | - Analyze flaky tests |
| 16 | - Generate stable locators |
| 17 | - Generate requirements from website analysis |
| 18 | |
| 19 | This skill is designed for modern QA workflows and automation development. |
| 20 | |
| 21 | --- |
| 22 | |
| 23 | # When to Use |
| 24 | |
| 25 | Use this skill when the user asks about: |
| 26 | |
| 27 | - Test automation |
| 28 | - Manual testing |
| 29 | - Automation frameworks |
| 30 | - API testing |
| 31 | - UI testing |
| 32 | - Test data generation |
| 33 | - Flaky test debugging |
| 34 | - Locator generation |
| 35 | - Requirements analysis from website |
| 36 | - Jira integration (fetch requirements, push test results) |
| 37 | - Xray test management |
| 38 | |
| 39 | Typical prompts include: |
| 40 | |
| 41 | - Generate test cases from requirement |
| 42 | - Generate Selenium automation from test case |
| 43 | - Generate automation from UI steps |
| 44 | - Generate API tests from Swagger |
| 45 | - Generate regression suite → _(redirect sang `$generate-application-test-plan` hoặc `$generate-manual-testcases-rbt`)_ |
| 46 | - Generate test data |
| 47 | - Analyze flaky test |
| 48 | - Generate locator for element |
| 49 | - Generate requirements from website |
| 50 | |
| 51 | --- |
| 52 | |
| 53 | # Workflow Routing |
| 54 | |
| 55 | When the user request matches a specific task, select the appropriate workflow skill from `.agents/skills/`. |
| 56 | |
| 57 | ### Generate test cases from requirements |
| 58 | |
| 59 | > **Delegate:** Tác vụ này thuộc skill **`$rbt-manual-testing`** — không phải `$qa-automation-engineer`. |
| 60 | |
| 61 | Use workflow: `$generate-testcases-from-requirements` (QUICK mode) hoặc `$generate-manual-testcases-rbt` (FULL RBT mode). |
| 62 | |
| 63 | Triggers when user asks: |
| 64 | |
| 65 | - generate test cases → **delegate to `$rbt-manual-testing` (QUICK mode)** |
| 66 | - write manual test cases → **delegate to `$rbt-manual-testing` (QUICK mode)** |
| 67 | - test scenarios from requirement → **delegate to `$rbt-manual-testing` (QUICK mode)** |
| 68 | - sinh test cases đầy đủ / quy trình 6 bước → **delegate to `$rbt-manual-testing` (FULL RBT mode)** |
| 69 | |
| 70 | --- |
| 71 | |
| 72 | ### Generate automation from manual test case |
| 73 | |
| 74 | Use workflow: `$generate-automation-from-testcases` |
| 75 | |
| 76 | Triggers when user asks: |
| 77 | |
| 78 | - convert test case to automation |
| 79 | - generate Selenium automation |
| 80 | - generate Playwright automation from test case |
| 81 | |
| 82 | --- |
| 83 | |
| 84 | ### Generate automation from UI steps |
| 85 | |
| 86 | Use workflow: `$generate-automation-from-ui-flow` |
| 87 | |
| 88 | Triggers when user asks: |
| 89 | |
| 90 | - automate this UI flow |
| 91 | - generate automation from steps |
| 92 | - run UI steps and generate Selenium script |
| 93 | |
| 94 | --- |
| 95 | |
| 96 | ### Generate API tests |
| 97 | |
| 98 | Use workflow: `$generate-api-tests-from-swagger` |
| 99 | |
| 100 | Triggers when user provides: |
| 101 | |
| 102 | - Swagger URL |
| 103 | - OpenAPI specification |
| 104 | |
| 105 | --- |
| 106 | |
| 107 | ### Generate test data |
| 108 | |
| 109 | Use workflow: `$generate-test-data` |
| 110 | |
| 111 | Triggers when user asks: |
| 112 | |
| 113 | - generate test data |
| 114 | - generate boundary test data |
| 115 | |
| 116 | --- |
| 117 | |
| 118 | ### Analyze cross-module feature & generate combinatorial matrix |
| 119 | |
| 120 | Use workflow: `$generate-cross-module-test-plan` |
| 121 | |
| 122 | > Workflow dành cho **tính năng phức tạp đi qua nhiều modules nối tiếp**. Sinh Data Flow Map + Ma trận kết hợp đa chiều (Pairwise / Business-critical / Full Cartesian). |
| 123 | |
| 124 | Triggers when user asks: |
| 125 | |
| 126 | - phân tích tính năng cross-module |
| 127 | - test nhiều module liên kết |
| 128 | - sinh ma trận kết hợp / combinatorial matrix |
| 129 | - test tính năng có nhiều điều kiện kết hợp |
| 130 | - analyze multi-module feature |
| 131 | - pairwise testing |
| 132 | - decision table đa chiều / nhiều chiều |
| 133 | |
| 134 | --- |
| 135 | |
| 136 | ### Generate combinatorial test data (multi-module pipeline) |
| 137 | |
| 138 | Use workflow: `$generate-combinatorial-test-data` |
| 139 | |
| 140 | > Sinh test data cho ma trận kết hợp. Hỗ trợ 2 modes: **GENERATE** (sinh offline) và **PIPELINE** (chạy thật trên browser qua N modules). |
| 141 | |
| 142 | Triggers when user asks: |
| 143 | |
| 144 | - sinh data cho ma trận kết hợp |
| 145 | - tạo test data cho combinatorial matrix |
| 146 | - chạy pipeline tạo data qua nhiều module |
| 147 | - generate combinatorial test data |
| 148 | - setup data cho cross-module test |
| 149 | |
| 150 | --- |
| 151 | |
| 152 | ### Generate regression suite |
| 153 | |
| 154 | > **Không có workflow riêng.** Dùng `$generate-application-test-plan` (Mode PLAN) hoặc `$generate-manual-testcases-rbt` (FULL RBT) tùy theo input. |
| 155 | |
| 156 | Triggers when user asks: |
| 157 | |
| 158 | - create regression test suite |
| 159 | - generate regression scenarios |
| 160 | |
| 161 | --- |
| 162 | |
| 163 | ### Generate automation framework |
| 164 | |
| 165 | > **Delegate:** Tác vụ này sử dụng skill **`$framework-architect`** để thiết kế framework. |
| 166 | |
| 167 | Use workflow: `$generate-automation-framework` |
| 168 | |
| 169 | Triggers when user asks: |
| 170 | |
| 171 | - create automation framework |
| 172 | - design Selenium framework |
| 173 | - design Playwright framework |
| 174 | - design Appium framework |
| 175 | - scaffold automation project |
| 176 | - thiết kế framework mới |
| 177 | |
| 178 | --- |
| 179 | |
| 180 | ### Explore application and generate test plan |
| 181 | |
| 182 | Use workflow: `$generate-application-test-plan` |
| 183 | |
| 184 | > Workflow này có **2 modes**: PLAN (mặc định — chỉ test plan) và FULL (test plan + automation skeleton). |
| 185 | > Khi user yêu cầu |