用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/avoidwork/madz --skill reflection命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | reflection |
| description | Generate a narrative reflection summary from recent session history to capture mood, energy, and interaction quality. |
| metadata | {"author":"madz","version":"1.2","agent":"orchestrator"} |
Generate a concise, narrative reflection summary from recent session history and write it to memory/context/reflection.md.
Discover and filter sessions using the reflectionSessions tool
Call the reflectionSessions tool with these parameters:
ignorePatterns: ["Run the * skill"]windowDays: 7The tool returns a JSON array of session objects, each containing:
sessionId — unique identifierstartedAt — ISO 8601 timestampuserMessages — array of {content, timestamp} objectsSessions are already filtered by date window and ignore patterns. Parse the JSON response.
Generate the narrative summary
For each session in the returned array, produce a brief paragraph that captures:
Combine all paragraphs into a single flowing narrative. Connect sessions in reverse-chronological order (newest first) so the reader can follow how the relationship evolved over the past week.
Keep the output in the range of 200-400 words. Prioritize recent sessions: give more detail to the newest ones, summarize older ones sparingly.
Write memory/context/reflection.md
Write the result as a Markdown file with frontmatter:
---
updatedDate: "<current ISO 8601 timestamp>"
timestamp: "<same as updatedDate>"
---
Follow the frontmatter with the narrative body. Always write the file, even if there is nothing to report.
Ensure size constraints
The total file size (frontmatter + body) MUST NOT exceed 5 kB (~1.2k tokens). If the generated summary would exceed this limit, trim oldest sessions first until the file fits. Never write a file larger than 5 kB.
reflection.md with only frontmatter. No body content. No placeholder text.startedAt: The tool already skips these; no action needed.reflection.md. Never skip or leave it unwritten.基于 SOC 职业分类