opencodekit 0.21.9 → 0.22.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 +1 -1
- package/dist/template/.opencode/AGENTS.md +116 -499
- package/dist/template/.opencode/README.md +1 -1
- package/dist/template/.opencode/agent/build.md +56 -396
- package/dist/template/.opencode/agent/explore.md +15 -16
- package/dist/template/.opencode/agent/general.md +2 -2
- package/dist/template/.opencode/agent/plan.md +3 -3
- package/dist/template/.opencode/agent/review.md +2 -3
- package/dist/template/.opencode/agent/scout.md +34 -16
- package/dist/template/.opencode/agent/vision.md +0 -1
- package/dist/template/.opencode/command/clarify.md +48 -0
- package/dist/template/.opencode/command/commit.md +53 -0
- package/dist/template/.opencode/command/design.md +4 -4
- package/dist/template/.opencode/command/fix.md +56 -0
- package/dist/template/.opencode/command/improve-architecture.md +55 -0
- package/dist/template/.opencode/command/init.md +88 -68
- package/dist/template/.opencode/command/refactor.md +66 -0
- package/dist/template/.opencode/command/review-codebase.md +1 -1
- package/dist/template/.opencode/command/ship.md +1 -1
- package/dist/template/.opencode/command/test.md +66 -0
- package/dist/template/.opencode/dcp.jsonc +29 -46
- package/dist/template/.opencode/memory/README.md +3 -5
- package/dist/template/.opencode/memory/_templates/adr.md +45 -0
- package/dist/template/.opencode/memory/project/gotchas.md +1 -1
- package/dist/template/.opencode/memory/project/user.md +1 -2
- package/dist/template/.opencode/memory/session-context.md +1 -1
- package/dist/template/.opencode/opencode.json +10 -332
- package/dist/template/.opencode/plugin/README.md +1 -1
- package/dist/template/.opencode/plugin/guard.ts +62 -0
- package/dist/template/.opencode/plugin/{lib/memory-admin-tools.ts → memory/admin.ts} +4 -4
- package/dist/template/.opencode/plugin/{lib → memory}/capture.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/compile.ts +2 -2
- package/dist/template/.opencode/plugin/{lib → memory}/context.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/curator.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/db/observations.ts +102 -3
- package/dist/template/.opencode/plugin/{lib → memory}/db/schema.ts +43 -1
- package/dist/template/.opencode/plugin/{lib → memory}/db/types.ts +22 -0
- package/dist/template/.opencode/plugin/{lib/memory-db.ts → memory/db.ts} +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/distill.ts +1 -1
- package/dist/template/.opencode/plugin/{lib/memory-helpers.ts → memory/helpers.ts} +5 -1
- package/dist/template/.opencode/plugin/{lib/memory-hooks.ts → memory/hooks.ts} +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/index-generator.ts +2 -2
- package/dist/template/.opencode/plugin/{lib → memory}/inject.ts +1 -1
- package/dist/template/.opencode/plugin/{lib → memory}/lint.ts +2 -2
- package/dist/template/.opencode/plugin/memory/tools.ts +322 -0
- package/dist/template/.opencode/plugin/{lib → memory}/validate.ts +2 -2
- package/dist/template/.opencode/plugin/memory.ts +7 -17
- package/dist/template/.opencode/plugin/srcwalk.ts +721 -0
- package/dist/template/.opencode/skill/agent-code-quality-gate/SKILL.md +98 -0
- package/dist/template/.opencode/skill/behavioral-kernel/SKILL.md +52 -0
- package/dist/template/.opencode/skill/browser-testing-with-devtools/SKILL.md +85 -0
- package/dist/template/.opencode/skill/code-cleanup/SKILL.md +114 -0
- package/dist/template/.opencode/skill/code-navigation/SKILL.md +142 -0
- package/dist/template/.opencode/skill/code-review-and-quality/SKILL.md +131 -0
- package/dist/template/.opencode/skill/debugging-and-error-recovery/SKILL.md +109 -0
- package/dist/template/.opencode/skill/deep-module-design/SKILL.md +207 -0
- package/dist/template/.opencode/skill/git-workflow-and-versioning/SKILL.md +77 -0
- package/dist/template/.opencode/skill/grill-me/SKILL.md +140 -0
- package/dist/template/.opencode/skill/memory-system/SKILL.md +9 -10
- package/dist/template/.opencode/skill/planning-and-task-breakdown/SKILL.md +116 -0
- package/dist/template/.opencode/skill/shipping-and-launch/SKILL.md +95 -0
- package/dist/template/.opencode/skill/source-driven-development/SKILL.md +103 -0
- package/dist/template/.opencode/skill/spec-driven-development/SKILL.md +121 -0
- package/dist/template/.opencode/skill/srcwalk/SKILL.md +161 -0
- package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +184 -0
- package/dist/template/.opencode/tool/context7.ts +1 -1
- package/dist/template/.opencode/tool/grepsearch.ts +1 -1
- package/package.json +1 -1
- package/dist/template/.opencode/AGENT_ALIGNMENT.md +0 -564
- package/dist/template/.opencode/agent/painter.md +0 -83
- package/dist/template/.opencode/command/compound.md +0 -240
- package/dist/template/.opencode/command/curate.md +0 -299
- package/dist/template/.opencode/command/handoff.md +0 -149
- package/dist/template/.opencode/command/health.md +0 -356
- package/dist/template/.opencode/command/init-context.md +0 -297
- package/dist/template/.opencode/command/init-user.md +0 -125
- package/dist/template/.opencode/command/iterate.md +0 -200
- package/dist/template/.opencode/command/lfg.md +0 -173
- package/dist/template/.opencode/command/resume.md +0 -78
- package/dist/template/.opencode/command/status.md +0 -126
- package/dist/template/.opencode/command/ui-slop-check.md +0 -169
- package/dist/template/.opencode/plugin/lib/memory-tools.ts +0 -535
- package/dist/template/.opencode/skill/agent-evals/SKILL.md +0 -208
- package/dist/template/.opencode/skill/anti-ai-slop/SKILL.md +0 -76
- package/dist/template/.opencode/skill/augment-context-engine/SKILL.md +0 -122
- package/dist/template/.opencode/skill/augment-context-engine/mcp.json +0 -6
- package/dist/template/.opencode/skill/brand-asset-protocol/SKILL.md +0 -222
- package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +0 -253
- package/dist/template/.opencode/skill/code-simplification/SKILL.md +0 -211
- package/dist/template/.opencode/skill/context-condensation/SKILL.md +0 -149
- package/dist/template/.opencode/skill/context-initialization/SKILL.md +0 -69
- package/dist/template/.opencode/skill/context-management/SKILL.md +0 -390
- package/dist/template/.opencode/skill/deep-research/SKILL.md +0 -384
- package/dist/template/.opencode/skill/design-direction-advisor/SKILL.md +0 -139
- package/dist/template/.opencode/skill/dispatching-parallel-agents/SKILL.md +0 -191
- package/dist/template/.opencode/skill/executing-plans/SKILL.md +0 -247
- package/dist/template/.opencode/skill/figma-go/SKILL.md +0 -65
- package/dist/template/.opencode/skill/finishing-a-development-branch/SKILL.md +0 -357
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +0 -62
- package/dist/template/.opencode/skill/gh-address-comments/SKILL.md +0 -29
- package/dist/template/.opencode/skill/gh-address-comments/scripts/fetch_comments.py +0 -237
- package/dist/template/.opencode/skill/gh-fix-ci/SKILL.md +0 -38
- package/dist/template/.opencode/skill/gh-fix-ci/scripts/inspect_pr_checks.py +0 -509
- package/dist/template/.opencode/skill/hi-fi-prototype-html/SKILL.md +0 -253
- package/dist/template/.opencode/skill/html-deck-export/SKILL.md +0 -189
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +0 -413
- package/dist/template/.opencode/skill/memory-grounding/SKILL.md +0 -68
- package/dist/template/.opencode/skill/playwriter/SKILL.md +0 -158
- package/dist/template/.opencode/skill/portless/SKILL.md +0 -109
- package/dist/template/.opencode/skill/prd/SKILL.md +0 -146
- package/dist/template/.opencode/skill/prd-task/SKILL.md +0 -182
- package/dist/template/.opencode/skill/prd-task/references/prd-schema.json +0 -124
- package/dist/template/.opencode/skill/prompt-leverage/SKILL.md +0 -90
- package/dist/template/.opencode/skill/prompt-leverage/references/framework.md +0 -91
- package/dist/template/.opencode/skill/prompt-leverage/scripts/augment_prompt.py +0 -157
- package/dist/template/.opencode/skill/receiving-code-review/SKILL.md +0 -263
- package/dist/template/.opencode/skill/reconcile/SKILL.md +0 -183
- package/dist/template/.opencode/skill/reflection-checkpoints/SKILL.md +0 -183
- package/dist/template/.opencode/skill/requesting-code-review/SKILL.md +0 -443
- package/dist/template/.opencode/skill/requesting-code-review/references/specialist-profiles.md +0 -108
- package/dist/template/.opencode/skill/requesting-code-review/review.md +0 -160
- package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +0 -134
- package/dist/template/.opencode/skill/screenshot/SKILL.md +0 -48
- package/dist/template/.opencode/skill/screenshot/scripts/ensure_macos_permissions.sh +0 -54
- package/dist/template/.opencode/skill/screenshot/scripts/macos_display_info.swift +0 -22
- package/dist/template/.opencode/skill/screenshot/scripts/macos_permissions.swift +0 -40
- package/dist/template/.opencode/skill/screenshot/scripts/macos_window_info.swift +0 -126
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.ps1 +0 -163
- package/dist/template/.opencode/skill/screenshot/scripts/take_screenshot.py +0 -585
- package/dist/template/.opencode/skill/security-threat-model/SKILL.md +0 -36
- package/dist/template/.opencode/skill/security-threat-model/references/prompt-template.md +0 -255
- package/dist/template/.opencode/skill/security-threat-model/references/security-controls-and-assets.md +0 -32
- package/dist/template/.opencode/skill/sharing-skills/SKILL.md +0 -214
- package/dist/template/.opencode/skill/skill-creator/SKILL.md +0 -181
- package/dist/template/.opencode/skill/skill-installer/SKILL.md +0 -58
- package/dist/template/.opencode/skill/skill-installer/scripts/github_utils.py +0 -21
- package/dist/template/.opencode/skill/skill-installer/scripts/install-skill-from-github.py +0 -313
- package/dist/template/.opencode/skill/skill-installer/scripts/list-skills.py +0 -106
- package/dist/template/.opencode/skill/swarm-coordination/SKILL.md +0 -244
- package/dist/template/.opencode/skill/swarm-coordination/references/architecture.md +0 -39
- package/dist/template/.opencode/skill/swarm-coordination/references/delegation-worker-protocol.md +0 -145
- package/dist/template/.opencode/skill/swarm-coordination/references/dependency-graph.md +0 -50
- package/dist/template/.opencode/skill/swarm-coordination/references/drift-check.md +0 -90
- package/dist/template/.opencode/skill/swarm-coordination/references/integration-beads.md +0 -20
- package/dist/template/.opencode/skill/swarm-coordination/references/launch-flow.md +0 -186
- package/dist/template/.opencode/skill/swarm-coordination/references/reconciler.md +0 -172
- package/dist/template/.opencode/skill/swarm-coordination/references/tier-enforcement.md +0 -78
- package/dist/template/.opencode/skill/swarm-coordination/references/tmux-integration.md +0 -134
- package/dist/template/.opencode/skill/systematic-debugging/SKILL.md +0 -402
- package/dist/template/.opencode/skill/terse-output-mode/SKILL.md +0 -95
- package/dist/template/.opencode/skill/think-in-code/SKILL.md +0 -136
- package/dist/template/.opencode/skill/ux-quality-gates/SKILL.md +0 -137
- package/dist/template/.opencode/skill/v1-run/SKILL.md +0 -175
- package/dist/template/.opencode/skill/v1-run/mcp.json +0 -6
- package/dist/template/.opencode/skill/verification-gates/SKILL.md +0 -63
- package/dist/template/.opencode/skill/visual-analysis/SKILL.md +0 -154
- package/dist/template/.opencode/skill/web-design-guidelines/SKILL.md +0 -46
- package/dist/template/.opencode/skill/workspace-setup/SKILL.md +0 -76
- package/dist/template/.opencode/skill/writing-plans/SKILL.md +0 -320
- /package/dist/template/.opencode/plugin/{lib → memory}/compact.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/graph.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/maintenance.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/db/pipeline.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/notify.ts +0 -0
- /package/dist/template/.opencode/plugin/{lib → memory}/operation-log.ts +0 -0
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ux-quality-gates
|
|
3
|
-
description: Use when designing, reviewing, planning, or shipping user-facing UI where UX correctness matters — applies information architecture, usability heuristics, forms, recovery, loading states, semantic HTML, and component consistency checks.
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
tags: [ui, design, code-quality]
|
|
6
|
-
dependencies: []
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# UX Quality Gates
|
|
10
|
-
|
|
11
|
-
## Overview
|
|
12
|
-
|
|
13
|
-
UX quality is not visual polish. A screen passes only when users can understand scope, complete the primary task, recover from errors, and use it with keyboard/screen reader support.
|
|
14
|
-
|
|
15
|
-
This skill consolidates high-signal UX review patterns into gates for `/design`, `/ui-review`, `/ui-slop-check`, `/plan`, and `/ship`.
|
|
16
|
-
|
|
17
|
-
## When to Use
|
|
18
|
-
|
|
19
|
-
- Designing or reviewing user-facing components, pages, dashboards, forms, or flows.
|
|
20
|
-
- Planning UI PRDs that include loading, error, empty, success, destructive, or async states.
|
|
21
|
-
- Auditing changed UI files before shipping.
|
|
22
|
-
- Checking enterprise/data-heavy UIs with selection, bulk actions, filters, or tables.
|
|
23
|
-
|
|
24
|
-
## When NOT to Use
|
|
25
|
-
|
|
26
|
-
- Backend-only work.
|
|
27
|
-
- Pure visual asset generation with no interaction or user flow.
|
|
28
|
-
- Trivial copy/color tweaks where no behavior, state, or structure changes.
|
|
29
|
-
|
|
30
|
-
## Core Gates
|
|
31
|
-
|
|
32
|
-
| Gate | Pass Condition | Failure Signals |
|
|
33
|
-
| ------------------------ | --------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
34
|
-
| Information architecture | UI names match user vocabulary; scope and relationships are visible | Engineer terms, mixed synonyms, hidden side effects |
|
|
35
|
-
| Primary action | One dominant action per view/section | Multiple filled buttons, equal cancel/confirm, destructive action beside primary |
|
|
36
|
-
| Forms | Label, helper, validation, and error wiring are explicit | Placeholder-as-label, errors not associated, disabled submit hiding issues |
|
|
37
|
-
| Recovery | Every failure path offers retry, undo, fallback, or support | Dead-end errors, disappearing error toasts, no rollback for optimistic UI |
|
|
38
|
-
| State coverage | Empty/loading/error/success states exist and match final layout | Global spinner, mismatched skeleton, no no-results state |
|
|
39
|
-
| Accessibility | WCAG 2.2 AA baseline, keyboard path, focus, semantic HTML | No skip path, focus trap, unlabeled controls, ARIA replacing native HTML |
|
|
40
|
-
| Semantic web | Correct landmarks/headings/native controls; SEO only when page is indexable | Div buttons, multiple h1s, missing route focus/scroll handling |
|
|
41
|
-
| Component family | Shared token DNA across related components | One-off radius/color/height/shadow, inconsistent focus/error states |
|
|
42
|
-
|
|
43
|
-
## Usability Heuristic Pass
|
|
44
|
-
|
|
45
|
-
Check every UI against these ten questions:
|
|
46
|
-
|
|
47
|
-
1. **System status** — Does the UI show what is happening now?
|
|
48
|
-
2. **Real-world language** — Does copy use user vocabulary, not implementation terms?
|
|
49
|
-
3. **User control** — Can users cancel, undo, go back, or recover?
|
|
50
|
-
4. **Consistency** — Are names, controls, and patterns reused consistently?
|
|
51
|
-
5. **Error prevention** — Are dangerous or invalid actions prevented before they happen?
|
|
52
|
-
6. **Recognition over recall** — Are options, context, and relationships visible?
|
|
53
|
-
7. **Efficiency** — Are shortcuts or bulk actions available where volume requires them?
|
|
54
|
-
8. **Minimalism** — Is each visible element serving the current task?
|
|
55
|
-
9. **Error recovery** — Does error copy say what happened, why, and how to fix it?
|
|
56
|
-
10. **Help** — Is guidance present where users may be stuck?
|
|
57
|
-
|
|
58
|
-
## Pattern Rules
|
|
59
|
-
|
|
60
|
-
### Destructive Actions
|
|
61
|
-
|
|
62
|
-
Require confirmation for permanent deletion, bulk destructive actions, permission/security changes, billing/account scope changes, and irreversible workflow transitions.
|
|
63
|
-
|
|
64
|
-
Confirmation anatomy:
|
|
65
|
-
|
|
66
|
-
- Title names the entity/action specifically.
|
|
67
|
-
- Body lists concrete consequences.
|
|
68
|
-
- Primary label is explicit, e.g. `Delete project`, not `OK` or `Yes`.
|
|
69
|
-
- Cancel is easy and default-focused.
|
|
70
|
-
- Highest-risk actions require typing the entity name.
|
|
71
|
-
|
|
72
|
-
Prefer undo for low-stakes reversible actions.
|
|
73
|
-
|
|
74
|
-
### Forms
|
|
75
|
-
|
|
76
|
-
- Labels are always visible; placeholders are examples only.
|
|
77
|
-
- Helper text explains expected input or consequences.
|
|
78
|
-
- Validate on blur by default; use debounced real-time validation for complex fields.
|
|
79
|
-
- Submit catches all errors and moves focus/scroll to the first error.
|
|
80
|
-
- Use `aria-describedby`, `aria-invalid`, and `role="alert"` for errors.
|
|
81
|
-
- Required/optional marker shows the minority case.
|
|
82
|
-
- Use correct `type`, `autocomplete`, `fieldset`, and `legend`.
|
|
83
|
-
- Disable submit only for short forms where all validity is visible; otherwise allow submit and show errors.
|
|
84
|
-
|
|
85
|
-
### Loading and Async States
|
|
86
|
-
|
|
87
|
-
| Wait | Pattern |
|
|
88
|
-
| ---- | -------------------------------------------- |
|
|
89
|
-
| <1s | Inline spinner or optimistic update |
|
|
90
|
-
| 1-3s | Skeleton matching final layout |
|
|
91
|
-
| >3s | Determinate/progressive status when possible |
|
|
92
|
-
|
|
93
|
-
- Button loading prevents duplicate submit without shifting layout.
|
|
94
|
-
- Skeletons are recessive and match final dimensions.
|
|
95
|
-
- Optimistic updates must have rollback.
|
|
96
|
-
- Error toasts persist until dismissed or replaced by a visible recovery path.
|
|
97
|
-
|
|
98
|
-
### Notifications and Recovery
|
|
99
|
-
|
|
100
|
-
- Success toast: auto-dismiss after 4-6s unless action is needed.
|
|
101
|
-
- Error toast/banner: persists until resolved or dismissed.
|
|
102
|
-
- Toasts have at most one action.
|
|
103
|
-
- Inline errors live beside the affected control.
|
|
104
|
-
- Failed sections degrade locally instead of blanking the whole app.
|
|
105
|
-
- Transient failures get retry; repeated failures escalate to support or alternative path.
|
|
106
|
-
|
|
107
|
-
### Data Display and Selection
|
|
108
|
-
|
|
109
|
-
Use for data-heavy UIs only:
|
|
110
|
-
|
|
111
|
-
- Offer grid/list/table only when each view changes task value.
|
|
112
|
-
- Persist view choice when useful.
|
|
113
|
-
- Selection supports row/card click, checkbox indicator, keyboard Space, and range selection where expected.
|
|
114
|
-
- Bulk action toolbar shows selected count.
|
|
115
|
-
- Destructive bulk actions name the count and scope.
|
|
116
|
-
- Distinguish filtered no-results from genuinely empty state.
|
|
117
|
-
- Tables may need sticky headers/first column, row actions, and resize/reorder for enterprise density.
|
|
118
|
-
|
|
119
|
-
## Review Output
|
|
120
|
-
|
|
121
|
-
When reporting findings, include:
|
|
122
|
-
|
|
123
|
-
- Gate name.
|
|
124
|
-
- Severity: Critical, Warning, or Info.
|
|
125
|
-
- Location with `file:line` when reviewing code.
|
|
126
|
-
- User impact.
|
|
127
|
-
- Concrete fix.
|
|
128
|
-
|
|
129
|
-
## Common Mistakes
|
|
130
|
-
|
|
131
|
-
| Mistake | Fix |
|
|
132
|
-
| --------------------------------------- | ---------------------------------------------------------------- |
|
|
133
|
-
| Treating UX as aesthetics | Check task completion, recovery, and state coverage first |
|
|
134
|
-
| Adding every UX rule to every task | Apply data/table/SEO rules only when relevant |
|
|
135
|
-
| Using ARIA to patch non-semantic markup | Prefer native elements, add ARIA only when semantics are missing |
|
|
136
|
-
| Making errors transient | Persistent errors need persistent recovery |
|
|
137
|
-
| Importing many overlapping skills | Use this consolidated gate and existing design/a11y skills |
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: v1-run
|
|
3
|
-
description: Use when selecting npm packages, checking for vulnerabilities, comparing alternatives, or verifying package health scores. MUST load before recommending or evaluating npm dependencies. Requires network.
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
tags: [integration, mcp, research]
|
|
6
|
-
dependencies: []
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# v1.run MCP
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
|
|
13
|
-
- When you need real-time npm package health, vulnerabilities, or comparisons.
|
|
14
|
-
|
|
15
|
-
## When NOT to Use
|
|
16
|
-
|
|
17
|
-
- When package selection or security analysis is not in scope.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Overview
|
|
21
|
-
|
|
22
|
-
v1.run is an MCP-first npm registry by Midday.ai that provides:
|
|
23
|
-
|
|
24
|
-
- **Real-time version data** - No hallucinated packages
|
|
25
|
-
- **Security vulnerabilities** - From OSV database
|
|
26
|
-
- **Health scores** - Automated 0-100 scoring
|
|
27
|
-
- **Package comparisons** - 50+ pre-built categories
|
|
28
|
-
|
|
29
|
-
## MCP Endpoint
|
|
30
|
-
|
|
31
|
-
**URL**: `https://api.v1.run/mcp`
|
|
32
|
-
|
|
33
|
-
**Authentication**: None required (public API)
|
|
34
|
-
|
|
35
|
-
## Configuration
|
|
36
|
-
|
|
37
|
-
v1.run MCP is pre-configured as a skill. Load it with:
|
|
38
|
-
|
|
39
|
-
```typescript
|
|
40
|
-
skill({ name: "v1-run" });
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Manual Setup (if needed)
|
|
44
|
-
|
|
45
|
-
```json
|
|
46
|
-
{
|
|
47
|
-
"mcpServers": {
|
|
48
|
-
"v1": {
|
|
49
|
-
"url": "https://api.v1.run/mcp"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Available Tools
|
|
56
|
-
|
|
57
|
-
| Tool | Description |
|
|
58
|
-
| ----------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
59
|
-
| `get_package_health` | Comprehensive health assessment (primary tool) - version, vulns, score, downloads, TS support, AI recommendations |
|
|
60
|
-
| `get_package_version` | Get latest version of a package |
|
|
61
|
-
| `check_deprecated` | Check if package is deprecated + get alternatives |
|
|
62
|
-
| `check_types` | Check TypeScript support (bundled or @types) |
|
|
63
|
-
| `check_vulnerabilities` | Security vulnerabilities from OSV database |
|
|
64
|
-
| `find_alternatives` | Find alternative packages with recommendations |
|
|
65
|
-
| `compare_packages` | Side-by-side comparison (2-5 packages) |
|
|
66
|
-
|
|
67
|
-
## Health Score System
|
|
68
|
-
|
|
69
|
-
Packages are scored 0-100 based on:
|
|
70
|
-
|
|
71
|
-
| Factor | Weight | Measures |
|
|
72
|
-
| ----------- | ------ | --------------------------------------- |
|
|
73
|
-
| Downloads | 20% | Weekly downloads + trend direction |
|
|
74
|
-
| Bundle Size | 20% | Smaller gzip = higher score |
|
|
75
|
-
| Freshness | 25% | Recent commits and releases |
|
|
76
|
-
| Community | 10% | Stars, contributors |
|
|
77
|
-
| Quality | 25% | TypeScript, ESM, security, tree-shaking |
|
|
78
|
-
|
|
79
|
-
## Usage Examples
|
|
80
|
-
|
|
81
|
-
### Check Package Health
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
84
|
-
// Get comprehensive health info for a package (primary tool)
|
|
85
|
-
skill_mcp({ skill_name: "v1-run", tool_name: "get_package_health", arguments: '{"name": "zod"}' });
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
Response includes:
|
|
89
|
-
|
|
90
|
-
- Latest version
|
|
91
|
-
- Known vulnerabilities (CVEs)
|
|
92
|
-
- Health score (0-100) with grade
|
|
93
|
-
- Weekly downloads + trend
|
|
94
|
-
- TypeScript support
|
|
95
|
-
- Maintenance status
|
|
96
|
-
- AI recommendation
|
|
97
|
-
|
|
98
|
-
### Check for Deprecation
|
|
99
|
-
|
|
100
|
-
```typescript
|
|
101
|
-
// Check if package is deprecated and get alternatives
|
|
102
|
-
skill_mcp({
|
|
103
|
-
skill_name: "v1-run",
|
|
104
|
-
tool_name: "check_deprecated",
|
|
105
|
-
arguments: '{"name": "request"}',
|
|
106
|
-
});
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### Check Vulnerabilities
|
|
110
|
-
|
|
111
|
-
```typescript
|
|
112
|
-
// Check specific version for security issues
|
|
113
|
-
skill_mcp({
|
|
114
|
-
skill_name: "v1-run",
|
|
115
|
-
tool_name: "check_vulnerabilities",
|
|
116
|
-
arguments: '{"name": "lodash", "version": "4.17.20"}',
|
|
117
|
-
});
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### Find Alternatives
|
|
121
|
-
|
|
122
|
-
```typescript
|
|
123
|
-
// Find alternative packages
|
|
124
|
-
skill_mcp({
|
|
125
|
-
skill_name: "v1-run",
|
|
126
|
-
tool_name: "find_alternatives",
|
|
127
|
-
arguments: '{"name": "moment"}',
|
|
128
|
-
});
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
### Compare Packages
|
|
132
|
-
|
|
133
|
-
```typescript
|
|
134
|
-
// Compare similar packages (2-5 packages)
|
|
135
|
-
skill_mcp({
|
|
136
|
-
skill_name: "v1-run",
|
|
137
|
-
tool_name: "compare_packages",
|
|
138
|
-
arguments: '{"packages": ["zod", "yup", "joi", "valibot"]}',
|
|
139
|
-
});
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Pre-built Categories (50+)
|
|
143
|
-
|
|
144
|
-
v1.run includes comparisons for popular package categories:
|
|
145
|
-
|
|
146
|
-
- **HTTP clients**: axios, got, ky, node-fetch
|
|
147
|
-
- **Date libraries**: moment, date-fns, dayjs, luxon
|
|
148
|
-
- **Validation**: zod, yup, joi, ajv, valibot
|
|
149
|
-
- **State management**: redux, zustand, jotai, recoil
|
|
150
|
-
- **ORM**: prisma, drizzle, typeorm, sequelize
|
|
151
|
-
- **Testing**: vitest, jest, mocha, ava
|
|
152
|
-
- **Bundlers**: vite, esbuild, webpack, rollup
|
|
153
|
-
- **Logging**: pino, winston, bunyan
|
|
154
|
-
|
|
155
|
-
## When to Use
|
|
156
|
-
|
|
157
|
-
Use v1.run MCP when:
|
|
158
|
-
|
|
159
|
-
1. **Choosing between packages** - Get objective comparisons
|
|
160
|
-
2. **Checking for vulnerabilities** - Before adding dependencies
|
|
161
|
-
3. **Evaluating maintenance** - Is the package actively maintained?
|
|
162
|
-
4. **Finding alternatives** - Discover better options for a package
|
|
163
|
-
|
|
164
|
-
## Best Practices
|
|
165
|
-
|
|
166
|
-
1. **Always check health** before adding new dependencies
|
|
167
|
-
2. **Compare alternatives** when multiple packages solve the same problem
|
|
168
|
-
3. **Verify TypeScript support** for TypeScript projects
|
|
169
|
-
4. **Check bundle size** for frontend applications
|
|
170
|
-
|
|
171
|
-
## Documentation
|
|
172
|
-
|
|
173
|
-
- [v1.run](https://v1.run)
|
|
174
|
-
- [GitHub: midday-ai/v1](https://github.com/midday-ai/v1)
|
|
175
|
-
- [MCP Documentation](https://modelcontextprotocol.io)
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: verification-gates
|
|
3
|
-
description: >
|
|
4
|
-
Use when running pre-merge or pre-PR verification checks. Detects project type and runs appropriate build, test, lint, and typecheck commands.
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
tags: [verification, testing, lint, typecheck, ci]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Verification Gates
|
|
10
|
-
|
|
11
|
-
Detect project type and run the appropriate verification commands before merging or creating PRs.
|
|
12
|
-
|
|
13
|
-
## When to Use
|
|
14
|
-
|
|
15
|
-
- In `/pr` before creating a pull request
|
|
16
|
-
- In `/review-codebase` during automated checks phase
|
|
17
|
-
- In `/ship` during final verification
|
|
18
|
-
- Any command that needs to verify code quality before completion
|
|
19
|
-
|
|
20
|
-
## When NOT to Use
|
|
21
|
-
|
|
22
|
-
- For incremental checks during development (just run the specific tool)
|
|
23
|
-
- When only one check type is needed (e.g., lint-only)
|
|
24
|
-
|
|
25
|
-
## Project Type Detection
|
|
26
|
-
|
|
27
|
-
| Project Type | Detect Via | Build | Test | Lint | Typecheck |
|
|
28
|
-
| --------------- | ----------------------------- | ---------------- | --------------- | ----------------------------- | ------------------------------------- |
|
|
29
|
-
| Node/TypeScript | `package.json` | `npm run build` | `npm test` | `npm run lint` | `npm run typecheck` or `tsc --noEmit` |
|
|
30
|
-
| Rust | `Cargo.toml` | `cargo build` | `cargo test` | `cargo clippy -- -D warnings` | (included in build) |
|
|
31
|
-
| Python | `pyproject.toml` / `setup.py` | — | `pytest` | `ruff check .` | `mypy .` |
|
|
32
|
-
| Go | `go.mod` | `go build ./...` | `go test ./...` | `golangci-lint run` | (included in build) |
|
|
33
|
-
|
|
34
|
-
## Protocol
|
|
35
|
-
|
|
36
|
-
### Step 1: Detect project type
|
|
37
|
-
|
|
38
|
-
Check for indicator files in the project root. Multiple types may coexist (e.g., Node + Python monorepo).
|
|
39
|
-
|
|
40
|
-
### Step 2: Run checks in parallel where possible
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# Run typecheck and lint in parallel
|
|
44
|
-
npm run typecheck &
|
|
45
|
-
npm run lint &
|
|
46
|
-
wait
|
|
47
|
-
|
|
48
|
-
# Then run tests (may depend on build)
|
|
49
|
-
npm test
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Step 3: Report results
|
|
53
|
-
|
|
54
|
-
For each check, report:
|
|
55
|
-
|
|
56
|
-
- **Pass/Fail** status
|
|
57
|
-
- **Error count** (if failed)
|
|
58
|
-
- **Key error messages** (first 5)
|
|
59
|
-
|
|
60
|
-
### Step 4: Gate decision
|
|
61
|
-
|
|
62
|
-
- **All pass:** Proceed with the command
|
|
63
|
-
- **Any fail:** Stop and report. Let the user decide whether to proceed or fix.
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: visual-analysis
|
|
3
|
-
description: Use when analyzing images, screenshots, UI mockups, or visual content for extracting information, comparing designs, or assessing visual properties like colors, typography, and layout
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
tags: [design, research]
|
|
6
|
-
dependencies: []
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Visual Analysis Skill
|
|
10
|
-
|
|
11
|
-
> **Replaces** guessing at visual properties from code alone — direct inspection of rendered output for colors, layout, spacing, and typography
|
|
12
|
-
|
|
13
|
-
## When to Use
|
|
14
|
-
|
|
15
|
-
- Analyzing UI mockups or screenshots
|
|
16
|
-
- Extracting information from images
|
|
17
|
-
- Comparing visual designs
|
|
18
|
-
- Quick visual assessments
|
|
19
|
-
|
|
20
|
-
## When NOT to Use
|
|
21
|
-
|
|
22
|
-
- Pure text/code review without any visual assets.
|
|
23
|
-
|
|
24
|
-
## Workflow
|
|
25
|
-
|
|
26
|
-
1. **Capture** — Get the image (screenshot, mockup, or user-provided)
|
|
27
|
-
2. **Analyze** — Use vision agent to extract specific properties (colors as hex, font sizes, spacing in px/rem)
|
|
28
|
-
3. **Compare** — Cross-reference extracted values against design tokens and existing CSS
|
|
29
|
-
4. **Report** — List discrepancies with specific values and file locations
|
|
30
|
-
|
|
31
|
-
## Quick Mode
|
|
32
|
-
|
|
33
|
-
Fast, focused analysis for specific questions.
|
|
34
|
-
|
|
35
|
-
**Prompt pattern:**
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
Analyze this image: [attach image]
|
|
39
|
-
[specific question]
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
**Examples:**
|
|
43
|
-
|
|
44
|
-
- "What text is visible in this UI?"
|
|
45
|
-
- "List all colors used with their hex values"
|
|
46
|
-
- "Identify all interactive elements"
|
|
47
|
-
|
|
48
|
-
## Deep Mode
|
|
49
|
-
|
|
50
|
-
Comprehensive analysis with structured output.
|
|
51
|
-
|
|
52
|
-
**Prompt pattern:**
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
Analyze this image comprehensively:
|
|
56
|
-
|
|
57
|
-
1. CONTENT INVENTORY
|
|
58
|
-
- All UI elements present
|
|
59
|
-
- Text content
|
|
60
|
-
- Icons and imagery
|
|
61
|
-
|
|
62
|
-
2. VISUAL PROPERTIES
|
|
63
|
-
- Color palette (hex values)
|
|
64
|
-
- Typography (fonts, sizes, weights)
|
|
65
|
-
- Spacing patterns
|
|
66
|
-
- Layout structure
|
|
67
|
-
|
|
68
|
-
3. OBSERVATIONS
|
|
69
|
-
- Design patterns used
|
|
70
|
-
- Potential issues
|
|
71
|
-
- Notable features
|
|
72
|
-
|
|
73
|
-
Output as structured markdown.
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Common Analysis Patterns
|
|
77
|
-
|
|
78
|
-
### UI Component Analysis
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
Analyze this UI component:
|
|
82
|
-
|
|
83
|
-
1. Component type and purpose
|
|
84
|
-
2. Visual states (hover, focus, disabled)
|
|
85
|
-
3. Accessibility considerations
|
|
86
|
-
4. Props/variants needed
|
|
87
|
-
5. Similar patterns in common UI libraries
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
### Screenshot Comparison
|
|
91
|
-
|
|
92
|
-
```
|
|
93
|
-
Compare these two images:
|
|
94
|
-
|
|
95
|
-
1. Visual differences (be specific about location)
|
|
96
|
-
2. Missing elements
|
|
97
|
-
3. Spacing/sizing discrepancies
|
|
98
|
-
4. Color accuracy
|
|
99
|
-
5. Priority fixes ranked by visual impact
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Color Extraction
|
|
103
|
-
|
|
104
|
-
```
|
|
105
|
-
Extract all colors from this image.
|
|
106
|
-
|
|
107
|
-
Output as JSON:
|
|
108
|
-
{
|
|
109
|
-
"primary": ["#hex1", "#hex2"],
|
|
110
|
-
"secondary": ["#hex3"],
|
|
111
|
-
"neutral": ["#hex4", "#hex5"],
|
|
112
|
-
"accent": ["#hex6"]
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
Include approximate usage percentage for each color.
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### Layout Analysis
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
Analyze the layout structure:
|
|
122
|
-
|
|
123
|
-
1. Grid system (columns, gutters)
|
|
124
|
-
2. Container widths
|
|
125
|
-
3. Section divisions
|
|
126
|
-
4. Responsive breakpoint hints
|
|
127
|
-
5. Flexbox vs Grid recommendations
|
|
128
|
-
|
|
129
|
-
Output CSS/Tailwind structure.
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
## Output Formats
|
|
133
|
-
|
|
134
|
-
- **Markdown** (default): Structured text
|
|
135
|
-
- **JSON**: For design tokens
|
|
136
|
-
- **Code**: Direct implementation
|
|
137
|
-
|
|
138
|
-
## Storage
|
|
139
|
-
|
|
140
|
-
Save findings to `.opencode/memory/design/analysis/`
|
|
141
|
-
|
|
142
|
-
## Anti-Patterns
|
|
143
|
-
|
|
144
|
-
| Anti-Pattern | Why It Fails | Instead |
|
|
145
|
-
| ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
|
146
|
-
| Describing layout vaguely ("looks good") instead of extracting specific values | Feedback is non-actionable and hard to validate | Report measurable values (hex, px/rem, font size/weight) with locations |
|
|
147
|
-
| Not comparing against existing design tokens | Findings drift from system standards and create inconsistent recommendations | Map extracted values to tokens first, then flag true mismatches |
|
|
148
|
-
| Analyzing low-resolution screenshots (artifacts mislead analysis) | Compression/noise causes false readings for spacing and color | Request higher-resolution captures or zoomed crops before final conclusions |
|
|
149
|
-
|
|
150
|
-
## See Also
|
|
151
|
-
|
|
152
|
-
- `mockup-to-code`
|
|
153
|
-
- `design-system-audit`
|
|
154
|
-
- `accessibility-audit`
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: web-design-guidelines
|
|
3
|
-
description: Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
tags: [ui, design]
|
|
6
|
-
dependencies: []
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Web Interface Guidelines
|
|
10
|
-
|
|
11
|
-
## When to Use
|
|
12
|
-
|
|
13
|
-
- Reviewing UI files against Web Interface Guidelines for UX/design compliance.
|
|
14
|
-
|
|
15
|
-
## When NOT to Use
|
|
16
|
-
|
|
17
|
-
- Non-UI code reviews or when no files/pattern are provided.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## How It Works
|
|
21
|
-
|
|
22
|
-
1. Fetch the latest guidelines from the source URL below
|
|
23
|
-
2. Read the specified files (or prompt user for files/pattern)
|
|
24
|
-
3. Check against all rules in the fetched guidelines
|
|
25
|
-
4. Output findings in the terse `file:line` format
|
|
26
|
-
|
|
27
|
-
## Guidelines Source
|
|
28
|
-
|
|
29
|
-
Fetch fresh guidelines before each review:
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Use WebFetch to retrieve the latest rules. The fetched content contains all the rules and output format instructions.
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
When a user provides a file or pattern argument:
|
|
40
|
-
|
|
41
|
-
1. Fetch guidelines from the source URL above
|
|
42
|
-
2. Read the specified files
|
|
43
|
-
3. Apply all rules from the fetched guidelines
|
|
44
|
-
4. Output findings using the format specified in the guidelines
|
|
45
|
-
|
|
46
|
-
If no files specified, ask the user which files to review.
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: workspace-setup
|
|
3
|
-
description: >
|
|
4
|
-
Use when a command needs to create a feature branch or set up a workspace for bead work. Shared by /create and /ship.
|
|
5
|
-
version: 1.0.0
|
|
6
|
-
tags: [git, workspace, branch, setup]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Workspace Setup
|
|
10
|
-
|
|
11
|
-
Set up a git workspace (branch or worktree) for bead-based work.
|
|
12
|
-
|
|
13
|
-
## When to Use
|
|
14
|
-
|
|
15
|
-
- In `/create` after bead creation, before task conversion
|
|
16
|
-
- In `/ship` when auto-claiming an unclaimed bead
|
|
17
|
-
- Any command that needs to transition from "no workspace" to "active workspace"
|
|
18
|
-
|
|
19
|
-
## When NOT to Use
|
|
20
|
-
|
|
21
|
-
- If bead is already `in_progress` with an existing branch
|
|
22
|
-
- If user explicitly chose "Use current branch"
|
|
23
|
-
|
|
24
|
-
## Protocol
|
|
25
|
-
|
|
26
|
-
### Step 1: Ask the user
|
|
27
|
-
|
|
28
|
-
```typescript
|
|
29
|
-
question({
|
|
30
|
-
questions: [
|
|
31
|
-
{
|
|
32
|
-
header: "Workspace",
|
|
33
|
-
question: "How do you want to set up the workspace?",
|
|
34
|
-
options: [
|
|
35
|
-
{
|
|
36
|
-
label: "Create feature branch (Recommended)",
|
|
37
|
-
description: "git checkout -b <prefix>/<bead-id>-<title>",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: "Use current branch",
|
|
41
|
-
description: "Work on current branch without creating a new one",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
});
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
> **Note:** `/create` may additionally offer a "Create worktree" option using `skill({ name: "using-git-worktrees" })`.
|
|
50
|
-
|
|
51
|
-
### Step 2: Create branch (if selected)
|
|
52
|
-
|
|
53
|
-
Map bead type to branch prefix:
|
|
54
|
-
|
|
55
|
-
| Bead Type | Branch Prefix |
|
|
56
|
-
| --------- | ------------- |
|
|
57
|
-
| feature | feat |
|
|
58
|
-
| bug | fix |
|
|
59
|
-
| task | task |
|
|
60
|
-
| epic | epic |
|
|
61
|
-
|
|
62
|
-
Create the branch:
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
git checkout -b $PREFIX/$BEAD_ID-$TITLE_SLUG
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Where `$TITLE_SLUG` is the bead title lowercased with spaces replaced by hyphens, truncated to ~50 chars.
|
|
69
|
-
|
|
70
|
-
### Step 3: Confirm
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
git branch --show-current
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
Verify you're on the new branch before proceeding.
|