[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFMGGEX0WRH4NH8VW228EQ":3,"skill-same:01M6EFMGGEX0WRH4NH8VW228EQ":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFMGGEX0WRH4NH8VW228EQ","nhost",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fnhost\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# Nhost — Open-Source Firebase Alternative with GraphQL\n\n\n## Overview\n\n\nNhost, the open-source backend platform built on PostgreSQL, Hasura GraphQL, and serverless functions. Helps developers set up authentication, database, file storage, and real-time subscriptions with auto-generated GraphQL APIs and a developer-friendly SDK.\n\n\n## Instructions\n\n### Project Setup\n\n```bash\n# Install Nhost CLI\nnpm install -g nhost\n\n# Create a new project\nnhost init my-app\ncd my-app\n\n# Start local development (Docker-based)\nnhost up\n# Dashboard: http:\u002F\u002Flocalhost:1337\n# GraphQL: http:\u002F\u002Flocalhost:1337\u002Fv1\u002Fgraphql\n# Auth: http:\u002F\u002Flocalhost:1337\u002Fv1\u002Fauth\n```\n\n### Authentication\n\n```typescript\n\u002F\u002F src\u002Flib\u002Fnhost.ts — Nhost client configuration\nimport { NhostClient } from \"@nhost\u002Fnhost-js\";\n\nexport const nhost = new NhostClient({\n  subdomain: process.env.NEXT_PUBLIC_NHOST_SUBDOMAIN!,\n  region: process.env.NEXT_PUBLIC_NHOST_REGION!,\n});\n\n\u002F\u002F Sign up with email\nasync function signUp(email: string, password: string) {\n  const { session, error } = await nhost.auth.signUp({\n    email,\n    password,\n    options: {\n      displayName: \"New User\",\n      metadata: { plan: \"free\" },\n    },\n  });\n  if (error) throw new Error(error.message);\n  return session;\n}\n\n\u002F\u002F Sign in with email\nasync function signIn(email: string, password: string) {\n  const { session, error } = await nhost.auth.signIn({ email, password });\n  if (error) throw new Error(error.message);\n  return session;\n}\n\n\u002F\u002F OAuth (Google, GitHub, etc.)\nasync function signInWithGoogle() {\n  const { providerUrl } = await nhost.auth.signIn({\n    provider: \"google\",\n  });\n  window.location.href = providerUrl!;\n}\n\n\u002F\u002F Magic link (passwordless)\nasync function sendMagicLink(email: string) {\n  await nhost.auth.signIn({ email });\n}\n\n\u002F\u002F Auth state\nnhost.auth.onAuthStateChanged((event, session) => {\n  console.log(`Auth event: ${event}`, session?.user?.email);\n});\n```\n\n### GraphQL API (Auto-Generated from PostgreSQL)\n\n```typescript\n\u002F\u002F src\u002Flib\u002Fgraphql.ts — Query the auto-generated GraphQL API\nimport { gql } from \"graphql-tag\";\n\n\u002F\u002F Nhost auto-generates GraphQL from your PostgreSQL tables\n\u002F\u002F Create a table \"posts\" in the dashboard → instant GraphQL CRUD\n\n\u002F\u002F Query posts\nconst GET_POSTS = gql`\n  query GetPosts($limit: Int!, $offset: Int!) {\n    posts(\n      limit: $limit\n      offset: $offset\n      order_by: { created_at: desc }\n      where: { published: { _eq: true } }\n    ) {\n      id\n      title\n      content\n      created_at\n      author {\n        displayName\n        avatarUrl\n      }\n    }\n    posts_aggregate(where: { published: { _eq: true } }) {\n      aggregate {\n        count\n      }\n    }\n  }\n`;\n\n\u002F\u002F Insert a post\nconst CREATE_POST = gql`\n  mutation CreatePost($title: String!, $content: String!) {\n    insert_posts_one(object: {\n      title: $title\n      content: $content\n      published: false\n    }) {\n      id\n      title\n    }\n  }\n`;\n\n\u002F\u002F Real-time subscription\nconst SUBSCRIBE_POSTS = gql`\n  subscription OnNewPosts {\n    posts(\n      order_by: { created_at: desc }\n      limit: 10\n      where: { published: { _eq: true } }\n    ) {\n      id\n      title\n      created_at\n      author {\n        displayName\n      }\n    }\n  }\n`;\n\n\u002F\u002F Execute queries\nasync function getPosts(page = 1, pageSize = 20) {\n  const { data, error } = await nhost.graphql.request(GET_POSTS, {\n    limit: pageSize,\n    offset: (page - 1) * pageSize,\n  });\n  if (error) throw error;\n  return data;\n}\n```\n\n### File Storage\n\n```typescript\n\u002F\u002F Upload and manage files via Nhost Storage\nasync function uploadAvatar(file: File, userId: string): Promise\u003Cstring> {\n  const { fileMetadata, error } = await nhost.storage.upload({\n    file,\n    bucketId: \"avatars\",\n    name: `${userId}\u002Favatar.${file.name.split('.').pop()}`,\n  });\n  if (error) throw new Error(error.message);\n  return nhost.storage.getPublicUrl({ fileId: fileMetadata!.id });\n}\n\nasync function uploadDocument(file: File) {\n  const { fileMetadata, error } = await nhost.storage.upload({\n    file,\n    bucketId: \"documents\",\n  });\n  if (error) throw new Error(error.message);\n\n  \u002F\u002F Get a presigned URL (for private files)\n  const { presignedUrl } = await nhost.storage.getPresignedUrl({\n    fileId: fileMetadata!.id,\n  });\n  return presignedUrl;\n}\n```\n\n### Serverless Functions\n\n```typescript\n\u002F\u002F nhost\u002Ffunctions\u002Fsend-welcome-email.ts — Serverless function\nimport { Request, Response } from \"express\";\n\nexport default async function handler(req: Request, res: Response) {\n  if (req.method !== \"POST\") {\n    return res.status(405).json({ error: \"Method not allowed\" });\n  }\n\n  const { email, name } = req.body;\n\n  await sendEmail({\n    to: email,\n    subject: `Welcome, ${name}!`,\n    html: `\u003Ch1>Welcome to our platform, ${name}!\u003C\u002Fh1>`,\n  });\n\n  res.json({ success: true });\n}\n\n\u002F\u002F Called at: https:\u002F\u002Fyour-app.nhost.run\u002Fv1\u002Ffunctions\u002Fsend-welcome-email\n```\n\n### Hasura Permissions (Row-Level Security)\n\n```yaml\n# Configure in Hasura Console or via metadata\n# nhost\u002Fmetadata\u002Fdatabases\u002Fdefault\u002Ftables\u002Fpublic_posts.yaml\ntable:\n  name: posts\n  schema: public\nselect_permissions:\n  - role: user\n    permission:\n      columns: [id, title, content, created_at, published, author_id]\n      filter:\n        _or:\n          - published: { _eq: true }\n          - author_id: { _eq: X-Hasura-User-Id }\ninsert_permissions:\n  - role: user\n    permission:\n      columns: [title, content, published]\n      set:\n        author_id: X-Hasura-User-Id\nupdate_permissions:\n  - role: user\n    permission:\n      columns: [title, content, published]\n      filter:\n        author_id: { _eq: X-Hasura-User-Id }\n```\n\n## Installation\n\n```bash\n# Client SDK\nnpm install @nhost\u002Fnhost-js\n\n# React integration\nnpm install @nhost\u002Freact @nhost\u002Freact-apollo\n\n# CLI\nnpm install -g nhost\n```\n\n\n## Examples\n\n\n### Example 1: Setting up Nhost with a custom configuration\n\n**User request:**\n\n```\nI just installed Nhost. Help me configure it for my TypeScript + React workflow with my preferred keybindings.\n```\n\nThe agent creates the configuration file with TypeScript-aware settings, configures relevant plugins\u002Fextensions for React development, sets up keyboard shortcuts matching the user's preferences, and verifies the setup works correctly.\n\n### Example 2: Extending Nhost with custom functionality\n\n**User request:**\n\n```\nI want to add a custom authentication to Nhost. How do I build one?\n```\n\nThe agent scaffolds the extension\u002Fplugin project, implements the core functionality following Nhost's API patterns, adds configuration options, and provides testing instructions to verify it works end-to-end.\n\n\n## Guidelines\n\n1. **PostgreSQL = your database** — Nhost uses real PostgreSQL; use migrations, write raw SQL when needed, use Hasura for the GraphQL layer\n2. **Permissions via Hasura** — Define row-level security in Hasura; every table needs permissions before it's accessible via GraphQL\n3. **Real-time with subscriptions** — Use GraphQL subscriptions for live data; Nhost\u002FHasura handles WebSocket connections automatically\n4. **Local development first** — `nhost up` runs everything locally with Docker; match production exactly in development\n5. **Migrations for schema changes** — Use Hasura migrations (auto-generated) to version database changes; apply in CI\u002FCD\n6. **Storage buckets for organization** — Create separate buckets for avatars, documents, public assets; set permissions per bucket\n7. **Serverless for custom logic** — Use Nhost Functions for webhooks, email sending, and business logic that doesn't fit in Hasura\n8. **Self-host for control** — Nhost is open-source; self-host with Docker Compose for full infrastructure control\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fnhost",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill nhost",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill nhost",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill nhost","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fnhost\u002FSKILL.md",true,[],[46,55,64,73,79,85],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[52,53,54],"model","model hierarchy","model hierarchy skill",{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[61,62,63],"MCP","zoom","zoom mcp",{"skillNo":65,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[70,71,72,62],"sdk","zoom apps sdk","apps",{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[75],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[87]]