End session - create summary, commit changes with conventional commits
Generates session summary and commits changes using conventional commit format.
/plugin marketplace add karchtho/my-claude-marketplace/plugin install sessions-workflow-bundle@my-claude-marketplacehaikuGenerate a comprehensive session summary and commit all changes using conventional commits.
git diff --name-status HEAD 2>/dev/null | head -10git diff --cached --name-status 2>/dev/nullgit log --format='%s' -3 2>/dev/null || echo "No git history"git branch --show-current 2>/dev/null || echo "main"Execute these steps in order:
Determine session topic from changed files:
YYYY-MM-DD_topic (e.g., 2026-01-05_session-bundle)Create file: docs/sessions/YYYY-MM-DD_topic.md
docs/sessions/ directory if missing: mkdir -p docs/sessions# Session Summary - [Date]
## Session Objectives
[1-2 sentences about what you were trying to accomplish]
## Work Completed
- [Key change 1]
- [Key change 2]
- [Key change 3]
[List 3-5 items, not exhaustive]
## Files Modified
[List files that were changed, from git diff output]
## Key Decisions
[If applicable: 1-2 architectural or design decisions made]
## Issues Encountered
[If applicable: Problems encountered and how they were solved]
## Next Steps
[2-3 specific next actions for next session]
Stage changes
git add .
Create commit message following detected style:
If conventional commits detected:
type(scope): subject
- [key change 1]
- [key change 2]
- [key change 3]
Session summary: docs/sessions/YYYY-MM-DD_topic.md
Examples:
feat(sessions): create session workflow bundlefix(bundle-maker): improve placeholder detectiondocs(marketplace): update installation guideTypes: feat, fix, docs, style, refactor, test, chore, perf
If informal commits detected:
Add session workflow commands and documentationCommit with message
git commit -m "[message]"
Verify commit created
git log --oneline -1
Report:
docs/sessions/YYYY-MM-DD_topic.md--oneline, --short)ā
Session summary created: docs/sessions/YYYY-MM-DD_session.md
ā¹ļø No code changes - only summary committed
Commit: 2k3f4j5 chore(session): session summary
ā
Session summary created: docs/sessions/YYYY-MM-DD_session.md
ā ļø Not in git repository - summary saved but not committed
Next: Initialize git and manually commit
ā Could not write summary to docs/sessions/
Please ensure directory exists and is writable: mkdir -p docs/sessions
Session Summary - January 5, 2026
## Session Objectives
Implement the sessions workflow bundle for token-efficient project context loading.
## Work Completed
- Created sessions-workflow-bundle structure
- Implemented /session-start command with context loading
- Implemented /session-end command with automatic commits
- Added session manager skill for non-command workflows
## Files Modified
- bundles/sessions-workflow-bundle/.claude-plugin/plugin.json
- bundles/sessions-workflow-bundle/commands/session-start.md
- bundles/sessions-workflow-bundle/commands/session-end.md
- bundles/sessions-workflow-bundle/skills/session-manager/SKILL.md
## Next Steps
- Create helper scripts for commit style detection
- Add comprehensive documentation and examples
- Test workflow with edge cases (no git, missing docs/)
Commit:
feat(sessions): create session workflow bundle
- Implemented /session-start command with context loading
- Implemented /session-end command with conventional commits
- Added session manager skill
- Token-efficient design with ~1500-2000 token budget per session
Session summary: docs/sessions/2026-01-05_sessions-workflow.md
Session Summary - January 5, 2026
## Session Objectives
Fix placeholder leakage in bundle-maker skill and update validation.
## Work Completed
- Analyzed bundle-maker placeholder detection
- Updated validation script to catch TODO markers
- Fixed 3 existing template files with placeholders
## Files Modified
- bundles/dev-toolkit-bundle/skills/bundle-maker/SKILL.md
- bundles/dev-toolkit-bundle/skills/bundle-maker/scripts/validate-bundle.sh
## Issues Encountered
- Initial validation regex was too strict - refined to match real patterns
- Solution: Updated grep pattern in validation script
## Next Steps
- Test validation against all bundles
- Document new validation rules
- Create example of bad bundle structure for testing
Commit:
fix(bundle-maker): improve placeholder detection in validation
- Enhanced validate-bundle.sh to catch TODO markers
- Updated SKILL.md documentation of no-placeholder policy
- Test coverage for template validation
Session summary: docs/sessions/2026-01-05_bundle-validation.md
This command uses ~2000-2500 tokens maximum:
git diff --name-status not git diff--oneline, --short, --format='%s'