Skip to main content

implement-pagination

Stars1
Forks0
UpdatedJuly 21, 2026 at 03:14

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

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly