用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/justcyl/my-skills --skill pi-threads命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | pi-threads |
| description | 搜索、定位和阅读历史 pi 会话记录。当需要查找之前做得好的对话、提取 pattern 转化为 skill、或回顾过去的决策时使用。 |
搜索和阅读历史 pi coding agent 会话的 CLI 工具。将 ~/.pi/agent/sessions/ 中的 JSONL 会话文件索引到本地 SQLite FTS5 数据库,提供快速搜索、模糊定位和清洁阅读。
command -v pi-threads || echo "NOT INSTALLED — see /Users/chenyl/project/pi-threads/README.md"
pi-threads --json sync
增量同步,只处理有变化的文件。首次约 1-2 秒。
跨所有会话全文搜索:
pi-threads --json messages search "build a CLI" --limit 10
pi-threads --json messages search "pytest" --role user --project ph2
当你知道大概内容但不知道 session ID 时:
pi-threads --json threads resolve "paper format check"
pi-threads --json threads resolve "skill creation"
获取清洁的 user + assistant 消息(已移除 tool noise):
pi-threads --json threads read <session-id-or-prefix>
支持部分 ID:pi-threads --json threads read 69107ac3
需要完整上下文(包括 tool 调用和结果)时:
pi-threads --json events read <session-id> --limit 50
pi-threads --json threads list --limit 10
pi-threads --json threads list --project sttrl
# 1. 搜索关键词找到相关线程
pi-threads --json messages search "overleaf review" --limit 5
# 2. 阅读找到的线程
pi-threads --json threads read <session-id>
# 3. 从对话中提取 pattern,写成 skill
所有 --json 输出使用标准信封,包含 result、metadata、next_actions。
pi-threads --json sync--match-mode contains 和 --match-mode exact