Session checkpoint, wrap-up, and handoff patterns for AI-assisted development. Covers session state persistence, context handoff, and resumption strategies. Trigger: session, checkpoint, handoff, wrap-up, resume, context.
From dotnet-ai-kitnpx claudepluginhub faysilalshareef/dotnet-ai-kit --plugin dotnet-ai-kitThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides idea refinement into designs: explores context, asks questions one-by-one, proposes approaches, presents sections for approval, writes/review specs before coding.
.dotnet-ai-kit/sessions/ directory.dotnet-ai-kit/
sessions/
2025-03-16-order-creation/
checkpoint.md # Current progress snapshot
decisions.md # Design decisions made
next-steps.md # What to do next
# Session Checkpoint
## Date: {date}
## Feature: {feature-name}
## Phase: {current-phase}
## Completed
- [x] Created OrderCreatedData event type
- [x] Implemented Order aggregate with Create factory method
- [x] Added CreateOrderHandler with CommitEventService
- [x] Added FluentValidation for CreateOrderCommand
## In Progress
- [ ] Query-side entity (Order) — started, needs Apply methods
- [ ] Event handler for OrderCreated — not started
## Blocked On
- None
## Files Changed
- src/Domain/Events/OrderCreatedData.cs (new)
- src/Domain/Aggregates/Order.cs (new)
- src/Application/Handlers/CreateOrderHandler.cs (new)
- src/Application/Validators/CreateOrderValidator.cs (new)
## Build Status
- Command project: compiles
- Query project: not started
- Tests: 3 passing, 0 failing
# Session Wrap-Up
## Summary
Implemented the command side for order creation feature (#001).
All command-side code compiles and passes tests.
## Key Decisions
1. Used decimal for money (not float/double) — consistency with existing
2. OrderCreatedData includes Items list for denormalized projection
3. Validation uses resource strings from Phrases.resx
## What's Left
1. Query-side implementation (entity, event handler, query handler)
2. Gateway endpoint for order creation
3. Integration tests
## Recommended Next Steps
Start with `query-architect` agent to implement:
1. Order query entity with CTO constructor
2. OrderCreatedHandler
3. GetOrdersQuery handler with pagination
## Context for Next Session
- Event types are in shared-contracts repo (already merged)
- Command service is deployable independently
- Proto files for OrderCommands service are ready
# Agent Handoff: command-architect → query-architect
## Context
Order creation feature (#001) command side is complete.
Events are published to `{company}-order-commands` topic.
## What You Need to Know
- Event data type: `OrderCreatedData(CustomerName, Total, List<OrderItemData>)`
- Sequence starts at 1, increments by 1
- SessionId = AggregateId (Guid) for ordered processing
## Your Tasks
1. Create `Order` entity in Query.Domain with CTO constructor
2. Create `OrderCreatedHandler : IRequestHandler<Event<OrderCreatedData>, bool>`
3. Add EF Core configuration for Order entity
4. Add `GetOrdersQuery` with pagination
5. Register event type in EventDeserializer
# Find latest checkpoint
ls -t .dotnet-ai-kit/sessions/*/checkpoint.md | head -1
# Read checkpoint to understand state
cat .dotnet-ai-kit/sessions/{latest}/checkpoint.md
# Check git status since last checkpoint
git log --oneline --since="2025-03-16"
| Anti-Pattern | Correct Approach |
|---|---|
| No checkpoint before stopping | Always checkpoint before ending session |
| Vague wrap-up ("worked on stuff") | Specific files, decisions, and next steps |
| Missing agent context in handoff | Include event types, topic names, conventions |
| Stale checkpoints | Update checkpoint at each significant milestone |
# Find session directory
ls -la .dotnet-ai-kit/sessions/ 2>/dev/null
# Find latest session
ls -t .dotnet-ai-kit/sessions/ 2>/dev/null | head -3