Skip to content
cccskills
FreePublished on GitHub

chat-memory

对话历史长期记忆查询工具。当用户询问之前/上次/以前谈过的内容,或需要调取特定时间段的对话记录时使用。提供时序查询(按今天/本周/本月/全部)和结果筛选能力。

此技能不主动注入历史——Agent 通过此技能的工具描述自行判断调用时机。

The English summary is being prepared. Showing the original description.

chefroger/smart-trade-ai95 stars(GitHub 95 + cccskills 0)

Run score Not tested

See how to install

Files included (9)

  • SKILL.md5.5 KB
  • assets/.gitkeep0 B
  • assets/README.md223 B
  • examples/.gitkeep0 B
  • examples/README.md245 B
  • references/.gitkeep0 B
  • references/README.md262 B
  • scripts/.gitkeep0 B
  • scripts/README.md304 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Chat Memory — 对话长期记忆

功能定位

查询本公司(company_id)下的历史对话记录。

工具

chat_memory_list

描述:查询历史对话记录。当用户提到"之前""上次""以前"等时间相关词汇, 或询问过去讨论过的内容时使用此工具。

参数:

  • company_id (必填): 当前会话的公司 ID。从 system prompt 的 Trade Context 段读取;不要让用户输入。
  • time_range: 时间范围枚举值(与 recent_days/recent_months 互斥)
    • "today" — 今天(00:00 → 现在)
    • "yesterday" — 昨天(昨天 00:00 → 今天 00:00)
    • "this_week" — 本周(本周一 00:00 → 现在)
    • "last_week" — 上周(上周一 00:00 → 本周一 00:00)
    • "this_month" — 本月(本月 1 号 00:00 → 现在)
    • "last_month" — 上月(上月 1 号 00:00 → 本月 1 号 00:00)
    • "this_year" — 今年(今年 1 月 1 日 00:00 → 现在)
    • "last_year" — 去年(去年 1 月 1 日 00:00 → 今年 1 月 1 日 00:00)
    • "all" — 全部历史(默认)
  • recent_days: 可选,过去 N 天(含今天)。用于枚举表达不了的相对区间("上上周三" → 14)。
  • recent_months: 可选,过去 N 个月(含本月)。用于 "前几个月" 这类模糊词。
  • limit: 最大返回消息数,默认 20

返回值:

{
  "company_id": 1,
  "time_range": "last_week",
  "recent_days": null,
  "recent_months": null,
  "count": 5,
  "rows": [
    {"id": 123, "query": "...", "response": "...", "created_at": "2026-05-10T14:32:00"}
  ]
}

使用示例

用户:"你上次推荐的那个供应商叫什么名字?"

→ 调用 chat_memory_list(company_id=1, time_range="all", limit=20) → 从结果中找到与供应商相关的对话 → 回答用户问题

用户:"我们这周谈过哪些客户?"

→ 调用 chat_memory_list(company_id=1, time_range="this_week", limit=20) → 汇总结果中涉及客户的对话 → 回答用户问题

用户:"上礼拜三跟你说过那个德国客户叫什么来着?"

→ 枚举表达不了,用 recent_days=14(覆盖"上上周三"到今天): → chat_memory_list(company_id=1, recent_days=14, limit=20)

用户:"前几个月有没有谈到 XXX?"

→ 模糊时间词,用 recent_months=3: → chat_memory_list(company_id=1, recent_months=3, limit=20)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

(已禁用) SMTP 邮件发送 — 此 skill 已被禁用,不会被系统触发

The English summary is being prepared. Showing the original description.

chefroger/smart-trade-ai95Updated Oct 27, 2026

全自动外贸客户开发编排器 — 一句话触发「搜索 → 背调 → 评分 → 写信 → 发送 → 入库 → 日志」端到端流水线

The English summary is being prepared. Showing the original description.

chefroger/smart-trade-ai95Updated Oct 27, 2026

买家画像与角色分层 — 按决策角色(采购/技术/老板)定制价值主张和沟通策略

The English summary is being prepared. Showing the original description.

chefroger/smart-trade-ai95Updated Oct 27, 2026

国内企业线索挖掘 — 找货源厂家(主)/ 挖竞品国内厂家(重点)/ 找国内客户,全部走免费公开渠道(搜索引擎/展会/海关记录/招聘/招投标/1688 人工核对)

The English summary is being prepared. Showing the original description.

chefroger/smart-trade-ai95Updated Oct 27, 2026

B2B 冷 outreach 邮件撰写(产品推广信、开发信、跟进信),基于公司产品数据与目标市场情报生成个性化邮件

The English summary is being prepared. Showing the original description.

chefroger/smart-trade-ai95Updated Oct 27, 2026

傻瓜式客户开发向导 — 三问启动,自动搜索客户 + 生成开发信

The English summary is being prepared. Showing the original description.

chefroger/smart-trade-ai95Updated Oct 27, 2026

See all skills by chefroger

Report a problem with this skill