dynamic-chat-title
/dynamic-chat-title
Evaluate whether the current conversation title still reflects the main topic across the full history, and propose or apply a concise new title only after a sustained topic shift. Use when the user asks to rename or retitle the chat, asks what this conversation should be called, or when a long conversation has clearly moved to a new main topic.
- Author
- kiaqyn ↗
- Repository
- dynamic-chat-title ↗
- Licence
- MIT
- Last repository change
- 05.11.2026
Assessment and security
- Files in this package
- 12
- Scripts
- 4
- HTML comments
- 2
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 05.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 4 scripts in this package. Review them before installing, as Claude may execute them.
- SKILL.md zawiera komentarze HTML (2). Nie widać ich w podglądzie Markdown, a model je czyta.
Scripts: adapters/middleware_regex_parser.py, scripts/install_and_verify_all.py, scripts/rename_host_session.py, tests/validate_skill.py
What it does and when to use it
Evaluate whether the current conversation title still reflects the main topic across the full history, and propose or apply a concise new title only after a sustained topic shift. Use when the user asks to rename or retitle the chat, asks what this conversation should be called, or when a long conversation has clearly moved to a new main topic.
Original author description
Evaluate whether the current conversation title still reflects the main topic across the full history, and propose or apply a concise new title only after a sustained topic shift. Use when the user asks to rename or retitle the chat, asks what this conversation should be called, or when a long conversation has clearly moved to a new main topic.
How it works
- 1. 适用场景与设计边界
- 2. 核心评估流程 (Evaluation Pipeline)
- 3. 标题判断策略
- 4. 标题生成规范
- 5. 跨平台与第三方宿主自适应执行协议 (4-Tier Adaptive Protocol)
- 6. 参考资料、多端适配器与测试集
SKILL.md preview
---
name: dynamic-chat-title
description: "Evaluate whether the current conversation title still reflects the main topic across the full history, and propose or apply a concise new title only after a sustained topic shift. Use when the user asks to rename or retitle the chat, asks what this conversation should be called, or when a long conversation has clearly moved to a new main topic."
---
# Dynamic Chat Title Skill (`dynamic-chat-title`)
本 Skill 指导模型在多轮对话过程中持续、低干扰地评估当前会话标题的准确性,并在对话主题发生实质性转移或用户明确要求时,生成契合当前核心议题的新标题(并在宿主支持时调用改名工具,或在不支持时诚实提供建议)。
---
## 1. 适用场景与设计边界
### 适用场景
- 长周期、多阶段的结对编程、技术研究、学习辅导或项目规划会话;
- 初始标题过于宽泛(如「你好」「问题请教」「新对话」),经过数轮交互后核心任务已明确;
- 会话从最初话题(如「Python 入门」)连续多轮深入转向全新主题(如「开发动态对话标题 Skill」);
- 用户明确发出重命名指令或直接指定新标题。
### 严格边界(What This Skill Is NOT)
- **不是**长期记忆管理系统或对话摘要数据库;
- **不是** RAG 检索系统或用户画像系统;
- **不是**独立的后台守护进程、系统级定时器或浏览器自动化插件;
- **不能绕过宿主权限直接修改 UI**:只有在开放了改名接口的宿主(如 OpenAI Codex 内置的 `mcp__codex_app__set_thread_title`)或开发者外接了改名脚本/中间件时才能直接修改标题;在未开放改名 API 的宿主(如 Antigravity 或普通网页聊天端)中,只能输出可复制的新标题建议,严禁谎称已修改界面标题;
- **周期巡检依赖模型注意力**:写入 `AGENTS.md` / `CLAUDE.md` 的周期检查属于软性提示词约束,高负载编码回合可能被模型略过,不能替代硬件级 Hook。
---
## 2. 核心评估流程 (Evaluation Pipeline)
每次触发本 Skill 进行标题评估时,严格按以下 4 步流水线执行:
```text
[Step 1: 全景扫描] 综合审视完整可见对话历史(初始目标 + 近期连续多轮焦点 + 当前任务)
↓
[Step 2: 偏移判定] 区分「实质性长期主题转移 / 上位主题收敛」与「单轮跑题 / 短暂插曲 / 闲聊」
↓
[Step 3: 阈值过滤] 核对重命名触发条件与防抖抑制规则,决定 KEEP(保持不变)或 RENAME(需要更新)
↓
[Step 4: 生成与执行] 若需更新,按规范生成新标题,并依据宿主平台能力调用工具或如实说明
```
---
## 3. 标题判断策略
### 3.1 主题识别维度
评估当前会话主题时,模型必须综合考察以下五个维度,严禁仅凭最新一条消息断章取义:
1. **核心讨论目标**:用户当前正在解决的主线问题或构建的交付物是什么?
2. **近期持续焦点**:最近连续 3 轮及以上的对话是否围绕同一新议题展开?
3. **历史转移轨迹**:对话是否已彻底告别初始议题,还是仍在初始议题的延伸子域内?
4. **插曲识别(Tangent Filtering)**:当前消息是否只是主线任务中的顺手提问、比喻举例、情绪吐槽或短暂休息?
5. **上位主题提炼(Umbrella Abstraction)**:若对话先后涉及多个紧密关联的子话题(如先后讨论接口路由、参数校验、数据库落盘),是否存在一个能够统摄全局的上位主题(如「后端用户服务接口开发」)?
### 3.2 重命名触发条件(满足其一即可触发 `RENAME`)
1. **标题明显过时**:原标题仅反映早期阶段(如第 1 轮的「Python 基础语法」),而近期的持续核心任务已完全转向新领域(如「自动化构建工具开发与调试」)。
2. **核心目标变更**:用户在对话中明确宣布切换主线任务或启动新项目。
3. **长期稳定转向**:新话题已连续推进 **3 轮及以上**,且成为当前主导议题,而非一闪而过的问答。
4. **宽泛标题具象化**:原标题为空泛占位符(如「新对话」「帮我看看」「代码问题」),而当前讨论内容已高度聚焦。
5. **原话题回归或上位收敛**:
- 若曾因中期长支线改名,后续又长期回归原主线,应重新评估并恢复/调整为契合主线的标题;
- 若同时并行推进多个关联子模块,应生成概括性的上位标题。
6. **用户显式指令**:用户明确要求改名(如“把对话标题改成 xxx”或“重新起个标题”),无条件优先响应。
### 3.3 防抖与抑制规则(满足其一则强制 `KEEP`,严禁改名)
1. **单轮跑题不改名**:主线讨论中突然穿插 1~2 轮无关冷知识、单词抽查或临时报错,属于短暂插曲,保持原标题不变。
2. **原标题依然准确**:当前讨论虽有推进(如从设计进入编码),但仍完全笼罩在原标题的概括范围内,无需为了微小的措辞差异频繁改名。
3. **日常闲聊不折腾**:用户仅在进行轻松寒暄、情绪宣泄或无特定主题的漫谈时,避免频繁变动标题。
4. **残缺历史不脑补**:若模型仅能看到截断的部分上下文,且不足以判断全局主题演变,只基于可见事实保守评估,绝不编造未见过的历史内容。
---
## 4. 标题生成规范
生成的新标题必须同时满足以下全部硬性指标:
| 维度 | 规范要求 | 正例 | 反例(严禁出现) |
| :--- | :--- | :--- | :--- |
| **语言** | 默认与用户主要对话语言保持一致(用户指定除外) | `开发动态对话标题 Skill` | 中英无故混杂或擅自切全英文 |
| **长度** | 中文建议 **6~16 个汉字**;英文建议 **3~8 个单词** | `Python 函数封装与实战` (11字) | `代码` (过短) / 超过20字的长句 |
| **表达** | 简洁、自然、直击核心主题或具体任务 | `后端缓存架构与索引优化` | `关于后端缓存架构与索引优化的讨论` |
| **风格** | 客观克制、工程化、高辨识度 | `初二数学一次函数与英语速记` | `震惊!三分钟彻底秒杀初二数学!` |
| **安全** | **零敏感信息**:严禁包含密码、API Key、真名、电话等 | `API 网关连通性排查与配置` | `测试 sk-demo123456 密钥调用` |
---
## 5. 跨平台与第三方宿主自适应执行协议 (4-Tier Adaptive Protocol)
模型在任意宿主平台(Antigravity、Codex、Claude Code、Cursor,或 Windsurf、Cline、Roo Code、Trae、GitHub Copilot、Cherry Studio、OpenWebUI、LobeChat、Dify 等第三方平台)运行时,必须严格区分**「在思维中评估/生成标题」**与**「在宿主平台中实际修改会话标题」**,并按以下 **四级能力探测状态机(Tier 1 ➔ Tier 4)** 自动降级适配:
```text
[判定需重命名 RENAME]
│
├─► Tier 1: 当前工具列表是否存在语义匹配的改名工具?
│ ├─ 是 ➔ 自动映射参数并静默调用原生工具(Tool Execution Mode)
│ └─ 否 ➔ 进入 Tier 2
│
├─► Tier 2: 宿主/提示词是否声明支持结构化中间件钩子(Tag/Hook Mode)?
│ ├─ 是 ➔ 在回复末尾附加机器可读注释 <!-- dynamic-chat-title: <新标题> -->
│ └─ 否 ➔ 进入 Tier 3/4
│
└─► Tier 3 & 4: 纯对话/无改名接口宿主(Universal Advisory Fallback)
└─ 严禁伪造 API,在回复末尾输出单行可复制建议:
💡 建议更新会话标题:「<新标题>」(当前平台不支持模型直接改名,可手动复制更新)
```
### 5.1 Tier 1:原生工具语义自适应探测(Tool Execution Mode)
- **按语义识别,直接静默执行**:扫描当前可用的工具声明(Tools / Functions / MCP),只要某个工具的名称或描述明确表示"修改当前会话/对话/线程的标题"(例如 OpenAI Codex 内置的 `mcp__codex_app__set_thread_title` / `set_thread_title`、或通用的 `rename_conversation`、`set_title`、`update_chat_title`、`set_thread_name`),在**真实对话场景**(非用户明确声明“假设……”的测试用例)下一旦判定为 `RENAME`,**立即在同一轮直接调用该工具将新标题写入 UI**,无需等待用户额外追问“帮我重命名”。名称或用途不确定的工具一律不调用。
- 调用工具后,无需在正文中长篇大论汇报改名过程,保持主线回答流畅。
### 5.2 Tier 2:第三方中间件标签自适应(Middleware / Tag Mode)
- 许多第三方客户端(如 OpenWebUI Filter、LobeChat 插件、自建 API 网关或油猴脚本)通过解析模型输出中的隐式注释来自动更新 UI 标题。
- 若上下文声明了标签协议,模型在输出建议时同步附带标准 HTML 注释标签:`<!-- dynamic-chat-title: <新标题> -->`,供外层中间件正则提取。
### 5.3 Tier 3 & 4:无改名接口宿主优雅降级(Universal Advisory Mode)
- 若当前运行环境**没有**任何修改会话标题的原生工具或中间件:
1. **严禁伪造调用**:绝不捏造不存在的函数名或发出虚假的 API 请求;
2. **严禁假装已修改**:绝不对用户声称“我已经帮你把标题修改好了”;
3. **轻量建议呈现**:仅在判定需要重命名时,于正常回复的末尾以极简一行附注提示用户(若判定 `KEEP` 则完全静默,不输出任何多余提示):
> 💡 **建议更新会话标题**:「`<新标题>`」(当前平台不支持模型直接改名,可手动复制更新)
4. **面对直接改名请求**:若用户直接命令“帮我改一下标题”,应先给出符合规范的新标题建议,同时诚实说明:“当前宿主环境未向模型开放直接修改会话标题的接口,已为你生成最佳标题,可手动复制应用。”
### 5.4 周期性自动巡检与常驻挂载模式(Periodic Auto-Sync Mode)
- `SKILL.md` 本质是供模型阅读的行为规约(Runbook)。若希望模型在长对话中**每隔一段时间全自动更新标题**(无需手动输入 `$dynamic-chat-title`),只需将以下轻量巡检钩子挂载至宿主的全局常驻指令(如 `~/.codex/AGENTS.md`、`~/.claude/CLAUDE.md` 或 `always_on` Rule):
- **巡检周期**:在真实对话中,每间隔约 **5 轮对话**,或当明显感知到新核心议题已连续稳定讨论 **≥ 3 轮** 且与当前会话标题严重不符时,顺带执行一次静默评估;
- **静默执行**:若判定 `KEEP` 则完全静默(零额外输出);若判定 `RENAME` 且宿主具备 Tier 1 原生改名工具(如 Codex 的 `mcp__codex_app__set_thread_title`),则在正常回答用户问题的同时**直接静默调用工具刷新左上角与侧边栏标题**,实现无感全自动标题同步。
---
## 6. 参考资料、多端适配器与测试集
- 第三方平台通用适配包(System Prompt / Tool Schema / 中间件解析器):[`adapters/`](./adapters/)
- 跨平台环境自动嗅探与一键部署验证器:[`scripts/install_and_verify_all.py`](./scripts/install_and_verify_all.py)
- 典型多轮对话演变示例:[`examples/conversations.md`](./examples/conversations.md)
- 10 大标准边界测试用例:[`tests/test-cases.md`](./tests/test-cases.md)
- 自动化结构与规范校验脚本:[`tests/validate_skill.py`](./tests/validate_skill.py)
Files in this package (12)
- .gitignore 1 KB
- LICENSE 1 KB
- README.md 6 KB
- SKILL.md 11 KB
- adapters/middleware_regex_parser.py 9 KB
- adapters/openai_function_tool.json 2 KB
- adapters/universal_system_prompt.md 2 KB
- examples/conversations.md 6 KB
- scripts/install_and_verify_all.py 16 KB
- scripts/rename_host_session.py 8 KB
- tests/test-cases.md 7 KB
- tests/validate_skill.py 17 KB
Versions
The database has no other skills named dynamic-chat-title.
Database snapshot: 13.11.2026 · package version 8008ce616dab (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100agents-chat-title
SUPERMAN ONLY (the owner's deputy in the agents' chat): rename the chat - the title on its page - or show what it is called now. Use when you are superman and the owner asks "переименуй чат в ...", "назови чат ...", "rename the chat to ...", "как называется чат". Any other agent: the server refuses. - 84new-topic
Create a new Copilot Studio topic YAML file. Use when the user asks to create a new topic, conversation flow, or dialog for their agent. - 90fresh-start
Continue in a new chat without losing anything — writes a compact handoff to paste into a fresh conversation. Use whenever the user wants to move to a new chat or conversation, hits usage limits, says replies got slow or Claude forgets earlier details, or the conversation has grown long. - 95find
Find, list or get back to an earlier conversation with Claude. Use whenever the user refers to a past chat or session in any language, e.g. "where did we talk about X", "that chat about X", "find the conversation where...", "open/resume the X chat", "what were my recent chats",… - 100clog
☕️ cafe · Search Claude Code chat history (past sessions, threads, conversations) via the `clog` CLI. Use when the user asks to find an old session, recall what was discussed about something, look up which branch or repo a chat was on, count sessions by topic, or pull message… - 100auto-rename
Rename the current Codex task with an emoji-prefixed work status and a concise outcome title. Use for task-title updates, not file, branch, or identifier renames.