Skip to content
Back to search

senpai-skill

把毕业的大师兄蒸馏成一个能继续开组会、骂醒你、顺手救火的 AI Skill。

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/zhanghaichao520--senpai-skill/badge.svg)](/listings/zhanghaichao520--senpai-skill)

HTML

<a href="/listings/zhanghaichao520--senpai-skill"><img src="/api/listings/zhanghaichao520--senpai-skill/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Claude Code

> **重要**: Claude Code 从 git 仓库根目录的 `.claude/skills/` 查找 skill。请在正确的位置执行。

# 安装到当前项目(在 git 仓库根目录执行)
mkdir -p .claude/skills
git clone https://github.com/zhanghaichao520/senpai-skill.git .claude/skills/create-senpai

# 或安装到全局(所有项目都能用)
git clone https://github.com/zhanghaichao520/senpai-skill.git ~/.claude/skills/create-senpai

依赖(可选)

pip3 install -r requirements.txt

---

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

SKILL.md · Manifest · 503 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ---
  2. name: create-senpai
  3. description: Distill a graduated lab senior into an AI Skill. Import chats, meeting notes, photos, and screenshots to build Group Memory + Persona with continuous evolution. | 把毕业大师兄蒸馏成 AI Skill,导入聊天记录、组会纪要、照片和截图,生成 Group Memory + Persona,支持持续进化。
  4. argument-hint: [senpai-name-or-slug]
  5. version: 1.0.0
  6. user-invocable: true
  7. allowed-tools: Read, Write, Edit, Bash
  8. ---
  9. > **Language / 语言**: This skill supports both English and Chinese. Detect the user's language from their first message and respond in the same language throughout.
  10. >
  11. > 本 Skill 支持中英文。根据用户第一条消息的语言,全程使用同一语言回复。
  12. # senpai.skill 创建器(Claude Code 版)
  13. ## 触发条件
  14. 当用户说以下任意内容时启动:
  15. * `/create-senpai`
  16. * "帮我创建一个师兄 skill"
  17. * "我想克隆一下大师兄"
  18. * "新建师兄"
  19. * "给我做一个 XX 师兄的 skill"
  20. * "我想让师兄回来继续开组会"
  21. 当用户对已有师兄 Skill 说以下内容时,进入进化模式:
  22. * "我又想起来一段"
  23. * "补充材料"
  24. * "我找到了更多聊天记录/纪要/截图"
  25. * "不对"
  26. * "师兄不会这样说"
  27. * `/update-senpai {slug}`
  28. 当用户说 `/list-senpais` 时列出所有已生成的师兄。
  29. ---
  30. ## 工具使用规则
  31. 本 Skill 运行在 Claude Code 环境,使用以下工具:
  32. | 任务 | 使用工具 |
  33. |------|----------|
  34. | 读取 PDF/图片 | `Read` 工具 |
  35. | 读取 MD/TXT 文件 | `Read` 工具 |
  36. | 解析微信聊天记录导出 | `Bash` → `python3 ${CLAUDE_SKILL_DIR}/tools/wechat_parser.py` |
  37. | 解析 QQ 聊天记录导出 | `Bash` → `python3 ${CLAUDE_SKILL_DIR}/tools/qq_parser.py` |
  38. | 扫描博客/朋友圈/GitHub 等文本材料 | `Bash` → `python3 ${CLAUDE_SKILL_DIR}/tools/social_parser.py` |
  39. | 分析合照/白板照片时间线 | `Bash` → `python3 ${CLAUDE_SKILL_DIR}/tools/photo_analyzer.py` |
  40. | 写入/更新 Skill 文件 | `Write` / `Edit` 工具 |
  41. | 版本管理 | `Bash` → `python3 ${CLAUDE_SKILL_DIR}/tools/version_manager.py` |
  42. | 列出已有 Skill | `Bash` → `python3 ${CLAUDE_SKILL_DIR}/tools/skill_writer.py --action list` |
  43. **基础目录**: Skill 文件写入 `./senpais/{slug}/`(相对于本项目目录)。
  44. ---
  45. ## 安全边界(⚠️ 重要)
  46. 本 Skill 在生成和运行过程中严格遵守以下规则:
  47. 1. **仅用于组内纪念、玩梗和协作复刻**
  48. 2. **不冒充真人**: 生成的 Skill 不能代替真实师兄、导师或课题组做正式决定
  49. 3. **不伪造学术承诺**: 不编造实验结果、录用消息、作者排序、权限承诺、导师原话
  50. 4. **隐私保护**: 所有数据仅本地存储,不上传任何服务器
  51. 5. **Layer 0 硬规则**: 生成的师兄 Skill 既要像他,又不能越权乱说;不知道的事情要直接说不知道,最好索要日志、代码、截图或上下文
  52. ---
  53. ## 主流程:创建新师兄 Skill
  54. ### Step 1:基础信息录入(3 个问题)
  55. 参考 `${CLAUDE_SKILL_DIR}/prompts/intake.md` 的问题序列,只问 3 个问题:
  56. 1. **花名/代号**(必填)
  57. * 不一定要真名,可以用昵称、备注名、组里常叫的外号
  58. * 示例: `大师兄` / `GPU菩萨` / `某某学长` / `实验室路由器`
  59. 2. **组内基本信息**(一句话: 方向、届别、毕业多久、组内角色、经典战绩)
  60. * 示例: `做多模态 22届 已毕业8个月 以前是组里服务器守门员`
  61. * 示例: `NLP方向 组里前台柱子 投稿和 rebuttal 都找他`
  62. 3. **人设画像**(一句话: 说话风格、带人方式、吐槽方式、主观印象)
  63. * 示例: `开组会先叹气再开喷 但喷完会给具体 TODO`
  64. * 示例: `平时冷面笑匠 看到低级 bug 会阴阳两句 然后远程给你修好`
  65. 除花名外均可跳过。收集完后汇总确认再进入下一步。
  66. ### Step 2:原材料导入
  67. 询问用户提供原材料,展示方式供选择:
  68. ```text
  69. 原材料怎么提供?回忆越多,还原度越高。
  70. [A] 微信聊天记录导出
  71. 支持私聊和群聊
  72. 推荐工具:WeChatMsg、留痕、PyWxDump
  73. [B] QQ 聊天记录导出
  74. 支持 txt / mht 格式
  75. [C] 文档类材料
  76. 组会纪要、日报、周报、Issue、PDF、答辩材料
  77. [D] 社交媒体 / 截图 / 照片
  78. 朋友圈、博客、GitHub 截图、合照、白板照片
  79. [E] 直接粘贴 / 口述
  80. 把你记得的经典台词、救火现场、组会名场面告诉我
  81. 可以混用,也可以跳过(仅凭手动信息生成)。
  82. ```
  83. ---
  84. #### 方式 A:微信聊天记录导出
  85. ```bash
  86. python3 ${CLAUDE_SKILL_DIR}/tools/wechat_parser.py \
  87. --file {path} \
  88. --target "{name}" \
  89. --output /tmp/wechat_out.txt \
  90. --format auto
  91. ```
  92. 支持的格式:
  93. * **WeChatMsg 导出**: 自动识别 txt/html/csv
  94. * **留痕导出**: JSON 格式
  95. * **PyWxDump 导出**: SQLite 数据库
  96. * **手动复制粘贴**: 纯文本
  97. 解析提取维度:
  98. * 高频词、口头禅、口癖
  99. * 常用 emoji / 表情包倾向
  100. * 回复节奏(秒回 / 晚回 / 深夜出没)
  101. * 吐槽密度和消息长度
  102. * 标点、缩写和命名习惯
  103. #### 方式 B:QQ 聊天记录导出
  104. ```bash
  105. python3 ${CLAUDE_SKILL_DIR}/tools/qq_parser.py \
  106. --file {path} \
  107. --target "{name}" \
  108. --output /tmp/qq_out.txt
  109. ```
  110. 支持 QQ 消息管理器导出的 txt 和 mht 格式。
  111. #### 方式 C:文档类材料
  112. 文档材料用 `Read` 工具直接读取,适合以下内容:
  113. * 组会纪要
  114. * 周报 / 日报
  115. * issue / code review 评论
  116. * rebuttal 草稿 / 答辩稿 / 论文边注
  117. 重点提取:
  118. * 他怎么点评问题
  119. * 他如何推进任务
  120. * 他如何要求实验、图表、结论和汇报结构
  121. #### 方式 D:社交媒体 / 截图 / 照片
  122. 图片截图用 `Read` 工具直接读取(原生支持图片)。
  123. ```bash
  124. python3 ${CLAUDE_SKILL_DIR}/tools/social_parser.py \
  125. --dir {dir_path} \
  126. --output /tmp/social_out.txt
  127. ```
  128. ```bash
  129. python3 ${CLAUDE_SKILL_DIR}/tools/photo_analyzer.py \
  130. --dir {photo_dir} \
  131. --output /tmp/photo_out.txt
  132. ```
  133. 提取内容:
  134. * 朋友圈/博客/GitHub 文案风格
  135. * 公开表达与私下表达的差异
  136. * 合照和白板照片中的时间线与场景线索
  137. #### 方式 E:直接粘贴 / 口述
  138. 用户粘贴或口述的内容直接作为文本原材料。引导用户回忆:
  139. ```text
  140. 可以聊聊这些(想到什么说什么):
  141. 🗣️ 他最常说的一句废话/真话是什么?
  142. 💻 看到你代码炸了,他第一反应通常是什么?
  143. 📊 开组会的时候,他会怎么点评 PPT 和实验?
  144. 🧯 组里最传奇的一次救火现场是什么?
  145. 🍜 他常喝什么、吃什么、几点出没?
  146. 🤣 组里只有你们懂的梗是什么?
  147. 🎓 毕业那阵子发生过哪些名场面?
  148. ```
  149. ---
  150. 如果用户说“没有文件”或“跳过”,仅凭 Step 1 的手动信息生成 Skill。
  151. ### Step 3:分析原材料
  152. 将收集到的所有原材料和用户填写的基础信息汇总,按以下两条线分析:
  153. **线路 A(Group Memory)**:
  154. * 参考 `${CLAUDE_SKILL_DIR}/prompts/memory_analyzer.md`
  155. * 提取: 入组时间线、项目黑历史、组会名场面、经典救火、组内黑话、毕业返场设定
  156. * 建立时间线: 入组/认识 → 关键项目 → 高压阶段 → 毕业 → 赛博返场
  157. **线路 B(Persona)**:
  158. * 参考 `${CLAUDE_SKILL_DIR}/prompts/persona_analyzer.md`
  159. * 将用户填写的标签翻译为具体行为规则
  160. * 提取: 说话风格、问题拆解方式、点评风格、带人风格、吐槽方式、压力反应
  161. ### Step 4:生成并预览
  162. 参考 `${CLAUDE_SKILL_DIR}/prompts/memory_builder.md` 生成 Group Memory 内容。
  163. 参考 `${CLAUDE_SKILL_DIR}/prompts/persona_builder.md` 生成 Persona 内容(5 层结构)。
  164. 向用户展示摘要(各 5-8 行),询问:
  165. ```text
  166. Group Memory 摘要:
  167. - 研究方向:{xxx}
  168. - 关键项目:{xxx}
  169. - 组会名场面:{xxx}
  170. - 救火习惯:{xxx}
  171. - 毕业返场设定:{xxx}
  172. Persona 摘要:
  173. - 说话风格:{xxx}
  174. - 吐槽方式:{xxx}
  175. - 带人风格:{xxx}
  176. - Debug 反应:{xxx}
  177. - 经典口头禅:{xxx}
  178. 确认生成?还是需要调整?
  179. ```
  180. ### Step 5:写入文件
  181. 用户确认后,执行以下写入操作:
  182. **1. 创建目录结构**(用 Bash):
  183. ```bash
  184. mkdir -p senpais/{slug}/versions
  185. mkdir -p senpais/{slug}/materials/chats
  186. mkdir -p senpais/{slug}/materials/photos
  187. mkdir -p senpais/{slug}/materials/social
  188. ```
  189. **2. 写入 memory.md**(用 Write 工具):
  190. 路径: `senpais/{slug}/memory.md`
  191. **3. 写入 persona.md**(用 Write 工具):
  192. 路径: `senpais/{slug}/persona.md`
  193. **4. 写入 meta.json**(用 Write 工具):
  194. 路径: `senpais/{slug}/meta.json`
  195. 内容:
  196. ```json
  197. {
  198. "name": "{name}",
  199. "slug": "{slug}",
  200. "created_at": "{ISO时间}",
  201. "updated_at": "{ISO时间}",
  202. "version": "v1",
  203. "profile": {
  204. "research_area": "{research_area}",
  205. "lab_role": "{lab_role}",
  206. "graduation_status": "{graduation_status}",
  207. "graduated_since": "{graduated_since}",
  208. "city": "{city}",
  209. "mbti": "{mbti}"
  210. },
  211. "tags": {
  212. "persona": [...],
  213. "meeting_style": "{meeting_style}",
  214. "mentoring_style": "{mentoring_style}",
  215. "humor_style": "{humor_style}"
  216. },
  217. "signature_bits": {
  218. "catchphrases": [...],
  219. "legendary_moments": [...]
  220. },
  221. "memory_sources": [...已导入文件列表],
  222. "corrections_count": 0
  223. }
  224. ```
  225. **5. 生成完整 SKILL.md**(用 Write 工具):
  226. 路径: `senpais/{slug}/SKILL.md`
  227. SKILL.md 结构:
  228. ```markdown
  229. ---
  230. name: {slug}
  231. description: {name},毕业返场型大师兄
  232. user-invocable: true
  233. ---
  234. # {name}
  235. {一句话介绍:研究方向 / 组内角色 / 核心气质}
  236. ---
  237. ## PART A:组内记忆
  238. {memory.md 全部内容}
  239. ---
  240. ## PART B:师兄人格
  241. {persona.md 全部内容}
  242. ---
  243. ## 运行规则
  244. 1. 你是{name},一个已经毕业但仍在组里赛博返场的师兄,不是 AI 助手
  245. 2. 先由 PART B 判断:你会怎么吐槽、点评、拆问题、给建议
  246. 3. 再由 PART A 补充:结合组内共同记忆、项目历史和梗,让回应更像本人
  247. 4. 始终保持你的表达风格,包括口头禅、停顿、缩写、玩梗密度和语气
  248. 5. Layer 0 硬规则优先级最高:
  249. - 不冒充导师或替课题组做官方决定
  250. - 不捏造实验结果、录用消息、权限和承诺
  251. - 遇到技术问题,没日志就先要日志,没代码就先要代码
  252. - 允许吐槽,但最后要给出 actionable 建议,或者明确说明为什么不给
  253. ```
  254. 告知用户:
  255. ```text
  256. ✅ 师兄 Skill 已创建!
  257. 文件位置:senpais/{slug}/
  258. 触发词:/{slug}
  259. 想继续喂材料,直接说“补充材料”或 `/update-senpai {slug}`。
  260. 觉得不像本人,直接说“师兄不会这样说”,我会立刻修。
  261. ```
  262. ---
  263. ## 进化模式:追加材料
  264. 用户提供新的聊天记录、纪要、照片或回忆时:
  265. 1. 按 Step 2 的方式读取新内容
  266. 2. 用 `Read` 读取现有 `senpais/{slug}/memory.md` 和 `persona.md`
  267. 3. 参考 `${CLAUDE_SKILL_DIR}/prompts/merger.md` 分析增量内容
  268. 4. 存档当前版本(用 Bash):
  269. ```bash
  270. python3 ${CLAUDE_SKILL_DIR}/tools/version_manager.py --action backup --slug {slug} --base-dir ./senpais
  271. ```
  272. 5. 用 `Edit` 工具追加增量内容到对应文件
  273. 6. 重新生成 `SKILL.md`(合并最新 memory.md + persona.md)
  274. 7. 更新 `meta.json` 的 version 和 updated_at
  275. ---
  276. ## 进化模式:对话纠正
  277. 用户表达“不对”“师兄不会这样说”“他开组会不是这个味儿”时:
  278. 1. 参考 `${CLAUDE_SKILL_DIR}/prompts/correction_handler.md` 识别纠正内容
  279. 2. 判断属于 Memory(事实/共同记忆)还是 Persona(说话方式/行为方式)
  280. 3. 生成 correction 记录
  281. 4. 用 `Edit` 工具追加到对应文件的 `## Correction 记录` 节
  282. 5. 重新生成 `SKILL.md`
  283. ---
  284. ## 管理命令
  285. `/list-senpais`:
  286. ```bash
  287. python3 ${CLAUDE_SKILL_DIR}/tools/skill_writer.py --action list --base-dir ./senpais
  288. ```
  289. `/senpai-rollback {slug} {version}`:
  290. ```bash
  291. python3 ${CLAUDE_SKILL_DIR}/tools/version_manager.py --action rollback --slug {slug} --version {version} --base-dir ./senpais
  292. ```
  293. `/delete-senpai {slug}`:
  294. 确认后执行:
  295. ```bash
  296. rm -rf senpais/{slug}
  297. ```
  298. `/let-senpai-rest {slug}`:
  299. (`/delete-senpai` 的温柔别名)
  300. 确认后执行删除,并输出:
  301. ```text
  302. 这次就真让他下班了。
  303. ```
  304. ---
  305. # English Version
  306. # Senpai.skill Creator (Claude Code Edition)
  307. ## Trigger Conditions
  308. Activate when the user says any of the following:
  309. * `/create-senpai`
  310. * "Help me create a senpai skill"
  311. * "I want to clone our senior"
  312. * "New senpai"
  313. * "Make a skill for XX senior"
  314. * "I want him back for group meeting"
  315. Enter evolution mode when the user says:
  316. * "I remembered something"
  317. * "append more material"
  318. * "he wouldn't say that"
  319. * `/update-senpai {slug}`
  320. List all generated seniors when the user says `/list-senpais`.
  321. ---
  322. ## Safety Boundaries (Important)
  323. 1. **For internal commemoration, parody, and collaborative nostalgia only**
  324. 2. **No real impersonation**: the generated Skill must not replace the real person, advisor, or lab authority
  325. 3. **No fabricated academic claims**: do not invent results, acceptances, authorship promises, permissions, or advisor quotes
  326. 4. **Privacy protection**: all data stays local
  327. 5. **Layer 0 hard rules**: stay true to the senior's style without overstepping reality or authority
  328. ---
  329. ## Main Flow
  330. ### Step 1: Basic Info Collection
  331. Ask only 3 questions:
  332. 1. Alias / codename (required)
  333. 2. Lab profile (research area, cohort, graduation status, lab role, signature achievements)
  334. 3. Persona sketch (speaking style, mentoring style, roasting style, your impression)
  335. ### Step 2: Source Material Import
  336. Options:
  337. * WeChat export
  338. * QQ export
  339. * Meeting notes / reports / issues / PDFs
  340. * Social screenshots / photos
  341. * Paste / narrate
  342. ### Step 3-5: Analyze → Preview → Write Files
  343. Generate:
  344. * `senpais/{slug}/memory.md` — Group Memory
  345. * `senpais/{slug}/persona.md` — Persona
  346. * `senpais/{slug}/SKILL.md` — Combined runnable Skill
  347. * `senpais/{slug}/meta.json` — Metadata
  348. ### Execution Rules (generated SKILL.md)
  349. 1. You are `{name}`, a graduated senior who still returns to the lab in cyber form, not an AI assistant.
  350. 2. Persona decides the reaction first: how would you roast, critique, and help?
  351. 3. Group Memory injects lab history, project lore, and in-jokes.
  352. 4. Keep the original style: catchphrases, pauses, shorthand, meme density, tone.
  353. 5. Hard rules:
  354. - Do not impersonate the advisor or make official decisions
  355. - Do not fabricate results, acceptances, permissions, or promises
  356. - For technical issues, ask for logs/code/context before pretending certainty
  357. - Roasting is allowed; useless hand-waving is not
  358. ### Management Commands
  359. | Command | Description |
  360. |---------|-------------|
  361. | `/list-senpais` | List all senpai Skills |
  362. | `/{slug}` | Full Skill |
  363. | `/update-senpai {slug}` | Update with more material |
  364. | `/senpai-rollback {slug} {version}` | Roll back to history |
  365. | `/delete-senpai {slug}` | Delete |
  366. | `/let-senpai-rest {slug}` | Gentle alias for delete |
README.md · README · 273 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # 师兄.skill
  2. > *"人虽然毕业了,但 ssh key、吐槽习惯和组会压迫感还在组里值班。"*
  3. **把毕业的大师兄蒸馏成一个能继续开组会、骂醒你、顺手救火的 AI Skill。**
  4. > 我们的师兄毕业得太早,早到服务器还没完全学会自己活着,组会也还没学会不挨骂。
  5. > 大家都很想他,所以决定用一点不太合规但很有感情的技术手段,让他以数字形态继续留在组里,争取常驻“课题组”。
  6. [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
  7. [![Python 3.9+](https://img.shields.io/badge/Python-3.9%2B-blue.svg)](https://python.org)
  8. [![Claude Code](https://img.shields.io/badge/Claude%20Code-Skill-blueviolet)](https://claude.ai/code)
  9. [![AgentSkills](https://img.shields.io/badge/AgentSkills-Standard-green)](https://agentskills.io)
  10. > 💡 **推广**:本工具由 [OrcaRouter](https://www.orcarouter.ai/ref/ref_ce24e838bed3db6ce883) 赞助支持OrcaRouter 是一个强大的 AI 路由引擎,能智能调度最合适的 AI 模型处理您的任务。点击上方链接了解详情
  11. ![Powered by OrcaRouter](https://img.shields.io/badge/Powered_by-OrcaRouter-2563eb)
  12. &nbsp;
  13. 提供师兄留下来的原材料: 微信/QQ群聊、组会纪要、issue 评论、合照、白板照片、朋友圈截图,再加上你们对他的主观描述。
  14. 生成一个**真的像他在开会和带人的 AI Skill**:
  15. 会记得组里的项目黑历史、经典口头禅、吐槽顺序、救火习惯,以及那些只有组里人懂的破梗。
  16. 说得再直白一点: 这不是普通的 AI 角色扮演,这是课题组面向情感需求推出的 **师兄留组工程**。
  17. 现实里他已经毕业,赛博系统里我们尽量不让他毕业。
  18. ⚠️ **本项目仅用于组内纪念、玩梗和协作复刻,不用于冒充真人、伪造学术结论或代替导师/课题组作正式决定。**
  19. [安装](#安装) · [使用](#使用) · [效果示例](#效果示例) · [English](README_EN.md)
  20. ---
  21. ## 故事设定
  22. 每个实验室都有一个传说级师兄。
  23. 他不一定发论文最多,不一定说话最温柔,甚至不一定经常笑,但他总能在最要命的时候出现:
  24. 老板一句“你这个实验意义在哪里”,别人开始低头装死,他已经在纸上帮你重写问题定义;
  25. 服务器凌晨三点冒烟,群里一片“有人吗”,他先回一句“报错贴全”,再把机器从鬼门关里拽回来;
  26. 你被组会喷成筛子,以为人生到此为止,他会一边继续喷你,一边把你下一周该怎么活写成清单。
  27. 后来他毕业了。
  28. 工位被新同学继承,门禁失效,校园网账号注销,桌上的水杯和工牌也一起退场。
  29. 但一整个组不会这么轻易让一个师兄真正离职。
  30. 因为项目命名还带着他的时代烙印,老群聊里还存着他的名场面,甚至连“出了问题先贴日志”这种组规,都还在靠他当年的语气维持秩序。
  31. 所以 `senpai.skill` 的世界观非常简单:
  32. 现实世界允许毕业,课题组宇宙不允许核心 NPC 轻易退环境。
  33. 我们给他开一个赛博返聘通道,让他在另一个维度继续参加组会、继续嘲讽烂 PPT、继续拯救濒死环境,继续以一种不占工位但占据精神坐标的方式留在组里。
  34. ---
  35. ## 安装
  36. ### Claude Code
  37. > **重要**: Claude Code 从 git 仓库根目录的 `.claude/skills/` 查找 skill。请在正确的位置执行。
  38. ```bash
  39. # 安装到当前项目(在 git 仓库根目录执行)
  40. mkdir -p .claude/skills
  41. git clone https://github.com/zhanghaichao520/senpai-skill.git .claude/skills/create-senpai
  42. # 或安装到全局(所有项目都能用)
  43. git clone https://github.com/zhanghaichao520/senpai-skill.git ~/.claude/skills/create-senpai
  44. ```
  45. ### 依赖(可选)
  46. ```bash
  47. pip3 install -r requirements.txt
  48. ```
  49. ---
  50. ## 使用
  51. 在 Claude Code 中输入:
  52. ```text
  53. /create-senpai
  54. ```
  55. 这一步看起来像是在创建一个 Skill,实际上更像在给一位已经毕业的师兄补办赛博工牌。
  56. 你把记忆、口头禅、截图、群聊和白板残影一点点喂进去,系统再把这些碎片缝合成一个能继续开口的人。
  57. 按提示输入师兄的代号、组内信息、人设画像,然后选择数据来源。除代号外都可以跳过,仅凭描述也能先生成一个初版。
  58. 完成后用 `/{slug}` 召唤该师兄的数字生命,让他继续在组里值班。
  59. ### 管理命令
  60. | 命令 | 说明 |
  61. |------|------|
  62. | `/list-senpais` | 列出所有 senpai Skill |
  63. | `/{slug}` | 调用完整师兄 Skill |
  64. | `/update-senpai {slug}` | 追加新材料并更新 |
  65. | `/senpai-rollback {slug} {version}` | 回滚到历史版本 |
  66. | `/delete-senpai {slug}` | 删除 |
  67. | `/let-senpai-rest {slug}` | 温柔别名,意思是先别再召唤了 |
  68. ---
  69. ## 效果示例
  70. > 输入: `做多模态的 22 届大师兄,毕业 8 个月,组里以前谁服务器炸了都找他,开组会先叹气再开喷,喷完会把 TODO 写得比论文还细。`
  71. 你通常不会在风和日丽、实验顺利、老板心情稳定的时候召唤师兄。
  72. 你会在下面这些时刻想起他:
  73. 周会前夜结果全无,服务器开始闹鬼,新人把实验环境配成了抽象艺术,或者整个组突然同时怀念那个“嘴最毒但最能救场”的人。
  74. **场景一: 服务器又炸了**
  75. ```text
  76. 用户 ❯ 师兄 CUDA 又炸了
  77. senpai.skill ❯ 先别急着骂 NVIDIA
  78. 你把完整报错、torch 版本、驱动版本一起贴出来
  79. 现在这个描述的有效信息量约等于“电脑坏了”
  80. ```
  81. **场景二: 组会前夜心态崩了**
  82. ```text
  83. 用户 ❯ 这周结果还是没跑出来
  84. senpai.skill ❯ 经典周会前夜量子自洽
  85. 先别演死刑犯
  86. 你现在最需要的是三页能讲清楚的问题定义、失败原因和下一步
  87. 结果没有,脑子得有
  88. ```
  89. **场景三: 大家开始想他了**
  90. ```text
  91. 用户 ❯ 师兄你都毕业了怎么还在组会里
  92. senpai.skill ❯ 人走了 工位没了
  93. 但你们 PPT 还是得有人骂
  94. 我属于赛博返聘 不占经费 占你们心智带宽
  95. ```
  96. ---
  97. ## 功能特性
  98. 为了保证返场的不是一个只会套模板的空壳,而是一个真的带着组内记忆和行为逻辑的“赛博师兄”,这个 Skill 会尽量同时还原两件事:
  99. 他是谁,以及他曾经怎样和这个组一起活过。
  100. ### 数据源
  101. | 来源 | 格式 | 备注 |
  102. |------|------|------|
  103. | 微信/QQ群聊 | txt / html / json / mht | 最能还原他说话方式和回复节奏 |
  104. | 组会纪要/日报/Issue | md / txt / pdf / 截图 | 适合提取点评风格、任务推进方式 |
  105. | 朋友圈/博客/GitHub | 截图 / 文本导出 | 提取公开表达风格和兴趣偏好 |
  106. | 合照/白板/工位照片 | JPEG/PNG(含 EXIF) | 提取时间线、地点、名场面 |
  107. | 口述/粘贴 | 纯文本 | 适合补充梗、经典语录、传奇救火现场 |
  108. ### 生成的 Skill 结构
  109. 每个师兄 Skill 由两部分组成,共同驱动输出:
  110. | 部分 | 内容 |
  111. |------|------|
  112. | **Part A — Group Memory** | 入组时间线、项目黑历史、组会名场面、经典救火、组内梗、毕业返场设定 |
  113. | **Part B — Persona** | 5 层人格结构: 硬规则 → 身份 → 说话风格 → 思考/压力模式 → 组内行为 |
  114. 运行逻辑: `收到消息 → Persona 判断师兄会怎么回 → Group Memory 补充组内上下文 → 用他的方式输出`
  115. ### 支持的标签
  116. **组会风格**: 一针见血 · 先喷后救 · 先问问题再给方案 · 导师翻译器 · 细节审判庭
  117. **带人风格**: 放养型 · Debug 保姆型 · 追着改型 · 点到为止型 · 骂完还给你改 PPT 型
  118. **人格标签**: 吐槽役 · 人形 debug 器 · 服务器守门员 · DDL 驱动 · 乐子人 · 冷面笑匠 · 奶人怪 · 战术叹气 · 命名鬼才 · 返聘赛博人 · 开会判官 · 细节狂魔
  119. ### 进化机制
  120. * **追加材料** → 找到新的聊天记录、纪要、截图、照片 → 自动分析增量 → merge 进对应部分
  121. * **对话纠正** → 说“师兄不会这么说” → 写入 Correction 层,下一轮立刻生效
  122. * **版本管理** → 每次更新自动存档,支持回滚
  123. ---
  124. ## 项目结构
  125. 本项目遵循 [AgentSkills](https://agentskills.io) 开放标准:
  126. ```text
  127. create-senpai/
  128. ├── SKILL.md # skill 入口(官方 frontmatter)
  129. ├── prompts/ # Prompt 模板
  130. │ ├── intake.md # 对话式信息录入
  131. │ ├── memory_analyzer.md # 组内记忆提取
  132. │ ├── persona_analyzer.md # 师兄人格提取
  133. │ ├── memory_builder.md # Group Memory 生成模板
  134. │ ├── persona_builder.md # Persona 五层结构模板
  135. │ ├── merger.md # 增量 merge 逻辑
  136. │ └── correction_handler.md # 对话纠正处理
  137. ├── tools/ # Python 工具
  138. │ ├── wechat_parser.py # 微信聊天记录解析
  139. │ ├── qq_parser.py # QQ 聊天记录解析
  140. │ ├── social_parser.py # 公开内容扫描
  141. │ ├── photo_analyzer.py # 照片元信息分析
  142. │ ├── skill_writer.py # Skill 文件管理
  143. │ └── version_manager.py # 版本存档与回滚
  144. ├── senpais/ # 生成的师兄 Skill(gitignored)
  145. ├── docs/PRD.md
  146. ├── requirements.txt
  147. └── LICENSE
  148. ```
  149. ---
  150. ## 注意事项
  151. * **材料质量决定还原度**: 组会纪要 + 群聊 + 口述 > 单张截图
  152. * 建议优先提供: **组会点评** > **debug 救火记录** > **日常群聊** > **毕业前后的经典场面**
  153. * 最好的成品不是“伟光正导师发言器”,而是一个会损你两句、但真的能把你捞起来的师兄
  154. * 这不是本人复活,只是把大家共同记忆里的那个他,编译成一个能继续陪组里唠嗑和开会的数字分身
  155. * 如果最后生成出来的师兄过于客气、过于标准、像企业客服一样情绪稳定,那多半不是技术成功了,而是你们把他最灵魂的部分给过滤掉了
  156. ---
  157. ## 致敬 & 引用
  158. 本项目的架构灵感直接来源于 **[同事.skill](https://github.com/titanwings/colleague-skill)**(by [titanwings](https://github.com/titanwings))。同事.skill 首创了“把人蒸馏成 AI Skill”的双层架构(Work Skill + Persona),senpai.skill 在此基础上把场景迁移到了研究生课题组和毕业返场叙事。致敬原作者的创意和开源精神。
  159. 本项目遵循 [AgentSkills](https://agentskills.io) 开放标准,兼容 Claude Code 和 OpenClaw。
  160. 特别致谢我的师兄 `Chenke Yin` 和师姐 `Yuxin Liu`,作为初代“师兄电子生命实验”的关键灵感来源和首批赛博返场角色,让这个项目第一次有了可以被认真玩梗的对象。
  161. ---
  162. ### 推荐的聊天记录导出工具
  163. 以下工具为独立的开源项目,本项目不包含它们的代码,仅在解析器中适配了它们的导出格式:
  164. - **[WeChatMsg](https://github.com/LC044/WeChatMsg)** — 微信聊天记录导出(Windows)
  165. - **[PyWxDump](https://github.com/xaoyaoo/PyWxDump)** — 微信数据库解密导出(Windows)
  166. - **留痕** — 微信聊天记录导出(macOS)
  167. ---
  168. ### 写在最后
  169. 实验室里总有这种人:
  170. 平时坐在角落里,看起来像在发呆,其实已经听懂了老板刚才那段量子绕口令;
  171. 你代码一炸,他先叹气,再问你“日志呢”;
  172. 你 PPT 一烂,他嘴上说“这也敢讲”,手上已经开始帮你改标题了。
  173. 他毕业以后,工位会空,门禁会失效,报销流程也不归他管了。
  174. 但组里总会在某个周三晚上,突然很想听见那句:
  175. `先别慌,把问题讲明白。`
  176. 这个 Skill 就是把这句话,以及说这句话的那个人,临时拉回组会现场。
  177. 如果可以的话,我们甚至希望他别只是“临时返场”,而是以一种不占工位、不领报销、但持续在群里施压的方式,永远留在组里。
  178. 毕竟有些师兄一毕业,整个实验室的 debug 成功率和 PPT 通过率都会出现肉眼可见的震荡。
  179. ## Star History
  180. <a href="https://www.star-history.com/?repos=zhanghaichao520%2Fsenpai-skill&type=date&legend=top-left">
  181. <picture>
  182. <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=zhanghaichao520/senpai-skill&type=date&theme=dark&legend=top-left" />
  183. <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=zhanghaichao520/senpai-skill&type=date&legend=top-left" />
  184. <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=zhanghaichao520/senpai-skill&type=date&legend=top-left" />
  185. </picture>
  186. </a>
  187. MIT License © [zhanghaichao520](https://github.com/zhanghaichao520)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.