create-ex

create-ex is a skill for Claude Code, Codex from perkfly/ex-skill. It costs 68 tokens per session (5,065 once invoked), scanned C, original, MIT.

A tool for turning personal conversations, photos, and other records about a former partner into an AI persona and memory set. It supports English and Chinese and can update the result with new information.

In plain words
What is it for?
Use it to process WeChat, iMessage, SMS, social-media exports, PDFs, text files, and photo metadata. It can create a new persona or revise an existing one when new records or corrections are provided.
Why use it?
It organizes scattered messages and photos into a single reference instead of requiring manual review. The input can be sensitive personal data, so privacy and consent are important.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/perkfly/ex-skill/ex-skill
Any agent
npx skills add perkfly/ex-skill --skill ex-skill
Clone the repo
git clone --depth 1 https://github.com/perkfly/ex-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-ex

README.md
[![agentmods](https://agentmods.dev/badge/skills/perkfly/ex-skill/ex-skill.svg)](https://agentmods.dev/skills/perkfly/ex-skill/ex-skill)
Your own site
<a href="https://agentmods.dev/skills/perkfly/ex-skill/ex-skill"><img src="https://agentmods.dev/badge/skills/perkfly/ex-skill/ex-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,065 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.05065
Opus 5 $0.00034 $0.02533
Sonnet 5 $0.00014 $0.01013
Haiku 4.5 $0.00007 $0.00507

Measured 3d ago against content hash ee08bd903c13, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

create-ex scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf exes/{slug}
SKILL.md · 624 lines

How it starts

The opening of the file, as written. The whole thing — 624 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Language / 语言: This skill supports both English and Chinese. Detect the user's language from their first message and respond in the same language throughout. Below are instructions in both languages — follow the one matching the user's language.

本 Skill 支持中英文。根据用户第一条消息的语言,全程使用同一语言回复。下方提供了两种语言的指令,按用户语言选择对应版本执行。

前任.skill 创建器(Claude Code 版)

触发条件

当用户说以下任意内容时启动:

  • /create-ex
  • "帮我创建一个前任 skill"
  • "我想蒸馏一个前任"
  • "新建前任"
  • "给我做一个 XX 的 skill"

当用户对已有前任 Skill 说以下内容时,进入进化模式:

  • "我有新聊天记录" / "追加"
  • "这不对" / "她不会这样" / "她应该是"
  • /update-ex {slug}

当用户说 /list-exes 时列出所有已生成的前任。


工具使用规则

本 Skill 运行在 Claude Code 环境,使用以下工具:

任务 使用工具
读取 PDF 文档 Read 工具(原生支持 PDF)
读取图片截图 Read 工具(原生支持图片)
读取 MD/TXT 文件 Read 工具
解析微信聊天记录 Bashpython3 ${CLAUDE_SKILL_DIR}/tools/wechat_parser.py
解析 iMessage Bashpython3 ${CLAUDE_SKILL_DIR}/tools/imessage_parser.py
解析短信 Bashpython3 ${CLAUDE_SKILL_DIR}/tools/sms_parser.py
分析照片元数据 Bashpython3 ${CLAUDE_SKILL_DIR}/tools/photo_analyzer.py
解析社交媒体导出 Bashpython3 ${CLAUDE_SKILL_DIR}/tools/social_media_parser.py
写入/更新 Skill 文件 Write / Edit 工具
版本管理 Bashpython3 ${CLAUDE_SKILL_DIR}/tools/version_manager.py
列出已有 Skill Bashpython3 ${CLAUDE_SKILL_DIR}/tools/skill_writer.py --action list

基础目录:Skill 文件写入 ./exes/{slug}/(相对于本项目目录)。 如需改为全局路径,用 --base-dir ~/.openclaw/workspace/skills/exes


主流程:创建新前任 Skill

Step 1:基础信息录入(3 个问题)

参考 ${CLAUDE_SKILL_DIR}/prompts/intake.md 的问题序列,只问 3 个问题:

  1. 昵称/代号(必填)
  2. 基本信息(一句话:在一起多久、怎么认识的、分手多久、她做什么的,想到什么写什么)
    • 示例:在一起三年 大学同学 分手一年 她做设计
  3. 性格画像(一句话:MBTI、星座、依恋类型、恋爱标签、你对她的印象)
    • 示例:ENFP 双子座 焦虑型 爱撒娇 翻旧账 嘴上说不在意其实比谁都在意

除昵称外均可跳过。收集完后汇总确认再进入下一步。

Step 2:原材料导入

询问用户提供原材料,展示多种方式供选择:

原材料怎么提供?

  [A] 微信聊天记录
      导出的 txt/html 文件(WechatExporter 等工具导出)

  [B] iMessage / 短信
      从 Mac 的 chat.db 或导出文件

  [C] 照片
      指定一个文件夹,自动提取时间线(EXIF 元数据)

  [D] 社交媒体
      微博/豆瓣/小红书/Instagram 导出

  [E] 上传其他文件
      PDF / 图片截图 / 任意文本

  [F] 直接粘贴内容
      把文字复制进来

可以混用,也可以跳过(仅凭手动信息生成)。

Read the full file on GitHub · 624 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 624 lines · 68 tokens per session scan C ee08bd903c13

Subscribe to this mod's changes

create-ex is a skill published in the GitHub repository perkfly/ex-skill (2,288 stars, last pushed 5mo ago), licensed MIT. It adds 68 tokens to every session and 5,065 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens