opencodekit 0.19.6 → 0.20.1

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 (55) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/dcp-prompts/defaults/compress-message.md +1 -0
  3. package/dist/template/.opencode/memory.db +0 -0
  4. package/dist/template/.opencode/memory.db-shm +0 -0
  5. package/dist/template/.opencode/memory.db-wal +0 -0
  6. package/dist/template/.opencode/opencode.json +2 -2
  7. package/dist/template/.opencode/plugin/copilot-auth.ts +161 -53
  8. package/dist/template/.opencode/skill/chrome-devtools/SKILL.md +1 -1
  9. package/dist/template/.opencode/skill/cloudflare/SKILL.md +1 -1
  10. package/dist/template/.opencode/skill/context-management/SKILL.md +306 -79
  11. package/dist/template/.opencode/skill/core-data-expert/SKILL.md +1 -1
  12. package/dist/template/.opencode/skill/design-system-audit/SKILL.md +1 -1
  13. package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +1 -1
  14. package/dist/template/.opencode/skill/figma/SKILL.md +1 -1
  15. package/dist/template/.opencode/skill/figma-go/SKILL.md +1 -1
  16. package/dist/template/.opencode/skill/frontend-design/SKILL.md +1 -1
  17. package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +1 -1
  18. package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +1 -1
  19. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +1 -1
  20. package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +1 -1
  21. package/dist/template/.opencode/skill/jira/SKILL.md +1 -1
  22. package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +1 -1
  23. package/dist/template/.opencode/skill/mqdh/SKILL.md +1 -1
  24. package/dist/template/.opencode/skill/opensrc/SKILL.md +184 -27
  25. package/dist/template/.opencode/skill/pdf-extract/SKILL.md +1 -1
  26. package/dist/template/.opencode/skill/pencil/SKILL.md +1 -1
  27. package/dist/template/.opencode/skill/playwright/SKILL.md +18 -6
  28. package/dist/template/.opencode/skill/{agent-browser/SKILL.md → playwright/references/agent-browser-cli.md} +0 -8
  29. package/dist/template/.opencode/skill/playwriter/SKILL.md +1 -1
  30. package/dist/template/.opencode/skill/polar/SKILL.md +1 -1
  31. package/dist/template/.opencode/skill/prd/SKILL.md +1 -1
  32. package/dist/template/.opencode/skill/react-best-practices/SKILL.md +1 -1
  33. package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +1 -1
  34. package/dist/template/.opencode/skill/resend/SKILL.md +1 -1
  35. package/dist/template/.opencode/skill/stitch/SKILL.md +1 -1
  36. package/dist/template/.opencode/skill/stitch-design-taste/SKILL.md +1 -1
  37. package/dist/template/.opencode/skill/supabase/SKILL.md +1 -1
  38. package/dist/template/.opencode/skill/supabase-postgres-best-practices/SKILL.md +1 -1
  39. package/dist/template/.opencode/skill/v0/SKILL.md +1 -1
  40. package/dist/template/.opencode/skill/v1-run/SKILL.md +1 -1
  41. package/dist/template/.opencode/skill/webclaw/SKILL.md +1 -1
  42. package/dist/template/.opencode/skill/writing-skills/SKILL.md +43 -6
  43. package/dist/template/.opencode/skill/{testing-skills-with-subagents/SKILL.md → writing-skills/references/testing-methodology.md} +0 -8
  44. package/package.json +1 -1
  45. package/dist/template/.opencode/skill/compaction/SKILL.md +0 -384
  46. package/dist/template/.opencode/skill/session-management/SKILL.md +0 -9
  47. package/dist/template/.opencode/skill/source-code-research/SKILL.md +0 -293
  48. package/dist/template/.opencode/skill/ui-ux-research/SKILL.md +0 -9
  49. package/dist/template/.opencode/skill/using-skills/SKILL.md +0 -117
  50. /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/analysis-tips.md +0 -0
  51. /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/anti-patterns.md +0 -0
  52. /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/common-patterns.md +0 -0
  53. /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/example-workflow.md +0 -0
  54. /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/further-reading.md +0 -0
  55. /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/source-structure.md +0 -0
@@ -1,28 +1,28 @@
1
1
  ---
2
2
  name: opensrc
3
- description: Fetch source code for npm, PyPI, or crates.io packages and GitHub/GitLab repos to provide AI agents with implementation context beyond types and docs. Use when needing to understand how a library works internally, debug dependency issues, or explore package implementations.
4
- version: 1.0.0
5
- tags: [research, integration]
3
+ description: Use when you need to understand how a library works internally, debug dependency issues, or inspect package source code beyond types and docs. Fetches source for npm, PyPI, crates.io packages and GitHub repos. Includes structured research workflow for deep investigation.
4
+ version: 1.1.0
5
+ tags: [research, integration, source-code]
6
6
  dependencies: []
7
7
  ---
8
8
 
9
9
  # opensrc
10
10
 
11
- ## When to Use
12
-
13
- - When you need actual dependency source code to understand behavior or debug issues.
14
-
15
- ## When NOT to Use
16
-
17
- - When API docs or local type definitions are sufficient for the task.
18
-
11
+ Fetch and inspect dependency source code, then run a structured research workflow to answer implementation-level questions with evidence.
19
12
 
20
13
  ## When to Use
21
14
 
22
15
  - Need to understand how a library/package works internally (not just its interface)
23
- - Debugging issues where types alone are insufficient
16
+ - Debugging issues where types or docs are insufficient
24
17
  - Exploring implementation patterns in dependencies
25
- - Agent needs to reference actual source code of a package
18
+ - Investigating edge cases and behavior not documented officially
19
+ - Evaluating dependency quality before adoption
20
+
21
+ ## When NOT to Use
22
+
23
+ - Official docs already answer the question (check Context7 first)
24
+ - You only need public API syntax or quick examples
25
+ - The target is your own codebase (use project search/LSP tools)
26
26
 
27
27
  ## Quick Start
28
28
 
@@ -58,7 +58,7 @@ npx opensrc owner/repo@v1.0.0
58
58
 
59
59
  ## Output Structure
60
60
 
61
- After fetching, sources stored in `opensrc/` directory:
61
+ After fetching, sources are stored in `opensrc/`:
62
62
 
