identity-memory

Personal identity memory management Skill — structured storage, full-format table auto-fill, five-layer privacy protection, resume export, and multiple identity roles.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "identity-memory" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d63e4ed2567cf57339d584df0a486095927bdaebcac74ccf3768103745a25262. Verify the upstream source and version against https://skillhub.cn/skills/user_884ff669/identity-memory-01 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Personal identity memory management Skill — structured storage, full-format table auto-fill, five-layer privacy protection, resume export, and multiple identity roles.

0 Downloads

Introduction source: third_party · user_884ff669 · 2.1.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: identity-memory
description: 个人身份记忆管理 Skill — 结构化存储、全格式表格自动填充、五层隐私保护、简历导出、多身份角色
version: 2.1.0
license: MIT
agent_created: true
author: ""
homepage: ""
repository: ""
tags:
  - identity
  - privacy
  - form-filling
  - personal-data
  - productivity
  - encryption
  - resume
  - document-fill
  - multi-identity
platforms:
  - win32
  - darwin
  - linux
dependencies:
  python: ">=3.9"
  python_packages:
    - openpyxl   # Excel .xlsx 填充
    - python-docx # Word .docx 填充
    - xlrd       # Excel .xls 读取(需 <2.0)
    - xlwt       # Excel .xls 写入
    - xlutils    # Excel .xls 格式保留复制
    - pyaes      # AES 加密
    - pyyaml     # 配置文件解析
    - olefile    # Word .doc 文本提取
triggers:
  # ── 查询类 ──
  - 用户说 "我的简历" "我的信息" "我的学历" "我写过什么" "我有什么证书"
  - 用户说 "列出我的XX" "查一下我的XX" "看一下我的档案"
  # ── 录入类 ──
  - 用户说 "记录:" "记住:" "保存:" "帮我记一下"
  - 对话中用户提及新的个人信息且 Skill 判断需要归档
  # ── 填表类 ──
  - 用户上传 Word/Excel/CSV 文件(个人信息登记表、简历表等格式)
  - 用户说 "帮我填表" "自动填充这张表" "用我的信息填"
  # ── 管理类 ──
  - 用户说 "删除我的XX信息" "更新我的XX" "修改我的档案"
  - 用户说 "导出我的档案" "导出简历" "生成简历" "备份身份数据"
  # ── 加密类 ──
  - 用户说 "加密我的档案" "启用加密" "解密档案"
  # ── 初始化 ──
  - 用户说 "建立身份档案" "创建个人档案" "初始化身份数据"
  - Skill 首次激活时自动触发引导流程
  # ── 身份角色管理 ──
  - 用户说 "添加一个身份" "我是XX角色" "新增身份角色"
  - 用户说 "列出我的身份" "我有哪些身份" "我的角色"
  - 用户说 "更新身份XX的性格" "修改XX身份"
  - 用户说 "删除身份XX" "移除XX角色"
  - 用户说 "把XX身份加入简历" "简历里显示XX角色"

identity-memory — 结构化身份记忆管理

对话即录入,拖表即填充,敏感信息自动保护。

纯本地结构化个人身份档案系统。数据存储在本地 JSON,不出设备。 以"对话交互"为入口、"工程化脚本"为引擎、"五层隐私"为底线。


一、文件结构

~/.workbuddy/skills/identity-memory/
├── SKILL.md                    # 本文件 — Skill 作业指导书
├── README.md                   # 用户文档
├── CHANGELOG.md                # 版本变更记录
├── config.yaml                 # 可配置项 — 路径/脱敏/审计/加密/发布排除
├── requirements.txt            # Python 依赖声明
├── scripts/
│   ├── identity_manager.py     # 核心引擎:CRUD、脱敏、审计、列名匹配
│   ├── form_filler.py          # 表格填充:Excel/Word/CSV 自动映射
│   └── utils.py                # 公共工具:路径、I/O、加密、校验、脱敏、简历导出
├── data/
│   ├── identity_data.json      # ← 身份数据主文件(运行时生成,含隐私)
│   ├── field_mapping.json      # 70+ 表格列名→数据路径映射
│   └── schema.json             # 数据结构约束 (JSON Schema draft-07)
└── articles/
    └── index.json              # 文章索引

运行时产物(config.yaml publish_exclude 排除):.bak / .enc / audit.log / __pycache__/

二、标准作业程序 (SOP)

2.1 查询身份信息

触发: "我的学历" / "我有什么证书" / "列出我的所有信息"

