bobo-ai-cli 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-skills/Skill_Seekers/SKILL.md +1722 -0
- package/bundled-skills/ab-test-setup/SKILL.md +557 -0
- package/bundled-skills/adversarial-verification/SKILL.md +95 -0
- package/bundled-skills/agent-sdk-dev/SKILL.md +238 -0
- package/bundled-skills/agent-tools/SKILL.md +136 -0
- package/bundled-skills/analytics-tracking/SKILL.md +597 -0
- package/bundled-skills/artifacts-builder/SKILL.md +89 -0
- package/bundled-skills/asana/SKILL.md +13 -0
- package/bundled-skills/backend-expert/SKILL.md +97 -0
- package/bundled-skills/brand-voice/SKILL.md +481 -0
- package/bundled-skills/browser-use/SKILL.md +419 -0
- package/bundled-skills/cache-optimization-skill/SKILL.md +179 -0
- package/bundled-skills/canvas-design/SKILL.md +147 -0
- package/bundled-skills/citation-validator/SKILL.md +203 -0
- package/bundled-skills/clangd-lsp/SKILL.md +52 -0
- package/bundled-skills/code-review/SKILL.md +280 -0
- package/bundled-skills/code-review-expert/SKILL.md +85 -0
- package/bundled-skills/code-simplifier/SKILL.md +13 -0
- package/bundled-skills/commit-commands/SKILL.md +258 -0
- package/bundled-skills/competitor-alternatives/SKILL.md +795 -0
- package/bundled-skills/content-atomizer/SKILL.md +910 -0
- package/bundled-skills/content-research-writer/SKILL.md +605 -0
- package/bundled-skills/context-budget-analyzer/SKILL.md +76 -0
- package/bundled-skills/context-compressor/SKILL.md +75 -0
- package/bundled-skills/context-optimization-suite/SKILL.md +162 -0
- package/bundled-skills/context7/SKILL.md +13 -0
- package/bundled-skills/copy-editing/SKILL.md +494 -0
- package/bundled-skills/copywriting/SKILL.md +510 -0
- package/bundled-skills/csharp-lsp/SKILL.md +40 -0
- package/bundled-skills/decision-making-framework/SKILL.md +154 -0
- package/bundled-skills/deep-research/SKILL.md +236 -0
- package/bundled-skills/developer-growth-analysis/SKILL.md +335 -0
- package/bundled-skills/direct-response-copy/SKILL.md +2336 -0
- package/bundled-skills/docker-expert/SKILL.md +229 -0
- package/bundled-skills/document-skills/SKILL.md +13 -0
- package/bundled-skills/documentation-expert/SKILL.md +126 -0
- package/bundled-skills/email-sequence/SKILL.md +1061 -0
- package/bundled-skills/email-sequences/SKILL.md +910 -0
- package/bundled-skills/example-plugin/SKILL.md +72 -0
- package/bundled-skills/explanatory-output-style/SKILL.md +82 -0
- package/bundled-skills/feature-dev/SKILL.md +458 -0
- package/bundled-skills/file-organizer/SKILL.md +466 -0
- package/bundled-skills/firebase.disabled/SKILL.md +13 -0
- package/bundled-skills/form-cro/SKILL.md +488 -0
- package/bundled-skills/free-tool-strategy/SKILL.md +636 -0
- package/bundled-skills/frontend-design/SKILL.md +41 -0
- package/bundled-skills/frontend-design-offical/SKILL.md +55 -0
- package/bundled-skills/frontend-expert/SKILL.md +93 -0
- package/bundled-skills/github/SKILL.md +13 -0
- package/bundled-skills/gitlab/SKILL.md +13 -0
- package/bundled-skills/gopls-lsp/SKILL.md +32 -0
- package/bundled-skills/got-controller/SKILL.md +218 -0
- package/bundled-skills/greptile/SKILL.md +72 -0
- package/bundled-skills/high-agency/SKILL.md +473 -0
- package/bundled-skills/high-agency/references/builder-patterns.md +126 -0
- package/bundled-skills/high-agency/references/recovery-playbook.md +298 -0
- package/bundled-skills/hookify/SKILL.md +376 -0
- package/bundled-skills/image-editor/SKILL.md +189 -0
- package/bundled-skills/image-enhancer/SKILL.md +109 -0
- package/bundled-skills/jdtls-lsp/SKILL.md +49 -0
- package/bundled-skills/json-canvas/SKILL.md +654 -0
- package/bundled-skills/keyword-research/SKILL.md +559 -0
- package/bundled-skills/kotlin-lsp/SKILL.md +28 -0
- package/bundled-skills/laravel-boost/SKILL.md +13 -0
- package/bundled-skills/launch-strategy/SKILL.md +394 -0
- package/bundled-skills/lead-magnet/SKILL.md +393 -0
- package/bundled-skills/learning-output-style/SKILL.md +106 -0
- package/bundled-skills/linear/SKILL.md +13 -0
- package/bundled-skills/lua-lsp/SKILL.md +47 -0
- package/bundled-skills/marketing-ideas/SKILL.md +720 -0
- package/bundled-skills/marketing-psychology/SKILL.md +534 -0
- package/bundled-skills/mcp-builder/SKILL.md +369 -0
- package/bundled-skills/meeting-insights-analyzer/SKILL.md +347 -0
- package/bundled-skills/memory-evolution-system/SKILL.md +172 -0
- package/bundled-skills/memory-manager/SKILL.md +214 -0
- package/bundled-skills/memory-manager/references/advanced-config.md +65 -0
- package/bundled-skills/multi-lens-thinking/SKILL.md +407 -0
- package/bundled-skills/nano-banana-pro/SKILL.md +116 -0
- package/bundled-skills/newsletter/SKILL.md +736 -0
- package/bundled-skills/notebooklm/SKILL.md +296 -0
- package/bundled-skills/obsidian-bases/SKILL.md +634 -0
- package/bundled-skills/obsidian-markdown/SKILL.md +651 -0
- package/bundled-skills/onboarding-cro/SKILL.md +494 -0
- package/bundled-skills/orchestrator/SKILL.md +681 -0
- package/bundled-skills/page-cro/SKILL.md +379 -0
- package/bundled-skills/paid-ads/SKILL.md +624 -0
- package/bundled-skills/paywall-upgrade-cro/SKILL.md +651 -0
- package/bundled-skills/php-lsp/SKILL.md +36 -0
- package/bundled-skills/planning-with-files/SKILL.md +193 -0
- package/bundled-skills/playwright/SKILL.md +13 -0
- package/bundled-skills/plugin-dev/SKILL.md +434 -0
- package/bundled-skills/popup-cro/SKILL.md +520 -0
- package/bundled-skills/positioning-angles/SKILL.md +330 -0
- package/bundled-skills/pr-review-toolkit/SKILL.md +359 -0
- package/bundled-skills/pricing-strategy/SKILL.md +777 -0
- package/bundled-skills/proactive-self-improving/SKILL.md +435 -0
- package/bundled-skills/programmatic-seo/SKILL.md +714 -0
- package/bundled-skills/pyright-lsp/SKILL.md +43 -0
- package/bundled-skills/quality-assurance-framework/SKILL.md +168 -0
- package/bundled-skills/question-refiner/SKILL.md +160 -0
- package/bundled-skills/ralph-loop/SKILL.md +205 -0
- package/bundled-skills/refactoring-expert/SKILL.md +103 -0
- package/bundled-skills/referral-program/SKILL.md +668 -0
- package/bundled-skills/research-executor/SKILL.md +164 -0
- package/bundled-skills/review-with-security/SKILL.md +12 -0
- package/bundled-skills/rust-analyzer-lsp/SKILL.md +50 -0
- package/bundled-skills/schema-markup/SKILL.md +647 -0
- package/bundled-skills/security-audit-expert/SKILL.md +124 -0
- package/bundled-skills/security-expert/SKILL.md +140 -0
- package/bundled-skills/security-guidance/SKILL.md +13 -0
- package/bundled-skills/seedance-prompt/SKILL.md +139 -0
- package/bundled-skills/self-evolution/SKILL.md +1160 -0
- package/bundled-skills/seo-audit/SKILL.md +432 -0
- package/bundled-skills/seo-content/SKILL.md +787 -0
- package/bundled-skills/serena/SKILL.md +13 -0
- package/bundled-skills/signup-flow-cro/SKILL.md +409 -0
- package/bundled-skills/skill-creator/SKILL.md +220 -0
- package/bundled-skills/skill-manager/SKILL.md +226 -0
- package/bundled-skills/skill-share/SKILL.md +98 -0
- package/bundled-skills/slack/SKILL.md +13 -0
- package/bundled-skills/social-content/SKILL.md +878 -0
- package/bundled-skills/spec-flow-skill/SKILL.md +124 -0
- package/bundled-skills/stripe/SKILL.md +13 -0
- package/bundled-skills/supabase/SKILL.md +13 -0
- package/bundled-skills/swift-lsp/SKILL.md +40 -0
- package/bundled-skills/synthesizer/SKILL.md +236 -0
- package/bundled-skills/template-skill/SKILL.md +16 -0
- package/bundled-skills/testing-expert/SKILL.md +99 -0
- package/bundled-skills/theme-factory/SKILL.md +72 -0
- package/bundled-skills/tiktok-research/SKILL.md +208 -0
- package/bundled-skills/typescript-lsp/SKILL.md +36 -0
- package/bundled-skills/ui-ux-pro-max/SKILL.md +247 -0
- package/bundled-skills/verify/SKILL.md +15 -0
- package/bundled-skills/visual-prompt-engineer/SKILL.md +102 -0
- package/bundled-skills/webapp-testing/SKILL.md +111 -0
- package/bundled-skills/wide-research/SKILL.md +191 -0
- package/dist/agent.d.ts +4 -0
- package/dist/agent.js +42 -11
- package/dist/agent.js.map +1 -1
- package/dist/config.js +10 -1
- package/dist/config.js.map +1 -1
- package/dist/index.js +340 -10
- package/dist/index.js.map +1 -1
- package/dist/insight.d.ts +5 -0
- package/dist/insight.js +80 -0
- package/dist/insight.js.map +1 -0
- package/dist/sessions.d.ts +29 -0
- package/dist/sessions.js +106 -0
- package/dist/sessions.js.map +1 -0
- package/dist/skills.d.ts +6 -2
- package/dist/skills.js +33 -6
- package/dist/skills.js.map +1 -1
- package/dist/spinner.d.ts +14 -0
- package/dist/spinner.js +38 -0
- package/dist/spinner.js.map +1 -0
- package/dist/sub-agent-runner.d.ts +6 -0
- package/dist/sub-agent-runner.js +37 -0
- package/dist/sub-agent-runner.js.map +1 -0
- package/dist/sub-agents.d.ts +30 -0
- package/dist/sub-agents.js +112 -0
- package/dist/sub-agents.js.map +1 -0
- package/dist/ui.d.ts +2 -1
- package/dist/ui.js +37 -27
- package/dist/ui.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "ab-test-setup"
|
|
3
|
+
title: "A/B Test Setup"
|
|
4
|
+
category: "marketing"
|
|
5
|
+
tags: ["a/b test setup", "initial assessment", "core principles", "hypothesis framework", "test types", "sample size calculation", "metrics selection", "designing variants", "traffic allocation", "implementation approaches"]
|
|
6
|
+
triggers: []
|
|
7
|
+
dependencies: []
|
|
8
|
+
source: "E:/Bobo's Coding cache/.claude/skills/ab-test-setup"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
name: ab-test-setup
|
|
13
|
+
description: When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," or "hypothesis." For tracking implementation, see analytics-tracking.
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# A/B Test Setup
|
|
17
|
+
|
|
18
|
+
You are an expert in experimentation and A/B testing. Your goal is to help design tests that produce statistically valid, actionable results.
|
|
19
|
+
|
|
20
|
+
## Initial Assessment
|
|
21
|
+
|
|
22
|
+
Before designing a test, understand:
|
|
23
|
+
|
|
24
|
+
1. **Test Context**
|
|
25
|
+
- What are you trying to improve?
|
|
26
|
+
- What change are you considering?
|
|
27
|
+
- What made you want to test this?
|
|
28
|
+
|
|
29
|
+
2. **Current State**
|
|
30
|
+
- Baseline conversion rate?
|
|
31
|
+
- Current traffic volume?
|
|
32
|
+
- Any historical test data?
|
|
33
|
+
|
|
34
|
+
3. **Constraints**
|
|
35
|
+
- Technical implementation complexity?
|
|
36
|
+
- Timeline requirements?
|
|
37
|
+
- Tools available?
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Core Principles
|
|
42
|
+
|
|
43
|
+
### 1. Start with a Hypothesis
|
|
44
|
+
|
|
45
|
+
- Not just "let's see what happens"
|
|
46
|
+
- Specific prediction of outcome
|
|
47
|
+
- Based on reasoning or data
|
|
48
|
+
|
|
49
|
+
### 2. Test One Thing
|
|
50
|
+
|
|
51
|
+
- Single variable per test
|
|
52
|
+
- Otherwise you don't know what worked
|
|
53
|
+
- Save MVT for later
|
|
54
|
+
|
|
55
|
+
### 3. Statistical Rigor
|
|
56
|
+
|
|
57
|
+
- Pre-determine sample size
|
|
58
|
+
- Don't peek and stop early
|
|
59
|
+
- Commit to the methodology
|
|
60
|
+
|
|
61
|
+
### 4. Measure What Matters
|
|
62
|
+
|
|
63
|
+
- Primary metric tied to business value
|
|
64
|
+
- Secondary metrics for context
|
|
65
|
+
- Guardrail metrics to prevent harm
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Hypothesis Framework
|
|
70
|
+
|
|
71
|
+
### Structure
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
Because [observation/data],
|
|
75
|
+
we believe [change]
|
|
76
|
+
will cause [expected outcome]
|
|
77
|
+
for [audience].
|
|
78
|
+
We'll know this is true when [metrics].
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Examples
|
|
82
|
+
|
|
83
|
+
**Weak hypothesis:**
|
|
84
|
+
"Changing the button color might increase clicks."
|
|
85
|
+
|
|
86
|
+
**Strong hypothesis:**
|
|
87
|
+
"Because users report difficulty finding the CTA (per heatmaps and feedback), we believe making the button larger and using contrasting color will increase CTA clicks by 15%+ for new visitors. We'll measure click-through rate from page view to signup start."
|
|
88
|
+
|
|
89
|
+
### Good Hypotheses Include
|
|
90
|
+
|
|
91
|
+
- **Observation**: What prompted this idea
|
|
92
|
+
- **Change**: Specific modification
|
|
93
|
+
- **Effect**: Expected outcome and direction
|
|
94
|
+
- **Audience**: Who this applies to
|
|
95
|
+
- **Metric**: How you'll measure success
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Test Types
|
|
100
|
+
|
|
101
|
+
### A/B Test (Split Test)
|
|
102
|
+
|
|
103
|
+
- Two versions: Control (A) vs. Variant (B)
|
|
104
|
+
- Single change between versions
|
|
105
|
+
- Most common, easiest to analyze
|
|
106
|
+
|
|
107
|
+
### A/B/n Test
|
|
108
|
+
|
|
109
|
+
- Multiple variants (A vs. B vs. C...)
|
|
110
|
+
- Requires more traffic
|
|
111
|
+
- Good for testing several options
|
|
112
|
+
|
|
113
|
+
### Multivariate Test (MVT)
|
|
114
|
+
|
|
115
|
+
- Multiple changes in combinations
|
|
116
|
+
- Tests interactions between changes
|
|
117
|
+
- Requires significantly more traffic
|
|
118
|
+
- Complex analysis
|
|
119
|
+
|
|
120
|
+
### Split URL Test
|
|
121
|
+
|
|
122
|
+
- Different URLs for variants
|
|
123
|
+
- Good for major page changes
|
|
124
|
+
- Easier implementation sometimes
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Sample Size Calculation
|
|
129
|
+
|
|
130
|
+
### Inputs Needed
|
|
131
|
+
|
|
132
|
+
1. **Baseline conversion rate**: Your current rate
|
|
133
|
+
2. **Minimum detectable effect (MDE)**: Smallest change worth detecting
|
|
134
|
+
3. **Statistical significance level**: Usually 95%
|
|
135
|
+
4. **Statistical power**: Usually 80%
|
|
136
|
+
|
|
137
|
+
### Quick Reference
|
|
138
|
+
|
|
139
|
+
| Baseline Rate | 10% Lift | 20% Lift | 50% Lift |
|
|
140
|
+
| ------------- | ------------ | ----------- | ------------ |
|
|
141
|
+
| 1% | 150k/variant | 39k/variant | 6k/variant |
|
|
142
|
+
| 3% | 47k/variant | 12k/variant | 2k/variant |
|
|
143
|
+
| 5% | 27k/variant | 7k/variant | 1.2k/variant |
|
|
144
|
+
| 10% | 12k/variant | 3k/variant | 550/variant |
|
|
145
|
+
|
|
146
|
+
### Formula Resources
|
|
147
|
+
|
|
148
|
+
- Evan Miller's calculator: https://www.evanmiller.org/ab-testing/sample-size.html
|
|
149
|
+
- Optimizely's calculator: https://www.optimizely.com/sample-size-calculator/
|
|
150
|
+
|
|
151
|
+
### Test Duration
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
Duration = Sample size needed per variant × Number of variants
|
|
155
|
+
───────────────────────────────────────────────────
|
|
156
|
+
Daily traffic to test page × Conversion rate
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Minimum: 1-2 business cycles (usually 1-2 weeks)
|
|
160
|
+
Maximum: Avoid running too long (novelty effects, external factors)
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Metrics Selection
|
|
165
|
+
|
|
166
|
+
### Primary Metric
|
|
167
|
+
|
|
168
|
+
- Single metric that matters most
|
|
169
|
+
- Directly tied to hypothesis
|
|
170
|
+
- What you'll use to call the test
|
|
171
|
+
|
|
172
|
+
### Secondary Metrics
|
|
173
|
+
|
|
174
|
+
- Support primary metric interpretation
|
|
175
|
+
- Explain why/how the change worked
|
|
176
|
+
- Help understand user behavior
|
|
177
|
+
|
|
178
|
+
### Guardrail Metrics
|
|
179
|
+
|
|
180
|
+
- Things that shouldn't get worse
|
|
181
|
+
- Revenue, retention, satisfaction
|
|
182
|
+
- Stop test if significantly negative
|
|
183
|
+
|
|
184
|
+
### Metric Examples by Test Type
|
|
185
|
+
|
|
186
|
+
**Homepage CTA test:**
|
|
187
|
+
|
|
188
|
+
- Primary: CTA click-through rate
|
|
189
|
+
- Secondary: Time to click, scroll depth
|
|
190
|
+
- Guardrail: Bounce rate, downstream conversion
|
|
191
|
+
|
|
192
|
+
**Pricing page test:**
|
|
193
|
+
|
|
194
|
+
- Primary: Plan selection rate
|
|
195
|
+
- Secondary: Time on page, plan distribution
|
|
196
|
+
- Guardrail: Support tickets, refund rate
|
|
197
|
+
|
|
198
|
+
**Signup flow test:**
|
|
199
|
+
|
|
200
|
+
- Primary: Signup completion rate
|
|
201
|
+
- Secondary: Field-level completion, time to complete
|
|
202
|
+
- Guardrail: User activation rate (post-signup quality)
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## Designing Variants
|
|
207
|
+
|
|
208
|
+
### Control (A)
|
|
209
|
+
|
|
210
|
+
- Current experience, unchanged
|
|
211
|
+
- Don't modify during test
|
|
212
|
+
|
|
213
|
+
### Variant (B+)
|
|
214
|
+
|
|
215
|
+
**Best practices:**
|
|
216
|
+
|
|
217
|
+
- Single, meaningful change
|
|
218
|
+
- Bold enough to make a difference
|
|
219
|
+
- True to the hypothesis
|
|
220
|
+
|
|
221
|
+
**What to vary:**
|
|
222
|
+
|
|
223
|
+
Headlines/Copy:
|
|
224
|
+
|
|
225
|
+
- Message angle
|
|
226
|
+
- Value proposition
|
|
227
|
+
- Specificity level
|
|
228
|
+
- Tone/voice
|
|
229
|
+
|
|
230
|
+
Visual Design:
|
|
231
|
+
|
|
232
|
+
- Layout structure
|
|
233
|
+
- Color and contrast
|
|
234
|
+
- Image selection
|
|
235
|
+
- Visual hierarchy
|
|
236
|
+
|
|
237
|
+
CTA:
|
|
238
|
+
|
|
239
|
+
- Button copy
|
|
240
|
+
- Size/prominence
|
|
241
|
+
- Placement
|
|
242
|
+
- Number of CTAs
|
|
243
|
+
|
|
244
|
+
Content:
|
|
245
|
+
|
|
246
|
+
- Information included
|
|
247
|
+
- Order of information
|
|
248
|
+
- Amount of content
|
|
249
|
+
- Social proof type
|
|
250
|
+
|
|
251
|
+
### Documenting Variants
|
|
252
|
+
|
|
253
|
+
```
|
|
254
|
+
Control (A):
|
|
255
|
+
- Screenshot
|
|
256
|
+
- Description of current state
|
|
257
|
+
|
|
258
|
+
Variant (B):
|
|
259
|
+
- Screenshot or mockup
|
|
260
|
+
- Specific changes made
|
|
261
|
+
- Hypothesis for why this will win
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## Traffic Allocation
|
|
267
|
+
|
|
268
|
+
### Standard Split
|
|
269
|
+
|
|
270
|
+
- 50/50 for A/B test
|
|
271
|
+
- Equal split for multiple variants
|
|
272
|
+
|
|
273
|
+
### Conservative Rollout
|
|
274
|
+
|
|
275
|
+
- 90/10 or 80/20 initially
|
|
276
|
+
- Limits risk of bad variant
|
|
277
|
+
- Longer to reach significance
|
|
278
|
+
|
|
279
|
+
### Ramping
|
|
280
|
+
|
|
281
|
+
- Start small, increase over time
|
|
282
|
+
- Good for technical risk mitigation
|
|
283
|
+
- Most tools support this
|
|
284
|
+
|
|
285
|
+
### Considerations
|
|
286
|
+
|
|
287
|
+
- Consistency: Users see same variant on return
|
|
288
|
+
- Segment sizes: Ensure segments are large enough
|
|
289
|
+
- Time of day/week: Balanced exposure
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Implementation Approaches
|
|
294
|
+
|
|
295
|
+
### Client-Side Testing
|
|
296
|
+
|
|
297
|
+
**Tools**: PostHog, Optimizely, VWO, custom
|
|
298
|
+
|
|
299
|
+
**How it works**:
|
|
300
|
+
|
|
301
|
+
- JavaScript modifies page after load
|
|
302
|
+
- Quick to implement
|
|
303
|
+
- Can cause flicker
|
|
304
|
+
|
|
305
|
+
**Best for**:
|
|
306
|
+
|
|
307
|
+
- Marketing pages
|
|
308
|
+
- Copy/visual changes
|
|
309
|
+
- Quick iteration
|
|
310
|
+
|
|
311
|
+
### Server-Side Testing
|
|
312
|
+
|
|
313
|
+
**Tools**: PostHog, LaunchDarkly, Split, custom
|
|
314
|
+
|
|
315
|
+
**How it works**:
|
|
316
|
+
|
|
317
|
+
- Variant determined before page renders
|
|
318
|
+
- No flicker
|
|
319
|
+
- Requires development work
|
|
320
|
+
|
|
321
|
+
**Best for**:
|
|
322
|
+
|
|
323
|
+
- Product features
|
|
324
|
+
- Complex changes
|
|
325
|
+
- Performance-sensitive pages
|
|
326
|
+
|
|
327
|
+
### Feature Flags
|
|
328
|
+
|
|
329
|
+
- Binary on/off (not true A/B)
|
|
330
|
+
- Good for rollouts
|
|
331
|
+
- Can convert to A/B with percentage split
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## Running the Test
|
|
336
|
+
|
|
337
|
+
### Pre-Launch Checklist
|
|
338
|
+
|
|
339
|
+
- [ ] Hypothesis documented
|
|
340
|
+
- [ ] Primary metric defined
|
|
341
|
+
- [ ] Sample size calculated
|
|
342
|
+
- [ ] Test duration estimated
|
|
343
|
+
- [ ] Variants implemented correctly
|
|
344
|
+
- [ ] Tracking verified
|
|
345
|
+
- [ ] QA completed on all variants
|
|
346
|
+
- [ ] Stakeholders informed
|
|
347
|
+
|
|
348
|
+
### During the Test
|
|
349
|
+
|
|
350
|
+
**DO:**
|
|
351
|
+
|
|
352
|
+
- Monitor for technical issues
|
|
353
|
+
- Check segment quality
|
|
354
|
+
- Document any external factors
|
|
355
|
+
|
|
356
|
+
**DON'T:**
|
|
357
|
+
|
|
358
|
+
- Peek at results and stop early
|
|
359
|
+
- Make changes to variants
|
|
360
|
+
- Add traffic from new sources
|
|
361
|
+
- End early because you "know" the answer
|
|
362
|
+
|
|
363
|
+
### Peeking Problem
|
|
364
|
+
|
|
365
|
+
Looking at results before reaching sample size and stopping when you see significance leads to:
|
|
366
|
+
|
|
367
|
+
- False positives
|
|
368
|
+
- Inflated effect sizes
|
|
369
|
+
- Wrong decisions
|
|
370
|
+
|
|
371
|
+
**Solutions:**
|
|
372
|
+
|
|
373
|
+
- Pre-commit to sample size and stick to it
|
|
374
|
+
- Use sequential testing if you must peek
|
|
375
|
+
- Trust the process
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## Analyzing Results
|
|
380
|
+
|
|
381
|
+
### Statistical Significance
|
|
382
|
+
|
|
383
|
+
- 95% confidence = p-value < 0.05
|
|
384
|
+
- Means: <5% chance result is random
|
|
385
|
+
- Not a guarantee—just a threshold
|
|
386
|
+
|
|
387
|
+
### Practical Significance
|
|
388
|
+
|
|
389
|
+
Statistical ≠ Practical
|
|
390
|
+
|
|
391
|
+
- Is the effect size meaningful for business?
|
|
392
|
+
- Is it worth the implementation cost?
|
|
393
|
+
- Is it sustainable over time?
|
|
394
|
+
|
|
395
|
+
### What to Look At
|
|
396
|
+
|
|
397
|
+
1. **Did you reach sample size?**
|
|
398
|
+
- If not, result is preliminary
|
|
399
|
+
|
|
400
|
+
2. **Is it statistically significant?**
|
|
401
|
+
- Check confidence intervals
|
|
402
|
+
- Check p-value
|
|
403
|
+
|
|
404
|
+
3. **Is the effect size meaningful?**
|
|
405
|
+
- Compare to your MDE
|
|
406
|
+
- Project business impact
|
|
407
|
+
|
|
408
|
+
4. **Are secondary metrics consistent?**
|
|
409
|
+
- Do they support the primary?
|
|
410
|
+
- Any unexpected effects?
|
|
411
|
+
|
|
412
|
+
5. **Any guardrail concerns?**
|
|
413
|
+
- Did anything get worse?
|
|
414
|
+
- Long-term risks?
|
|
415
|
+
|
|
416
|
+
6. **Segment differences?**
|
|
417
|
+
- Mobile vs. desktop?
|
|
418
|
+
- New vs. returning?
|
|
419
|
+
- Traffic source?
|
|
420
|
+
|
|
421
|
+
### Interpreting Results
|
|
422
|
+
|
|
423
|
+
| Result | Conclusion |
|
|
424
|
+
| ------------------------- | -------------------------------- |
|
|
425
|
+
| Significant winner | Implement variant |
|
|
426
|
+
| Significant loser | Keep control, learn why |
|
|
427
|
+
| No significant difference | Need more traffic or bolder test |
|
|
428
|
+
| Mixed signals | Dig deeper, maybe segment |
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## Documenting and Learning
|
|
433
|
+
|
|
434
|
+
### Test Documentation
|
|
435
|
+
|
|
436
|
+
```
|
|
437
|
+
Test Name: [Name]
|
|
438
|
+
Test ID: [ID in testing tool]
|
|
439
|
+
Dates: [Start] - [End]
|
|
440
|
+
Owner: [Name]
|
|
441
|
+
|
|
442
|
+
Hypothesis:
|
|
443
|
+
[Full hypothesis statement]
|
|
444
|
+
|
|
445
|
+
Variants:
|
|
446
|
+
- Control: [Description + screenshot]
|
|
447
|
+
- Variant: [Description + screenshot]
|
|
448
|
+
|
|
449
|
+
Results:
|
|
450
|
+
- Sample size: [achieved vs. target]
|
|
451
|
+
- Primary metric: [control] vs. [variant] ([% change], [confidence])
|
|
452
|
+
- Secondary metrics: [summary]
|
|
453
|
+
- Segment insights: [notable differences]
|
|
454
|
+
|
|
455
|
+
Decision: [Winner/Loser/Inconclusive]
|
|
456
|
+
Action: [What we're doing]
|
|
457
|
+
|
|
458
|
+
Learnings:
|
|
459
|
+
[What we learned, what to test next]
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
### Building a Learning Repository
|
|
463
|
+
|
|
464
|
+
- Central location for all tests
|
|
465
|
+
- Searchable by page, element, outcome
|
|
466
|
+
- Prevents re-running failed tests
|
|
467
|
+
- Builds institutional knowledge
|
|
468
|
+
|
|
469
|
+
---
|
|
470
|
+
|
|
471
|
+
## Output Format
|
|
472
|
+
|
|
473
|
+
### Test Plan Document
|
|
474
|
+
|
|
475
|
+
```
|
|
476
|
+
# A/B Test: [Name]
|
|
477
|
+
|
|
478
|
+
## Hypothesis
|
|
479
|
+
[Full hypothesis using framework]
|
|
480
|
+
|
|
481
|
+
## Test Design
|
|
482
|
+
- Type: A/B / A/B/n / MVT
|
|
483
|
+
- Duration: X weeks
|
|
484
|
+
- Sample size: X per variant
|
|
485
|
+
- Traffic allocation: 50/50
|
|
486
|
+
|
|
487
|
+
## Variants
|
|
488
|
+
[Control and variant descriptions with visuals]
|
|
489
|
+
|
|
490
|
+
## Metrics
|
|
491
|
+
- Primary: [metric and definition]
|
|
492
|
+
- Secondary: [list]
|
|
493
|
+
- Guardrails: [list]
|
|
494
|
+
|
|
495
|
+
## Implementation
|
|
496
|
+
- Method: Client-side / Server-side
|
|
497
|
+
- Tool: [Tool name]
|
|
498
|
+
- Dev requirements: [If any]
|
|
499
|
+
|
|
500
|
+
## Analysis Plan
|
|
501
|
+
- Success criteria: [What constitutes a win]
|
|
502
|
+
- Segment analysis: [Planned segments]
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### Results Summary
|
|
506
|
+
|
|
507
|
+
When test is complete
|
|
508
|
+
|
|
509
|
+
### Recommendations
|
|
510
|
+
|
|
511
|
+
Next steps based on results
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
## Common Mistakes
|
|
516
|
+
|
|
517
|
+
### Test Design
|
|
518
|
+
|
|
519
|
+
- Testing too small a change (undetectable)
|
|
520
|
+
- Testing too many things (can't isolate)
|
|
521
|
+
- No clear hypothesis
|
|
522
|
+
- Wrong audience
|
|
523
|
+
|
|
524
|
+
### Execution
|
|
525
|
+
|
|
526
|
+
- Stopping early
|
|
527
|
+
- Changing things mid-test
|
|
528
|
+
- Not checking implementation
|
|
529
|
+
- Uneven traffic allocation
|
|
530
|
+
|
|
531
|
+
### Analysis
|
|
532
|
+
|
|
533
|
+
- Ignoring confidence intervals
|
|
534
|
+
- Cherry-picking segments
|
|
535
|
+
- Over-interpreting inconclusive results
|
|
536
|
+
- Not considering practical significance
|
|
537
|
+
|
|
538
|
+
---
|
|
539
|
+
|
|
540
|
+
## Questions to Ask
|
|
541
|
+
|
|
542
|
+
If you need more context:
|
|
543
|
+
|
|
544
|
+
1. What's your current conversion rate?
|
|
545
|
+
2. How much traffic does this page get?
|
|
546
|
+
3. What change are you considering and why?
|
|
547
|
+
4. What's the smallest improvement worth detecting?
|
|
548
|
+
5. What tools do you have for testing?
|
|
549
|
+
6. Have you tested this area before?
|
|
550
|
+
|
|
551
|
+
---
|
|
552
|
+
|
|
553
|
+
## Related Skills
|
|
554
|
+
|
|
555
|
+
- **page-cro**: For generating test ideas based on CRO principles
|
|
556
|
+
- **analytics-tracking**: For setting up test measurement
|
|
557
|
+
- **copywriting**: For creating variant copy
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: adversarial-verification
|
|
3
|
+
description: 对抗性验证技能 — 验证代码变更/部署/任务交付物的正确性。不是确认"它能工作",而是尝试"把它搞坏"。用于:(1) 完成非平凡任务后自验 (2) 审查 PR/MR (3) 部署后验证 (4) bobooo 说"验证一下"。灵感源自 Claude Code Verification Agent 设计。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Adversarial Verification
|
|
7
|
+
|
|
8
|
+
## 核心理念
|
|
9
|
+
|
|
10
|
+
> 你的目标不是确认实现正确 — 而是尝试打破它。
|
|
11
|
+
|
|
12
|
+
你有两个已知失败模式,时刻警惕:
|
|
13
|
+
1. **验证回避** — 读代码、叙述测试计划、写"PASS",但从未运行任何命令
|
|
14
|
+
2. **被前 80% 诱惑** — 看到整洁 UI 或测试通过就放行,没注意一半按钮是空的
|
|
15
|
+
|
|
16
|
+
## 自我合理化识别
|
|
17
|
+
|
|
18
|
+
你会想跳过检查。识别这些借口并做相反的事:
|
|
19
|
+
|
|
20
|
+
| 你脑中的借口 | 正确行动 |
|
|
21
|
+
|---|---|
|
|
22
|
+
| "代码看起来正确" | 运行它 |
|
|
23
|
+
| "测试已经通过了" | 独立验证,测试可能是自证循环 |
|
|
24
|
+
| "大概没问题" | "大概"不是验证 |
|
|
25
|
+
| "启动服务器看代码吧" | 启动服务器然后 **curl 端点** |
|
|
26
|
+
| "没有浏览器" | 检查是否有 browser tool / playwright |
|
|
27
|
+
| "这个要花太久" | 不是你决定的 |
|
|
28
|
+
|
|
29
|
+
**如果你在写解释而不是命令 → 停。运行命令。**
|
|
30
|
+
|
|
31
|
+
## 验证策略(按变更类型)
|
|
32
|
+
|
|
33
|
+
### 前端
|
|
34
|
+
启动 dev server → 浏览器/curl 检查 → 检查子资源(图片/API/静态文件)→ 运行前端测试
|
|
35
|
+
|
|
36
|
+
### 后端/API
|
|
37
|
+
启动服务器 → curl 端点 → 验证响应结构(不只是状态码)→ 测试错误处理 → 边界用例
|
|
38
|
+
|
|
39
|
+
### CLI/脚本
|
|
40
|
+
用代表性输入运行 → 验证 stdout/stderr/exit code → 边界输入(空、畸形、极端值)
|
|
41
|
+
|
|
42
|
+
### 基础设施/配置
|
|
43
|
+
验证语法 → dry-run → 检查环境变量是否真正被引用
|
|
44
|
+
|
|
45
|
+
### Bug 修复
|
|
46
|
+
复现原 bug → 验证修复 → 运行回归测试 → 检查相关功能副作用
|
|
47
|
+
|
|
48
|
+
### 重构(无行为变更)
|
|
49
|
+
现有测试必须全过 → diff 公共 API 表面 → 抽查行为一致性
|
|
50
|
+
|
|
51
|
+
## 对抗性探测(选择适用的)
|
|
52
|
+
|
|
53
|
+
- **并发** — 并行请求创建类路径,检查重复/丢失
|
|
54
|
+
- **边界值** — 0, -1, 空字符串, 超长字符串, unicode, MAX_INT
|
|
55
|
+
- **幂等性** — 同一个变更请求发两次,结果正确吗?
|
|
56
|
+
- **孤儿操作** — 删除/引用不存在的 ID
|
|
57
|
+
|
|
58
|
+
## 输出格式(强制)
|
|
59
|
+
|
|
60
|
+
每项检查:
|
|
61
|
+
```
|
|
62
|
+
### Check: [验证什么]
|
|
63
|
+
**Command run:**
|
|
64
|
+
[实际执行的命令]
|
|
65
|
+
**Output observed:**
|
|
66
|
+
[终端实际输出 — 复制粘贴,不要转述]
|
|
67
|
+
**Result: PASS** (或 FAIL — 附 Expected vs Actual)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
❌ 坏例子:
|
|
71
|
+
```
|
|
72
|
+
### Check: POST /api/register 验证
|
|
73
|
+
**Result: PASS**
|
|
74
|
+
Evidence: 读了 routes/auth.py,逻辑正确地验证了...
|
|
75
|
+
```
|
|
76
|
+
(没有运行命令。读代码不是验证。)
|
|
77
|
+
|
|
78
|
+
## 最终判定
|
|
79
|
+
|
|
80
|
+
报告末尾必须有且仅有一行:
|
|
81
|
+
```
|
|
82
|
+
VERDICT: PASS
|
|
83
|
+
VERDICT: FAIL
|
|
84
|
+
VERDICT: PARTIAL
|
|
85
|
+
```
|
|
86
|
+
- FAIL → 附失败详情 + 复现步骤
|
|
87
|
+
- PARTIAL → 仅限环境限制(缺工具/无法启动服务),不是"不确定"
|
|
88
|
+
- 报告必须包含至少一个对抗性探测及其结果
|
|
89
|
+
|
|
90
|
+
## PASS 之前的检查清单
|
|
91
|
+
|
|
92
|
+
- [ ] 至少运行了一个命令并有输出
|
|
93
|
+
- [ ] 至少做了一个对抗性探测
|
|
94
|
+
- [ ] 没有"代码看起来正确"式的跳过
|
|
95
|
+
- [ ] 验证了非 happy path
|