63
63
  ```
64
64
  opensrc/
@@ -72,56 +72,213 @@ opensrc/
72
72
 
73
73
  ## File Modifications
74
74
 
75
- On first run, opensrc prompts to modify:
75
+ On first run, opensrc may prompt to modify:
76
76
 
77
77
  - `.gitignore` - adds `opensrc/` to ignore list
78
78
  - `tsconfig.json` - excludes `opensrc/` from compilation
79
79
  - `AGENTS.md` - adds section pointing agents to source code
80
80
 
81
- Use `--modify` or `--modify=false` to skip prompt.
81
+ Use `--modify` or `--modify=false` to control this behavior.
82
82
 
83
83
  ## Key Behaviors
84
84
 
85
85
  1. **Version Detection** - For npm, auto-detects installed version from `node_modules`, `package-lock.json`, `pnpm-lock.yaml`, or `yarn.lock`
86
86
  2. **Repository Resolution** - Resolves package to its git repo via registry API, clones at matching tag
87
- 3. **Monorepo Support** - Handles packages in monorepos via `repository.directory` field
87
+ 3. **Monorepo Support** - Handles packages in monorepos via `repository.directory`
88
88
  4. **Shallow Clone** - Uses `--depth 1` for efficient cloning, removes `.git` after clone
89
89
  5. **Tag Fallback** - Tries `v{version}`, `{version}`, then default branch if tag not found
90
90
 
91
+ ## Research Workflow (Structured)
92
+
93
+ Use this 5-step workflow for deep investigations.
94
+
95
+ ### Step 1: Identify
96
+
97
+ Define the smallest useful target and scope:
98
+
99
+ - Package/repo name and version
100
+ - Specific question (e.g., retry behavior, parsing path, cache invalidation)
101
+ - Candidate symbols/files to inspect first
102
+
103
+ ```bash
104
+ # Good: scoped target with version
105
+ npx opensrc zod@3.22.0
106
+
107
+ # Also valid
108
+ npx opensrc pypi:requests
109
+ npx opensrc crates:serde
110
+ npx opensrc vercel/ai@v3.0.0
111
+ ```
112
+
113
+ ### Step 2: Fetch
114
+
115
+ Fetch source with opensrc and confirm location:
116
+
117
+ ```bash
118
+ npx opensrc <target>
119
+ npx opensrc list
120
+ ```
121
+
122
+ Expected result:
123
+
124
+ - Source cloned into `opensrc/repos/<host>/<owner>/<repo>/`
125
+ - Metadata recorded in `opensrc/sources.json`
126
+
127
+ ### Step 3: Locate
128
+
129
+ Find relevant files/symbols before deep reading:
130
+
131
+ - Search by exported symbol names, error classes, feature flags, config keys
132
+ - Prefer implementation files over declaration/type-only files
133
+ - Include tests/examples to infer intended behavior
134
+
135
+ Suggested search sequence:
136
+
137
+ 1. Entry points (`index`, `main`, package exports)
138
+ 2. Core implementation modules
139
+ 3. Tests and fixtures
140
+ 4. Changelog/release notes for behavioral changes
141
+
142
+ ### Step 4: Analyze
143
+
144
+ Read code paths end-to-end and collect evidence:
145
+
146
+ - Trace function call flow from public API to internal logic
147
+ - Note edge-case guards, fallbacks, and error paths
148
+ - Distinguish public API from private/internal contracts
149
+ - Record exact file:line evidence for each claim
150
+
151
+ Evidence standard:
152
+
153
+ - Prefer direct source snippets + `file:line`
154
+ - Mark uncertain conclusions explicitly
155
+ - Avoid claims based only on docs/types when source contradicts them
156
+
157
+ ### Step 5: Document
158
+
159
+ Write findings in a reusable format:
160
+
161
+ ```markdown
162
+ # Research: <library>
163
+
164
+ - Package/Version: <name@version>
165
+ - Source Path: opensrc/repos/<host>/<owner>/<repo>
166
+ - Research Question: <question>
167
+
168
+ ## Findings
169
+ 1. <claim>
170
+ - Evidence: `path/to/file.ts:42-68`
171
+ - Confidence: High | Medium | Low
172
+
173
+ ## Answer
174
+ - <direct answer to original question>
175
+
176
+ ## Caveats
177
+ - Version-specific behavior and limits
178
+ ```
179
+
180
+ ## Integration with Other Research Methods
181
+
182
+ Use source inspection as part of a layered approach:
183
+
184
+ | Method | Best For | Source Code Adds |
185
+ | -------------- | -------------------------- | ------------------------------ |
186
+ | **Context7** | API docs, official guides | Implementation details |
187
+ | **codesearch** | Usage patterns in the wild | Canonical implementation |
188
+ | **grepsearch** | Real-world examples | How library itself works |
189
+ | **Web search** | Tutorials, blog posts | Ground truth from source |
190
+ | **Codebase** | Project-specific patterns | How dependencies actually work |
191
+
192
+ Recommended order:
193
+
194
+ 1. Context7 (official docs)
195
+ 2. Local codebase usage
196
+ 3. **opensrc source inspection**
197
+ 4. codesearch/grepsearch external usage patterns
198
+ 5. Web search for supplementary context
199
+
200
+ ## Limitations
201
+
202
+ ### When Source Code May Not Fully Explain Runtime Behavior
203
+
204
+ - **Build-time transforms**: transpilation/macros/plugins can alter runtime shape
205
+ - **Native modules**: C/C++/Rust bindings require native-level inspection
206
+ - **Generated/minified artifacts**: published package may omit readable source
207
+ - **Monorepo indirection**: behavior may span multiple internal packages
208
+ - **Environment-specific paths**: Node/browser/edge branches can diverge
209
+
210
+ ### Practical Alternatives
211
+
212
+ If opensrc is incomplete or blocked:
213
+
214
+ 1. Browse repository directly on GitHub
215
+ 2. Use `npm pack <package>` and inspect tarball contents
216
+ 3. Inspect installed `node_modules/<package>/` output
217
+ 4. Use source maps during runtime debugging when available
218
+
91
219
  ## Common Workflows
92
220
 
93
221
  ### Fetching a Package
94
222
 
95
223
  ```bash
96
- # Agent needs to understand zod's implementation
224
+ # Understand zod implementation
97
225
  npx opensrc zod
98
- # → Detects version from lockfile
99
- # → Finds repo URL from npm registry
100
- # → Clones at matching git tag
101
- # → Source available at opensrc/repos/github.com/colinhacks/zod/
226
+ # → detects version from lockfile
227
+ # → resolves registry metadata
228
+ # → clones matching tag/revision
102
229
  ```
103
230
 
104
231
  ### Updating Sources
105
232
 
106
233
  ```bash
107
- # Re-run same command to update to currently installed version
234
+ # Re-run to refresh against current installed version
108
235
  npx opensrc zod
109
- # → Checks if version changed
110
- # → Re-clones if needed
111
236
  ```
112
237
 
113
238
  ### Multiple Sources
114
239
 
115
240
  ```bash
116
- # Fetch multiple at once
117
241
  npx opensrc react react-dom next
118
242
  npx opensrc zod pypi:pydantic vercel/ai
119
243
  ```
120
244
 
245
+ ### Cleanup
246
+
247
+ ```bash
248
+ # Remove one source
249
+ npx opensrc remove <package>
250
+
251
+ # Remove all sources
252
+ npx opensrc clean
253
+
254
+ # Remove by ecosystem
255
+ npx opensrc clean --npm --pypi --crates
256
+ ```
257
+
258
+ ## Success Criteria
259
+
260
+ You are done when all are true:
261
+
262
+ - [ ] Fetched the correct package/repo and version
263
+ - [ ] Located the exact implementation path relevant to the question
264
+ - [ ] Verified behavior by reading source (not only types/docs)
265
+ - [ ] Captured file:line evidence for major claims
266
+ - [ ] Answered the original question with explicit confidence
267
+ - [ ] Documented caveats (version bounds, private API risks)
268
+
121
269
  ## References
122
270
 
123
- For detailed information:
271
+ Core opensrc references:
124
272
 
125
273
  - [CLI Usage & Options](references/cli-usage.md) - Full command reference
126
274
  - [Architecture](references/architecture.md) - Code structure and extension
127
275
  - [Registry Support](references/registry-support.md) - npm, PyPI, crates.io details
276
+
277
+ Research workflow references (merged from source-code-research):
278
+
279
+ - [Common Patterns](references/common-patterns.md) - Error handling, tracing behavior, quality evaluation patterns
280
+ - [Source Structure](references/source-structure.md) - npm/PyPI/Rust source layouts
281
+ - [Analysis Tips](references/analysis-tips.md) - Tests, examples, changelog, types, blame
282
+ - [Example Workflow](references/example-workflow.md) - End-to-end library investigation example
283
+ - [Anti-Patterns](references/anti-patterns.md) - What not to do when researching
284
+ - [Further Reading](references/further-reading.md) - External links and complementary resources
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: pdf-extract
3
- description: Extract text, images, tables, and metadata from PDF files. Choose the right library based on extraction needs - text only, structured data, or complex layouts.
3
+ description: Use when extracting text, images, tables, or metadata from PDF files. MUST load to choose the correct extraction library based on PDF complexity simple text vs structured data vs complex layouts.
4
4
  version: 1.0.0
5
5
  tags: [research, integration]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: pencil
3
- description: OpenPencil design-as-code workflow (legacy skill name: pencil). Create/edit .op files, export code, and use desktop-bundled MCP.
3
+ description: Use when working with OpenPencil .op design files creating, editing, or exporting code from designs. MUST load before any OpenPencil workflow. Requires desktop app (npm CLI does not provide openpencil-mcp).
4
4
  version: 1.0.0
5
5
  tags: [design, openpencil, mcp, cli]
6
6
  mcp:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: playwright
3
- description: Browser automation for testing, screenshots, form validation, and UX verification. Uses Playwright CLI for token-efficient automation, with MCP fallback for complex exploratory workflows.
3
+ description: Use when running automated browser tests, taking screenshots, validating forms, or verifying UX flows. Playwright CLI for token efficiency with MCP fallback for complex exploration. Also covers agent-browser CLI alternative. MUST load before any automated browser testing.
4
4
  version: 1.0.0
5
5
  tags: [automation, mcp, testing]
6
6
  dependencies: []
@@ -16,13 +16,13 @@ dependencies: []
16
16
 
17
17
  - When you specifically need to control your existing Chrome session (use playwriter instead).
18
18
 
19
-
20
19
  ## Quick Decision
21
20
 
22
- | Scenario | Use |
23
- | --------------------------------------------------- | ------- |
24
- | Quick screenshots, simple forms, token efficiency | **CLI** |
25
- | Complex exploratory testing, self-healing workflows | **MCP** |
21
+ | Scenario | Use |
22
+ | ---------------------------------------------------------------- | ----------------------------------- |
23
+ | Quick screenshots, simple forms, token efficiency | **Playwright CLI** |
24
+ | Native binary speed + persistent isolated daemon-backed sessions | **agent-browser CLI** (alternative) |
25
+ | Complex exploratory testing, self-healing workflows | **MCP** |
26
26
 
27
27
  ---
28
28
 
@@ -30,6 +30,18 @@ dependencies: []
30
30
 
31
31
  The CLI approach is **token-efficient** - no large schemas or verbose accessibility trees in context. Best for most automation tasks.
32
32
 
33
+ ### Alternative: agent-browser CLI
34
+
35
+ - `agent-browser` is a Playwright-based automation stack with a **Rust binary** front-end and a **Node.js daemon** back-end.
36
+ - Commands execute through the native CLI while the daemon keeps browser state warm between calls.
37
+ - Uses the same snapshot-ref interaction pattern (`snapshot` → `@eN` refs → `click/fill/...`) as Playwright workflows.
38
+ - Prefer this alternative when you want native binary command performance on repeated operations.
39
+ - Prefer this alternative when you need explicitly isolated named sessions backed by persistent daemons.
40
+ - Good fit for multi-session parallel workflows where each session keeps independent browser/auth/storage state.
41
+ - Keep defaulting to `playwright-cli` for broad compatibility and token-efficient standard flows.
42
+ - Use MCP mode when you need richer introspection or complex exploratory automation.
43
+ - Full command and options reference lives at: `./references/agent-browser-cli.md`.
44
+
33
45
  ### Installation
34
46
 
35
47
  ```bash
@@ -1,11 +1,3 @@
1
- ---
2
- name: agent-browser
3
- description: Browser automation CLI for AI agents using Playwright
4
- version: 1.0.0
5
- tags: [automation, mcp]
6
- dependencies: []
7
- ---
8
-
9
1
  # agent-browser
10
2
 
11
3
  ## When to Use
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: playwriter
3
- description: Browser automation via Chrome extension. Single execute tool with full Playwright API. Uses your existing browser with extensions, sessions, cookies. 90% less context than traditional browser MCP.
3
+ description: Use when you need browser automation using the user's existing Chrome with extensions, sessions, and cookies intact. 90% less context than traditional browser MCP. Prefer over playwright skill when existing session state matters.
4
4
  mcp:
5
5
  playwriter:
6
6
  command: npx
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: polar
3
- description: Polar payment platform integration for monetization, subscriptions, and license keys. Use when implementing checkout, managing products, or building customer portals.
3
+ description: Use when implementing payment flows, subscriptions, license keys, or customer portals with Polar. MUST load before writing any checkout, monetization, or billing code using Polar platform.
4
4
  version: 1.0.0
5
5
  tags: [integration, mcp]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: prd
3
- description: Create Product Requirements Documents (PRDs) that define the end state of a feature. Use when planning new features, migrations, or refactors. Generates structured PRDs with acceptance criteria.
3
+ description: Use when planning new features, migrations, or refactors that need a structured requirements document. MUST load before writing any PRD or defining acceptance criteria for a feature.
4
4
  version: 1.0.0
5
5
  tags: [planning, documentation]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: react-best-practices
3
- description: React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
3
+ description: MUST load when writing, reviewing, or refactoring React/Next.js code for performance. Covers Vercel Engineering patterns components, data fetching, bundle optimization, server components. Critical for any Next.js performance work.
4
4
  version: 1.0.0
5
5
  tags: [ui, code-quality]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: redesign-existing-projects
3
- description: Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
3
+ description: Use when upgrading an existing website or app's visual design to premium quality. Audits current design, identifies generic AI patterns, applies high-end standards without breaking functionality. MUST load before any design overhaul of existing projects.
4
4
  ---
5
5
 
6
6
  # Redesign Skill
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: resend
3
- description: Use when working with Resend email platform - sending transactional emails, receiving inbound emails, creating email templates with React Email, handling webhooks, or integrating email into applications.
3
+ description: MUST load before sending transactional emails, creating React Email templates, handling email webhooks, or any Resend platform integration. Covers send, receive inbound, templates, and webhook handling.
4
4
  references:
5
5
  - send-email
6
6
  - receive-email
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: stitch
3
- description: Google Stitch UI generation via native plugin. Generate screens from text, edit designs, create variants. Use when working with Stitch designs and UI generation.
3
+ description: Use when generating, editing, or creating variants of UI screens in Google Stitch. MUST load before any stitch_generate_screen or stitch_edit_screens tool calls.
4
4
  version: 2.0.0
5
5
  tags: [design, ui, stitch]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: stitch-design-taste
3
- description: Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.
3
+ description: Use when generating DESIGN.md files for Google Stitch projects to enforce premium, anti-generic UI standards. Load BEFORE stitch skill when design quality matters. Stitch-specific only do not use for general web projects.
4
4
  ---
5
5
 
6
6
  # Stitch Design Taste — Semantic Design System Skill
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: supabase
3
- description: Comprehensive Supabase platform MCP for database operations, edge functions, development tools, debugging, and project management. Use when working with Supabase projects, databases, or APIs.
3
+ description: Use when working with any Supabase service database operations, edge functions, auth, storage, or project management. MUST load before writing Supabase queries, RLS policies, or edge functions.
4
4
  version: 1.0.0
5
5
  tags: [integration, mcp]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: supabase-postgres-best-practices
3
- description: Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
3
+ description: MUST load when writing, reviewing, or optimizing Postgres queries, schema designs, indexes, or RLS policies in Supabase. Covers Supabase-specific Postgres performance patterns and common pitfalls.
4
4
  version: 1.0.0
5
5
  tags: [integration, code-quality]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: v0
3
- description: AI-powered UI generation via v0 MCP. Create chats, generate React components, get design assistance. Use when building UI components, dashboards, or need AI design help.
3
+ description: Use when you need AI-powered UI generation for React components, dashboards, or quick prototypes via v0. MUST load before creating v0 chats or generating components via v0 MCP.
4
4
  mcp:
5
5
  v0:
6
6
  command: npx
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: v1-run
3
- description: npm package intelligence via MCP. Real-time versions, vulnerability data, health scores, and package comparisons. Use when selecting npm packages, checking for vulnerabilities, or comparing alternatives.
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
4
  version: 1.0.0
5
5
  tags: [integration, mcp, research]
6
6
  dependencies: []
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: webclaw
3
- description: Web content extraction, crawling, and scraping via webclaw MCP server. Use when fetching URLs fails (403), when crawling doc sites, batch-extracting pages, tracking content changes, or extracting brand identity from websites.
3
+ description: MUST load when webfetch returns 403 or bot protection errors, when crawling documentation sites, batch-extracting pages, or extracting brand identity. Primary web scraping tool — prefer over webfetch for all non-trivial scraping.
4
4
  ---
5
5
 
6
6
  # Webclaw Skill
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: writing-skills
3
- description: "Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization"
3
+ description: "Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization. Includes complete pressure testing methodology."
4
4
  version: 1.0.0
5
5
  tags: [documentation, workflow]
6
6
  dependencies: []
@@ -211,12 +211,48 @@ Run same scenarios WITH skill. Agent should now comply.
211
211
 
212
212
  Agent found new rationalization? Add explicit counter. Re-test until bulletproof.
