opencodekit 0.19.5 → 0.20.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/command/compound.md +4 -3
- package/dist/template/.opencode/command/create.md +6 -11
- package/dist/template/.opencode/command/design.md +3 -3
- package/dist/template/.opencode/command/handoff.md +4 -2
- package/dist/template/.opencode/command/init-context.md +79 -55
- package/dist/template/.opencode/command/init-user.md +11 -6
- package/dist/template/.opencode/command/init.md +1 -3
- package/dist/template/.opencode/command/lfg.md +4 -2
- package/dist/template/.opencode/command/plan.md +9 -9
- package/dist/template/.opencode/command/pr.md +5 -1
- package/dist/template/.opencode/command/resume.md +4 -4
- package/dist/template/.opencode/command/review-codebase.md +4 -4
- package/dist/template/.opencode/command/ship.md +5 -7
- package/dist/template/.opencode/command/start.md +8 -10
- package/dist/template/.opencode/command/status.md +1 -1
- package/dist/template/.opencode/command/ui-slop-check.md +6 -6
- package/dist/template/.opencode/command/verify.md +4 -4
- package/dist/template/.opencode/dcp-prompts/defaults/compress-message.md +1 -0
- package/dist/template/.opencode/dcp.jsonc +1 -1
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +3 -5
- package/dist/template/.opencode/skill/chrome-devtools/SKILL.md +1 -1
- package/dist/template/.opencode/skill/cloudflare/SKILL.md +1 -1
- package/dist/template/.opencode/skill/context-initialization/SKILL.md +16 -17
- package/dist/template/.opencode/skill/context-management/SKILL.md +306 -79
- package/dist/template/.opencode/skill/core-data-expert/SKILL.md +1 -1
- package/dist/template/.opencode/skill/design-system-audit/SKILL.md +1 -1
- package/dist/template/.opencode/skill/design-taste-frontend/SKILL.md +1 -1
- package/dist/template/.opencode/skill/figma/SKILL.md +1 -1
- package/dist/template/.opencode/skill/figma-go/SKILL.md +1 -1
- package/dist/template/.opencode/skill/frontend-design/SKILL.md +1 -1
- package/dist/template/.opencode/skill/full-output-enforcement/SKILL.md +1 -1
- package/dist/template/.opencode/skill/high-end-visual-design/SKILL.md +1 -1
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +1 -1
- package/dist/template/.opencode/skill/industrial-brutalist-ui/SKILL.md +1 -1
- package/dist/template/.opencode/skill/jira/SKILL.md +1 -1
- package/dist/template/.opencode/skill/minimalist-ui/SKILL.md +1 -1
- package/dist/template/.opencode/skill/mqdh/SKILL.md +1 -1
- package/dist/template/.opencode/skill/opensrc/SKILL.md +184 -27
- package/dist/template/.opencode/skill/pdf-extract/SKILL.md +1 -1
- package/dist/template/.opencode/skill/pencil/SKILL.md +1 -1
- package/dist/template/.opencode/skill/playwright/SKILL.md +18 -6
- package/dist/template/.opencode/skill/{agent-browser/SKILL.md → playwright/references/agent-browser-cli.md} +0 -8
- package/dist/template/.opencode/skill/playwriter/SKILL.md +1 -1
- package/dist/template/.opencode/skill/polar/SKILL.md +1 -1
- package/dist/template/.opencode/skill/prd/SKILL.md +1 -1
- package/dist/template/.opencode/skill/react-best-practices/SKILL.md +1 -1
- package/dist/template/.opencode/skill/redesign-existing-projects/SKILL.md +1 -1
- package/dist/template/.opencode/skill/resend/SKILL.md +1 -1
- package/dist/template/.opencode/skill/stitch/SKILL.md +1 -1
- package/dist/template/.opencode/skill/stitch-design-taste/SKILL.md +1 -1
- package/dist/template/.opencode/skill/supabase/SKILL.md +1 -1
- package/dist/template/.opencode/skill/supabase-postgres-best-practices/SKILL.md +1 -1
- package/dist/template/.opencode/skill/tilth-cli/SKILL.md +47 -20
- package/dist/template/.opencode/skill/v0/SKILL.md +1 -1
- package/dist/template/.opencode/skill/v1-run/SKILL.md +1 -1
- package/dist/template/.opencode/skill/webclaw/SKILL.md +1 -1
- package/dist/template/.opencode/skill/writing-skills/SKILL.md +43 -6
- package/dist/template/.opencode/skill/{testing-skills-with-subagents/SKILL.md → writing-skills/references/testing-methodology.md} +0 -8
- package/package.json +1 -1
- package/dist/template/.opencode/skill/compaction/SKILL.md +0 -384
- package/dist/template/.opencode/skill/session-management/SKILL.md +0 -9
- package/dist/template/.opencode/skill/source-code-research/SKILL.md +0 -293
- package/dist/template/.opencode/skill/ui-ux-research/SKILL.md +0 -9
- package/dist/template/.opencode/skill/using-skills/SKILL.md +0 -117
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/analysis-tips.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/anti-patterns.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/common-patterns.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/example-workflow.md +0 -0
- /package/dist/template/.opencode/skill/{source-code-research → opensrc}/references/further-reading.md +0 -0
- /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:
|
|
4
|
-
version: 1.
|
|
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
|
-
|
|
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
|
|
16
|
+
- Debugging issues where types or docs are insufficient
|
|
24
17
|
- Exploring implementation patterns in dependencies
|
|
25
|
-
-
|
|
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
|
|
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
|
|
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
|
|
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`
|
|
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
|
-
#
|
|
224
|
+
# Understand zod implementation
|
|
97
225
|
npx opensrc zod
|
|
98
|
-
# →
|
|
99
|
-
# →
|
|
100
|
-
# →
|
|
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
|
|
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
|
-
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
23
|
-
|
|
|
24
|
-
| Quick screenshots, simple forms, token efficiency
|
|
25
|
-
|
|
|
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,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: playwriter
|
|
3
|
-
description:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: tilth-cli
|
|
3
3
|
description: AST-aware code navigation via tilth CLI. Use when subagents need structural code search, smart file reading, or codebase mapping — complements MCP tilth (which only the main agent can access).
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
tags: [code-navigation, search, subagent]
|
|
6
6
|
dependencies: []
|
|
7
7
|
---
|
|
@@ -58,20 +58,31 @@ Output: numbered lines (`N content`). Large files get a structural outline; use
|
|
|
58
58
|
```bash
|
|
59
59
|
npx -y tilth initCommand --scope src/ # Find definition + all usages
|
|
60
60
|
npx -y tilth handleAuth --scope src/auth/ # Scoped to subdirectory
|
|
61
|
+
npx -y tilth "sym1,sym2" --scope src/ # Multi-symbol search (max 5)
|
|
61
62
|
```
|
|
62
63
|
|
|
63
64
|
Returns: definitions first (with expanded source), then usages with context lines.
|
|
64
65
|
|
|
65
|
-
### 3. Search for Text
|
|
66
|
+
### 3. Search for Text / Regex
|
|
66
67
|
|
|
67
68
|
```bash
|
|
68
69
|
npx -y tilth "TODO" --scope src/ # Literal text search
|
|
69
70
|
npx -y tilth "version" --scope src/ # Finds all occurrences
|
|
71
|
+
npx -y tilth --kind content "config" --scope src/ # Explicit content search
|
|
72
|
+
npx -y tilth --kind regex "/TODO.*fix/" --scope src/ # Regex search
|
|
70
73
|
```
|
|
71
74
|
|
|
72
|
-
tilth auto-detects text vs symbol. Identifiers (camelCase, snake_case) → symbol search. Multi-word or quoted strings → text search.
|
|
75
|
+
tilth auto-detects text vs symbol. Identifiers (camelCase, snake_case) → symbol search. Multi-word or quoted strings → text search. Use `--kind` to force a specific search mode.
|
|
73
76
|
|
|
74
|
-
### 4.
|
|
77
|
+
### 4. Find Callers
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx -y tilth --kind callers initCommand --scope src/ # Find all call sites
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Uses SIMD-accelerated pre-filtering + tree-sitter AST parsing. More accurate than text grep for finding actual function calls vs. comments/strings.
|
|
84
|
+
|
|
85
|
+
### 5. List Files (Glob)
|
|
75
86
|
|
|
76
87
|
```bash
|
|
77
88
|
npx -y tilth "*.test.ts" --scope src/ # List test files
|
|
@@ -80,27 +91,37 @@ npx -y tilth "*.ts" --scope src/commands/ # List TS files in subdir
|
|
|
80
91
|
|
|
81
92
|
Returns: matched file paths with token size estimates.
|
|
82
93
|
|
|
83
|
-
###
|
|
94
|
+
### 6. Blast-Radius Analysis (Deps)
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npx -y tilth --deps src/utils/errors.ts # What imports this file + what it imports
|
|
98
|
+
npx -y tilth --deps src/commands/init.ts --scope src/ # Scoped dependency check
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Shows imports (local + external) AND what other files call its exports, with symbol-level detail. Use before renaming/removing exports.
|
|
102
|
+
|
|
103
|
+
### 7. Codebase Map (CLI-Only)
|
|
84
104
|
|
|
85
105
|
```bash
|
|
86
106
|
npx -y tilth --map --scope src/ # Structural skeleton
|
|
87
107
|
npx -y tilth --map --scope . # Whole project
|
|
88
108
|
```
|
|
89
109
|
|
|
90
|
-
Returns: directory tree with exported symbols per file. **CLI-only** —
|
|
110
|
+
Returns: directory tree with exported symbols per file. **CLI-only** — deliberately excluded from MCP (agents overuse it).
|
|
91
111
|
|
|
92
112
|
## Available Flags
|
|
93
113
|
|
|
94
|
-
| Flag | Purpose
|
|
95
|
-
| ------------------- |
|
|
96
|
-
| `--scope <DIR>` | Restrict search to directory
|
|
97
|
-
| `--section <RANGE>` | Line range or heading for file reads
|
|
98
|
-
| `--full` | Force full file content (skip outline)
|
|
99
|
-
| `--budget <N>` | Max tokens in response
|
|
100
|
-
| `--json` | Machine-readable JSON output
|
|
101
|
-
| `--map` | Generate codebase structure map
|
|
102
|
-
|
|
103
|
-
|
|
114
|
+
| Flag | Purpose | Example |
|
|
115
|
+
| ------------------- | ---------------------------------------- | --------------------------- |
|
|
116
|
+
| `--scope <DIR>` | Restrict search to directory | `--scope src/` |
|
|
117
|
+
| `--section <RANGE>` | Line range or heading for file reads | `--section 45-89` |
|
|
118
|
+
| `--full` | Force full file content (skip outline) | `--full` |
|
|
119
|
+
| `--budget <N>` | Max tokens in response | `--budget 2000` |
|
|
120
|
+
| `--json` | Machine-readable JSON output | `--json` |
|
|
121
|
+
| `--map` | Generate codebase structure map | `--map --scope src/` |
|
|
122
|
+
| `--kind <TYPE>` | Force search type: symbol/content/regex/callers | `--kind callers` |
|
|
123
|
+
| `--deps` | Show blast-radius (imports + dependents) | `--deps src/file.ts` |
|
|
124
|
+
| `--expand <N>` | Top N matches to show full source | `--expand 3` |
|
|
104
125
|
|
|
105
126
|
## MCP vs CLI Comparison
|
|
106
127
|
|
|
@@ -108,10 +129,10 @@ Returns: directory tree with exported symbols per file. **CLI-only** — not ava
|
|
|
108
129
|
| ------------------------------------- | ---------------- | ------------------- |
|
|
109
130
|
| Session dedup (`[shown earlier]`) | Yes | No |
|
|
110
131
|
| Hash-anchored editing (`tilth_edit`) | Yes | No |
|
|
111
|
-
| Blast-radius analysis (`
|
|
112
|
-
| Multi-symbol search (`sym1,sym2`) | Yes |
|
|
113
|
-
| `--kind` flag (content/regex/callers) | Yes |
|
|
114
|
-
| `--expand` control | Yes |
|
|
132
|
+
| Blast-radius analysis (`--deps`) | Yes | Yes (v0.5.7+) |
|
|
133
|
+
| Multi-symbol search (`sym1,sym2`) | Yes | Yes (v0.5.7+) |
|
|
134
|
+
| `--kind` flag (content/regex/callers) | Yes | Yes (v0.5.7+) |
|
|
135
|
+
| `--expand` control | Yes | Yes (v0.5.7+) |
|
|
115
136
|
| `--map` codebase skeleton | No | Yes |
|
|
116
137
|
| Subagent access | No (main only) | Yes (any with Bash) |
|
|
117
138
|
| Process overhead | Once (~17ms) | Per call (~17ms) |
|
|
@@ -161,6 +182,8 @@ utils/
|
|
|
161
182
|
- **Use `--scope`** to narrow searches — avoids scanning irrelevant directories
|
|
162
183
|
- **Use `--budget`** when you need concise output (limits token count)
|
|
163
184
|
- **~17ms per call** — fast enough for interactive use, but avoid unnecessary repeated calls
|
|
185
|
+
- **Use `--kind callers`** for precise call-site analysis instead of text grep
|
|
186
|
+
- **Use `--deps`** before renaming or removing exports to check blast radius
|
|
164
187
|
|
|
165
188
|
## Example Subagent Dispatch
|
|
166
189
|
|
|
@@ -171,6 +194,10 @@ task({
|
|
|
171
194
|
|
|
172
195
|
Find the definition of \`initCommand\` and understand how it's called:
|
|
173
196
|
npx -y tilth initCommand --scope src/
|
|
197
|
+
npx -y tilth --kind callers initCommand --scope src/
|
|
198
|
+
|
|
199
|
+
Check blast radius before editing:
|
|
200
|
+
npx -y tilth --deps src/commands/init.ts
|
|
174
201
|
|
|
175
202
|
Then read the relevant file section:
|
|
176
203
|
npx -y tilth src/commands/init.ts --section 515-600
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: v0
|
|
3
|
-
description: AI-powered UI generation
|
|
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:
|
|
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:
|
|
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
|