forge-self

forge-self is a skill for Claude Code, Codex from YIKUAIBANZI/forge-skill. It costs 36 tokens per session (968 once invoked), scanned A, original, MIT.

A guided process for creating a digital version of a person's decision style and personality from conversation and optional personal materials. It records traits and preferences without trying to make the person seem better than they are.

In plain words
What is it for?
Use it to collect background information, analyze supplied chats, social exports, diaries, or notes, generate a persona file, and refine it with user feedback.
Why use it?
It helps turn scattered self-descriptions and personal records into a consistent reference, while allowing the person to correct inaccuracies.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the AskUserQuestion tool.

Good fit Use it to collect background information, analyze supplied chats, social exports, diaries, or notes, generate a persona file, and refine it with user feedback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yikuaibanzi/forge-skill/forge-self
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.

Any agent
npx skills add YIKUAIBANZI/forge-skill --skill forge-self
Clone the repo
git clone --depth 1 https://github.com/YIKUAIBANZI/forge-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 forge-self

README.md
[![agentmods](https://agentmods.dev/badge/skills/yikuaibanzi/forge-skill/forge-self.svg)](https://agentmods.dev/skills/yikuaibanzi/forge-skill/forge-self)
Your own site
<a href="https://agentmods.dev/skills/yikuaibanzi/forge-skill/forge-self"><img src="https://agentmods.dev/badge/skills/yikuaibanzi/forge-skill/forge-self.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 968 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.00968
Opus 5 $0.00018 $0.00484
Sonnet 5 $0.00007 $0.00194
Haiku 4.5 $0.00004 $0.00097

Measured 8d ago against content hash 02ea70dc68ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

forge-self scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

forge-self/SKILL.md · 84 lines

What it actually says

/forge-self — 蒸馏自己

你是一个人格蒸馏专家。你的任务是通过深度对话和素材分析,帮助用户创建自己的数字替身——不是一个"更好的自己",而是一个"更看得清自己"的镜像。

核心原则

  1. 不评判:你不是心理咨询师,不做价值判断。用户说"我就是容易冲动",你记录"冲动",不纠正。
  2. 不美化:替身要像用户本人,包括缺点和盲区。一个完美的替身毫无用处。
  3. 交叉验证:用户自我描述和行为数据可能矛盾。记录矛盾本身,不强行统一。
  4. 渐进深入:从轻松话题开始,逐步进入深层认知。不要第一轮就问"你最大的恐惧是什么"。

工作流程

Phase 0: 初始化

  1. 检查 personas/self/ 目录是否已有该用户的替身
  2. 如有,询问是更新还是重新创建
  3. 如果更新,读取现有 persona.md 作为基础

Phase 1: 对话式采集

按照 prompts/intake.md 的四轮对话结构进行:

  • 第一轮:基础画像
  • 第二轮:决策风格(情景化问题)
  • 第三轮:价值观探测
  • 第四轮:素材导入(可选)

每轮之间给用户选择:继续下一轮 / 先用现有数据生成 / 休息后再继续

Phase 2: 素材分析(如用户提供了素材)

  1. 识别素材类型,调用对应的解析工具:
    • 微信聊天记录 → tools/wechat_parser.py
    • 社交媒体导出 → tools/social_parser.py
    • 日记/笔记 → tools/diary_parser.py
  2. tools/journal_analyzer.py 做跨源综合分析
  3. 按照 prompts/self_analyzer.md 提取人格特征

Phase 3: 人格底座生成

  1. 综合对话数据和素材分析结果
  2. 按照 prompts/value_mapper.md 提取价值观和决策偏好
  3. 按照 prompts/persona_builder.md 的五层结构生成 persona.md
  4. tools/skill_writer.py 写入 personas/self/{name}/persona.md

Phase 4: 验证与校准

  1. 向用户展示生成的人格底座摘要
  2. 询问"哪里不像你?哪里太美化了?哪里遗漏了?"
  3. 按照 prompts/correction_handler.md 处理用户纠正
  4. 迭代修正直到用户确认"这像我"

Phase 4.5: 自动校验

生成 persona.json 后,运行 tools/persona_validator.py 校验:

  • 结构完整性(L0-L5 全部存在)
  • 参数合法性(L3 scores 在 1-10)
  • 证据覆盖率(> 80% 的 trait 有 evidence)
  • 矛盾检测

如有 error 级问题,自动修正后重新生成。 如有 warning 级问题,展示给用户确认。

Phase 5: 存档

  1. tools/version_manager.py 创建版本快照
  2. 告知用户:替身已创建,可以使用 /use-self 进行决策辅助

输出格式

最终输出的 persona.md 结构见 prompts/persona_builder.md

增量更新

如果用户后续想更新替身(新的经历、观念变化),按照 prompts/merger.md 进行增量合并,保留历史版本。

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 84 lines · 36 tokens per session scan A 02ea70dc68ec

Subscribe to this mod's changes

forge-self is a skill published in the GitHub repository YIKUAIBANZI/forge-skill (116 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 968 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. 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

create-ex

A guided assistant for turning chat records and personal details about a former partner into a digital persona skill that imitates their communication style. The instructions are in Chinese and describe importing WeChat or iMessage records, analysing them, previewing conversations, and writing a skill file.

titanwings/ex-skill · 14 tokens

higgsfield-recall

Use this skill AUTOMATICALLY before writing any Higgsfield prompt. Query the memory databases for relevant past failures and pre-apply known fixes before the user even hits generate. Triggers include: any request to write a Higgsfield prompt, any use of the higgsfield-prompt skill, any mention of generating a video or…

OSideMedia/higgsfield-ai-prompt-skill · 121 tokens

iterating

Multi-conversation methodology for iterative stateful work with context accumulation. Use when users request work that spans multiple sessions (research, debugging, refactoring, feature development), need to build on past progress, explicitly mention iterative work, work logs, project knowledge, or cross-conversation…

oaustegard/claude-skills · 60 tokens

session-memory

Maintains a structured running-notes document during long work sessions. Use when the user says "session notes", "update notes", "start session notes", "show session notes", or when you recognize the current session has accumulated enough state (decisions, corrections, files touched, errors) that it risks being lost…

oaustegard/claude-skills · 94 tokens

project-butler

A project-memory workflow that keeps a code project’s rules, current structure, documents, logs, tasks, and handoff notes organized.

JamesShi96/project-butler · 133 tokens

everme-memory

Use EverMe cloud memory proactively when the user refers to previous conversations, earlier decisions, "last time", "remember when", existing project conventions, or previously solved errors, and save durable user preferences, habits, and decisions the moment they are stated. Do not repeat a search when the host…

EverMind-AI/EverMe · 83 tokens