1. 解析意图 → 确定查询范围
   - 全量:  identity_manager.py summary
   - 模块:  identity_manager.py query "" <section>
   - 搜索:  identity_manager.py query "<keyword>" [--fuzzy]
2. 脱敏输出:secret→[已隐藏],sensitive→自动掩码,internal→直接输出
3. 格式化展示(Markdown 表格或列表)

2.2 录入身份信息

触发: "记录:XXX" / 对话中提及新信息 / 首次初始化

1. 识别模式:显式("记录:")→直接写入;推断→先确认再写入
2. 分类 → 构建 JSON 条目
   教育/工作/证书/文章/性格 → 对应 list 或字段
3. 执行: identity_manager.py add-item <path> '<json>'
4. 回读确认 → 告知结果

首次引导(basic_info.name 为空时):4 个问题初始化档案(姓名/教育/工作/证书),之后随时"记录:..."补充。

2.3 表格自动填充

触发: 上传 Excel/Word/CSV / "帮我填表"

输入→输出 引擎 格式保留
.csv→.csv csv 模块 ✅ 完整
.xlsx→.xlsx openpyxl ✅ 完整
.xls→.xls xlrd+xlutils+xlwt ⚠️ 数据+基础格式
.docx→.docx python-docx ✅ 完整
.doc→.docx olefile→python-docx ⚠️ 内容保留
1. form_filler.py <input> [output]  →  自动检测类型并填充
2. 填充报告:✅已填 / ⚠️建议映射 / ❌无法匹配
3. 用户确认建议映射 → 交付 *_filled.xxx

2.4 数据更新与删除

更新: identity_manager.py set <path> "<value>" [--skip-validate]
  - 自动格式校验(手机/邮箱/身份证/日期)
  - 校验失败可 --skip-validate 强制写入

删除: identity_manager.py delete <path>
  - 二次确认 → 删除值(保留结构)→ 告知可从 .bak 恢复

2.5 简历导出

触发: "导出简历" / "生成我的简历"

identity_manager.py export-resume                  # Markdown(默认)
identity_manager.py export-resume -f text          # 纯文本
identity_manager.py export-resume -o resume.md     # 写入文件
identity_manager.py export-resume --include-identities  # 含身份角色

内容:姓名+基本信息+脱敏联系方式 → 教育背景 → 工作经历 → 证书 → 个人特质 → 文章 身份角色:需同时满足 --include-identities 且该角色 include_in_resume=true

2.6 身份角色管理

触发: "添加一个身份" / "我是XX角色" / "列出我的身份"

身份角色仅被 AI 内部调用(调整沟通风格),不会自动出现在简历中。最多 5 种。

identity_manager.py add-identity '{"id":"检验师","personality":"谨慎严谨"}'
identity_manager.py list-identities
identity_manager.py update-identity "检验师" '{"personality":"更加谨慎"}'
identity_manager.py delete-identity "教师"

数据结构:{id, title, personality, description, include_in_resume, sensitivity}

2.7 加密与解密

触发: "加密我的档案" / "解密档案"

加密: identity_manager.py encrypt --passphrase "<密码>"
  → 生成 .enc(AES-256-CBC + PBKDF2-SHA256)
  → 提醒手动删除原明文文件

解密: identity_manager.py decrypt --passphrase "<密码>"
  → 密码错误不重试(防暴力破解)→ 成功还原 identity_data.json

2.8 数据校验

触发: "验证我的档案" / set/add-item 时自动触发

identity_manager.py validate           # 全维度校验
identity_manager.py validate --skip-schema  # 跳过 Schema 校验
维度 检查内容 级别
必填字段 姓名等核心字段 Warning
格式校验 手机/邮箱/身份证/日期 Error
Schema JSON Schema 结构完整性 Error
加密状态 secret 有值但未加密 Info
完整性 未填充模块提醒 Info

三、边界说明

3.1 隐私边界 — 直接拒绝

场景 原因
导出 secret 级别明文 身份证号等最高敏感级
删除所有审计日志 安全底线
数据发送到外部服务/API 数据永不出本地
多人共享无加密存储 隐私最低要求
绕过脱敏展示敏感字段 脱敏自动执行不可绕过

3.2 能力边界 — 告知限制

场景 处理
旧版 .doc 支持→输出 .docx,原始格式无法精确保留
超 50 列表格 正常运行,建议分批
非个人信息表格 拒绝填充
JSON 损坏 从 .bak 恢复

