Token导航 LogoToken导航

Agent Skill · 开发规范

liveblocks-best-practices(实时块最佳实践)

liveblocks-best-practices 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

liveblocks-best-practices 是开发规范类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发规范类的 1,265 个 Skill 里排第 470。

总安装 1,458周安装 59GitHub Stars 5下载 458核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:liveblocks-best-practices(实时块最佳实践)
来源仓库:https://github.com/liveblocks/skills
仓库路径:skills/liveblocks-best-practices
安装命令:
npx skills add https://github.com/liveblocks/skills --skill liveblocks-best-practices
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/liveblocks/skills --skill liveblocks-best-practices

这个 Skill 是做什么的

开发规范类 Skill 用来统一代码风格、目录结构和评审口径,产出多为检查清单或改写建议。

liveblocks-best-practices 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。

通过 npx skills add 命令从指定 GitHub 仓库安装并使用。安装前需确认权限范围、维护状态,注意是否触发联网、命令执行或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/liveblocks-best-practices

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/liveblocks/skills --skill liveblocks-best-prac…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

liveblocks-best-practices 怎么安装?

在终端执行 npx skills add https://github.com/liveblocks/skills --skill liveblocks-best-practices。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

liveblocks-best-practices 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

liveblocks-best-practices 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

liveblocks-best-practices 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

liveblocks-best-practices 用的人多吗?

公开数据是累计安装 1,458 次,近一周安装 59 次,下载 458 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

liveblocks-best-practices 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发规范类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发规范类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
vercel-react-best-practices

Vercel React 最佳实践 · Codex、Claude

8,490,72025,918操作浏览器MIT通过
web-design-guidelines

网页设计指南 · Codex、Claude

6,686,01625,885需要联网MIT有提醒
remotion-best-practices

Remotion 最佳实践 · Codex、Claude

6,505,6323,027操作浏览器MIT有提醒
supabase-postgres-best-practices

Supabase Postgres 最佳实践 · Codex、Claude

3,175,5232,030需要联网MIT通过
next-best-practices

Next.js 最佳实践 · Codex、Claude

1,848,240841操作浏览器MIT通过
liveblocks-best-practices

实时块最佳实践 · 本页

1,4585需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Liveblocks best practices

When to use this skill

Use this skill when implementing features using any Liveblocks packages, for example @liveblocks/react or @liveblocks/node. This could be related to features like realtime multiplayer, commenting, notifications, cursors, avatar stacks, AI, and more. This also includes technologies like Liveblocks Storage, Yjs, Tiptap, BlockNote, Lexical, React Flow, tldraw, and more.

Quick reference

A number of reference files are available in the references/ directory. You must read the list below, and load relevant files as needed. For example, add-user-information is available in the references/add-user-information.md file.

References

  • add-user-information: Add user information to your application, such as name, avatar, color, and more. Users will no longer be anonymous. Useful for displaying user info in comments, comments mention suggestions, notifications, cursors, avatar stacks.
  • ai-as-a-collaborator: Use agentic workflows to allow AI to collaborate like a human inside your Liveblocks application.
  • ai-chats-with-tools-knowledge-components: Set up and troubleshoot chats with RAG, knowledge, custom components, tool calling, custom models. Different to AI as a collaborator, as it is NOT workflow based.
  • auth-endpoint-callback: Use a callback function to authenticate users, instead of passing a string to authEndpoint. Useful for passing custom headers to your back end, and for preventing automatic reconnection when the token is invalid.
  • authenticating-with-access-tokens: Alternative method for authenticating users with their ID and info, best for very simple permissions.
  • authenticating-with-id-tokens: Recommended method for authenticating users with their ID and info, best for complex permissions.
  • avoid-hitting-user-limit-in-rooms: How to avoid rooms filling up with users.
  • compartmentalize-resources-with-organizations: Use organizations to create workspaces/tenants and compartmentalize resources, such as rooms, notifications, comment threads, and more. You can filter by organization when listing rooms and more.
  • create-custom-comment-composer: Build your own commenting composer (advanced use cases only).
  • create-custom-realtime-multiplayer: Use Liveblocks Storage to build fully custom conflict-resolved multiplayer apps, like Figma, Pitch, Spline. Helpful for one-off realtime features too, like simple properties in a document.
  • create-custom-text-editor-toolbar: Set up a styled toolbar, static or floating next to your selection, in Tiptap and Lexical.
  • create-rooms-manually: Always create rooms yourself in production applications, setting permissions, organization, metadata.
  • customize-thread-components: Use slots to customize comments inside of threads, and their different parts.
  • dark-mode-styles: You can import CSS styling for dark mode themes.
  • develop-and-test-locally: Set up a local dev server, and use it for Continuous Integration (CI) and End-to-End (E2E) testing. Connect to your app not online.
  • devtools-extension: Inspect Liveblocks Storage, Yjs, presence, events, and connected users with DevTools extensions for Chrome, Firefox, Edge.
  • edit-component-text-strings: Override strings in default components, such as button values, tooltip text, error text, more. Also helpful for setting other languages.
  • exhaustive-deps-with-usemutation: Prevent and fix stale-closure bugs with useMutation by configuring the react-hooks/exhaustive-deps ESLint rule.
  • handling-connection-errors: Handle problems joining rooms because of permissions, authentication, changed room IDs.
  • handling-full-rooms: Handle problems caused by joining full rooms.
  • handling-hook-and-component-errors: Handle errors caused by hooks and pre-built components.
  • handling-unstable-connections: Implement fallbacks and error messages when users have poor network conditions.
  • log-out-of-liveblocks: Rarely useful, but helpful in specific SPA situations where you cannot navigate the page to log out.
  • multiplayer-react-flow: Use the Liveblocks React Flow package to create multiplayer diagrams with cursors and more.
  • multiple-text-editors: Add multiple Tiptap or BlockNote editors to the same page. Optionally use Storage to hold their field IDs.
  • offline-support-in-text-editors: Give your text editors the illusion of a quicker load time.
  • override-css-variables: Add custom styles to the default components by overriding Liveblocks CSS variables.
  • performant-others-and-presence: Prevent unnecessary presence renders by using useOtherConnectionIds, useOthersMapped, useOther, and shallow to update components only when necessary.
  • performant-storage-with-selectors: Prevent unnecessary storage renders by using useStorage selectors and shallow.
  • prevent-unsaved-changes-being-lost: Stop losing unsynched or unsaved changes.
  • primitive-component-parts: Use primitives to create custom components or to merge components from your design system into Liveblocks UI.
  • remove-liveblocks-branding: A Liveblocks logo badge appears in the bottom right of the screen, this is how to remove it.
  • rendering-error-components: Use ErrorBoundary to structure your app with error fallbacks.
  • rendering-loading-components: Use ClientSideSuspense to performantly structure your app with loading skeletons and spinners.
  • send-comment-notification-emails: Send email notifications to users when they have unread comments. These comments are sent via webhooks, and are triggered when a user is mentioned, or has participated in a thread.
  • smoother-realtime-updates: Make presence and storage run at a higher frame rate, appearing more smooth. Using this option, updates can be received more frequently.
  • suspense-vs-regular-hooks: You must read this when using any Liveblocks hooks. React suspense uses ErrorBoundary and ClientSideSuspense components. Regular hooks use {error, isLoading} values.
  • tiptap-best-practices: Server-side rendering, starter kit extensions, initial content, unsaved changes, more.
  • trigger-custom-notifications: Trigger any kind of notification in your inbox, even those unrelated to commenting.
  • type-liveblocks-correctly: Always use TypeScript to type Liveblocks where available. Presence, others, user info, storage, metadata, room info, notifications activities, can all be automatically typed.
  • url-params-in-room-id: Use URL params in room IDs to create rooms, and incorporate document titles in the URL.
  • utility-components: Import a ready-made emoji picker, or human-readable timestamps, durations, file sizes.
  • yjs-best-practices: YKeyValue, subdocuments, V2 encoding, double imports, getYjsProviderForRoom. NOT relevant if you're using Tiptap, BlockNote, or Lexical.
  • z-index-issues: Fix z-index problems by targeting portaled elements.

Note

Some files link to markdown files in the Liveblocks docs, for example:

https://liveblocks.io/docs/concepts.md

When linking users to these pages, remove .md from the link, so they can view the full content:

https://liveblocks.io/docs/concepts

Liveblocks packages

Always check if we provide a package for your technology. For example, if you're using React Flow, you should use @liveblocks/react-flow.

  • @liveblocks/client: JavaScript client. Can use with any framework, e.g. Vue, Svelte, vanilla JS.
  • @liveblocks/react: React client. Contains hooks and components..
  • @liveblocks/react-ui: Pre-built React UI components and primitives. @liveblocks/react for data and hooks.
  • @liveblocks/react-tiptap: Collaborative Tiptap integration for React.
  • @liveblocks/react-blocknote: Collaborative BlockNote integration for React.
  • @liveblocks/react-lexical: Collaborative Lexical integration for React.
  • @liveblocks/node-lexical: Server-side Lexical utilities for Node.js.
  • @liveblocks/node-prosemirror: Server-side ProseMirror utilities For Node.js. Also works with Tiptap and BlockNote.
  • @liveblocks/react-flow: Multiplayer React Flow.
  • @liveblocks/yjs: Yjs provider backed by Liveblocks rooms.
  • @liveblocks/redux: Sync Liveblocks room state with a Redux store.
  • @liveblocks/zustand: Sync Liveblocks room state with Zustand.
  • @liveblocks/node: Node.js server SDK. Use for auth and lots more.
  • @liveblocks/emails: Build notification emails more easily.
  • @liveblocks/chat-sdk-adapter: Make multi-platform (Liveblocks, Slack, Discord, etc.) chat bots.
  • Python SDK: Python server SDK. Use for auth and lots more.
  • REST API: HTTP API. Use for auth and lots more.

If a technology is not listed here

If the users want to set up a new technology, first check the following resources to see if a package exists:

Learn more

Learn more in Liveblocks docs.

平台分布

Codex

38.57%
按下载量换算177

Claude

29.07%
按下载量换算133

Cursor

20.59%
按下载量换算94

Gemini CLI

9.58%
按下载量换算44

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills