opencodekit 0.21.10 → 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 -487
- package/dist/template/.opencode/README.md +1 -1
- package/dist/template/.opencode/agent/build.md +56 -396
- package/dist/template/.opencode/agent/explore.md +0 -1
- package/dist/template/.opencode/agent/review.md +0 -1
- package/dist/template/.opencode/agent/scout.md +0 -1
- 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/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/test.md +66 -0
- package/dist/template/.opencode/dcp.jsonc +13 -2
- 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/session-context.md +1 -1
- 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/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 -224
- 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,169 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Audit changed UI files for AI slop patterns and design-system violations
|
|
3
|
-
argument-hint: "[path|auto] [--staged] [--since=<ref>] [--full-report]"
|
|
4
|
-
agent: vision
|
|
5
|
-
model: proxypal/gemini-3-pro-preview
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# UI Slop Check: $ARGUMENTS
|
|
9
|
-
|
|
10
|
-
Run a focused anti-slop audit against changed UI files using the frontend-design taxonomy.
|
|
11
|
-
|
|
12
|
-
## Load Skills
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
skill({ name: "frontend-design" }); // Anti-pattern taxonomy + design references
|
|
16
|
-
skill({ name: "visual-analysis" }); // Structured visual/code analysis workflow
|
|
17
|
-
skill({ name: "accessibility-audit" }); // Keyboard/focus/contrast checks
|
|
18
|
-
skill({ name: "ux-quality-gates" }); // UX correctness gates beyond visual slop
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Parse Arguments
|
|
22
|
-
|
|
23
|
-
| Argument | Default | Description |
|
|
24
|
-
| --------------- | ------- | ----------------------------------------------------------- |
|
|
25
|
-
| `[path\|auto]` | `auto` | Specific file/dir to audit, or auto-detect changed UI files |
|
|
26
|
-
| `--staged` | false | Audit staged changes only (`git diff --cached`) |
|
|
27
|
-
| `--since=<ref>` | `HEAD` | Compare against ref (`main`, `HEAD~1`, commit SHA) |
|
|
28
|
-
| `--full-report` | false | Include all categories even when no issues found |
|
|
29
|
-
|
|
30
|
-
## Phase 1: Resolve Target Files
|
|
31
|
-
|
|
32
|
-
If `[path]` is provided:
|
|
33
|
-
|
|
34
|
-
- Audit that path directly
|
|
35
|
-
|
|
36
|
-
If `auto`:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
# unstaged + staged by default
|
|
40
|
-
git diff --name-only $SINCE_REF -- \
|
|
41
|
-
'*.tsx' '*.jsx' '*.css' '*.scss' '*.sass' '*.less' '*.html' '*.mdx'
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
If `--staged`:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
git diff --cached --name-only -- \
|
|
48
|
-
'*.tsx' '*.jsx' '*.css' '*.scss' '*.sass' '*.less' '*.html' '*.mdx'
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Prioritize files under:
|
|
52
|
-
|
|
53
|
-
- `src/components/**`
|
|
54
|
-
- `src/app/**`
|
|
55
|
-
- `src/pages/**`
|
|
56
|
-
- `app/**`
|
|
57
|
-
- `components/**`
|
|
58
|
-
|
|
59
|
-
If no UI files changed, return: **PASS (no changed UI files)**.
|
|
60
|
-
|
|
61
|
-
## Phase 2: Run AI Slop Checklist
|
|
62
|
-
|
|
63
|
-
Evaluate each target file (or rendered screenshot if provided) against these checks.
|
|
64
|
-
|
|
65
|
-
### A) Typography
|
|
66
|
-
|
|
67
|
-
- Banned default aesthetics (Inter/Roboto/Arial/Open Sans as dominant display voice)
|
|
68
|
-
- Body text uses `rem/em`, not fixed `px`
|
|
69
|
-
- Clear hierarchy (size/weight/spacing), not color-only hierarchy
|
|
70
|
-
- Body line length near readable measure (around 65ch when applicable)
|
|
71
|
-
|
|
72
|
-
### B) Color and Theming
|
|
73
|
-
|
|
74
|
-
- No AI default palette tropes (purple-blue gradient defaults, neon-on-dark clichés)
|
|
75
|
-
- No pure `#000` / `#fff` as dominant surfaces
|
|
76
|
-
- Gray text is not placed on saturated backgrounds
|
|
77
|
-
- Semantic tokens are used (not random per-component hardcoded colors)
|
|
78
|
-
- Dark mode is adapted, not simple inversion
|
|
79
|
-
|
|
80
|
-
### C) Layout and Spatial Rhythm
|
|
81
|
-
|
|
82
|
-
- No cards-inside-cards without strong information architecture reason
|
|
83
|
-
- No repetitive cookie-cutter card blocks with identical structure
|
|
84
|
-
- Spacing rhythm is consistent (4pt-style cadence), not arbitrary jumps
|
|
85
|
-
- Uses `gap`/layout primitives cleanly; avoids margin hacks when possible
|
|
86
|
-
|
|
87
|
-
### D) Motion and Interaction
|
|
88
|
-
|
|
89
|
-
- No bounce/elastic gimmick motion for product UI
|
|
90
|
-
- Animations use transform/opacity (avoid layout-thrashing properties)
|
|
91
|
-
- Reduced motion support exists for meaningful motion
|
|
92
|
-
- States exist: hover, focus-visible, active, disabled, loading/error where relevant
|
|
93
|
-
|
|
94
|
-
### E) UX Writing
|
|
95
|
-
|
|
96
|
-
- Buttons are verb + object (e.g. "Save changes")
|
|
97
|
-
- Error copy includes what happened + why + how to fix
|
|
98
|
-
- Empty states include guidance + next action
|
|
99
|
-
- Terminology is consistent (avoid mixed synonyms for same action)
|
|
100
|
-
- User-facing labels avoid implementation terms, database names, and internal acronyms
|
|
101
|
-
|
|
102
|
-
### F) UX Quality Gates
|
|
103
|
-
|
|
104
|
-
- One dominant filled primary action per view/section
|
|
105
|
-
- Destructive actions require explicit confirm or undo, with specific entity/count in copy
|
|
106
|
-
- No placeholder-as-label form fields
|
|
107
|
-
- Form errors are associated with controls (`aria-describedby`, `aria-invalid`, `role="alert"`)
|
|
108
|
-
- Submit/loading states prevent double-submit without layout shift
|
|
109
|
-
- Empty, loading, error, and success states exist where async/data flows exist
|
|
110
|
-
- Error toasts/banners persist long enough and include retry/undo/support where applicable
|
|
111
|
-
- Data-heavy UI distinguishes empty state from filtered no-results state
|
|
112
|
-
- Bulk actions show selected count and confirm destructive scope
|
|
113
|
-
|
|
114
|
-
### G) Accessibility Safety Nets
|
|
115
|
-
|
|
116
|
-
- Keyboard-visible focus treatment (`:focus-visible`)
|
|
117
|
-
- Contrast baseline expectations (WCAG AA)
|
|
118
|
-
- Touch targets reasonable (44x44 context where applicable)
|
|
119
|
-
- Native semantic elements are used before ARIA patches (`button`, `a`, `form`, landmarks)
|
|
120
|
-
- Heading structure has one logical `h1` per page/screen context
|
|
121
|
-
|
|
122
|
-
### H) Component Family Consistency
|
|
123
|
-
|
|
124
|
-
- Buttons and inputs in the same form share height, radius, border, and focus treatment
|
|
125
|
-
- Focus, error, disabled, and loading states use the same token logic across components
|
|
126
|
-
- No one-off radius/shadow/border width unless documented as a system-level exception
|
|
127
|
-
- Semantic color roles are consistent: success, warning, destructive, info, primary
|
|
128
|
-
|
|
129
|
-
## Phase 3: Severity and Scoring
|
|
130
|
-
|
|
131
|
-
Group findings by severity:
|
|
132
|
-
|
|
133
|
-
- **Critical**: accessibility failures, broken interaction states, unreadable contrast
|
|
134
|
-
- **Warning**: strong AI fingerprint/slop patterns, inconsistent design system usage
|
|
135
|
-
- **Info**: polish/consistency opportunities
|
|
136
|
-
|
|
137
|
-
Score each category 1-10 and include evidence (`file:line` for code audits).
|
|
138
|
-
|
|
139
|
-
## Phase 4: Output
|
|
140
|
-
|
|
141
|
-
Return:
|
|
142
|
-
|
|
143
|
-
1. **Result**: PASS / NEEDS WORK
|
|
144
|
-
2. **Audited files** (list)
|
|
145
|
-
3. **Category scores**
|
|
146
|
-
4. **Findings by severity** with actionable fixes
|
|
147
|
-
5. **Fast remediation plan** (top 3 fixes first)
|
|
148
|
-
|
|
149
|
-
If `--full-report` is false, omit empty categories.
|
|
150
|
-
|
|
151
|
-
## Record Findings
|
|
152
|
-
|
|
153
|
-
```typescript
|
|
154
|
-
observation({
|
|
155
|
-
type: "warning",
|
|
156
|
-
title: "UI Slop Check: [scope]",
|
|
157
|
-
narrative: "Detected [count] critical, [count] warning slop issues in changed UI files.",
|
|
158
|
-
concepts: "ui, design, anti-patterns, frontend",
|
|
159
|
-
confidence: "high",
|
|
160
|
-
});
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
## Related Commands
|
|
164
|
-
|
|
165
|
-
| Need | Command |
|
|
166
|
-
| ---------------------------------------- | ------------ |
|
|
167
|
-
| Design from scratch | `/design` |
|
|
168
|
-
| Full UI review (single screen/component) | `/ui-review` |
|
|
169
|
-
| Implementation work | `/ship` |
|