ワンクリックで
process-sessions
Process ephemeral session notes and extract valuable knowledge into permanent documentation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Process ephemeral session notes and extract valuable knowledge into permanent documentation
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Conduct thorough code reviews for pull requests and pre-commit changes
Run comprehensive project health checks including code quality, documentation, git status, and project structure
Check CI/CD workflow status and troubleshoot failing checks in GitHub Actions
Initialize .docent/ directory structure and configuration for a new project
Comprehensive guide for AI agents on proactive documentation capture using /docent:tell
Migrate a docent v0.9 project to v1.0 skills-based architecture
| name | process-sessions |
| description | Process ephemeral session notes and extract valuable knowledge into permanent documentation |
| group | docent |
| keywords | ["knowledge-management","documentation","sessions","cleanup","review","process sessions","extract knowledge"] |
| version | 1.0.0 |
| author | docent |
This runbook guides you through reviewing ephemeral session notes, extracting valuable knowledge, and cleaning up processed sessions.
Session notes (.docent/sessions/*.md) capture detailed work logs from AI agent sessions - objectives, context, work performed, results, and lessons learned. This runbook helps:
.docent/sessions/ directory with session notesPurpose: Identify all session notes to process
Commands:
# List all session notes sorted by modification time
ls -lt .docent/sessions/*.md
# Count total sessions
ls -1 .docent/sessions/*.md | wc -l
Review: Note which sessions are recent vs historical
Purpose: Read through sessions to identify valuable content
Action: For each session note, read and look for:
High-value knowledge:
Medium-value knowledge:
Low-value ephemeral content:
Decision Point: For each piece of knowledge, ask:
Purpose: Capture significant technical decisions as ADRs
Action: For architecture decisions found in session "Lessons Learned" or "Context" sections
Use /docent:tell to create ADR:
/docent:tell create an ADR documenting [the decision]
Context from session:
- Decision: [what was decided]
- Rationale: [why it was decided]
- Date: [session date]
- Trade-offs: [from Lessons Learned section]
Location: .docent/adr/
Example Decisions to Extract:
Purpose: Document useful patterns and discoveries
Action: For valuable implementation details from "Work Performed" or "Results" sections
Use /docent:tell:
/docent:tell add to [relevant guide]:
From [session-date]: [insight or pattern discovered]
Common locations:
.docent/guides/.docent/guides/api-usage.md.docent/guides/setup.md.docent/guides/troubleshooting.mdExample Insights to Extract:
Purpose: Ensure user-facing changes are documented
Action: Review "Results" section for changes that affect users or developers
Update locations:
Commands:
# Check what's already in CHANGELOG
head -20 CHANGELOG.md
# Edit CHANGELOG if needed
# (Use Edit tool)
Example CHANGELOG entries:
## [Unreleased]
### Added
- New session processing runbook for knowledge management
### Changed
- Documentation structure consolidated from docs/ to .docent/
### Fixed
- Broken links in architecture documentation
Purpose: Prevent repeating mistakes and preserve insights
Action: Extract key points from "Lessons Learned" sections
Use /docent:tell:
/docent:tell document lesson learned:
[Copy lesson from session notes]
Common documentation targets:
.docent/guides/conventions.md.docent/guides/troubleshooting.md.docent/guides/best-practices.md.docent/guides/tooling.mdPurpose: Remove ephemeral content after extraction
Decision Point: What to do with processed sessions?
Option A: Archive by Year (Recommended)
Keep history organized but clearly mark as processed:
# Create archive structure
mkdir -p .docent/sessions/archive/$(date +%Y)
# Move processed sessions
mv .docent/sessions/2025-10-*.md .docent/sessions/archive/2025/
Benefits:
Option B: Delete Ephemeral Sessions
Completely remove sessions after extraction:
# Review one more time
ls .docent/sessions/2025-10-*.md
# Delete after confirming extraction is complete
rm .docent/sessions/2025-10-*.md
Benefits:
Recommended Approach:
Purpose: Ensure consistent naming for easier processing
Action: Rename sessions to follow consistent pattern
Standard format: YYYY-MM-DD-session-NNN.md
Commands:
# Check current naming
ls .docent/sessions/
# Rename inconsistent files
mv .docent/sessions/session-2025-10-29.md \
.docent/sessions/2025-10-29-session-001.md
Validation:
Purpose: Ensure ephemeral sessions aren't accidentally committed
Action: Check if sessions should be gitignored
Commands:
# Check current gitignore
grep -A2 -B2 session .gitignore
# Check what's currently tracked
git ls-files .docent/sessions/
Decision Point:
If ignoring, add to .gitignore:
# Docent ephemeral session notes
.docent/sessions/
!.docent/sessions/archive/
Note: Current project tracks sessions, but you may prefer different approach
Purpose: Save extracted knowledge
Action: Create commit with changes
Commands:
# Check what changed
git status .docent/ CHANGELOG.md
# Stage changes
git add .docent/adr/ .docent/guides/ .docent/architecture/
git add CHANGELOG.md
# Create commit
git commit -m "docs: extract knowledge from session review
- Added ADRs for [decisions]
- Updated [guides] with implementation insights
- Documented [lessons learned]
- Cleaned up ephemeral session notes
Processed sessions: [date range]"
How do you know processing succeeded?
/docent:askPost-processing validation:
# Verify sessions directory is clean
ls -la .docent/sessions/
# Test documentation search works
# (Use /docent:ask to find extracted content)
# Check git status
git status
Recommended frequency:
Time estimates:
Issue: Session contains valuable content but unclear where it belongs
Solution:
/docent:ask where should documentation about [topic] go?.docent/notes/ and decide laterIssue: Session describes decision but lacks full context
Solution:
/docent:tell to document what you can reconstructIssue: Multiple sessions cover same topic
Solution:
Issue: Unsure if session content is still relevant
Solution:
Efficient Processing:
/docent:tell extensively to speed up extractionKnowledge Triage:
Avoid Over-Documenting:
Session Writing Tips (for future):
💡 Tip: Process sessions while memory is fresh - much faster than processing old sessions
⚠️ Warning: Don't delete sessions until after extraction is complete and committed
📝 Note: Sessions are intentionally more detailed than journals - expect significant distillation during extraction
2025-10-29: Initial version