Generate a post-implementation report summarizing what was built, correlating planned vs actual changes. Triggers: 'report', 'summarize implementation', 'what did we build', 'execution summary'.
Generate a post-implementation summary as a blueprint artifact. Captures what was built, how it diverged from the plan, and what to watch for.
--spec <path> — source spec to correlate against (optional)--plan <path> — source plan to correlate against (optional)ct spec latest and ct plan latestBASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/||' || echo main)
Collect:
git log --oneline $BASE..HEAD — commit historygit diff --stat $BASE..HEAD — file change summarygit diff $BASE..HEAD -- '*.rs' '*.ts' '*.py' — actual diff (truncate at 3000 lines)If --spec or --plan provided, read via ct spec read / ct plan read. Otherwise try ct spec latest and ct plan latest — skip silently if none found.
Sections:
Write the report content to a temp file using the Write tool (never heredocs — backticks get escaped), then pipe it:
REPORT_FILE=$(cat /tmp/report-body.md | ct report create --topic "<topic>" --source "<spec-or-plan-stem-if-known>")
rm /tmp/report-body.md
Print the report file path and a one-line summary.