···11---
22name: cxs
33-description: "用于用户要找本机 Codex 历史会话或 ~/.codex/sessions 上下文:之前、上次、前几天、昨天、我记得我配过、我试过、我们讨论过、翻旧 session、找那次命令、历史对话、Codex 历史、session 历史。Also triggers on English: 'last time I', 'earlier session', 'did we already', 'I remember configuring', 'previous codex chat', 'search my codex history'. 不要用于当前仓库代码搜索(Grep)、读当前文件(Read)、外部文档(WebFetch/WebSearch)、今日提交/日报(commit-daily-summary)或当前会话收尾(session-wrap)。"
33+description: "Use proactively for local Codex history and personal setup archaeology. Trigger when the user asks what was discussed/done/configured before, or asks inventory of this Mac's configured servers/VPS/nodes/accounts/domains/providers/services: 本机有哪些服务器配置/都配过啥服务/配过/配置过/装过/调过/之前/上次/刚刚/前几天/我记得/翻旧 session/历史对话. Includes '本机有哪几台服务器的配置,都配过些啥服务' even without cxs. Use before or alongside memory/live inspection. Do not use for current repo code search, known-file reads, web docs, daily summaries, or session wrap-up."
44---
5566# cxs
···3636| 场景 | 起手 | 原因 |
3737| --- | --- | --- |
3838| 用户问"之前 / 上次 / 我记得 / 我们讨论过" | `cxs status --json` | 先拿 source inventory 和 coverage |
3939+| 用户问"本机/这台 Mac 配过什么"、"有哪些服务器/VPS/节点/服务配置" | 先 `cxs status --json`,再用关键词 `服务器 VPS 节点 服务 域名 provider ssh sing-box launchd Cloudflare` 组合查 | 这类是本机配置考古,答案常在旧 Codex session 而不是当前 memory |
3940| 用户问"本项目最近的对话" | 构造 `{"kind":"cwd",...}` selector 后先查 coverage,再 `list --sort ended` | 内容只从 cxs index 出来 |
4041| 用户问"最新/最近 + 关键词" | 先确保 selector coverage,再 `find <query> --sort ended` | `find` 默认是相关性排序,不是时间排序 |
4142| 用户给项目名 / cwd / 时间窗 | 显式构造 selector | cwd/date selector 比全文搜更稳 |
···4647- 当前 repo 代码/字符串搜索 → 代码搜索工具
4748- 当前文件或已知路径阅读 → 文件读取工具
4849- 外部文档/网页 → WebFetch / WebSearch
5050+- 只问当前 live state 且无历史配置语义 → 运行态/文件检查;但若问题带"配过/以前/本机有哪些配置"语义,先用 cxs 找历史线索再验证 live truth
4951- 今日提交/日报 → `commit-daily-summary`
5052- 当前会话收尾 → `session-wrap`
5153
+3-1
skill-packages/cxsd/SKILL.md
···11---
22name: cxsd
33-description: "Use when the user wants to dogfood, verify, debug, or compare unpublished local cxs changes from /Users/envvar/work/repos/cxs; mentions cxsd, dev cxs, local cxs, current checkout, or latest local code. Do not use for published-version checks; use cxs there."
33+description: "Use when the user wants to dogfood, verify, debug, or compare unpublished local cxs changes from /Users/envvar/work/repos/cxs; mentions cxsd, dev cxs, local cxs, current checkout, latest local code, or asks whether new cxs skill trigger wording works before release. For dev dogfood, also use proactively for local Codex history and personal setup archaeology prompts such as 本机有哪些服务器配置/都配过啥服务/配过/配置过/装过/调过. Do not use for published-version checks; use cxs there."
44---
5566# cxsd
···2828| --- | --- | --- |
2929| 验证当前 checkout 的 cxs 行为 | `"${CXSD_BIN:-cxsd}" status --json` | 用本地源码,不碰发布版 |
3030| 用户问"之前 / 上次 / 我记得 / 我们讨论过"且要试 dev 版 | `"${CXSD_BIN:-cxsd}" status --json` | 先拿 source inventory 和 coverage |
3131+| 用户问"本机/这台 Mac 配过什么"、"有哪些服务器/VPS/节点/服务配置"且要试 dev 版 | 先 `"${CXSD_BIN:-cxsd}" status --json`,再用关键词 `服务器 VPS 节点 服务 域名 provider ssh sing-box launchd Cloudflare` 组合查 | 这类是本机配置考古,答案常在旧 Codex session 而不是当前 memory |
3132| 用户问"本项目最近的对话" | 构造 `{"kind":"cwd",...}` selector 后先查 coverage,再 `"${CXSD_BIN:-cxsd}" list --sort ended` | 内容只从 cxs index 出来 |
3233| 用户问"最新/最近 + 关键词" | 先确保 selector coverage,再 `"${CXSD_BIN:-cxsd}" find <query> --sort ended` | `find` 默认是相关性排序,不是时间排序 |
3334| 用户给项目名 / cwd / 时间窗 | 显式构造 selector | cwd/date selector 比全文搜更稳 |
···3940- 当前 repo 代码/字符串搜索 → 代码搜索工具
4041- 当前文件或已知路径阅读 → 文件读取工具
4142- 外部文档/网页 → WebFetch / WebSearch
4343+- 只问当前 live state 且无历史配置语义 → 运行态/文件检查;但若问题带"配过/以前/本机有哪些配置"语义,先用 cxsd 找历史线索再验证 live truth
4244- 今日提交/日报 → `commit-daily-summary`
4345- 当前会话收尾 → `session-wrap`
4446