원클릭으로
reflection
Generate a narrative reflection summary from recent session history to capture mood, energy, and interaction quality.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate a narrative reflection summary from recent session history to capture mood, energy, and interaction quality.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or work through tasks.
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
| name | reflection |
| description | Generate a narrative reflection summary from recent session history to capture mood, energy, and interaction quality. |
| metadata | {"author":"madz","version":"1.0","agent":"orchestrator"} |
Generate a concise, narrative reflection summary from recent session history and write it to memory/context/reflection.md.
Discover session files
Read all .md files from memory/sessions/. Each session file has YAML frontmatter with (at minimum) a startedAt field (ISO 8601 timestamp). Also note endedAt, threadId, and messageCount fields.
Filter by 7-day window
Parse the startedAt frontmatter from each session. Keep only sessions where startedAt is within the last 7 days from the current time. Exclude any session files that lack a valid startedAt field.
Sort by recency
Sort the filtered sessions by startedAt in descending order so the most recent session appears first.
Generate the narrative summary
Read each session's JSON messages (the body after frontmatter). For each session, produce a brief paragraph that captures:
Combine all paragraphs into a single flowing narrative. Connect sessions chronologically 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 (approximately 20k 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: Skip that file entirely. Do not error.reflection.md. Never skip or leave it unwritten.