OpenParable
Skip to content
← Back to skills

Miloco Home Promote

Others
miloco-home-promote

Miloco Home Promote is an Agent Skill for general use published in the XiaoMi/xiaomi-miloco repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

home-dreaming 定时任务的 Promote 步骤,仅由该任务调用。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/XiaoMi/xiaomi-miloco/blob/HEAD/plugins/skills/miloco-home-promote/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/miloco-home-promote, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Promote(提升策展)

处理候选区中达到提升条件的知识,决定它们如何进入正式区。

仅在 miloco-home-dreaming cron 流程中激活,不单独使用。

执行步骤

  1. 执行 miloco-cli home-profile list --target both,关注 ready_to_promote
  2. 对每个 ready 条目,结合其 evidence_log 分析与正式区的关系
  3. 执行 miloco-cli home-profile profile-write 操作

提升决策

关系操作
全新(无匹配)op add,带 "from": "<candidate_id>"
相似(结论一致)op merge,带 id + "from": "<candidate_id>"
矛盾,新胜op replace,带 id + "from": "<candidate_id>"
矛盾,旧胜不操作(继续观察)

传入 from=<candidate_id> 后,工具自动删除该候选条目。

miloco-cli home-profile profile-write --ops '[
  {"op": "add", "from": "<candidate_id>", "entry": {"type": "member_routine", "subject_name": "爸爸", "content": "通常 7:30 出门上班", "confidence": 0.9}}
]'

矛盾裁决参考

  • evidence_count:谁被观察更多次
  • last_seen:谁更近期(习惯可能变了)
  • source:user_told > observed
  • evidence_log:证据质量和一致性

无法判断时保守处理——让候选继续积累。

注意

  • ready_to_promote 为空时,直接退出提升流程
  • 如有多个条目需要操作,优先在单次 --ops 中批量提交,提高效率