Reconcile a journal file into permanent documentation following decision tree routing
Reconciles journal files into permanent documentation using a decision tree to route entries to the correct locations. Use this after completing work to systematically convert temporary notes into organized documentation, knowledge base entries, and work logs.
/plugin marketplace add gaurangrshah/gsc-plugins/plugin install docs@gsc-pluginsReconcile a journal file into permanent documentation.
/docs-reconcile <journal-path>
Reads and analyzes the journal
Determines documentation actions using decision tree:
System config change → Update $MAIN_GUIDE inline
Service deployment → Update services/ or $MAIN_GUIDE
Security change → Update security/ AND $MAIN_GUIDE
Architecture decision → $KNOWLEDGE_BASE/decisions/
Lesson learned → Main guide "Key Lessons"
Cross-project pattern → $KNOWLEDGE_BASE/guides/
Bug fix (non-trivial) → Troubleshooting section
Code change only → Project CHANGELOG
Trivial change → No documentation needed
Executes documentation updates
Stores to worklog.db (if configured)
knowledge_base tableentries tableReports reconciliation results
# Journal: Task Name
## Task Started - HH:MM
**Context:** What you're working on
## Discovery - HH:MM
**Context:** What you found
**Content:** Details
## Decision - HH:MM
**Context:** What decision was needed
**Content:** What was decided and why
**Next:** What to do next
## Blocker - HH:MM
**Context:** What's blocking
**Content:** Details
**Resolution:** How resolved (if resolved)
## Checkpoint - HH:MM
**Context:** Progress update
**Content:** What's done so far
## Completed - HH:MM
**Context:** Task completion
**Content:** Summary of what was accomplished
Basic reconciliation:
/docs-reconcile /tmp/journal-fix-auth-2025-01-15.md
📝 Journal Reconciliation Report
Journal: /tmp/journal-fix-auth-2025-01-15.md
Entries found: 6 (2 decisions, 1 discovery, 1 completed)
✅ Documentation Updated:
- $MAIN_GUIDE: Added firewall rule to Current State
- $MAIN_GUIDE: Added entry to Change History
- $KNOWLEDGE_BASE/decisions/jwt-auth-strategy.md: Created
⏭️ Skipped:
- 2 checkpoint entries (context only)
- 1 trivial discovery (no lasting value)
📦 Stored to worklog.db:
- knowledge_base: 1 new entry (JWT auth decision)
- entries: 1 work log entry
✅ Journal can be safely deleted
After successful reconciliation:
/docs-validate --quick to verify