3.3 伦理边界

伪造学历/工作经历 → 拒绝;为他人创建档案 → 建议对方自行安装;欺骗性内容 → 直接拒绝。


四、隐私保护策略

五层保护

层级 机制 说明
1. 分级 字段敏感度标签 public / internal / sensitive / secret
2. 脱敏 输出自动掩码 手机→133****5678,邮箱→z***@x.com
3. 加密 AES-256 可选 config.yaml 开启,密钥存系统凭证管理器
4. 审计 全量操作日志 每次读写记录时间/操作/字段/调用方
5. 访问控制 上下文感知 非填表场景访问 secret→"[已隐藏]"

脱敏规则

字段 规则 示例
手机号 前3后4 138****5678
邮箱 首字母+3*+@域名 z***@hospital.com
身份证 前3后3 310***********123
地址 前6+4* 上海市浦东新区****

五、脚本调用参考

identity_manager.py

python identity_manager.py get <path> [auto|raw|masked]    # 获取字段
python identity_manager.py set <path> "<value>"             # 设置字段
python identity_manager.py query "<keyword>" [--fuzzy]     # 搜索
python identity_manager.py query "" <section>              # 按模块查询
python identity_manager.py add-item <path> '<json>'        # 添加数组条目
python identity_manager.py delete <path>                   # 删除字段
python identity_manager.py summary                         # 完整摘要
python identity_manager.py match-column "列名"             # 列名→路径
python identity_manager.py export-summary                  # 含填充状态报告
python identity_manager.py validate [--skip-schema]        # 数据校验
python identity_manager.py export-resume [-f text] [-o file] [--include-identities]
python identity_manager.py encrypt --passphrase "<pwd>"
python identity_manager.py decrypt --passphrase "<pwd>"
python identity_manager.py init [--force]
python identity_manager.py add-identity '<json>'
python identity_manager.py list-identities
python identity_manager.py update-identity <id> '<json>'
python identity_manager.py delete-identity <id>

form_filler.py

python form_filler.py <input> [output]   # 自动检测类型并填充

六、数据字段索引

分类 JSON Path 敏感度
姓名 basic_info.name internal
性别 basic_info.gender internal
出生日期 basic_info.date_of_birth sensitive
身份证号 basic_info.id_number secret
手机号 contact.phone sensitive
邮箱 contact.email sensitive
城市 contact.city internal
教育经历 education.list[] internal
工作经历 career.list[] internal
MBTI personality.mbti public
爱好 hobbies.list[] public
文章作品 articles.list[] internal
证书 certifications.list[] internal
自定义 custom_fields.fields 用户自定义

七、错误码速查

错误码 含义 处理
ERR_FILE_NOT_FOUND 文件不存在 自动创建空模板
ERR_JSON_PARSE JSON 损坏 从 .bak 恢复
ERR_PERMISSION 权限不足 检查目录权限
ERR_PATH_INVALID 路径不存在 返回可用路径
ERR_SENSITIVITY_BLOCK 非填表访问 secret 提供脱敏值或拒绝
ERR_UNSUPPORTED_FORMAT 不支持的格式 告知支持列表
ERR_VALIDATION 格式校验失败 --skip-validate 绕过
ERR_ENCRYPTION 加解密失败 检查 pyaes/passphrase
ERR_MISSING_DEP 缺少依赖 根据 suggestion 安装
ERR_IDENTITY_LIMIT 身份数达上限(5) 先删除再添加
ERR_IDENTITY_DUPLICATE 身份 id 重复 用 update-identity

完整错误码和配置项见 config.yaml 和 README.md。 版本变更记录见 CHANGELOG.md。

Current listing version

2.1.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决用户高频刚需:个人信息结构化存储与检索
  • 显著提升日常效率:支持 Word/Excel/CSV 全格式表格自动填充
  • 多身份角色管理与简历导出功能实用性强
Trigger Precision92/100

Highlights

  • 触发词覆盖完整场景:查询、录入、填表、管理、加密、初始化、身份角色
  • 边界清晰,变体丰富,误触/漏触风险低
Structure and Standards95/100

Highlights

  • SOP 分 8 个清晰步骤,含出口条件与端到端示例
  • frontmatter 完整,文件结构规范,单文件未超 500 行
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,依赖声明完整
  • 覆盖主要异常场景,不可逆操作有确认机制
  • 五层隐私保护策略完善,数据永不出本地
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 248

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.