mirachat-skill

Skill for invoking Mira desktop capabilities via local localhost. Applicable to querying monitoring status, starting/stopping monitoring, retrieving contacts and chat history, modifying contact operation parameters, manually triggering proactive maintenance, querying or updating current persona prompts, and maintaining the knowledge base.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mirachat-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-88bdf12a63d18d3f0dfc919586d5120462b8a28889fe75663e2d95077ece46db. Verify the upstream source and version against https://skillhub.cn/skills/user_264d28f6/mirrachat before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Skill for invoking Mira desktop capabilities via local localhost. Applicable to querying monitoring status, starting/stopping monitoring, retrieving contacts and chat history, modifying contact operation parameters, manually triggering proactive maintenance, querying or updating current persona prompts, and maintaining the knowledge base.

0 Downloads

Introduction source: third_party · user_264d28f6 · 1.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: mirachat_skill
description: 当需要通过本机 localhost 调用 Mira 桌面端能力时使用。适用于查询监控状态、启停监控、查询联系人与聊天记录、修改联系人运营参数、手动触发主动维护、查询或更新当前分身提示词,以及维护知识库。

MiraChat 本地技能

0. 概念说明

  1. 人设Prompt 作用:用于定义分身的身份、 语气、说话风格、禁止行为、回答边界 推荐写法:建议包含以下内容:角色定位、 服务对象、说话风格、回复长度、禁止事项、转化目标

  2. 自定义知识Prompt 作用:用于补充固定且高频会被用到的信息,例如:业务介绍、服务流程、报价规则、营业时间、退费规则 与知识库的区别:自定义知识提示适合短小、固定、必须长期生效的规则,会直接塞入模型上下文,不宜超过2000字;知识库适合大量资料、文档、说明书、课件等需要检索的内容

  3. 知识库 作用:对资料进行知识分块和入库,供AI生成回复时检索知识用 现状:目前只能对文本类知识进行入库,若用户要求入库的文档包含图片,则需要先理解图片的信息转为文本后再进行入库

1. 功能概览

这个技能用于调用本机已运行的 Mira 桌面端本地接口。

如果用户是在咨询 Mira 软件本身怎么用、某个页面参数怎么配、某项功能入口在哪,优先参考:

  • references/user_guides.md

当前支持两类能力:

查询部分

  1. 查询监控状态
  2. 搜索联系人
  3. 查询联系人详情
  4. 查询联系人聊天记录
  5. 查询联系人聊天排行
  6. 查询当前分身的人设 Prompt 与自定义知识
  7. 查询和构建知识库

执行部分

  1. 启动监控
  2. 停止监控
  3. 给单个联系人发送文本消息
  4. 修改联系人备注或主动维护配置
  5. 手动触发指定联系人的主动维护
  6. 更新当前分身的人设 Prompt 与自定义知识

2. 先确认本地服务可连接

默认地址:

  • http://127.0.0.1:8081

如果设置了环境变量 WECHAT_AVATAR_PLUS_BASE_URL,优先使用该地址。

如果默认地址无法连接,按这个顺序处理:

  1. 让用户到 回复设置 -> 高级参数 -> 运行时 查看控制台端口
  2. 改用 http://127.0.0.1:<端口>
  3. 如仍失败,再尝试常见端口:8081、8092、8080、8000、8888

3. 调用方式

优先使用脚本:scripts/invoke_wechat_avatar_plus.py

消息监控与发送

监控状态

触发示例:“看看现在有没有在监控”,“查询当前监控状态”

python scripts/invoke_wechat_avatar_plus.py monitor-status

启动监控

触发示例:“开始监控”,“把自动回复跑起来”

python scripts/invoke_wechat_avatar_plus.py monitor-start

停止监控

触发示例:“停止监控”,“先暂停自动回复”

python scripts/invoke_wechat_avatar_plus.py monitor-stop

发送文本消息

触发示例:“给 Mira 发一句:你好”,“替我给某个联系人发一条消息”

python scripts/invoke_wechat_avatar_plus.py send-message --contact "Mira" --text "你好"

长文本优先走 UTF-8 文件:

python scripts/invoke_wechat_avatar_plus.py send-message --contact "Mira" --text-file "D:\path\message.txt"

联系人管理

联系人排行

触发示例:“看下最近 7 天聊天最多的前 10 个联系人”,“统计最近谁聊得最多”

python scripts/invoke_wechat_avatar_plus.py contacts-ranking --days 7 --limit 10

查询联系人详情

触发示例:“看看 Mira 的联系人详情”,“查下 Mira 现在有哪些标签、备注和主动维护状态”

python scripts/invoke_wechat_avatar_plus.py contact-detail --contact-name "Mira"

也可以用:

python scripts/invoke_wechat_avatar_plus.py contact-detail --contact-id 525
python scripts/invoke_wechat_avatar_plus.py contact-detail --wechat-name "wxid_xxx"

查询聊天记录

触发示例:“看看 Mira 最近 20 条聊天记录”,“把 Mira 最近的对话拉出来”

python scripts/invoke_wechat_avatar_plus.py contact-messages --contact-name "Mira" --limit 20

修改联系人信息

触发示例:“把 Mira 的备注改成高意向客户”,“给 Mira 开启主动维护,24 小时未回复就触发”

修改备注:

python scripts/invoke_wechat_avatar_plus.py contact-update --contact-name "Mira" --remark-name "高意向客户"

修改主动维护配置:

python scripts/invoke_wechat_avatar_plus.py contact-update --contact-name "Mira" --proactive-enabled true --idle-trigger-hours 24 --max-unanswered-count 5

手动触发主动维护

触发示例:“立刻给 Mira 发一条主动维护消息”,“手动触发一下 Mira 的主动跟进”

python scripts/invoke_wechat_avatar_plus.py contact-proactive-trigger --contact-name "Mira" --reason "手动调试"

提示词管理

查询当前 Prompt

触发示例:“看看当前分身的人设 prompt”,“查询现在生效的人设和自定义知识”

python scripts/invoke_wechat_avatar_plus.py prompts-get

更新当前人设/自定义知识 Prompt

触发示例:“把当前分身的人设改一下”,“更新当前自定义知识”

推荐流程:

  1. 先执行 prompts-pull,拿到最新内容 执行后会在 prompt_files 目录生成: 当前人设.txt、当前知识.txt、_meta.json
    python scripts/invoke_wechat_avatar_plus.py prompts-pull
  2. 直接修改 prompt_files/当前人设.txt 或 prompt_files/当前知识.txt
  3. 再执行 prompts-push 回写
    python scripts/invoke_wechat_avatar_plus.py prompts-push

    每次 prompts-push 都会先获取当前线上最新 Prompt,并在 prompt_files 下自动备份: 人设-时间戳.txt和知识-时间戳.txt

知识库管理

知识库相关能力仅 Plus 可用,若返回权限错误,先确认软件授权状态、AI 设置能力和套餐。

查询知识库现状

适合场景:“看看当前知识库状态”,“查下现在有哪些文件、多少分块”,“确认当前分身挂载的是哪个知识库”

推荐顺序:

  1. 先执行 kb-list 看知识库列表和当前挂载关系
  2. 再执行 kb-status 看某个知识库的文件列表、文件数、文档数、分块数和当前构建状态
  3. 如果要查看某个知识文件的真实路径或正文内容,再执行 kb-file-read

新增或更新知识

适合场景:“把这段售后说明沉淀进知识库”,“把这个本地文档加进知识库”,“把同名 FAQ 更新成新版”

推荐顺序:

  1. 文本类优先用 kb-add-text 或 kb-upsert-text
  2. 本地文件用 kb-add-file
  3. 本地资料目录用 kb-add-folder
  4. 如需控制文件是否允许自动发送,可再执行 kb-set-sendable

触发并等待构建

适合场景:“刚加完资料,重新构建一下知识库”,“等知识库构建完成再继续后续操作”

推荐顺序:

  1. 执行 kb-build
  2. 再执行 kb-build-wait

清理知识文件

适合场景:“把过期资料删掉”,“删除误传文件”

推荐顺序:

  1. 先 kb-status 找到目标文件
  2. 再执行 kb-delete-file

知识库底层命令、参数和返回说明见:

  • references/knowledge_api_reference.md

查看完整返回

默认输出是精简摘要,只有在确实需要排查问题时,才加:

python scripts/invoke_wechat_avatar_plus.py --raw prompts-get

4. 使用约定

  1. 优先按联系人名称调用,contact_id 只作为稳定主键备用
  2. 需要修改长文本内容时,优先使用 UTF-8 文件输入,不要直接把长中文塞进命令行参数
  3. 默认使用脚本,不直接手写 HTTP 请求,除非脚本能力不足

5. 约束

严格按本技能说明调用 Mira 能力,不通过其他方式绕过本技能。

参考

接口细节见:

  • references/api_reference.md
  • references/knowledge_api_reference.md

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 Mira 桌面端本地接口的完整调用能力,涵盖监控、联系人管理、聊天记录、提示词管理、知识库维护等核心功能
  • 面向 Mira 用户解决明确的本地自动化与数据管理需求,实用性强
Trigger Precision85/100

Highlights

  • description 清晰描述了适用场景和具体功能范围,触发词覆盖合理,边界清晰
Structure and Standards92/100

Highlights

  • 结构完整,包含概念说明、功能概览、调用方式、使用约定、约束等章节
  • 步骤划分清晰,有具体命令示例,frontmatter 完整
Execution Reliability88/100

Highlights

  • 工具来源明确,参数说明详细,覆盖了地址连接失败的处理流程
  • 对知识库权限错误有提示,整体可靠性良好
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • 127.0.0.1

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.