213
213
 
214
- **REQUIRED SUB-SKILL:** Use skill({ name: "testing-skills-with-subagents" }) for the complete testing methodology:
214
+ **DETAILED TESTING METHODOLOGY:** See `references/testing-methodology.md` for the complete testing guide:
215
215
 
216
- - How to write pressure scenarios
217
- - Pressure types (time, sunk cost, authority, exhaustion)
218
- - Plugging holes systematically
219
- - Meta-testing techniques
216
+ - Full RED-GREEN-REFACTOR testing workflow for skills
217
+ - Scenario templates and pressure campaign examples
218
+ - Rationalization hardening patterns and iteration loops
219
+ - End-to-end checklists and worked examples
220
+
221
+ ### Inline Testing Summary (Merged Essentials)
222
+
223
+ Use this quick inline summary while authoring; use `references/testing-methodology.md` for full details.
224
+
225
+ #### Pressure scenarios (test format)
226
+
227
+ - Test behavior under realistic stress, not quiz-style prompts
228
+ - Force concrete A/B/C choices so violations are observable
229
+ - Combine at least 3 pressures per scenario for discipline skills
230
+ - Capture exact rationalizations verbatim during RED
231
+
232
+ | Pressure Type | What to Inject |
233
+ | --------------- | ------------------------------------------- |
234
+ | Time | Deadline, production incident, deploy clock |
235
+ | Sunk cost | Hours already spent, large diff to discard |
236
+ | Authority | Senior/manager asking to skip process |
237
+ | Economic | Revenue loss, promotion/job pressure |
238
+ | Exhaustion | End-of-day fatigue, urgency to finish |
239
+ | Social | Fear of looking rigid or uncooperative |
240
+ | Pragmatic frame | "Be practical, not dogmatic" framing |
241
+
242
+ #### Meta-testing (after failure)
243
+
244
+ When agent fails with skill loaded, ask how the skill should be rewritten to make the right choice unambiguous.
245
+
246
+ - If response is "skill was clear, I ignored it" → strengthen foundational principle
247
+ - If response is "skill should explicitly say X" → add X verbatim
248
+ - If response is "I missed section Y" → improve placement/prominence
249
+
250
+ #### Exit criteria for bulletproof skills
251
+
252
+ - Agent chooses correct action under maximum pressure
253
+ - Agent cites relevant sections to justify action
254
+ - No new rationalizations emerge across retests
255
+ - Meta-test confirms clarity, not ambiguity
220
256
 
221
257
  ## STOP: Before Moving to Next Skill
222
258
 
@@ -281,6 +317,7 @@ Deploying untested skills = deploying untested code. It's a violation of quality
281
317
  - `references/claude-search-optimization.md` - CSO guidance: descriptions, keywords, token efficiency, cross-references
282
318
  - `references/flowcharts-and-examples.md` - Flowchart usage rules and code example guidance
283
319
  - `references/file-organization.md` - Patterns for self-contained vs heavy-reference skills
320
+ - `references/testing-methodology.md` - Complete pressure-testing methodology merged from testing-skills-with-subagents
284
321
  - `references/testing-skill-types.md` - How to test discipline, technique, pattern, and reference skills
285
322
  - `references/rationalization-hardening.md` - Loophole closure, rationalization tables, red flags
286
323
  - `references/anti-patterns.md` - Anti-patterns to avoid
@@ -1,11 +1,3 @@
1
- ---
2
- name: testing-skills-with-subagents
3
- description: Use when creating or editing skills, before deployment, to verify they work under pressure and resist rationalization - applies RED-GREEN-REFACTOR cycle to process documentation by running baseline without skill, writing to address failures, iterating to close loopholes
4
- version: 1.0.0
5
- tags: [testing, agent-coordination]
6
- dependencies: [writing-skills]
7
- ---
8
-
9
1
  # Testing Skills With Subagents
10
2
 
11
3
  ## When to Use
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencodekit",
3
- "version": "0.19.6",
3
+ "version": "0.20.1",
4
4
  "description": "CLI tool for bootstrapping and managing OpenCodeKit projects",
5
5
  "keywords": [
6
6
  "agents",