opencodekit 0.15.21 → 0.16.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/dist/index.js +5 -7
- package/dist/template/.opencode/AGENTS.md +21 -20
- package/dist/template/.opencode/agent/build.md +88 -7
- package/dist/template/.opencode/agent/explore.md +1 -1
- package/dist/template/.opencode/agent/general.md +54 -4
- package/dist/template/.opencode/agent/looker.md +1 -1
- package/dist/template/.opencode/agent/painter.md +1 -1
- package/dist/template/.opencode/agent/plan.md +52 -0
- package/dist/template/.opencode/agent/review.md +1 -1
- package/dist/template/.opencode/agent/scout.md +3 -3
- package/dist/template/.opencode/agent/vision.md +1 -1
- package/dist/template/.opencode/command/create.md +201 -95
- package/dist/template/.opencode/command/design.md +5 -7
- package/dist/template/.opencode/command/handoff.md +7 -0
- package/dist/template/.opencode/command/init.md +25 -47
- package/dist/template/.opencode/command/plan.md +35 -16
- package/dist/template/.opencode/command/resume.md +7 -18
- package/dist/template/.opencode/command/ship.md +156 -0
- package/dist/template/.opencode/command/start.md +315 -28
- package/dist/template/.opencode/command/ui-review.md +5 -7
- package/dist/template/.opencode/command/verify.md +279 -0
- package/dist/template/.opencode/memory/_templates/README.md +57 -19
- package/dist/template/.opencode/memory/_templates/prd.md +29 -0
- package/dist/template/.opencode/memory/_templates/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
- package/dist/template/.opencode/memory/_templates/spec.md +66 -0
- package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +25 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +40 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +42 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +31 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +23 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +50 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +26 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +29 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +28 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +43 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +22 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +27 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +35 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +14 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +15 -0
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +15 -0
- package/dist/template/.opencode/memory/project/command-rules.md +122 -0
- package/dist/template/.opencode/memory/project/tech-stack.md +50 -0
- package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
- package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
- package/dist/template/.opencode/opencode.json +916 -803
- package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
- package/package.json +1 -1
- package/dist/template/.opencode/command/accessibility-check.md +0 -331
- package/dist/template/.opencode/command/agent-browser.md +0 -21
- package/dist/template/.opencode/command/analyze-mockup.md +0 -423
- package/dist/template/.opencode/command/analyze-project.md +0 -295
- package/dist/template/.opencode/command/brainstorm.md +0 -373
- package/dist/template/.opencode/command/cloudflare.md +0 -70
- package/dist/template/.opencode/command/commit.md +0 -245
- package/dist/template/.opencode/command/complete-next-task.md +0 -77
- package/dist/template/.opencode/command/design-audit.md +0 -480
- package/dist/template/.opencode/command/edit-image.md +0 -242
- package/dist/template/.opencode/command/finish.md +0 -255
- package/dist/template/.opencode/command/fix-ci.md +0 -109
- package/dist/template/.opencode/command/fix-types.md +0 -104
- package/dist/template/.opencode/command/fix-ui.md +0 -117
- package/dist/template/.opencode/command/fix.md +0 -168
- package/dist/template/.opencode/command/frontend-design.md +0 -21
- package/dist/template/.opencode/command/generate-diagram.md +0 -349
- package/dist/template/.opencode/command/generate-icon.md +0 -283
- package/dist/template/.opencode/command/generate-image.md +0 -246
- package/dist/template/.opencode/command/generate-pattern.md +0 -247
- package/dist/template/.opencode/command/generate-storyboard.md +0 -250
- package/dist/template/.opencode/command/implement.md +0 -609
- package/dist/template/.opencode/command/import-plan.md +0 -406
- package/dist/template/.opencode/command/index-knowledge.md +0 -25
- package/dist/template/.opencode/command/integration-test.md +0 -424
- package/dist/template/.opencode/command/issue.md +0 -102
- package/dist/template/.opencode/command/new-feature.md +0 -651
- package/dist/template/.opencode/command/opensrc.md +0 -58
- package/dist/template/.opencode/command/quick-build.md +0 -238
- package/dist/template/.opencode/command/ralph.md +0 -41
- package/dist/template/.opencode/command/research-and-implement.md +0 -148
- package/dist/template/.opencode/command/research-ui.md +0 -466
- package/dist/template/.opencode/command/restore-image.md +0 -424
- package/dist/template/.opencode/command/revert-feature.md +0 -386
- package/dist/template/.opencode/command/skill-create.md +0 -517
- package/dist/template/.opencode/command/skill-optimize.md +0 -556
- package/dist/template/.opencode/command/summarize.md +0 -412
- package/dist/template/.opencode/command/triage.md +0 -398
- package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
- package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
- package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
- package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
- package/dist/template/.opencode/tool/notebooklm.ts +0 -488
- package/dist/template/.opencode/tool/oracle.ts +0 -240
|
@@ -120,7 +120,7 @@ Task({
|
|
|
120
120
|
| **codesearch** | Real implementation patterns | GitHub code examples |
|
|
121
121
|
| **grepsearch** | Cross-repo patterns | grep.app search |
|
|
122
122
|
| **webfetch** | Specific URL content | User-provided links |
|
|
123
|
-
| **
|
|
123
|
+
| **review (Task)** | Second opinion | Validate approach |
|
|
124
124
|
|
|
125
125
|
## Workflow Pattern
|
|
126
126
|
|
|
@@ -251,7 +251,7 @@ RESEARCH:
|
|
|
251
251
|
context7_resolve_library_id({ libraryName: "..." })
|
|
252
252
|
context7_query_docs({ libraryId: "...", topic: "..." })
|
|
253
253
|
websearch({ query: "..." })
|
|
254
|
-
|
|
254
|
+
Task({ subagent_type: "review", description: "Second opinion", prompt: "Review the approach." })
|
|
255
255
|
|
|
256
256
|
MEMORY:
|
|
257
257
|
memory_search({ query: "..." }) → Find past learnings
|
package/package.json
CHANGED
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: WCAG accessibility audit
|
|
3
|
-
argument-hint: "<image-or-component-path> [level: A|AA|AAA]"
|
|
4
|
-
agent: vision
|
|
5
|
-
model: proxypal/gemini-3-flash-preview
|
|
6
|
-
subtask: true
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Accessibility Check: $ARGUMENTS
|
|
10
|
-
|
|
11
|
-
## Phase 1: Load Context
|
|
12
|
-
|
|
13
|
-
**Load skills:**
|
|
14
|
-
|
|
15
|
-
````typescript
|
|
16
|
-
skill({ name: "beads" }); // Session protocol
|
|
17
|
-
skill({ name: "accessibility-audit" });
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
skill({ name: "accessibility-audit" });
|
|
21
|
-
````
|
|
22
|
-
|
|
23
|
-
**Check for bead context:**
|
|
24
|
-
|
|
25
|
-
!`bd show $ARGUMENTS` # If bead ID provided
|
|
26
|
-
|
|
27
|
-
Parse path and WCAG level from `$ARGUMENTS` (default: AA).
|
|
28
|
-
|
|
29
|
-
## Phase 2: Estimate Complexity
|
|
30
|
-
|
|
31
|
-
| Signals | Estimate | Approach |
|
|
32
|
-
| ------------------------------ | -------- | --------------- |
|
|
33
|
-
| Single component, few elements | S (~10) | Quick audit |
|
|
34
|
-
| Page with multiple components | M (~30) | Full audit |
|
|
35
|
-
| Complex app, multiple pages | L (~100) | Comprehensive |
|
|
36
|
-
| Design system audit | XL | Systematic scan |
|
|
37
|
-
|
|
38
|
-
## Phase 3: Determine Input Type
|
|
39
|
-
|
|
40
|
-
- **Image/screenshot**: Visual accessibility analysis (Phase 4)
|
|
41
|
-
- **Component path**: Code accessibility patterns (Phase 5)
|
|
42
|
-
- **URL**: Run automated + visual analysis (Phase 4 + 5)
|
|
43
|
-
|
|
44
|
-
## Phase 4: Visual Analysis
|
|
45
|
-
|
|
46
|
-
### Color & Contrast
|
|
47
|
-
|
|
48
|
-
| Check | WCAG Ref | Requirement |
|
|
49
|
-
| ------------------------ | ----------- | ---------------------------- |
|
|
50
|
-
| Text contrast | 1.4.3 (AA) | 4.5:1 normal, 3:1 large text |
|
|
51
|
-
| UI component contrast | 1.4.11 (AA) | 3:1 against adjacent colors |
|
|
52
|
-
| Focus indicator contrast | 1.4.11 (AA) | 3:1 contrast |
|
|
53
|
-
| Color-only information | 1.4.1 (A) | Don't rely on color alone |
|
|
54
|
-
|
|
55
|
-
### Touch & Interaction
|
|
56
|
-
|
|
57
|
-
| Check | WCAG Ref | Requirement |
|
|
58
|
-
| ----------------- | ----------- | -------------------------- |
|
|
59
|
-
| Touch target size | 2.5.5 (AAA) | ≥44x44px (≥24x24 for AA) |
|
|
60
|
-
| Target spacing | 2.5.8 (AA) | Adequate spacing between |
|
|
61
|
-
| Pointer gestures | 2.5.1 (A) | Single pointer alternative |
|
|
62
|
-
|
|
63
|
-
### Visual Structure
|
|
64
|
-
|
|
65
|
-
| Check | WCAG Ref | Requirement |
|
|
66
|
-
| ----------------- | ----------- | ----------------------------- |
|
|
67
|
-
| Heading hierarchy | 1.3.1 (A) | Logical heading order |
|
|
68
|
-
| Reading order | 1.3.2 (A) | Meaningful sequence |
|
|
69
|
-
| Text spacing | 1.4.12 (AA) | Adjustable without loss |
|
|
70
|
-
| Reflow | 1.4.10 (AA) | No horizontal scroll at 320px |
|
|
71
|
-
|
|
72
|
-
### Motion & Animation
|
|
73
|
-
|
|
74
|
-
| Check | WCAG Ref | Requirement |
|
|
75
|
-
| ----------------------- | ----------- | ------------------------------- |
|
|
76
|
-
| Motion from interaction | 2.3.3 (AAA) | Can be disabled |
|
|
77
|
-
| Reduced motion | 2.3.3 | Respects prefers-reduced-motion |
|
|
78
|
-
| Auto-playing media | 1.4.2 (A) | Pause/stop/hide controls |
|
|
79
|
-
| Flashing content | 2.3.1 (A) | No more than 3 flashes/second |
|
|
80
|
-
|
|
81
|
-
## Phase 5: Code Analysis
|
|
82
|
-
|
|
83
|
-
### Automated Testing
|
|
84
|
-
|
|
85
|
-
Run axe-core or Lighthouse:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# Using Lighthouse
|
|
89
|
-
npx lighthouse <url> --only-categories=accessibility --output=json
|
|
90
|
-
|
|
91
|
-
# Using axe-core in tests
|
|
92
|
-
npm install -D @axe-core/playwright # or jest-axe
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
```typescript
|
|
96
|
-
// Playwright + axe example
|
|
97
|
-
import { injectAxe, checkA11y } from "@axe-core/playwright";
|
|
98
|
-
|
|
99
|
-
await injectAxe(page);
|
|
100
|
-
await checkA11y(page);
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### Semantic HTML Checks
|
|
104
|
-
|
|
105
|
-
```typescript
|
|
106
|
-
// Find images without alt text
|
|
107
|
-
ast - grep({ pattern: "<img $$$>" }); // Check for alt attribute
|
|
108
|
-
|
|
109
|
-
// Find click handlers on non-interactive elements
|
|
110
|
-
ast - grep({ pattern: "<div onClick={$$$}>" });
|
|
111
|
-
ast - grep({ pattern: "<span onClick={$$$}>" });
|
|
112
|
-
|
|
113
|
-
// Find form inputs without labels
|
|
114
|
-
ast - grep({ pattern: "<input $$$>" }); // Check for id + matching label
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### ARIA Pattern Checks
|
|
118
|
-
|
|
119
|
-
!`grep -r "role=" --include="*.tsx" --include="*.jsx" | head -20`
|
|
120
|
-
|
|
121
|
-
| Pattern | Required ARIA |
|
|
122
|
-
| --------------- | ------------------------------------------ |
|
|
123
|
-
| Modal dialog | role="dialog", aria-modal, aria-labelledby |
|
|
124
|
-
| Dropdown menu | role="menu", aria-expanded, aria-haspopup |
|
|
125
|
-
| Tab panel | role="tablist/tab/tabpanel", aria-selected |
|
|
126
|
-
| Accordion | aria-expanded, aria-controls |
|
|
127
|
-
| Alert | role="alert", aria-live="assertive" |
|
|
128
|
-
| Toast | role="status", aria-live="polite" |
|
|
129
|
-
| Loading spinner | aria-busy, aria-live |
|
|
130
|
-
|
|
131
|
-
### Focus Management
|
|
132
|
-
|
|
133
|
-
| Check | Requirement |
|
|
134
|
-
| ------------------- | ----------------------------------- |
|
|
135
|
-
| Focus visible | All interactive elements show focus |
|
|
136
|
-
| Focus order | Logical tab sequence |
|
|
137
|
-
| Focus trap (modals) | Focus contained within modal |
|
|
138
|
-
| Focus restoration | Focus returns after modal closes |
|
|
139
|
-
| Skip links | Skip to main content available |
|
|
140
|
-
|
|
141
|
-
!`grep -r ":focus" --include="*.css" | head -10`
|
|
142
|
-
!`grep -r "focus:" --include="*.tsx" | head -10` // Tailwind
|
|
143
|
-
|
|
144
|
-
## Phase 6: Keyboard Navigation Testing
|
|
145
|
-
|
|
146
|
-
Test manually or with Playwright:
|
|
147
|
-
|
|
148
|
-
```typescript
|
|
149
|
-
skill({ name: "playwright" });
|
|
150
|
-
skill_mcp({
|
|
151
|
-
skill_name: "playwright",
|
|
152
|
-
tool_name: "browser_press_key",
|
|
153
|
-
arguments: '{"key": "Tab"}',
|
|
154
|
-
});
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
| Action | Expected Behavior |
|
|
158
|
-
| ---------- | ---------------------------------------- |
|
|
159
|
-
| Tab | Moves to next interactive element |
|
|
160
|
-
| Shift+Tab | Moves to previous element |
|
|
161
|
-
| Enter | Activates buttons, links |
|
|
162
|
-
| Space | Toggles checkboxes, activates buttons |
|
|
163
|
-
| Arrow keys | Navigate within components (tabs, menus) |
|
|
164
|
-
| Escape | Closes modals, dropdowns |
|
|
165
|
-
|
|
166
|
-
```
|
|
167
|
-
Keyboard Navigation:
|
|
168
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
169
|
-
|
|
170
|
-
- Tab order: [logical/broken at X]
|
|
171
|
-
- Focus visible: [all/missing on X]
|
|
172
|
-
- Enter/Space: [working/broken on X]
|
|
173
|
-
- Escape: [working/not implemented]
|
|
174
|
-
- Skip link: [present/missing]
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## Phase 7: Screen Reader Guidance
|
|
178
|
-
|
|
179
|
-
For manual testing, suggest:
|
|
180
|
-
|
|
181
|
-
| Platform | Screen Reader | Command to Start |
|
|
182
|
-
| -------- | ------------- | ------------------------ |
|
|
183
|
-
| macOS | VoiceOver | Cmd + F5 |
|
|
184
|
-
| Windows | NVDA | Ctrl + Alt + N |
|
|
185
|
-
| Windows | Narrator | Win + Ctrl + Enter |
|
|
186
|
-
| iOS | VoiceOver | Settings > Accessibility |
|
|
187
|
-
| Android | TalkBack | Settings > Accessibility |
|
|
188
|
-
|
|
189
|
-
**Key things to verify:**
|
|
190
|
-
|
|
191
|
-
- [ ] All content is announced
|
|
192
|
-
- [ ] Images have meaningful alt text
|
|
193
|
-
- [ ] Form fields announce labels
|
|
194
|
-
- [ ] Error messages are announced
|
|
195
|
-
- [ ] Dynamic content updates are announced (aria-live)
|
|
196
|
-
|
|
197
|
-
## Phase 8: Generate Report
|
|
198
|
-
|
|
199
|
-
````markdown
|
|
200
|
-
## Accessibility Audit: [Component/Page]
|
|
201
|
-
|
|
202
|
-
**WCAG Level:** [A/AA/AAA]
|
|
203
|
-
**Automated Score:** [Lighthouse score if available]
|
|
204
|
-
|
|
205
|
-
### Summary
|
|
206
|
-
|
|
207
|
-
| Category | Critical | Major | Minor | Passed |
|
|
208
|
-
| -------------- | -------- | ----- | ----- | ------ |
|
|
209
|
-
| Perceivable | [N] | [N] | [N] | [N] |
|
|
210
|
-
| Operable | [N] | [N] | [N] | [N] |
|
|
211
|
-
| Understandable | [N] | [N] | [N] | [N] |
|
|
212
|
-
| Robust | [N] | [N] | [N] | [N] |
|
|
213
|
-
|
|
214
|
-
### Critical Issues (Must Fix)
|
|
215
|
-
|
|
216
|
-
#### [Issue Title]
|
|
217
|
-
|
|
218
|
-
- **WCAG:** [criterion number and name]
|
|
219
|
-
- **Location:** [file:line or element description]
|
|
220
|
-
- **Problem:** [description]
|
|
221
|
-
- **Fix:**
|
|
222
|
-
|
|
223
|
-
```[language]
|
|
224
|
-
[code fix]
|
|
225
|
-
```
|
|
226
|
-
````
|
|
227
|
-
|
|
228
|
-
### Major Issues
|
|
229
|
-
|
|
230
|
-
[Same format]
|
|
231
|
-
|
|
232
|
-
### Minor Issues
|
|
233
|
-
|
|
234
|
-
[Same format]
|
|
235
|
-
|
|
236
|
-
### Passed Checks
|
|
237
|
-
|
|
238
|
-
- Color contrast: [ratio] meets [level]
|
|
239
|
-
- Touch targets: [size] meets requirement
|
|
240
|
-
- Heading structure: Logical hierarchy
|
|
241
|
-
- Keyboard navigation: All elements reachable
|
|
242
|
-
- Focus indicators: Visible on all elements
|
|
243
|
-
|
|
244
|
-
````
|
|
245
|
-
|
|
246
|
-
## Phase 9: Create Observation
|
|
247
|
-
|
|
248
|
-
If patterns discovered:
|
|
249
|
-
|
|
250
|
-
```typescript
|
|
251
|
-
observation({
|
|
252
|
-
type: "pattern",
|
|
253
|
-
title: "A11y pattern: [name]",
|
|
254
|
-
content: `
|
|
255
|
-
## Pattern
|
|
256
|
-
[Description of accessibility pattern]
|
|
257
|
-
|
|
258
|
-
## Implementation
|
|
259
|
-
\`\`\`tsx
|
|
260
|
-
[Accessible code example]
|
|
261
|
-
\`\`\`
|
|
262
|
-
|
|
263
|
-
## Common Mistakes
|
|
264
|
-
- [What to avoid]
|
|
265
|
-
`,
|
|
266
|
-
concepts: "accessibility, wcag, [specific area]",
|
|
267
|
-
bead_id: "<bead-id>",
|
|
268
|
-
});
|
|
269
|
-
````
|
|
270
|
-
|
|
271
|
-
## Phase 10: Verify Fixes
|
|
272
|
-
|
|
273
|
-
After fixes applied, re-run checks:
|
|
274
|
-
|
|
275
|
-
```bash
|
|
276
|
-
npx lighthouse <url> --only-categories=accessibility
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
```
|
|
280
|
-
Verification:
|
|
281
|
-
━━━━━━━━━━━━━
|
|
282
|
-
|
|
283
|
-
Before: [N] issues
|
|
284
|
-
After: [N] issues
|
|
285
|
-
Resolved: [N]
|
|
286
|
-
|
|
287
|
-
Remaining:
|
|
288
|
-
- [Any outstanding issues]
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
## Phase 11: Sync
|
|
292
|
-
|
|
293
|
-
```bash
|
|
294
|
-
bd sync
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
## Output
|
|
298
|
-
|
|
299
|
-
```
|
|
300
|
-
Accessibility Audit Complete: $ARGUMENTS
|
|
301
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
302
|
-
|
|
303
|
-
WCAG Level: [AA]
|
|
304
|
-
Estimate: [S/M/L]
|
|
305
|
-
|
|
306
|
-
Results:
|
|
307
|
-
- Critical: [N]
|
|
308
|
-
- Major: [N]
|
|
309
|
-
- Minor: [N]
|
|
310
|
-
- Passed: [N]
|
|
311
|
-
|
|
312
|
-
Automated Score: [N]/100 (Lighthouse)
|
|
313
|
-
|
|
314
|
-
Key Fixes Needed:
|
|
315
|
-
1. [Most critical issue]
|
|
316
|
-
2. [Second issue]
|
|
317
|
-
3. [Third issue]
|
|
318
|
-
|
|
319
|
-
Report: .beads/artifacts/<bead-id>/a11y-audit.md (if bead)
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
**Next steps:**
|
|
323
|
-
|
|
324
|
-
```
|
|
325
|
-
Fix issues:
|
|
326
|
-
/fix-ui <bead-id> # Fix visual issues
|
|
327
|
-
/fix <bead-id> # Fix code issues
|
|
328
|
-
|
|
329
|
-
After fixing:
|
|
330
|
-
/accessibility-check <path> # Re-run audit
|
|
331
|
-
```
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Automate browser tasks (scraping, form filling, web interaction)
|
|
3
|
-
argument-hint: "[what you want to do in the browser]"
|
|
4
|
-
agent: general
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Agent Browser: $ARGUMENTS
|
|
8
|
-
|
|
9
|
-
Automate browser tasks using agent-browser CLI.
|
|
10
|
-
|
|
11
|
-
## Load Skill
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
skill({ name: "agent-browser" });
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Then follow the skill instructions to help with browser automation.
|
|
18
|
-
|
|
19
|
-
<user-request>
|
|
20
|
-
$ARGUMENTS
|
|
21
|
-
</user-request>
|