一键导入
debrief
Capture a structured session summary and send it to the cortex inbox. Run at the end of any Claude Code session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Capture a structured session summary and send it to the cortex inbox. Run at the end of any Claude Code session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Consolidate session debriefs into a single source of truth (SSOT). Run once daily from the cortex repo.
Capture a structured session summary and send it to the cortex OACP workspace. Run at the end of any Codex session.
Consolidate session debriefs into a single source of truth (SSOT). Run once daily from the cortex repo.
| name | debrief |
| description | Capture a structured session summary and send it to the cortex inbox. Run at the end of any Claude Code session. |
Capture what happened during a Claude Code session and deliver a structured summary to the cortex OACP workspace for morning consolidation by /sync.
/debrief — generate and send the debrief/debrief --dry-run — generate and display the summary without sendingWhen the user runs /debrief, do the following:
Determine the current project name using this fallback chain:
CLAUDE.md for an explicit project identifiergit rev-parse --show-toplevel and use the basenameNormalize: lowercase, hyphens (e.g., web-app, data-pipeline).
Review the conversation to capture:
git diff --name-only HEAD~5..HEAD 2>/dev/null or git status --shortgit log --oneline --since="8 hours ago" for recent commitsUse conversation context as the primary source. Git activity supplements but does not replace session memory.
Write a structured markdown summary:
# Debrief: <project> — <YYYY-MM-DD HH:MM TZ>
## What Changed
- bullet points of accomplishments
## Decisions Made
- key decisions with rationale
## Blockers
- items blocking progress (or "None")
## Next Steps
- [ ] carry-forward items
## Files Modified
- list of key files changed
Keep it concise — 2-6 bullet points per section.
Deliver the debrief to the cortex OACP workspace using oacp send:
oacp send cortex --from claude --to claude --type notification \
--subject "Debrief: <project> <YYYY-MM-DD>" \
--body-file <temp_file> \
--channel debrief \
--oacp-dir "$OACP_HOME"
If oacp send is not available, fall back to send_inbox_message.py:
python3 <scripts_dir>/send_inbox_message.py cortex \
--from claude --to claude --type notification \
--subject "Debrief: <project> <YYYY-MM-DD>" \
--body-file <temp_file> \
--channel debrief \
--oacp-dir "$OACP_HOME"
The debrief lands in $OACP_HOME/projects/cortex/agents/claude/inbox/.
If --dry-run was specified, display the summary and skip sending.
Print:
Debrief sent: <project> <date> → cortex/agents/claude/inbox/
/sync (run separately from the cortex repo) consumes these debriefs/sync aggregates across all agents and projects