[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75CJPKJK32XVTBVHVS06DH4":3,"skill-same:01M75CJPKJK32XVTBVHVS06DH4":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75CJPKJK32XVTBVHVS06DH4","convex-quickstart",null,"Creates or adds Convex to an app. Use for new Convex projects, npm create convex@latest, frontend setup, env vars, or the first npx convex dev run.","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fconvex-quickstart\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: convex-quickstart\ndescription: Creates or adds Convex to an app. Use for new Convex projects, npm create convex@latest, frontend setup, env vars, or the first npx convex dev run.\n---\n\n# Convex Quickstart\n\nSet up a working Convex project as fast as possible.\n\n## When to Use\n\n- Starting a brand new project with Convex\n- Adding Convex to an existing React, Next.js, Vue, Svelte, or other app\n- Scaffolding a Convex app for prototyping\n\n## When Not to Use\n\n- The project already has Convex installed and `convex\u002F` exists - just start building\n- You only need to add auth to an existing Convex app - use the `convex-setup-auth` skill\n\n## Workflow\n\n1. Determine the starting point: new project or existing app\n2. If new project, pick a template and scaffold with `npm create convex@latest`\n3. If existing app, install `convex` and wire up the provider\n4. Run `npx convex dev` to connect a deployment and start the dev loop\n5. Verify the setup works\n\n## Path 1: New Project (Recommended)\n\nUse the official scaffolding tool. It creates a complete project with the frontend framework, Convex backend, and all config wired together.\n\n### Pick a template\n\n| Template                   | Stack                                     |\n| -------------------------- | ----------------------------------------- |\n| `react-vite-shadcn`        | React + Vite + Tailwind + shadcn\u002Fui       |\n| `nextjs-shadcn`            | Next.js App Router + Tailwind + shadcn\u002Fui |\n| `react-vite-clerk-shadcn`  | React + Vite + Clerk auth + shadcn\u002Fui     |\n| `nextjs-clerk`             | Next.js + Clerk auth                      |\n| `nextjs-convexauth-shadcn` | Next.js + Convex Auth + shadcn\u002Fui         |\n| `nextjs-lucia-shadcn`      | Next.js + Lucia auth + shadcn\u002Fui          |\n| `bare`                     | Convex backend only, no frontend          |\n\nIf the user has not specified a preference, default to `react-vite-shadcn` for simple apps or `nextjs-shadcn` for apps that need SSR or API routes.\n\nYou can also use any GitHub repo as a template:\n\n```bash\nnpm create convex@latest my-app -- -t owner\u002Frepo\nnpm create convex@latest my-app -- -t owner\u002Frepo#branch\n```\n\n### Scaffold the project\n\nAlways pass the project name and template flag to avoid interactive prompts:\n\n```bash\nnpm create convex@latest my-app -- -t react-vite-shadcn\ncd my-app\nnpm install\n```\n\nThe scaffolding tool creates files but does not run `npm install`, so you must run it yourself.\n\nTo scaffold in the current directory (if it is empty):\n\n```bash\nnpm create convex@latest . -- -t react-vite-shadcn\nnpm install\n```\n\n### Start the dev loop\n\n`npx convex dev` is a long-running watcher process that syncs backend code to a Convex deployment on every save. It also requires authentication on first run (browser-based OAuth). Both of these make it unsuitable for an agent to run directly.\n\n**Ask the user to run this themselves:**\n\nTell the user to run `npx convex dev` in their terminal. On first run it will prompt them to log in or develop anonymously. Once running, it will:\n\n- Create a Convex project and dev deployment\n- Write the deployment URL to `.env.local`\n- Create the `convex\u002F` directory with generated types\n- Watch for changes and sync continuously\n\nThe user should keep `npx convex dev` running in the background while you work on code. The watcher will automatically pick up any files you create or edit in `convex\u002F`.\n\n**Exception - cloud or headless agents:** Environments that cannot open a browser for interactive login should use Agent Mode (see below) to run anonymously without user interaction.\n\n### Start the frontend\n\nThe user should also run the frontend dev server in a separate terminal:\n\n```bash\nnpm run dev\n```\n\nVite apps serve on `http:\u002F\u002Flocalhost:5173`, Next.js on `http:\u002F\u002Flocalhost:3000`.\n\n### What you get\n\nAfter scaffolding, the project structure looks like:\n\n```\nmy-app\u002F\n  convex\u002F           # Backend functions and schema\n    _generated\u002F     # Auto-generated types (check this into git)\n    schema.ts       # Database schema (if template includes one)\n  src\u002F              # Frontend code (or app\u002F for Next.js)\n  package.json\n  .env.local        # CONVEX_URL \u002F VITE_CONVEX_URL \u002F NEXT_PUBLIC_CONVEX_URL\n```\n\nThe template already has:\n\n- `ConvexProvider` wired into the app root\n- Correct env var names for the framework\n- Tailwind and shadcn\u002Fui ready (for shadcn templates)\n- Auth provider configured (for auth templates)\n\nProceed to adding schema, functions, and UI.\n\n## Path 2: Add Convex to an Existing App\n\nUse this when the user already has a frontend project and wants to add Convex as the backend.\n\n### Install\n\n```bash\nnpm install convex\n```\n\n### Initialize and start dev loop\n\nAsk the user to run `npx convex dev` in their terminal. This handles login, creates the `convex\u002F` directory, writes the deployment URL to `.env.local`, and starts the file watcher. See the notes in Path 1 about why the agent should not run this directly.\n\n### Wire up the provider\n\nThe Convex client must wrap the app at the root. The setup varies by framework.\n\nCreate the `ConvexReactClient` at module scope, not inside a component:\n\n```tsx\n\u002F\u002F Bad: re-creates the client on every render\nfunction App() {\n  const convex = new ConvexReactClient(\n    import.meta.env.VITE_CONVEX_URL as string,\n  );\n  return \u003CConvexProvider client={convex}>...\u003C\u002FConvexProvider>;\n}\n\n\u002F\u002F Good: created once at module scope\nconst convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string);\nfunction App() {\n  return \u003CConvexProvider client={convex}>...\u003C\u002FConvexProvider>;\n}\n```\n\n#### React (Vite)\n\n```tsx\n\u002F\u002F src\u002Fmain.tsx\nimport { StrictMode } from \"react\";\nimport { createRoot } from \"react-dom\u002Fclient\";\nimport { ConvexProvider, ConvexReactClient } from \"convex\u002Freact\";\nimport App from \".\u002FApp\";\n\nconst convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string);\n\ncreateRoot(document.getElementById(\"root\")!).render(\n  \u003CStrictMode>\n    \u003CConvexProvider client={convex}>\n      \u003CApp \u002F>\n    \u003C\u002FConvexProvider>\n  \u003C\u002FStrictMode>,\n);\n```\n\n#### Next.js (App Router)\n\n```tsx\n\u002F\u002F app\u002FConvexClientProvider.tsx\n\"use client\";\n\nimport { ConvexProvider, ConvexReactClient } from \"convex\u002Freact\";\nimport { ReactNode } from \"react\";\n\nconst convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);\n\nexport function ConvexClientProvider({ children }: { children: ReactNode }) {\n  return \u003CConvexProvider client={convex}>{children}\u003C\u002FConvexProvider>;\n}\n```\n\n```tsx\n\u002F\u002F app\u002Flayout.tsx\nimport { ConvexClientProvider } from \".\u002FConvexClientProvider\";\n\nexport default function RootLayout({\n  children,\n}: {\n  children: React.ReactNode;\n}) {\n  return (\n    \u003Chtml lang=\"en\">\n      \u003Cbody>\n        \u003CConvexClientProvider>{children}\u003C\u002FConvexClientProvider>\n      \u003C\u002Fbody>\n    \u003C\u002Fhtml>\n  );\n}\n```\n\n#### Other frameworks\n\nFor Vue, Svelte, React Native, TanStack Start, Remix, and others, follow the matching quickstart guide:\n\n- [Vue](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fvue)\n- [Svelte](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fsvelte)\n- [React Native](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Freact-native)\n- [TanStack Start](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Ftanstack-start)\n- [Remix](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fremix)\n- [Node.js (no frontend)](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fnodejs)\n\n### Environment variables\n\nThe env var name depends on the framework:\n\n| Framework    | Variable                 |\n| ------------ | ------------------------ |\n| Vite         | `VITE_CONVEX_URL`        |\n| Next.js      | `NEXT_PUBLIC_CONVEX_URL` |\n| Remix        | `CONVEX_URL`             |\n| React Native | `EXPO_PUBLIC_CONVEX_URL` |\n\n`npx convex dev` writes the correct variable to `.env.local` automatically.\n\n## Agent Mode (Cloud and Headless Agents)\n\nWhen running in a cloud or headless agent environment where interactive browser login is not possible, set `CONVEX_AGENT_MODE=anonymous` to use a local anonymous deployment.\n\nAdd `CONVEX_AGENT_MODE=anonymous` to `.env.local`, or set it inline:\n\n```bash\nCONVEX_AGENT_MODE=anonymous npx convex dev\n```\n\nThis runs a local Convex backend on the VM without requiring authentication, and avoids conflicting with the user's personal dev deployment.\n\n## Verify the Setup\n\nAfter setup, confirm everything is working:\n\n1. The user confirms `npx convex dev` is running without errors\n2. The `convex\u002F_generated\u002F` directory exists and has `api.ts` and `server.ts`\n3. `.env.local` contains the deployment URL\n\n## Writing Your First Function\n\nOnce the project is set up, create a schema and a query to verify the full loop works.\n\n`convex\u002Fschema.ts`:\n\n```ts\nimport { defineSchema, defineTable } from \"convex\u002Fserver\";\nimport { v } from \"convex\u002Fvalues\";\n\nexport default defineSchema({\n  tasks: defineTable({\n    text: v.string(),\n    completed: v.boolean(),\n  }),\n});\n```\n\n`convex\u002Ftasks.ts`:\n\n```ts\nimport { query, mutation } from \".\u002F_generated\u002Fserver\";\nimport { v } from \"convex\u002Fvalues\";\n\nexport const list = query({\n  args: {},\n  handler: async (ctx) => {\n    return await ctx.db.query(\"tasks\").collect();\n  },\n});\n\nexport const create = mutation({\n  args: { text: v.string() },\n  handler: async (ctx, args) => {\n    await ctx.db.insert(\"tasks\", { text: args.text, completed: false });\n  },\n});\n```\n\nUse in a React component (adjust the import path based on your file location relative to `convex\u002F`):\n\n```tsx\nimport { useQuery, useMutation } from \"convex\u002Freact\";\nimport { api } from \"..\u002Fconvex\u002F_generated\u002Fapi\";\n\nfunction Tasks() {\n  const tasks = useQuery(api.tasks.list);\n  const create = useMutation(api.tasks.create);\n\n  return (\n    \u003Cdiv>\n      \u003Cbutton onClick={() => create({ text: \"New task\" })}>Add\u003C\u002Fbutton>\n      {tasks?.map((t) => (\n        \u003Cdiv key={t._id}>{t.text}\u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Development vs Production\n\nAlways use `npx convex dev` during development. It runs against your personal dev deployment and syncs code on save.\n\nWhen ready to ship, deploy to production:\n\n```bash\nnpx convex deploy\n```\n\nThis pushes to the production deployment, which is separate from dev. Do not use `deploy` during development.\n\n## Next Steps\n\n- Add authentication: use the `convex-setup-auth` skill\n- Design your schema: see [Schema docs](https:\u002F\u002Fdocs.convex.dev\u002Fdatabase\u002Fschemas)\n- Build components: use the `convex-create-component` skill\n- Plan a migration: use the `convex-migration-helper` skill\n- Add file storage: see [File Storage docs](https:\u002F\u002Fdocs.convex.dev\u002Ffile-storage)\n- Set up cron jobs: see [Scheduling docs](https:\u002F\u002Fdocs.convex.dev\u002Fscheduling)\n\n## Checklist\n\n- [ ] Determined starting point: new project or existing app\n- [ ] If new project: scaffolded with `npm create convex@latest` using appropriate template\n- [ ] If existing app: installed `convex` and wired up the provider\n- [ ] User has `npx convex dev` running and connected to a deployment\n- [ ] `convex\u002F_generated\u002F` directory exists with types\n- [ ] `.env.local` has the deployment URL\n- [ ] Verified a basic query\u002Fmutation round-trip works\n","# Convex Quickstart\n\nSet up a working Convex project as fast as possible.\n\n## When to Use\n\n- Starting a brand new project with Convex\n- Adding Convex to an existing React, Next.js, Vue, Svelte, or other app\n- Scaffolding a Convex app for prototyping\n\n## When Not to Use\n\n- The project already has Convex installed and `convex\u002F` exists - just start building\n- You only need to add auth to an existing Convex app - use the `convex-setup-auth` skill\n\n## Workflow\n\n1. Determine the starting point: new project or existing app\n2. If new project, pick a template and scaffold with `npm create convex@latest`\n3. If existing app, install `convex` and wire up the provider\n4. Run `npx convex dev` to connect a deployment and start the dev loop\n5. Verify the setup works\n\n## Path 1: New Project (Recommended)\n\nUse the official scaffolding tool. It creates a complete project with the frontend framework, Convex backend, and all config wired together.\n\n### Pick a template\n\n| Template                   | Stack                                     |\n| -------------------------- | ----------------------------------------- |\n| `react-vite-shadcn`        | React + Vite + Tailwind + shadcn\u002Fui       |\n| `nextjs-shadcn`            | Next.js App Router + Tailwind + shadcn\u002Fui |\n| `react-vite-clerk-shadcn`  | React + Vite + Clerk auth + shadcn\u002Fui     |\n| `nextjs-clerk`             | Next.js + Clerk auth                      |\n| `nextjs-convexauth-shadcn` | Next.js + Convex Auth + shadcn\u002Fui         |\n| `nextjs-lucia-shadcn`      | Next.js + Lucia auth + shadcn\u002Fui          |\n| `bare`                     | Convex backend only, no frontend          |\n\nIf the user has not specified a preference, default to `react-vite-shadcn` for simple apps or `nextjs-shadcn` for apps that need SSR or API routes.\n\nYou can also use any GitHub repo as a template:\n\n```bash\nnpm create convex@latest my-app -- -t owner\u002Frepo\nnpm create convex@latest my-app -- -t owner\u002Frepo#branch\n```\n\n### Scaffold the project\n\nAlways pass the project name and template flag to avoid interactive prompts:\n\n```bash\nnpm create convex@latest my-app -- -t react-vite-shadcn\ncd my-app\nnpm install\n```\n\nThe scaffolding tool creates files but does not run `npm install`, so you must run it yourself.\n\nTo scaffold in the current directory (if it is empty):\n\n```bash\nnpm create convex@latest . -- -t react-vite-shadcn\nnpm install\n```\n\n### Start the dev loop\n\n`npx convex dev` is a long-running watcher process that syncs backend code to a Convex deployment on every save. It also requires authentication on first run (browser-based OAuth). Both of these make it unsuitable for an agent to run directly.\n\n**Ask the user to run this themselves:**\n\nTell the user to run `npx convex dev` in their terminal. On first run it will prompt them to log in or develop anonymously. Once running, it will:\n\n- Create a Convex project and dev deployment\n- Write the deployment URL to `.env.local`\n- Create the `convex\u002F` directory with generated types\n- Watch for changes and sync continuously\n\nThe user should keep `npx convex dev` running in the background while you work on code. The watcher will automatically pick up any files you create or edit in `convex\u002F`.\n\n**Exception - cloud or headless agents:** Environments that cannot open a browser for interactive login should use Agent Mode (see below) to run anonymously without user interaction.\n\n### Start the frontend\n\nThe user should also run the frontend dev server in a separate terminal:\n\n```bash\nnpm run dev\n```\n\nVite apps serve on `http:\u002F\u002Flocalhost:5173`, Next.js on `http:\u002F\u002Flocalhost:3000`.\n\n### What you get\n\nAfter scaffolding, the project structure looks like:\n\n```\nmy-app\u002F\n  convex\u002F           # Backend functions and schema\n    _generated\u002F     # Auto-generated types (check this into git)\n    schema.ts       # Database schema (if template includes one)\n  src\u002F              # Frontend code (or app\u002F for Next.js)\n  package.json\n  .env.local        # CONVEX_URL \u002F VITE_CONVEX_URL \u002F NEXT_PUBLIC_CONVEX_URL\n```\n\nThe template already has:\n\n- `ConvexProvider` wired into the app root\n- Correct env var names for the framework\n- Tailwind and shadcn\u002Fui ready (for shadcn templates)\n- Auth provider configured (for auth templates)\n\nProceed to adding schema, functions, and UI.\n\n## Path 2: Add Convex to an Existing App\n\nUse this when the user already has a frontend project and wants to add Convex as the backend.\n\n### Install\n\n```bash\nnpm install convex\n```\n\n### Initialize and start dev loop\n\nAsk the user to run `npx convex dev` in their terminal. This handles login, creates the `convex\u002F` directory, writes the deployment URL to `.env.local`, and starts the file watcher. See the notes in Path 1 about why the agent should not run this directly.\n\n### Wire up the provider\n\nThe Convex client must wrap the app at the root. The setup varies by framework.\n\nCreate the `ConvexReactClient` at module scope, not inside a component:\n\n```tsx\n\u002F\u002F Bad: re-creates the client on every render\nfunction App() {\n  const convex = new ConvexReactClient(\n    import.meta.env.VITE_CONVEX_URL as string,\n  );\n  return \u003CConvexProvider client={convex}>...\u003C\u002FConvexProvider>;\n}\n\n\u002F\u002F Good: created once at module scope\nconst convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string);\nfunction App() {\n  return \u003CConvexProvider client={convex}>...\u003C\u002FConvexProvider>;\n}\n```\n\n#### React (Vite)\n\n```tsx\n\u002F\u002F src\u002Fmain.tsx\nimport { StrictMode } from \"react\";\nimport { createRoot } from \"react-dom\u002Fclient\";\nimport { ConvexProvider, ConvexReactClient } from \"convex\u002Freact\";\nimport App from \".\u002FApp\";\n\nconst convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL as string);\n\ncreateRoot(document.getElementById(\"root\")!).render(\n  \u003CStrictMode>\n    \u003CConvexProvider client={convex}>\n      \u003CApp \u002F>\n    \u003C\u002FConvexProvider>\n  \u003C\u002FStrictMode>,\n);\n```\n\n#### Next.js (App Router)\n\n```tsx\n\u002F\u002F app\u002FConvexClientProvider.tsx\n\"use client\";\n\nimport { ConvexProvider, ConvexReactClient } from \"convex\u002Freact\";\nimport { ReactNode } from \"react\";\n\nconst convex = new ConvexReactClient(process.env.NEXT_PUBLIC_CONVEX_URL!);\n\nexport function ConvexClientProvider({ children }: { children: ReactNode }) {\n  return \u003CConvexProvider client={convex}>{children}\u003C\u002FConvexProvider>;\n}\n```\n\n```tsx\n\u002F\u002F app\u002Flayout.tsx\nimport { ConvexClientProvider } from \".\u002FConvexClientProvider\";\n\nexport default function RootLayout({\n  children,\n}: {\n  children: React.ReactNode;\n}) {\n  return (\n    \u003Chtml lang=\"en\">\n      \u003Cbody>\n        \u003CConvexClientProvider>{children}\u003C\u002FConvexClientProvider>\n      \u003C\u002Fbody>\n    \u003C\u002Fhtml>\n  );\n}\n```\n\n#### Other frameworks\n\nFor Vue, Svelte, React Native, TanStack Start, Remix, and others, follow the matching quickstart guide:\n\n- [Vue](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fvue)\n- [Svelte](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fsvelte)\n- [React Native](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Freact-native)\n- [TanStack Start](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Ftanstack-start)\n- [Remix](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fremix)\n- [Node.js (no frontend)](https:\u002F\u002Fdocs.convex.dev\u002Fquickstart\u002Fnodejs)\n\n### Environment variables\n\nThe env var name depends on the framework:\n\n| Framework    | Variable                 |\n| ------------ | ------------------------ |\n| Vite         | `VITE_CONVEX_URL`        |\n| Next.js      | `NEXT_PUBLIC_CONVEX_URL` |\n| Remix        | `CONVEX_URL`             |\n| React Native | `EXPO_PUBLIC_CONVEX_URL` |\n\n`npx convex dev` writes the correct variable to `.env.local` automatically.\n\n## Agent Mode (Cloud and Headless Agents)\n\nWhen running in a cloud or headless agent environment where interactive browser login is not possible, set `CONVEX_AGENT_MODE=anonymous` to use a local anonymous deployment.\n\nAdd `CONVEX_AGENT_MODE=anonymous` to `.env.local`, or set it inline:\n\n```bash\nCONVEX_AGENT_MODE=anonymous npx convex dev\n```\n\nThis runs a local Convex backend on the VM without requiring authentication, and avoids conflicting with the user's personal dev deployment.\n\n## Verify the Setup\n\nAfter setup, confirm everything is working:\n\n1. The user confirms `npx convex dev` is running without errors\n2. The `convex\u002F_generated\u002F` directory exists and has `api.ts` and `server.ts`\n3. `.env.local` contains the deployment URL\n\n## Writing Your First Function\n\nOnce the project is set up, create a schema and a query to verify the full loop works.\n\n`convex\u002Fschema.ts`:\n\n```ts\nimport { defineSchema, defineTable } from \"convex\u002Fserver\";\nimport { v } from \"convex\u002Fvalues\";\n\nexport default defineSchema({\n  tasks: defineTable({\n    text: v.string(),\n    completed: v.boolean(),\n  }),\n});\n```\n\n`convex\u002Ftasks.ts`:\n\n```ts\nimport { query, mutation } from \".\u002F_generated\u002Fserver\";\nimport { v } from \"convex\u002Fvalues\";\n\nexport const list = query({\n  args: {},\n  handler: async (ctx) => {\n    return await ctx.db.query(\"tasks\").collect();\n  },\n});\n\nexport const create = mutation({\n  args: { text: v.string() },\n  handler: async (ctx, args) => {\n    await ctx.db.insert(\"tasks\", { text: args.text, completed: false });\n  },\n});\n```\n\nUse in a React component (adjust the import path based on your file location relative to `convex\u002F`):\n\n```tsx\nimport { useQuery, useMutation } from \"convex\u002Freact\";\nimport { api } from \"..\u002Fconvex\u002F_generated\u002Fapi\";\n\nfunction Tasks() {\n  const tasks = useQuery(api.tasks.list);\n  const create = useMutation(api.tasks.create);\n\n  return (\n    \u003Cdiv>\n      \u003Cbutton onClick={() => create({ text: \"New task\" })}>Add\u003C\u002Fbutton>\n      {tasks?.map((t) => (\n        \u003Cdiv key={t._id}>{t.text}\u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Development vs Production\n\nAlways use `npx convex dev` during development. It runs against your personal dev deployment and syncs code on save.\n\nWhen ready to ship, deploy to production:\n\n```bash\nnpx convex deploy\n```\n\nThis pushes to the production deployment, which is separate from dev. Do not use `deploy` during development.\n\n## Next Steps\n\n- Add authentication: use the `convex-setup-auth` skill\n- Design your schema: see [Schema docs](https:\u002F\u002Fdocs.convex.dev\u002Fdatabase\u002Fschemas)\n- Build components: use the `convex-create-component` skill\n- Plan a migration: use the `convex-migration-helper` skill\n- Add file storage: see [File Storage docs](https:\u002F\u002Fdocs.convex.dev\u002Ffile-storage)\n- Set up cron jobs: see [Scheduling docs](https:\u002F\u002Fdocs.convex.dev\u002Fscheduling)\n\n## Checklist\n\n- [ ] Determined starting point: new project or existing app\n- [ ] If new project: scaffolded with `npm create convex@latest` using appropriate template\n- [ ] If existing app: installed `convex` and wired up the provider\n- [ ] User has `npx convex dev` running and connected to a deployment\n- [ ] `convex\u002F_generated\u002F` directory exists with types\n- [ ] `.env.local` has the deployment URL\n- [ ] Verified a basic query\u002Fmutation round-trip works\n",{"name":5,"description":7},"main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Fconvex-quickstart",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add agisota\u002Fold-one --skill convex-quickstart",{"tool":38,"command":39},"bunx","bunx skills add agisota\u002Fold-one --skill convex-quickstart",{"tool":41,"command":42},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill convex-quickstart","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fconvex-quickstart\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",461,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fconvex-quickstart\u002Fagents\u002Fopenai.yaml",{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Ficon.svg","ASSET","资产文件",435,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fconvex-quickstart\u002Fassets\u002Ficon.svg",[59,66,73,82,89,96],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":77,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]