opencode-skills-collection 3.1.10 → 3.1.11
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/bundled-skills/.antigravity-install-manifest.json +8 -1
- package/bundled-skills/browser-testing-with-devtools/SKILL.md +334 -0
- package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
- package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
- package/bundled-skills/docs/sources/sources.md +4 -0
- package/bundled-skills/docs/users/bundles.md +1 -1
- package/bundled-skills/docs/users/claude-code-skills.md +1 -1
- package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
- package/bundled-skills/docs/users/getting-started.md +1 -1
- package/bundled-skills/docs/users/kiro-integration.md +1 -1
- package/bundled-skills/docs/users/usage.md +4 -4
- package/bundled-skills/docs/users/visual-guide.md +4 -4
- package/bundled-skills/drizzle-migration-conflict/SKILL.md +179 -0
- package/bundled-skills/drizzle-migration-conflict/references/ci-policy.md +87 -0
- package/bundled-skills/drizzle-migration-conflict/references/conflict-resolution.md +163 -0
- package/bundled-skills/drizzle-migration-conflict/references/report-template.md +69 -0
- package/bundled-skills/drizzle-migration-conflict/references/sources.md +51 -0
- package/bundled-skills/drizzle-migration-conflict/scripts/check_drizzle_migrations.py +721 -0
- package/bundled-skills/frontend-lighthouse/SKILL.md +348 -0
- package/bundled-skills/pre-release-review/SKILL.md +198 -0
- package/bundled-skills/pre-release-review/references/checklist.md +104 -0
- package/bundled-skills/pre-release-review/references/report-template.md +91 -0
- package/bundled-skills/re-create/SKILL.md +251 -0
- package/bundled-skills/weaviate/SKILL.md +132 -0
- package/bundled-skills/weaviate/references/ask.md +36 -0
- package/bundled-skills/weaviate/references/create_collection.md +152 -0
- package/bundled-skills/weaviate/references/environment_requirements.md +34 -0
- package/bundled-skills/weaviate/references/example_data.md +24 -0
- package/bundled-skills/weaviate/references/explore_collection.md +50 -0
- package/bundled-skills/weaviate/references/fetch_filter.md +88 -0
- package/bundled-skills/weaviate/references/get_collection.md +32 -0
- package/bundled-skills/weaviate/references/hybrid_search.md +47 -0
- package/bundled-skills/weaviate/references/import_data.md +160 -0
- package/bundled-skills/weaviate/references/keyword_search.md +38 -0
- package/bundled-skills/weaviate/references/list_collections.md +31 -0
- package/bundled-skills/weaviate/references/query_search.md +38 -0
- package/bundled-skills/weaviate/references/semantic_search.md +46 -0
- package/bundled-skills/weaviate/scripts/ask.py +106 -0
- package/bundled-skills/weaviate/scripts/create_collection.py +359 -0
- package/bundled-skills/weaviate/scripts/example_data.py +945 -0
- package/bundled-skills/weaviate/scripts/explore_collection.py +295 -0
- package/bundled-skills/weaviate/scripts/fetch_filter.py +261 -0
- package/bundled-skills/weaviate/scripts/get_collection.py +122 -0
- package/bundled-skills/weaviate/scripts/hybrid_search.py +157 -0
- package/bundled-skills/weaviate/scripts/import.py +701 -0
- package/bundled-skills/weaviate/scripts/keyword_search.py +142 -0
- package/bundled-skills/weaviate/scripts/list_collections.py +77 -0
- package/bundled-skills/weaviate/scripts/query_search.py +135 -0
- package/bundled-skills/weaviate/scripts/semantic_search.py +139 -0
- package/bundled-skills/weaviate/scripts/weaviate_conn.py +231 -0
- package/bundled-skills/weaviate-cookbooks/SKILL.md +67 -0
- package/bundled-skills/weaviate-cookbooks/references/advanced_rag.md +274 -0
- package/bundled-skills/weaviate-cookbooks/references/agentic_rag.md +360 -0
- package/bundled-skills/weaviate-cookbooks/references/async_client.md +428 -0
- package/bundled-skills/weaviate-cookbooks/references/basic_agent.md +270 -0
- package/bundled-skills/weaviate-cookbooks/references/basic_rag.md +219 -0
- package/bundled-skills/weaviate-cookbooks/references/data_explorer.md +336 -0
- package/bundled-skills/weaviate-cookbooks/references/environment_requirements.md +78 -0
- package/bundled-skills/weaviate-cookbooks/references/frontend_interface.md +104 -0
- package/bundled-skills/weaviate-cookbooks/references/pdf_multimodal_rag.md +635 -0
- package/bundled-skills/weaviate-cookbooks/references/project_setup.md +75 -0
- package/bundled-skills/weaviate-cookbooks/references/query_agent_chatbot.md +163 -0
- package/package.json +1 -1
- package/skills_index.json +156 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Frontend Interface (Next.js + Weaviate Backend)
|
|
2
|
+
|
|
3
|
+
## Quick reference
|
|
4
|
+
|
|
5
|
+
| Item | Value |
|
|
6
|
+
| ------------ | ------------------------------------------------------------------------------------------- |
|
|
7
|
+
| **Stack** | Next.js (App Router), Tailwind v4, shadcn/ui, Framer Motion, react-icons, ai-sdk |
|
|
8
|
+
| **Node** | v25.3.0+ |
|
|
9
|
+
| **Backend** | `NEXT_PUBLIC_BACKEND_HOST` (default: `localhost:8000`) |
|
|
10
|
+
| **App type** | Single-page app; main view updates in place, no full-page navigations |
|
|
11
|
+
| **Layout** | shadcn Sidebar (left) + main content area; sidebar buttons switch the main view per feature |
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Setup (run in order)
|
|
16
|
+
|
|
17
|
+
### 1. Next.js
|
|
18
|
+
|
|
19
|
+
- **Command:** `npx create-next-app@latest . --yes` (run from repo root; may need `required_permissions: ["all"]` in sandbox)
|
|
20
|
+
- **Result:** TypeScript, ESLint, Tailwind v4, App Router, Turbopack, `@/*` → `./*`, no `src/`. App in `app/`, static in `public/`.
|
|
21
|
+
- **Scripts:** `dev` | `build` | `start` | `lint`. Dev server: http://localhost:3000.
|
|
22
|
+
- **Routes:** `app/layout.tsx`, `app/page.tsx`. Imports: `@/` = project root.
|
|
23
|
+
- **Ref:** [Next.js App Router Installation](https://nextjs.org/docs/app/getting-started/installation) — verify against current docs.
|
|
24
|
+
|
|
25
|
+
### 2. shadcn/ui
|
|
26
|
+
|
|
27
|
+
- **Requires:** Next.js + Tailwind v4 + App Router + `@/*`, no `src/`.
|
|
28
|
+
- **Init:** `npx shadcn@latest init -t next -y -b zinc --no-src-dir`
|
|
29
|
+
- **Add components:** `npx shadcn@latest add button -y` (e.g. `card`, `dialog`, `input`; `-o` overwrites).
|
|
30
|
+
- **Output:** `components.json`, `lib/utils.ts` (cn), `app/globals.css` (tw-animate, shadcn/tailwind.css, CSS vars). UI in `components/ui/<name>.tsx`. Import: `import { Button } from "@/components/ui/button"`.
|
|
31
|
+
- **Ref:** [shadcn Next.js](https://ui.shadcn.com/docs/installation/next) | [CLI](https://ui.shadcn.com/docs/cli).
|
|
32
|
+
|
|
33
|
+
### 3. Framer Motion
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm i framer-motion
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
- **Ref:** [Framer Motion](https://motion.dev/)
|
|
40
|
+
|
|
41
|
+
### 4. AI SDK (optional)
|
|
42
|
+
|
|
43
|
+
Note: Install only when create a conversational user interface for your chatbot application. It enables the streaming of chat messagesyou need to stream responses from the backend using useChat().
|
|
44
|
+
|
|
45
|
+
- **When:** Add this step only if the app needs a chat UI (e.g. query-agent or chatbot flows).
|
|
46
|
+
- **Stack:** Use the [Vercel AI SDK](https://ai-sdk.dev/docs/introduction) (`ai` + `@ai-sdk/*`). Use `useChat` and SDK UI primitives for the chat view.
|
|
47
|
+
- **Ref:** [AI SDK – useChat](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat) | [Next.js App Router setup](https://ai-sdk.dev/docs/getting-started/nextjs-app-router) — follow current docs for install and wiring.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm i ai @ai-sdk/react zod
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 5. Environment
|
|
54
|
+
|
|
55
|
+
**Required:**
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
NEXT_PUBLIC_BACKEND_HOST="localhost:8000"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Use the actual backend host when not local.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Rules (must follow)
|
|
66
|
+
|
|
67
|
+
### Stack and structure
|
|
68
|
+
|
|
69
|
+
- **UI:** Use **shadcn components only** for layout and interactive elements (buttons, cards, inputs, dialogs, etc.). Do not add another UI library.
|
|
70
|
+
- **Architecture:** **SPA** — one main page, update main view in place. Avoid full-page navigations unless necessary.
|
|
71
|
+
- **Icons:** Use **react-icons** only; prefer one set (e.g. `react-icons/fa` or `react-icons/hi`) for consistency.
|
|
72
|
+
- **Animation:** Use **Framer Motion** only. Do not add another animation library.
|
|
73
|
+
|
|
74
|
+
### Visual style
|
|
75
|
+
|
|
76
|
+
- **Goal:** Minimal, sleek, clean. No clutter, heavy borders, or noisy backgrounds.
|
|
77
|
+
- **Aesthetic:** “Liquid glass” — frosted, translucent; soft blur; light borders and shadows; depth without heaviness. Use `backdrop-blur`, semi-transparent fills, subtle gradients where they support this.
|
|
78
|
+
|
|
79
|
+
### Motion
|
|
80
|
+
|
|
81
|
+
- **Style:** Subtle, springy, purposeful (fade in, hover, enter/exit). Prefer spring physics over linear/ease-out.
|
|
82
|
+
|
|
83
|
+
### Layout
|
|
84
|
+
|
|
85
|
+
1. **Left:** shadcn **Sidebar** component.
|
|
86
|
+
2. **Right:** Main content area.
|
|
87
|
+
3. **Navigation:** One sidebar button per backend feature (e.g. data explorer, chat). Click switches the main view only.
|
|
88
|
+
|
|
89
|
+
### Responsiveness
|
|
90
|
+
|
|
91
|
+
- Layout and components must work on small and large screens.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Docs (verify against current versions)
|
|
96
|
+
|
|
97
|
+
- [FastAPI](https://fastapi.tiangolo.com/) | [GitHub](https://github.com/fastapi/fastapi)
|
|
98
|
+
- [Node.js](https://nodejs.org/en)
|
|
99
|
+
- [Next.js](https://nextjs.org/docs)
|
|
100
|
+
- [Tailwind (Next.js)](https://tailwindcss.com/docs/installation/framework-guides/nextjs)
|
|
101
|
+
- [shadcn components](https://ui.shadcn.com/docs/components)
|
|
102
|
+
- [react-icons](https://react-icons.github.io/react-icons)
|
|
103
|
+
- [Framer Motion](https://motion.dev/)
|
|
104
|
+
- [AI SDK](https://ai-sdk.dev/docs/introduction)
|