306 ohad6k

agent-profile-from-sessions Skill

当用户不断在对话中向编程 agent 重复解释同样的偏好(设计品味、视频风格、评审规则、工作如何验证,出现"我说过了""跟你讲过了"),或询问如何让 Claude Code、Codex、Copilot CLI 或 OpenCode 不再忘记其工作方式时使用。运行免费的本地 emulo --coach 报告,基于其过往会话展示重复的模式,附带日期凭证,然后提议生成一份经审阅的 you.md 档案。不适用于团队共享记忆、项目文档或单个被遗忘的事实。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Stop repeating yourself to your coding agent

This skill turns a complaint like "I keep telling you the same thing" into evidence from the user's own history, and then into something the agent can load next time.

Phases

  1. Confirm the pattern. Ask one question: which kind of instruction keeps coming back (design, video, writing, verification, code style)? Then continue. Do not mine anything yet.
  2. Run the free report. It is local and makes no model call:
   uvx emulo@0.6.7 --coach

Add --source claude (or codex, copilot, opencode) to read one tool only. On a large history it takes about a minute.

  1. Show the evidence. Quote the repeated asks it found, with their dates, grouped by theme. Say plainly that a text match cannot tell why something was repeated or whether the agent forgot it. The findings are possibilities, not a diagnosis.
  2. Decide the cheapest fix with the user:
  • one or two rules: suggest adding them to CLAUDE.md or AGENTS.md, or to the host's own memory, which may be enough;
  • a recurring style across many chats (for example how they want designs or films): offer a full Emulo profile.
  1. Only with an explicit yes, hand over to the emulo skill (npx skills add ohad6k/emulo@emulo). It mines the full history into a you.md after showing the planned model calls and getting cost approval.
  2. Review and install. The user reads every quote in the profile and removes anything they don't want. Then install it for the current host and verify it loads in a fresh task. In Claude Code the user types /you; in Codex, --target agents writes it into the project's AGENTS.md.

Do not

  • Do not claim the agent will "understand" the user or follow the profile. A profile improves context; it is not a guarantee.
  • Do not upload, paste or summarize session logs anywhere outside the user's machine.
  • Do not run the mining step without showing its planned model calls and getting a yes.
  • Do not write the profile into a committed file without naming the file and warning that it contains quotes from the user's sessions.
  • Do not use this for team-wide or shared memory. Emulo profiles are personal.

What it reads

Only the messages the user typed in supported local session logs (Claude Code, Codex, Copilot CLI, OpenCode, Google Antigravity). It does not read rules files, memory files or typed self-descriptions as evidence. Details: https://github.com/ohad6k/emulo and https://emulo.vercel.app/agent-profile