← Back to Skills Marketplace
106
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install persona-distiller
Description
聊天记录人格蒸馏技能。根据聊天记录提炼一个人的人格特征,生成结构化人格模型。 人格模型包含丰富的特征描述,生成的 system_prompt_snippet 更像本人在说话。 触发场景: - 用户提到要从聊天记录创建人格 ("蒸馏聊天记录"、"分析这个人怎么说话") - 用户提到要使用已有的人格 ("以XX的口气...
Usage Guidance
要点与建议:
- 功能与代码总体一致:该技能本地解析聊天记录、生成 .persona.json 并打印可注入的 system_prompt_snippet,代码没有发现网络上传行为。但请不要把敏感、未获授权或法律限制的聊天记录用于蒸馏。
- 依赖与运行环境:extract_chat.py 需要 openpyxl,仓库没有声明依赖或提供安装步骤。若要运行,请在受控环境中安装依赖(例如 python -m pip install openpyxl),并优先从可信源安装。
- 隐私与自动加载:SKILL.md 建议“新对话启动时自动扫描并记住” ~/.qclaw/personas 下的所有人格,这会在未逐一确认的情况下让代理加载多个人格。若你不希望自动加载,请在部署/使用时禁用该自动化步骤或手动检查目录内容。
- 文件与磁盘写入:脚本会在用户主目录创建并写入 ~/.qclaw/personas,包含创建、编辑、删除(activate.py delete/edit/fix_labels.py 会修改文件)。安装前备份该目录并检查现有文件以避免误删除或覆盖。
- 最佳实践:在沙箱或隔离账户中先试运行,对生成的 .persona.json 做人工审阅(尤其 system_prompt_snippet),确认没有隐私泄露或不当模仿目标;考虑移除或修改 SKILL.md 中的“自动扫描/记住”指令,改为显式按需激活。
- 如果你需要更高信心:请求技能作者补充安装说明(声明依赖)、删除硬编码路径示例并改为通用说明、并明确是否/如何在代理中做自动加载(及如何获得用户确认)。
Capability Analysis
Type: OpenClaw Skill
Name: persona-distiller
Version: 1.0.1
The skill bundle contains a shell injection vulnerability in `scripts/activate.py`, where the `system_prompt_snippet` (which can be derived from untrusted chat logs via `distil.py`) is passed unsanitized into a PowerShell command string using `subprocess.run`. Furthermore, `SKILL.md` contains hardcoded, non-portable Windows absolute paths (`C:\Users\21115\.qclaw\...`) and instructs the AI agent to automatically scan these directories and load their content into its system prompt/memory upon startup. While these appear to be poorly implemented features or developer oversights rather than intentional malware, the combination of shell injection risk and instructions for the agent to perform broad file system access makes the bundle high-risk.
Capability Tags
Capability Assessment
Purpose & Capability
技能名/描述、命令行工具和 JSON 人格模型之间是一致的:脚本负责提取聊天记录、生成/编辑/导出 .persona.json 并在激活时打印 system_prompt_snippet。没有要求与用途无关的网络凭据或外部服务访问。唯一小问题是 SKILL.md 文档中举例使用了一个硬编码的 Windows 路径 (C:\Users\21115\...),而实际脚本使用 os.path.expanduser('~'),说明文档示例未通用化但功能上并不违背目的。
Instruction Scope
SKILL.md 明确指示“新对话启动时,自动扫描人格库并记住每个人的特征”,这是对代理在启动/新对话时读取用户主目录下 ~/.qclaw/personas 并将所有 snippet 注入/记忆的行为性指令——这是超出单次按需蒸馏的持久化行为,可能导致未经明确用户确认就加载他人的人格数据。文档还声称“仅本地蒸馏不上传数据”,且代码中没有网络调用,未见数据外发逻辑,但自动扫描/加载所有 persona 文件是一个隐私与授权风险。
Install Mechanism
仓库没有安装规范(instruction-only / no install spec),这降低了安装风险(不会自动下载远程可执行代码),但代码依赖 openpyxl(extract_chat.py import openpyxl)以及 Python 环境;这些依赖未在元数据或文档中声明,可能导致运行失败或安全评估遗漏(用户可能需要自行 pip install openpyxl)。脚本会在用户主目录下创建 ~/.qclaw/personas 并写入文件,这是预期行为但会在磁盘上持久化数据。
Credentials
技能不要求任何环境变量或凭证(requires.env 为空),这是合理且比例适当。需要注意的是脚本会访问并修改用户主目录下的 .qclaw/personas(读/写/删除/编辑 persona 文件),这与其功能相关但构成对本地文件系统的较高访问面,用户应确认该目录下没有敏感未获授权的聊天记录或人格文件。
Persistence & Privilege
虽然 registry flags 中没有设置 always:true(良好),SKILL.md 指示 AI 在新对话启动时“自动扫描人格库并记住每个人的特征”,这等于在指令层面请求长期/跨会话记忆与自动启用行为。平台不会强制执行这点,但如果代理遵循该 SKILL.md 说明,会产生持续影响并提高隐私/滥用风险。
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install persona-distiller - After installation, invoke the skill by name or use
/persona-distiller - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- 移除了对具体默认人格文件位置及样例的说明,改为“自己设置即可”,提升灵活性。
- 其余说明、特征结构和使用示例等未发生明显变动。
- 无新增功能或修复,仅为文档精简优化和去除个人目录示例。
v1.0.0
Initial release of persona-distiller — 聊天记录人格蒸馏技能:
- 支持自动扫描本地目录,激活/切换多个人格,AI 自动匹配说话风格
- 聊天记录(xlsx/txt)一键蒸馏,生成结构化人格 JSON 文件(含 system_prompt_snippet)
- 丰富特征维度提取:语气、词汇、话题、行为风格、语句与表情习惯等
- 附人性化管理脚本(列出/查看/删除人格)
- 自动兼容微信聊天记录格式,注重隐私本地处理
Metadata
Frequently Asked Questions
What is persona-distiller?
聊天记录人格蒸馏技能。根据聊天记录提炼一个人的人格特征,生成结构化人格模型。 人格模型包含丰富的特征描述,生成的 system_prompt_snippet 更像本人在说话。 触发场景: - 用户提到要从聊天记录创建人格 ("蒸馏聊天记录"、"分析这个人怎么说话") - 用户提到要使用已有的人格 ("以XX的口气... It is an AI Agent Skill for Claude Code / OpenClaw, with 106 downloads so far.
How do I install persona-distiller?
Run "/install persona-distiller" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is persona-distiller free?
Yes, persona-distiller is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does persona-distiller support?
persona-distiller is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created persona-distiller?
It is built and maintained by JCDuann (@jcduann); the current version is v1.0.1.
More Skills