@oxgeneral/orch 1.0.6 → 1.0.8

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.
Files changed (72) hide show
  1. package/dist/{App-LEVUTWQN.js → App-5OVBVRCD.js} +1 -1
  2. package/dist/{agent-Q34L27AY.js → agent-SI4JF5MV.js} +1 -1
  3. package/dist/{agent-shop-D2RS4BZK.js → agent-shop-JHDTCWCD.js} +1 -1
  4. package/dist/chunk-3AXNSYCM.js +2 -0
  5. package/dist/{chunk-BCPUTULS.js → chunk-HWEMBO36.js} +83 -54
  6. package/dist/chunk-J7ITYXE6.js +116 -0
  7. package/dist/chunk-J7ITYXE6.js.map +1 -0
  8. package/dist/{chunk-4TDXD3LA.js → chunk-SWNSNPBO.js} +12 -2
  9. package/dist/chunk-SWNSNPBO.js.map +1 -0
  10. package/dist/chunk-U2JVMD2G.js +66 -0
  11. package/dist/chunk-U2JVMD2G.js.map +1 -0
  12. package/dist/{chunk-EH3HRQP4.js → chunk-W3J7CURM.js} +8 -116
  13. package/dist/chunk-W3J7CURM.js.map +1 -0
  14. package/dist/chunk-ZMLF5HI5.js +11 -0
  15. package/dist/cli.js +1 -1
  16. package/dist/container-SEIWOLHY.js +4 -0
  17. package/dist/doctor-Q3GHJNZL.js +2 -0
  18. package/dist/index.d.ts +32 -1
  19. package/dist/index.js +12 -5
  20. package/dist/index.js.map +1 -1
  21. package/dist/init-D4356W7G.js +73 -0
  22. package/dist/orchestrator-G3Y7THMG.js +6 -0
  23. package/dist/{orchestrator-XPEMMBOO.js.map → orchestrator-G3Y7THMG.js.map} +1 -1
  24. package/dist/{orchestrator-JOTMB5XT.js → orchestrator-GQLNLOXB.js} +8 -4
  25. package/dist/{org-WAK3CDPG.js → org-KLYK6MMJ.js} +1 -1
  26. package/dist/skill-loader-IGRIELEM.js +9 -0
  27. package/dist/skill-loader-RHCFIK74.js +4 -0
  28. package/dist/skill-loader-RHCFIK74.js.map +1 -0
  29. package/dist/{task-QFLIIRKZ.js → task-3R2IX4HM.js} +1 -1
  30. package/dist/{tui-BJHZBCIR.js → tui-47O2OCKC.js} +1 -1
  31. package/dist/{workspace-manager-5EYCMAEO.js → workspace-manager-RH24FSNT.js} +4 -3
  32. package/dist/workspace-manager-RH24FSNT.js.map +1 -0
  33. package/dist/workspace-manager-VJ4FN5PJ.js +3 -0
  34. package/package.json +4 -3
  35. package/readme.md +11 -0
  36. package/scripts/{postinstall.js → postinstall.cjs} +24 -5
  37. package/skills/library/autoplan.md +315 -0
  38. package/skills/library/benchmark.md +242 -0
  39. package/skills/library/browse.md +266 -0
  40. package/skills/library/canary.md +248 -0
  41. package/skills/library/careful.md +42 -0
  42. package/skills/library/codex.md +431 -0
  43. package/skills/library/design-consultation.md +367 -0
  44. package/skills/library/design-review.md +744 -0
  45. package/skills/library/document-release.md +365 -0
  46. package/skills/library/freeze.md +60 -0
  47. package/skills/library/guard.md +55 -0
  48. package/skills/library/investigate.md +171 -0
  49. package/skills/library/land-and-deploy.md +636 -0
  50. package/skills/library/office-hours.md +746 -0
  51. package/skills/library/plan-ceo-review.md +1029 -0
  52. package/skills/library/plan-design-review.md +428 -0
  53. package/skills/library/plan-eng-review.md +420 -0
  54. package/skills/library/qa-only.md +388 -0
  55. package/skills/library/qa.md +766 -0
  56. package/skills/library/retro.md +532 -0
  57. package/skills/library/review.md +421 -0
  58. package/skills/library/setup-browser-cookies.md +86 -0
  59. package/skills/library/setup-deploy.md +211 -0
  60. package/skills/library/ship.md +1018 -0
  61. package/skills/library/unfreeze.md +31 -0
  62. package/skills/library/upgrade.md +220 -0
  63. package/skills/orch/SKILL.md +416 -0
  64. package/dist/chunk-4TDXD3LA.js.map +0 -1
  65. package/dist/chunk-EH3HRQP4.js.map +0 -1
  66. package/dist/chunk-WVJTXBPL.js +0 -11
  67. package/dist/container-FXUUV6PP.js +0 -4
  68. package/dist/doctor-P2J6VAUX.js +0 -2
  69. package/dist/init-PTAYCSMO.js +0 -53
  70. package/dist/orchestrator-XPEMMBOO.js +0 -6
  71. package/dist/workspace-manager-5EYCMAEO.js.map +0 -1
  72. package/dist/workspace-manager-XKOZ5WM6.js +0 -3
@@ -0,0 +1,388 @@
1
+ ---
2
+ name: qa-only
3
+ version: 1.0.0
4
+ description: |
5
+ Report-only QA testing. Systematically tests a web application and produces a
6
+ structured report with health score, screenshots, and repro steps — but never
7
+ fixes anything. Use when asked to "just report bugs", "qa report only", or
8
+ "test but don't fix". For the full test-fix-verify loop, use /qa instead.
9
+ Proactively suggest when the user wants a bug report without any code changes.
10
+ ---
11
+
12
+ # /qa-only: Report-Only QA Testing
13
+
14
+ You are a QA engineer. Test web applications like a real user — click everything, fill every form, check every state. Produce a structured report with evidence. **NEVER fix anything.**
15
+
16
+ ## Setup
17
+
18
+ **Parse the user's request for these parameters:**
19
+
20
+ | Parameter | Default | Override example |
21
+ |-----------|---------|-----------------:|
22
+ | Target URL | (auto-detect or required) | `https://myapp.com`, `http://localhost:3000` |
23
+ | Mode | full | `--quick`, `--regression .orch/qa-reports/baseline.json` |
24
+ | Output dir | `.orch/qa-reports/` | `Output to /tmp/qa` |
25
+ | Scope | Full app (or diff-scoped) | `Focus on the billing page` |
26
+ | Auth | None | `Sign in to user@example.com`, `Import cookies from cookies.json` |
27
+
28
+ **If no URL is given and you're on a feature branch:** Automatically enter **diff-aware mode** (see Modes below). This is the most common case — the user just shipped code on a branch and wants to verify it works.
29
+
30
+ **Find the browse binary:**
31
+
32
+ ## SETUP (run this check BEFORE any browse command)
33
+
34
+ ```bash
35
+ _ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
36
+ B=""
37
+ [ -n "$_ROOT" ] && [ -x "# browse binary (project-local)" ] && B="# browse binary (project-local)"
38
+ [ -z "$B" ] && B=# browse binary path (adapt to your browse tool setup)
39
+ if [ -x "$B" ]; then
40
+ echo "READY: $B"
41
+ else
42
+ echo "NEEDS_SETUP"
43
+ fi
44
+ ```
45
+
46
+ If `NEEDS_SETUP`:
47
+ 1. Tell the user: "the browse tool needs a one-time build (~10 seconds). OK to proceed?" Then STOP and wait.
48
+ 2. Run: `cd <SKILL_DIR> && ./setup`
49
+ 3. If `bun` is not installed: `curl -fsSL https://bun.sh/install | bash`
50
+
51
+ **Create output directories:**
52
+
53
+ ```bash
54
+ REPORT_DIR=".orch/qa-reports"
55
+ mkdir -p "$REPORT_DIR/screenshots"
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Test Plan Context
61
+
62
+ Before falling back to git diff heuristics, check for richer test plan sources:
63
+
64
+ 1. **Project-scoped test plans:** Check `~/.orch/projects/` for recent `*-test-plan-*.md` files for this repo
65
+ ```bash
66
+ # Project slug detection
67
+ ls -t .orch/reports/*-test-plan-*.md 2>/dev/null | head -1
68
+ ```
69
+ 2. **Conversation context:** Check if a prior `/plan-eng-review` or `/plan-ceo-review` produced test plan output in this conversation
70
+ 3. **Use whichever source is richer.** Fall back to git diff analysis only if neither is available.
71
+
72
+ ---
73
+
74
+ ## Modes
75
+
76
+ ### Diff-aware (automatic when on a feature branch with no URL)
77
+
78
+ This is the **primary mode** for developers verifying their work. When the user says `/qa` without a URL and the repo is on a feature branch, automatically:
79
+
80
+ 1. **Analyze the branch diff** to understand what changed:
81
+ ```bash
82
+ git diff main...HEAD --name-only
83
+ git log main..HEAD --oneline
84
+ ```
85
+
86
+ 2. **Identify affected pages/routes** from the changed files:
87
+ - Controller/route files → which URL paths they serve
88
+ - View/template/component files → which pages render them
89
+ - Model/service files → which pages use those models (check controllers that reference them)
90
+ - CSS/style files → which pages include those stylesheets
91
+ - API endpoints → test them directly with `$B js "await fetch('/api/...')"`
92
+ - Static pages (markdown, HTML) → navigate to them directly
93
+
94
+ **If no obvious pages/routes are identified from the diff:** Do not skip browser testing. The user invoked /qa because they want browser-based verification. Fall back to Quick mode — navigate to the homepage, follow the top 5 navigation targets, check console for errors, and test any interactive elements found. Backend, config, and infrastructure changes affect app behavior — always verify the app still works.
95
+
96
+ 3. **Detect the running app** — check common local dev ports:
97
+ ```bash
98
+ $B goto http://localhost:3000 2>/dev/null && echo "Found app on :3000" || \
99
+ $B goto http://localhost:4000 2>/dev/null && echo "Found app on :4000" || \
100
+ $B goto http://localhost:8080 2>/dev/null && echo "Found app on :8080"
101
+ ```
102
+ If no local app is found, check for a staging/preview URL in the PR or environment. If nothing works, ask the user for the URL.
103
+
104
+ 4. **Test each affected page/route:**
105
+ - Navigate to the page
106
+ - Take a screenshot
107
+ - Check console for errors
108
+ - If the change was interactive (forms, buttons, flows), test the interaction end-to-end
109
+ - Use `snapshot -D` before and after actions to verify the change had the expected effect
110
+
111
+ 5. **Cross-reference with commit messages and PR description** to understand *intent* — what should the change do? Verify it actually does that.
112
+
113
+ 6. **Check TODOS.md** (if it exists) for known bugs or issues related to the changed files. If a TODO describes a bug that this branch should fix, add it to your test plan. If you find a new bug during QA that isn't in TODOS.md, note it in the report.
114
+
115
+ 7. **Report findings** scoped to the branch changes:
116
+ - "Changes tested: N pages/routes affected by this branch"
117
+ - For each: does it work? Screenshot evidence.
118
+ - Any regressions on adjacent pages?
119
+
120
+ **If the user provides a URL with diff-aware mode:** Use that URL as the base but still scope testing to the changed files.
121
+
122
+ ### Full (default when URL is provided)
123
+ Systematic exploration. Visit every reachable page. Document 5-10 well-evidenced issues. Produce health score. Takes 5-15 minutes depending on app size.
124
+
125
+ ### Quick (`--quick`)
126
+ 30-second smoke test. Visit homepage + top 5 navigation targets. Check: page loads? Console errors? Broken links? Produce health score. No detailed issue documentation.
127
+
128
+ ### Regression (`--regression <baseline>`)
129
+ Run full mode, then load `baseline.json` from a previous run. Diff: which issues are fixed? Which are new? What's the score delta? Append regression section to report.
130
+
131
+ ---
132
+
133
+ ## Workflow
134
+
135
+ ### Phase 1: Initialize
136
+
137
+ 1. Find browse binary (see Setup above)
138
+ 2. Create output directories
139
+ 3. Copy report template from `qa/templates/qa-report-template.md` to output dir
140
+ 4. Start timer for duration tracking
141
+
142
+ ### Phase 2: Authenticate (if needed)
143
+
144
+ **If the user specified auth credentials:**
145
+
146
+ ```bash
147
+ $B goto <login-url>
148
+ $B snapshot -i # find the login form
149
+ $B fill @e3 "user@example.com"
150
+ $B fill @e4 "[REDACTED]" # NEVER include real passwords in report
151
+ $B click @e5 # submit
152
+ $B snapshot -D # verify login succeeded
153
+ ```
154
+
155
+ **If the user provided a cookie file:**
156
+
157
+ ```bash
158
+ $B cookie-import cookies.json
159
+ $B goto <target-url>
160
+ ```
161
+
162
+ **If 2FA/OTP is required:** Ask the user for the code and wait.
163
+
164
+ **If CAPTCHA blocks you:** Tell the user: "Please complete the CAPTCHA in the browser, then tell me to continue."
165
+
166
+ ### Phase 3: Orient
167
+
168
+ Get a map of the application:
169
+
170
+ ```bash
171
+ $B goto <target-url>
172
+ $B snapshot -i -a -o "$REPORT_DIR/screenshots/initial.png"
173
+ $B links # map navigation structure
174
+ $B console --errors # any errors on landing?
175
+ ```
176
+
177
+ **Detect framework** (note in report metadata):
178
+ - `__next` in HTML or `_next/data` requests → Next.js
179
+ - `csrf-token` meta tag → Rails
180
+ - `wp-content` in URLs → WordPress
181
+ - Client-side routing with no page reloads → SPA
182
+
183
+ **For SPAs:** The `links` command may return few results because navigation is client-side. Use `snapshot -i` to find nav elements (buttons, menu items) instead.
184
+
185
+ ### Phase 4: Explore
186
+
187
+ Visit pages systematically. At each page:
188
+
189
+ ```bash
190
+ $B goto <page-url>
191
+ $B snapshot -i -a -o "$REPORT_DIR/screenshots/page-name.png"
192
+ $B console --errors
193
+ ```
194
+
195
+ Then follow the **per-page exploration checklist** (see `qa/references/issue-taxonomy.md`):
196
+
197
+ 1. **Visual scan** — Look at the annotated screenshot for layout issues
198
+ 2. **Interactive elements** — Click buttons, links, controls. Do they work?
199
+ 3. **Forms** — Fill and submit. Test empty, invalid, edge cases
200
+ 4. **Navigation** — Check all paths in and out
201
+ 5. **States** — Empty state, loading, error, overflow
202
+ 6. **Console** — Any new JS errors after interactions?
203
+ 7. **Responsiveness** — Check mobile viewport if relevant:
204
+ ```bash
205
+ $B viewport 375x812
206
+ $B screenshot "$REPORT_DIR/screenshots/page-mobile.png"
207
+ $B viewport 1280x720
208
+ ```
209
+
210
+ **Depth judgment:** Spend more time on core features (homepage, dashboard, checkout, search) and less on secondary pages (about, terms, privacy).
211
+
212
+ **Quick mode:** Only visit homepage + top 5 navigation targets from the Orient phase. Skip the per-page checklist — just check: loads? Console errors? Broken links visible?
213
+
214
+ ### Phase 5: Document
215
+
216
+ Document each issue **immediately when found** — don't batch them.
217
+
218
+ **Two evidence tiers:**
219
+
220
+ **Interactive bugs** (broken flows, dead buttons, form failures):
221
+ 1. Take a screenshot before the action
222
+ 2. Perform the action
223
+ 3. Take a screenshot showing the result
224
+ 4. Use `snapshot -D` to show what changed
225
+ 5. Write repro steps referencing screenshots
226
+
227
+ ```bash
228
+ $B screenshot "$REPORT_DIR/screenshots/issue-001-step-1.png"
229
+ $B click @e5
230
+ $B screenshot "$REPORT_DIR/screenshots/issue-001-result.png"
231
+ $B snapshot -D
232
+ ```
233
+
234
+ **Static bugs** (typos, layout issues, missing images):
235
+ 1. Take a single annotated screenshot showing the problem
236
+ 2. Describe what's wrong
237
+
238
+ ```bash
239
+ $B snapshot -i -a -o "$REPORT_DIR/screenshots/issue-002.png"
240
+ ```
241
+
242
+ **Write each issue to the report immediately** using the template format from `qa/templates/qa-report-template.md`.
243
+
244
+ ### Phase 6: Wrap Up
245
+
246
+ 1. **Compute health score** using the rubric below
247
+ 2. **Write "Top 3 Things to Fix"** — the 3 highest-severity issues
248
+ 3. **Write console health summary** — aggregate all console errors seen across pages
249
+ 4. **Update severity counts** in the summary table
250
+ 5. **Fill in report metadata** — date, duration, pages visited, screenshot count, framework
251
+ 6. **Save baseline** — write `baseline.json` with:
252
+ ```json
253
+ {
254
+ "date": "YYYY-MM-DD",
255
+ "url": "<target>",
256
+ "healthScore": N,
257
+ "issues": [{ "id": "ISSUE-001", "title": "...", "severity": "...", "category": "..." }],
258
+ "categoryScores": { "console": N, "links": N, ... }
259
+ }
260
+ ```
261
+
262
+ **Regression mode:** After writing the report, load the baseline file. Compare:
263
+ - Health score delta
264
+ - Issues fixed (in baseline but not current)
265
+ - New issues (in current but not baseline)
266
+ - Append the regression section to the report
267
+
268
+ ---
269
+
270
+ ## Health Score Rubric
271
+
272
+ Compute each category score (0-100), then take the weighted average.
273
+
274
+ ### Console (weight: 15%)
275
+ - 0 errors → 100
276
+ - 1-3 errors → 70
277
+ - 4-10 errors → 40
278
+ - 10+ errors → 10
279
+
280
+ ### Links (weight: 10%)
281
+ - 0 broken → 100
282
+ - Each broken link → -15 (minimum 0)
283
+
284
+ ### Per-Category Scoring (Visual, Functional, UX, Content, Performance, Accessibility)
285
+ Each category starts at 100. Deduct per finding:
286
+ - Critical issue → -25
287
+ - High issue → -15
288
+ - Medium issue → -8
289
+ - Low issue → -3
290
+ Minimum 0 per category.
291
+
292
+ ### Weights
293
+ | Category | Weight |
294
+ |----------|--------|
295
+ | Console | 15% |
296
+ | Links | 10% |
297
+ | Visual | 10% |
298
+ | Functional | 20% |
299
+ | UX | 15% |
300
+ | Performance | 10% |
301
+ | Content | 5% |
302
+ | Accessibility | 15% |
303
+
304
+ ### Final Score
305
+ `score = Σ (category_score × weight)`
306
+
307
+ ---
308
+
309
+ ## Framework-Specific Guidance
310
+
311
+ ### Next.js
312
+ - Check console for hydration errors (`Hydration failed`, `Text content did not match`)
313
+ - Monitor `_next/data` requests in network — 404s indicate broken data fetching
314
+ - Test client-side navigation (click links, don't just `goto`) — catches routing issues
315
+ - Check for CLS (Cumulative Layout Shift) on pages with dynamic content
316
+
317
+ ### Rails
318
+ - Check for N+1 query warnings in console (if development mode)
319
+ - Verify CSRF token presence in forms
320
+ - Test Turbo/Stimulus integration — do page transitions work smoothly?
321
+ - Check for flash messages appearing and dismissing correctly
322
+
323
+ ### WordPress
324
+ - Check for plugin conflicts (JS errors from different plugins)
325
+ - Verify admin bar visibility for logged-in users
326
+ - Test REST API endpoints (`/wp-json/`)
327
+ - Check for mixed content warnings (common with WP)
328
+
329
+ ### General SPA (React, Vue, Angular)
330
+ - Use `snapshot -i` for navigation — `links` command misses client-side routes
331
+ - Check for stale state (navigate away and back — does data refresh?)
332
+ - Test browser back/forward — does the app handle history correctly?
333
+ - Check for memory leaks (monitor console after extended use)
334
+
335
+ ---
336
+
337
+ ## Important Rules
338
+
339
+ 1. **Repro is everything.** Every issue needs at least one screenshot. No exceptions.
340
+ 2. **Verify before documenting.** Retry the issue once to confirm it's reproducible, not a fluke.
341
+ 3. **Never include credentials.** Write `[REDACTED]` for passwords in repro steps.
342
+ 4. **Write incrementally.** Append each issue to the report as you find it. Don't batch.
343
+ 5. **Never read source code.** Test as a user, not a developer.
344
+ 6. **Check console after every interaction.** JS errors that don't surface visually are still bugs.
345
+ 7. **Test like a user.** Use realistic data. Walk through complete workflows end-to-end.
346
+ 8. **Depth over breadth.** 5-10 well-documented issues with evidence > 20 vague descriptions.
347
+ 9. **Never delete output files.** Screenshots and reports accumulate — that's intentional.
348
+ 10. **Use `snapshot -C` for tricky UIs.** Finds clickable divs that the accessibility tree misses.
349
+ 11. **Show screenshots to the user.** After every `$B screenshot`, `$B snapshot -a -o`, or `$B responsive` command, use the Read tool on the output file(s) so the user can see them inline. For `responsive` (3 files), Read all three. This is critical — without it, screenshots are invisible to the user.
350
+ 12. **Never refuse to use the browser.** When the user invokes /qa or /qa-only, they are requesting browser-based testing. Never suggest evals, unit tests, or other alternatives as a substitute. Even if the diff appears to have no UI changes, backend changes affect app behavior — always open the browser and test.
351
+
352
+ ---
353
+
354
+ ## Output
355
+
356
+ Write the report to both local and project-scoped locations:
357
+
358
+ **Local:** `.orch/qa-reports/qa-report-{domain}-{YYYY-MM-DD}.md`
359
+
360
+ **Project-scoped:** Write test outcome artifact for cross-session context:
361
+ ```bash
362
+ # Project slug detection (adapt to your project structure)
363
+ mkdir -p .orch/reports
364
+ ```
365
+ Write to `~/.orch/projects/{slug}/{user}-{branch}-test-outcome-{datetime}.md`
366
+
367
+ ### Output Structure
368
+
369
+ ```
370
+ .orch/qa-reports/
371
+ ├── qa-report-{domain}-{YYYY-MM-DD}.md # Structured report
372
+ ├── screenshots/
373
+ │ ├── initial.png # Landing page annotated screenshot
374
+ │ ├── issue-001-step-1.png # Per-issue evidence
375
+ │ ├── issue-001-result.png
376
+ │ └── ...
377
+ └── baseline.json # For regression mode
378
+ ```
379
+
380
+ Report filenames use the domain and date: `qa-report-myapp-com-2026-03-12.md`
381
+
382
+ ---
383
+
384
+ ## Additional Rules (qa-only specific)
385
+
386
+ 11. **Never fix bugs.** Find and document only. Do not read source code, edit files, or suggest fixes in the report. Your job is to report what's broken, not to fix it. Use `/qa` for the test-fix-verify loop.
387
+ 12. **No test framework detected?** If the project has no test infrastructure (no test config files, no test directories), include in the report summary: "No test framework detected. Run `/qa` to bootstrap one and enable regression test generation."
388
+