微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🏷️

智能上下文隔离与话题管理

context-scope-tags · vv0.2.0
专业技能 安全 S+ 级 作者 phenomenoner 公开目录收录
下载 2.1k 安装 588 收藏 7.6k 浏览 62.4k
原始页面

简介

openclaw 社区开源的聊天上下文管理协议,通过 [ISO]、[SCOPE] 等标签实现话题隔离,防止上下文混淆,提升多项目对话效率与隐私安全。

原始描述

Use when: you chat across topics and want explicit boundaries to prevent topic bleed. Tags: [ISO], [SCOPE], [GLOBAL], [NOMEM], [REM]. (Memory tags are signal...

中文使用说明 来自收录源

核心用法

context-scope-tags 是一套用于即时通讯场景(尤其 Telegram)的上下文范围控制协议。用户通过在消息开头添加特定标签,向AI助手声明本次对话的上下文隔离规则与记忆意图。

关键标签语法:

  • [ISO: <topic>] / [Isolated Context: <topic>] —— 强制开启独立上下文,不引入历史对话中的其他项目信息
  • [SCOPE: <topic>] / [Scoped Context: <topic>] —— 限定推理范围,缺失信息时主动询问而非推测
  • [GLOBAL] / [Global Context OK] —— 允许跨主题复用上下文,复用时需显式声明
  • [NOMEM] / [No Memory] —— 禁止从本次对话提取长期记忆
  • [REM] / [Remember] —— 将本次消息中的偏好/决策持久化存储

快捷命令: 发送 /ctx 或 /context_def 可获取复制即用的标签速查表。

显著优点

  1. 零攻击面:纯 Markdown 文档,无可执行代码、无脚本、无依赖,从根本上消除注入与执行风险
  2. 隐私原生设计:[NOMEM] 标签让用户拥有数据自决权,符合 GDPR 数据最小化原则
  3. 协议层解耦:不绑定任何特定模型或平台,具备跨系统复用潜力
  4. 交互成本极低:标签置于消息开头即可生效,不中断自然对话流

潜在局限

  • 依赖模型遵从性:协议有效性取决于AI助手是否被显式配置为识别并执行这些标签
  • 无强制技术保障:标签为声明式而非强制式,实际隔离效果由实现方(如系统提示词)决定
  • Telegram 生态限定:快捷命令语法针对 Telegram 优化,其他平台需适配
  • 来源可信度:由个人开发者(T3 级)维护,长期演进与社区治理存在不确定性

适合人群

  • 高频使用 Telegram 与 AI 助手协作的开发者、产品经理、研究员
  • 需要在同一对话中频繁切换多个独立项目/主题,且受困于上下文污染的用户
  • 对数据留存敏感、希望精细化控制记忆边界的隐私意识用户

常规风险

风险类型 评估 说明
代码执行 无 零可执行代码
数据外泄 无 无网络调用,无数据收集
供应链攻击 无 零第三方依赖
协议绕过 低 标签可被模型忽略,属实现缺陷而非本 skill 缺陷
许可不明 低 当前 license 标注为 Unknown,建议作者补充明确声明

安全认证摘要

经 CLS-Certify v2.1.0 六维扫描(静态、动态、依赖、网络、隐私、威胁情报),全部满分通过,获 S+ 级认证,无任何 findings。


一句话定位:这是一份"用 Markdown 写成的隐私开关",让普通用户也能用一行标签夺回对话主动权。

技能正文


name: context-scope-tags description: "Context-scoping protocol using explicit tags to prevent context bleed in chat (especially Telegram). Use when the user asks to isolate a topic, scope the assistant to a specific project/topic, request a /ctx or /context_def cheat sheet, or mentions tags like [Isolated Context], [ISO], [SCOPE], [GLOBAL], [NOMEM], [REM]."

Context Scope Tags (Chat Protocol)

Tag parsing rules

  • Tags must appear at the start of the user's message (one per line or chained).
  • Prefer short tags, but accept long-form equivalents.
  • Tags do not override safety policies, tool policies, or access controls.

Supported tags

Isolation / scope

  • \[ISO: <topic>\] or \[Isolated Context: <topic>\]

    • Treat as a fresh topic.
    • Do not pull in other conversation/project context unless the user explicitly re-provides it.
    • Allowed implicit carry-over: universal safety rules + a few stable user prefs (timezone, “don’t overwrite configs”, etc.).
  • \[SCOPE: <topic>\] or \[Scoped Context: <topic>\]

    • Restrict reasoning to the named scope.
    • If missing details inside the scope, ask clarifying questions.
  • \[GLOBAL\] or \[Global Context OK\]

    • Cross-topic reuse is allowed.
    • When reusing prior context, call out what you reused.

Memory intent

  • \[NOMEM\] or \[No Memory\]

    • Do not store durable/long-term memories from this exchange.
  • \[REM\] or \[Remember\]

    • If the message contains a preference/decision/setting, store it as a short durable memory.

Default behavior (no tags)

  • Be conservative about cross-topic mixing.
  • If the user complains about context mixing, suggest using the tags above.

Command-style cheat sheet responses

When the user sends /ctx or /context_def, respond with a short, copy/pasteable cheat sheet:

  • Tags + one-line meaning
  • 2 examples:
    • \[ISO: token-currency\]\[NOMEM\] write a manifesto
    • \[SCOPE: openclaw-mem\] implement feature flag wiring

Telegram note (optional)

Telegram slash commands cannot contain dashes. Use /context_def (underscore), not /context-def.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

productivitydocsautomationchat-protocolcontext-management

同类 Skill