Profile
它能做什么
用一个文件保存你是谁、你的目标、限制和偏好,使你的智能体每次会话开始时都带着这些背景。它适用于希望 AI 记住自己、又不想重复说明的人。
适用场景
- ✓当你想查看你的助手目前对你了解多少的时候。
- ✓当你的目标或偏好已经改变,需要更新的时候。
- ✓当你想把个人档案重置为空白模板的时候。
技能链接
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Profile/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请更新我的个人档案:我的新目标是今年春天前出版我的书,并且我偏好简短的回答。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能只读取和修改你指定的部分,并更新最后修改日期。清空操作会在经过验证的备份并获得你的明确同意后,把文件重置为空白模板,文件本身永远不会被删除。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Profile Skill
Views, edits, or resets the LifeOS User Model — the PRINCIPAL_IDENTITY.md file that holds persistent identity context and loads at the start of every session through the CLAUDE.md @-import. Three operations: View shows the current model, Edit updates its sections, and Clear resets it to a blank template (it never deletes the file). The Algorithm reads it when writing ISCs and choosing capabilities, and other skills read it for personalization, so this skill keeps that context visible and current in one place.
Ideal State
- The identity file always exists and loads at startup; Clear replaces its contents and never deletes it.
- Every change touches only what the principal asked for, leaves the Memory-System Proposals queue to the memory curation loop, and bumps
last_updatedbut neverlast_reviewed, so the freshness grade stays honest. - Clear never overwrites the file without a verified backup and the principal's explicit yes.
- The file holds context about who the principal is, never executable directives (those belong in CLAUDE.md or the system prompt).
- Off-limits categories (health, relationship, financial details) enter the file only when the principal explicitly asks for them.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| View | "profile", "show profile", "view profile", "who am I", "my profile" | Intents/View.md |
| Edit | "edit profile", "update profile", "change profile" | Intents/Edit.md |
| Clear | "clear profile", "delete profile", "reset profile" | Intents/Clear.md |
| File | Read when |
|---|---|
Setup.md |
first-time setup, a worked example of the identity file on made-up values, and the read-only proof commands |
Data & Config
The User Model lives at ~/.claude/LIFEOS/USER/PRINCIPAL/PRINCIPAL_IDENTITY.md (in a standard install LIFEOS/USER is a symlink to ~/.config/LIFEOS/USER, which may be its own private git repo) as markdown with the lifeos-freshness-v1 frontmatter (LIFEOS/DOCUMENTATION/Freshness/FreshnessSystem.md):
last_updated: ISO-8601 # every write, any author
last_updated_by: <author>
convention: lifeos-freshness-v1
last_reviewed: ISO-8601 # principal review only; drives the staleness grade (90-day window for this file)
last_reviewed_by: <principal>
The Interview skill's ContextCheckin intent is the only flow that bumps last_reviewed; this skill's intents read the file on demand when it is viewed or edited.
The same frontmatter also holds the header facts that code reads, so a change to one of these is a change to the YAML key, never to prose:
| Key | Reader |
|---|---|
core (name, pronunciation, timezone) |
getPrincipal() in hooks/lib/identity.ts, as the fallback only: LIFEOS/USER/CONFIG/LIFEOS_CONFIG.toml [principal] wins for name, pronunciation and timezone |
voice_clone |
the model, through the header-mirror block (no code reader) |
preferences |
getPrincipalPreferences() in hooks/lib/identity.ts |
tech_stack |
getTechStack() in hooks/lib/identity.ts, its only source |
LIFEOS/TOOLS/HeaderMirror.ts copies these keys into a generated block in the body, because @-import strips frontmatter; DerivedSync.ts runs it on every hand edit.
The blank template (Intents/Edit.md § Output format) starts the file with four sections: Quick Reference, Worldview, Work Patterns & Communication, and Preferences. Users add their own sections over time, and the memory curation loop may keep an auto-append Memory-System Proposals queue at the bottom. Edit changes the sections that exist in the user's file; it does not impose the template's schema on it. First-time setup, a worked example and a read-only proof: Setup.md.
Gotchas
- Profile changes take effect next session (or after context reload), because the file is loaded at startup.
- A fact kept only in frontmatter is invisible to the model unless the header-mirror block carries it; edit the frontmatter, never the generated block. A fact that exists only in frontmatter can be denied by the DA in conversation, because the model never saw it.
Examples
Example 1: View the profile
User: "show my profile"
→ Invokes View intent
→ Reads PRINCIPAL_IDENTITY.md and presents the current user model
Example 2: Edit a section
User: "update my profile — add that I prefer metric units"
→ Invokes Edit intent
→ Updates the Preferences section, bumps
常见问题
清空档案会删除文件吗?
不会。它会在验证备份并获得你同意后,把内容重置为空白模板。
它能保存健康或财务信息吗?
只有在你明确要求时才会,因为这些类别默认被排除在外。
个人档案里有指令吗?
没有。它只保存关于你的背景,而指令应放在系统提示或配置文件中。
详情
作者的原始描述
View, edit, or clear the LifeOS User Model (PRINCIPAL_IDENTITY.md) — persistent identity context loaded at session startup. Three intents: View, Edit (identity, goals, constraints, preferences), Clear (reset). Read by Algorithm OBSERVE and skills for personalization. USE WHEN profile, show profile, view profile, who am I, my profile, edit profile, update profile, clear profile, user model, PRINCIPAL_IDENTITY. NOT FOR settings.json or CLAUDE.md edits (use update-config).
repo: danielmiessler/LifeOS
热度
- GitHub 星标
- 20k
- 排名
- #10446
- 许可证
- MIT
- 更新时间
- 2026/10/28
评论
- …