Skip to main content

implement-pagination

星标1
分支0
更新时间2026年7月21日 03:14

做列表分页 / 加翻页 / 加载更多 / 历史消息翻页时触发。引导:判断 cursor vs offset → IM 场景必用 cursor → 选 before(向上加载更早)vs after(拉新消息)→ 用 hasMore 判断(不是 length < limit)→ 串行不并发。重点提示消息 ID = UnixMilli 时间戳的特殊性 + 多种"产品想用 offset 翻页"的反模式拦截。

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly