Test Idea Rewriting
Success Criteria: /<td>Verify\s/gi returns 0 matches
Quick Reference Card
Transformation Pattern
[ACTION VERB] [specific trigger]; [OUTCOME VERB] [observable result]
Action Verb Quick Reference
| Category |
Verbs |
Use When |
| Interaction |
Click, Type, Submit, Navigate, Scroll |
UI actions |
| Trigger |
Send, Inject, Force, Simulate, Load |
API/system actions |
| Measurement |
Measure, Time, Count, Profile |
Performance checks |
| State |
Set, Configure, Enable, Disable, Toggle |
Setup actions |
| Observation |
Confirm, Assert, Check, Observe |
Outcome verification |
Common Transformations
| Before |
After |
| Verify login works |
Submit valid credentials; confirm session created |
| Verify API returns 200 |
Send GET request; assert 200 response within 500ms |
| Verify error displays |
Trigger validation error; observe error message |
| Verify data saves |
Insert record; query database; confirm fields match |
| Verify performance |
Execute 100 requests; measure p99 < 200ms |
Transformation Rules
Pattern Detection
/<td>Verify\s/gi // HTML table cells
/^Verify\s/gim // Line starts
/"Verify\s[^"]+"/gi // Quoted strings
Transformation Categories
API/Network Tests
| Input Pattern |
Output Pattern |
| Verify API returns X |
Send [METHOD] request; assert [STATUS] response |
| Verify endpoint accepts Y |
Post [PAYLOAD] to endpoint; confirm [RESPONSE] |
| Verify webhook fires |
Trigger [EVENT]; observe webhook received |
UI/UX Tests
| Input Pattern |
Output Pattern |
| Verify button works |
Click [BUTTON]; observe [EFFECT] |
| Verify form submits |
Fill [FIELDS]; submit form; confirm [RESULT] |
| Verify navigation works |
Click [LINK]; observe [PAGE] loads |
Data Tests
| Input Pattern |
Output Pattern |
| Verify data saves |
Insert [RECORD]; query; confirm [MATCH] |
| Verify validation works |
Enter [INVALID]; observe [ERROR] |
| Verify format accepted |
Submit [FORMAT]; confirm [PROCESSED] |
Performance Tests
| Input Pattern |
Output Pattern |
| Verify performance is good |
Execute [LOAD]; measure [METRIC] < [THRESHOLD] |
| Verify scalability |
Increase [USERS] to [N]; monitor [RESOURCE] |
| Verify timeout works |
Inject [DELAY]; confirm timeout after [TIME] |
Action Verb Reference
Interaction Verbs
| Verb |
When to Use |
Example |
| Click |
UI element interaction |
Click "Submit" button |
| Type |
Text entry |
Type "user@example.com" |
| Submit |
Form completion |
Submit registration form |
| Navigate |
Page changes |
Navigate to /settings |
| Scroll |
Viewport movement |
Scroll to page bottom |
| Drag |
Drag-and-drop |
Drag file to upload zone |
| Hover |
Mouse positioning |
Hover over tooltip trigger |
| Select |
Dropdown/checkbox |
Select "Admin" from role dropdown |
Trigger Verbs
| Verb |
When to Use |
Example |
| Send |
HTTP requests |
Send POST to /api/orders |
| Inject |
Fault injection |
Inject 500ms latency |
| Force |
State manipulation |
Force offline mode |
| Simulate |
Event generation |
Simulate device rotation |
| Load |
Resource loading |
Load 50MB test file |
| Execute |
Script/command |
Execute database migration |
| Invoke |
Function/webhook |
Invoke payment callback |
| Trigger |
Event firing |
Trigger scheduled job |
Measurement Verbs
| Verb |
When to Use |
Example |
| Measure |
Quantitative check |
Measure response time |
| Time |
Duration tracking |
Time page render |
| Count |
Quantity check |
Count search results |
| Profile |
Resource analysis |
Profile CPU usage |
| Benchmark |
Comparison |
Benchmark against v1.0 |
| Capture |
State recording |
Capture network traffic |
| Monitor |
Ongoing observation |
Monitor memory for 5 minutes |
Observation Verbs
| Verb |
When to Use |
Example |
| Confirm |
Boolean check |
Confirm user is logged in |
| Assert |
Value comparison |
Assert total equals $99.99 |
| Check |
State verification |
Check cart has 3 items |
| Observe |
Behavior watching |
Observe spinner appears |
| Validate |
Rule compliance |
Validate email format |
| Expect |
Predicted outcome |
Expect redirect to /home |
| Verify (avoid) |
Use alternatives |
Use confirm/assert instead |
Quality Validation
Pre-Transform Checks
- Count "Verify" patterns in input
- Identify context for each pattern
- Map to appropriate action verb category
Post-Transform Checks
- Regex validation: zero "Verify" matches
- Every test idea starts with action verb
- Each test includes observable outcome
- All metadata preserved unchanged
Validation Regex
// Must return 0 matches for success
const verifyPattern = /<td>Verify\s/gi;
const matches = content.match(verifyPattern);
if (matches && matches.length > 0) {
throw new Error(`${matches.length} "Verify" patterns remain`);
}
Agent Integration
// Single file transformation
await Task("Rewrite Test Ideas", {
inputFile: "assessment.html",
outputFile: "assessment-rewritten.html",
preserveFormatting: true
}, "qe-test-idea-rewriter");
// Batch transformation
await Task("Batch Rewrite", {
inputDir: "./assessments/",
outputDir: "./assessments-clean/",
pattern: "*.html"
}, "qe-test-idea-rewriter");
Memory Namespace
aqe/rewriting/
├── transformations/* - Transformation logs
├── patterns/* - Learned patterns
└── vocabulary/* - Custom verb mappings
Related Skills
Remember
Every test idea should be actionable. "Verify X works" tells you nothing about HOW to test. "[Action] X; [Observe] Y" gives clear steps and expected outcomes. Transform passive descriptions into active, observable tests.
1---2name: test-idea-rewriting3description: Transform passive 'Verify X' test descriptions into active, observable test actions. Use when test ideas lack specificity, use vague language, or fail quality validation. Converts to action-verb format for clearer, more testable descriptions.4---5
6# Test Idea Rewriting
7
8<default_to_action>
9When transforming test ideas:
101. DETECT all "Verify X" patterns via regex
112. IDENTIFY appropriate action verb category
123. TRANSFORM to "[ACTION] [trigger]; [OBSERVE] [result]" pattern
134. PRESERVE all metadata (IDs, priorities, automation types)
145. VALIDATE zero "Verify" patterns remain
156. OUTPUT in same format as input
16
17**Success Criteria:** `/<td>Verify\s/gi` returns 0 matches
18</default_to_action>
19
20## Quick Reference Card
21
22### Transformation Pattern
23
24```
25[ACTION VERB] [specific trigger]; [OUTCOME VERB] [observable result]
26```
27
28### Action Verb Quick Reference
29
30| Category | Verbs | Use When |
31|----------|-------|----------|
32| **Interaction** | Click, Type, Submit, Navigate, Scroll | UI actions |
33| **Trigger** | Send, Inject, Force, Simulate, Load | API/system actions |
34| **Measurement** | Measure, Time, Count, Profile | Performance checks |
35| **State** | Set, Configure, Enable, Disable, Toggle | Setup actions |
36| **Observation** | Confirm, Assert, Check, Observe | Outcome verification |
37
38### Common Transformations
39
40| Before | After |
41|--------|-------|
42| Verify login works | Submit valid credentials; confirm session created |
43| Verify API returns 200 | Send GET request; assert 200 response within 500ms |
44| Verify error displays | Trigger validation error; observe error message |
45| Verify data saves | Insert record; query database; confirm fields match |
46| Verify performance | Execute 100 requests; measure p99 < 200ms |
47
48---
49
50## Transformation Rules
51
52### Pattern Detection
53
54```regex
55/<td>Verify\s/gi // HTML table cells
56/^Verify\s/gim // Line starts
57/"Verify\s[^"]+"/gi // Quoted strings
58```
59
60### Transformation Categories
61
62#### API/Network Tests
63
64| Input Pattern | Output Pattern |
65|---------------|----------------|
66| Verify API returns X | Send [METHOD] request; assert [STATUS] response |
67| Verify endpoint accepts Y | Post [PAYLOAD] to endpoint; confirm [RESPONSE] |
68| Verify webhook fires | Trigger [EVENT]; observe webhook received |
69
70#### UI/UX Tests
71
72| Input Pattern | Output Pattern |
73|---------------|----------------|
74| Verify button works | Click [BUTTON]; observe [EFFECT] |
75| Verify form submits | Fill [FIELDS]; submit form; confirm [RESULT] |
76| Verify navigation works | Click [LINK]; observe [PAGE] loads |
77
78#### Data Tests
79
80| Input Pattern | Output Pattern |
81|---------------|----------------|
82| Verify data saves | Insert [RECORD]; query; confirm [MATCH] |
83| Verify validation works | Enter [INVALID]; observe [ERROR] |
84| Verify format accepted | Submit [FORMAT]; confirm [PROCESSED] |
85
86#### Performance Tests
87
88| Input Pattern | Output Pattern |
89|---------------|----------------|
90| Verify performance is good | Execute [LOAD]; measure [METRIC] < [THRESHOLD] |
91| Verify scalability | Increase [USERS] to [N]; monitor [RESOURCE] |
92| Verify timeout works | Inject [DELAY]; confirm timeout after [TIME] |
93
94---
95
96## Action Verb Reference
97
98### Interaction Verbs
99
100| Verb | When to Use | Example |
101|------|-------------|---------|
102| Click | UI element interaction | Click "Submit" button |
103| Type | Text entry | Type "user@example.com" |
104| Submit | Form completion | Submit registration form |
105| Navigate | Page changes | Navigate to /settings |
106| Scroll | Viewport movement | Scroll to page bottom |
107| Drag | Drag-and-drop | Drag file to upload zone |
108| Hover | Mouse positioning | Hover over tooltip trigger |
109| Select | Dropdown/checkbox | Select "Admin" from role dropdown |
110
111### Trigger Verbs
112
113| Verb | When to Use | Example |
114|------|-------------|---------|
115| Send | HTTP requests | Send POST to /api/orders |
116| Inject | Fault injection | Inject 500ms latency |
117| Force | State manipulation | Force offline mode |
118| Simulate | Event generation | Simulate device rotation |
119| Load | Resource loading | Load 50MB test file |
120| Execute | Script/command | Execute database migration |
121| Invoke | Function/webhook | Invoke payment callback |
122| Trigger | Event firing | Trigger scheduled job |
123
124### Measurement Verbs
125
126| Verb | When to Use | Example |
127|------|-------------|---------|
128| Measure | Quantitative check | Measure response time |
129| Time | Duration tracking | Time page render |
130| Count | Quantity check | Count search results |
131| Profile | Resource analysis | Profile CPU usage |
132| Benchmark | Comparison | Benchmark against v1.0 |
133| Capture | State recording | Capture network traffic |
134| Monitor | Ongoing observation | Monitor memory for 5 minutes |
135
136### Observation Verbs
137
138| Verb | When to Use | Example |
139|------|-------------|---------|
140| Confirm | Boolean check | Confirm user is logged in |
141| Assert | Value comparison | Assert total equals $99.99 |
142| Check | State verification | Check cart has 3 items |
143| Observe | Behavior watching | Observe spinner appears |
144| Validate | Rule compliance | Validate email format |
145| Expect | Predicted outcome | Expect redirect to /home |
146| Verify (avoid) | Use alternatives | Use confirm/assert instead |
147
148---
149
150## Quality Validation
151
152### Pre-Transform Checks
153
1541. Count "Verify" patterns in input
1552. Identify context for each pattern
1563. Map to appropriate action verb category
157
158### Post-Transform Checks
159
1601. Regex validation: zero "Verify" matches
1612. Every test idea starts with action verb
1623. Each test includes observable outcome
1634. All metadata preserved unchanged
164
165### Validation Regex
166
167```javascript
168// Must return 0 matches for success
169const verifyPattern = /<td>Verify\s/gi;
170const matches = content.match(verifyPattern);
171if (matches && matches.length > 0) {
172 throw new Error(`${matches.length} "Verify" patterns remain`);
173}
174```
175
176---
177
178## Agent Integration
179
180```typescript
181// Single file transformation
182await Task("Rewrite Test Ideas", {
183 inputFile: "assessment.html",
184 outputFile: "assessment-rewritten.html",
185 preserveFormatting: true
186}, "qe-test-idea-rewriter");
187
188// Batch transformation
189await Task("Batch Rewrite", {
190 inputDir: "./assessments/",
191 outputDir: "./assessments-clean/",
192 pattern: "*.html"
193}, "qe-test-idea-rewriter");
194```
195
196---
197
198## Memory Namespace
199
200```
201aqe/rewriting/
202├── transformations/* - Transformation logs
203├── patterns/* - Learned patterns
204└── vocabulary/* - Custom verb mappings
205```
206
207---
208
209## Related Skills
210
211- [sfdipot-product-factors](../sfdipot-product-factors/) - Assessment generation
212- [test-design-techniques](../test-design-techniques/) - Proper test structuring
213- [brutal-honesty-review](../brutal-honesty-review/) - Quality validation
214
215---
216
217## Remember
218
219**Every test idea should be actionable.** "Verify X works" tells you nothing about HOW to test. "[Action] X; [Observe] Y" gives clear steps and expected outcomes. Transform passive descriptions into active, observable tests.