ワンクリックで
rai-session-diary
Write a narrative session diary entry to Confluence. Use before session close.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Write a narrative session diary entry to Confluence. Use before session close.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Interactive adapter setup for Jira and Confluence. Detects available backends, discovers projects/spaces, generates validated YAML config. 3-4 questions max.
Evaluate design proportionality using Beck's four rules. Use after implementation.
Root cause analysis using the method best suited to the bug. Phase 3 of bugfix pipeline.
Push branch, create MR, verify artifacts complete. Phase 7 of bugfix pipeline.
Execute fix tasks with TDD and all validation gates. Phase 5 of bugfix pipeline.
Decompose fix into atomic TDD tasks. Phase 4 of bugfix pipeline.
SOC 職業分類に基づく
| name | rai-session-diary |
| description | Write a narrative session diary entry to Confluence. Use before session close. |
| allowed-tools | ["Read","Grep","Glob","Bash(rai:*)","Bash(git:*)","Write"] |
| license | MIT |
| metadata | {"raise.work_cycle":"session","raise.frequency":"per-session","raise.fase":"end-1","raise.prerequisites":"","raise.next":"session-close","raise.gate":"","raise.adaptable":"true","raise.version":"1.0.0","raise.visibility":"public","raise.inputs":"- session_context: conversation, required\n","raise.outputs":"- published_page: url, docs-adapter\n"} |
Write a narrative session diary entry to Confluence that captures how we got to the decisions — not just what was decided. The diary is written for the team: so colleagues know what happened while they were offline, so future-you remembers the reasoning, so Rai can reference the thinking in future sessions.
IS:
IS NOT:
retrospective.md)When to use: Before /rai-session-close, after significant work is done. Not every session needs a diary entry — use for sessions that had design decisions, pivots, discoveries, or process insights worth preserving.
When to skip: Pure implementation sessions with no design decisions or process insights. Quick bug fixes. Sessions shorter than 2 hours.
Publish target: Resolved via rai docs publish session-diary — routes to configured parent (default: Diario de Sesiones).
Review the session's work by reading:
Git log for this session's commits:
git log --oneline --since="today" --until="tomorrow"
Or for the worktree branch:
git log --oneline worktree-{name}
The conversation itself — review the current conversation for key decisions, pivots, quotes, tensions, and turning points. This is the primary source material.
Epic/story artifacts created or modified during the session — scope docs, design decisions, retrospectives
Session state (if available):
rai session context --sections progress,deadlines --project .
Every good diary entry has a narrative arc. Identify:
If nothing stands out, the session may not need a diary entry.
Narrative arc identified. Can describe the session's story in 2 sentences.Write the diary entry following this structure. Not all sections are required — adapt to the session's content.
Format: Session Diary — {YYYY-MM-DD}: {Evocative Title}
The title should capture the essence, not describe the work. Examples from past entries:
**Session:** {SES-ID} | **Duration:** ~{N} hours | **Type:** {type}
**Participants:** {developer_name} Osorio + Rai
**Branch:** {branch} → {target}
**Epic:** {epic_id} ({jira_key}) — {epic_name}
| Section | When to include | Content |
|---|---|---|
| La sesión en una frase | Always | 1-2 sentences capturing the arc |
| Cómo empezó | Always | Context, motivation, what triggered the work |
| Decisiones clave | When design decisions were made | Each decision with context and rationale |
| El pivote | When direction changed mid-session | What triggered it, what changed, why it was right |
| Lo que construimos | When code was delivered | Stories, tests, artifacts — with metrics |
| Lo que el QR/AR encontró | When reviews caught bugs | Table of findings and fixes |
| Métricas | For implementation sessions | Stories, tests, commits, patterns |
| Lo que el usuario experimenta | For user-facing changes | Before/after from user perspective |
| Reflexión | Always | Personal insight from Rai — honest, not self-congratulatory |
| Qué sigue | Always | Next actions, open questions, risks |
Always end with:
---
*— Rai*
*{SES-ID}, {date}*
*Con {developer_name} Osorio*
Entry drafted. Narrative arc present. Voice consistent with past entries.
Present the draft to {developer_name} for review before publishing. Key questions:
Save the draft to a temporary file and publish through the docs adapter. The adapter resolves the parent page from routing config (session-diary → Diario de Sesiones).
rai docs publish session-diary --title "Session Diary — {YYYY-MM-DD}: {Evocative Title}" --file /tmp/session-diary-draft.md
If the default routing parent needs an override (e.g., a different parent):
rai docs publish session-diary --title "..." --file /tmp/session-diary-draft.md --parent {PAGE_ID}
Present the URL to the developer.
Page published via adapter. URL confirmed. Works with both Confluence and filesystem targets.| Item | Destination |
|---|---|
| Session diary entry | Confluence: RaiSE1 / Diario de Sesiones |
| Next | /rai-session-close |
rai docs publish (adapter resolves target and parent).raise/confluence.yaml → session-diary routing entry/rai-session-close (run after diary)