update-planning-docs (Manual Command)
Trigger
When the user says "@update planning docs" or "update planning docs", execute this command.
What to Do
Guide the user through updating CHANGELOG, DEVLOG, or other planning documentation.
Step 1: Ask What Needs Updating
Present these options:
code
Which planning document(s) need updating? 1. **CHANGELOG** - Add technical change entries 2. **DEVLOG** - Add decision/milestone narrative 3. **DEVLOG Current Context** - Update project state 4. **ADR** - Create architectural decision record 5. **All of the above** - Comprehensive update Please specify (1-5):
Step 2: Execute Based on Choice
Option 1: Update CHANGELOG
- •Ask: "What changed? (files, features, fixes)"
- •Determine category: Added, Changed, Fixed, Deprecated, Removed, Security
- •Open
logs/CHANGELOG.md - •Add entry under "Unreleased" section in appropriate category
- •Format:
- Description. Files: \path/to/file`. Commit: `hash` (if available)` - •Show the entry to user for confirmation
Example:
markdown
### Added - Improved Augment rules with pre-commit checklist. Files: `.augment/rules/log-file-maintenance.md`
Option 2: Update DEVLOG
- •Ask: "What milestone/decision needs documenting?"
- •Gather information:
- •What was the situation/context?
- •What was the challenge/problem?
- •What decision was made?
- •Why does it matter?
- •What was the result?
- •What files changed?
- •Open
logs/DEVLOG.md - •Add entry to "Daily Log" section (newest first)
- •Use format: Situation/Challenge/Decision/Why/Result/Files
- •Keep entry 150-250 words
- •Show entry to user for confirmation
Example:
markdown
### 2025-10-31: Improving Augment Rules - Making Automation Actually Work **The Situation:** The existing log-file-maintenance rule wasn't triggering automatic updates... **The Challenge:** Rules were passive guidance, not active automation... **The Decision:** Rewrote rules with explicit pre-commit checklist... **Why This Matters:** Automatic planning file updates are core to the system... **The Result:** New rules include mandatory checklists and verification steps... **Files Changed:** `.augment/rules/log-file-maintenance.md`
Option 3: Update DEVLOG Current Context
- •Ask: "What changed in project state?"
- •Version?
- •Branch?
- •Phase?
- •Objectives?
- •Risks/blockers?
- •Open
logs/DEVLOG.md→ "Current Context (Source of Truth)" section - •Update relevant fields
- •Show changes to user for confirmation
Option 4: Create ADR
- •Ask: "What architectural decision needs documenting?"
- •Get next ADR number from
logs/adr/README.md - •Use template from
.log-file-genius/templates/ADR_template.md - •Create file:
logs/adr/NNN-short-title.md - •Fill in: Context, Decision, Consequences, Alternatives
- •Update
logs/adr/README.mdindex - •Show ADR to user for confirmation
Option 5: All of the Above
Execute steps 1-4 in sequence, asking for information for each.
Step 3: Offer to Commit
After updating files, ask:
code
Planning files updated. Would you like me to: 1. Commit these changes now 2. Let you review first 3. Include in your next commit
Key Files Reference
- •CHANGELOG:
logs/CHANGELOG.md - •DEVLOG:
logs/DEVLOG.md - •ADRs:
logs/adr/directory - •Templates:
.log-file-genius/templates/directory - •How-to guide:
.log-file-genius/docs/log_file_how_to.md
Tips
- •Be specific: Vague entries like "Updated files" aren't helpful
- •Include context: Explain WHY, not just WHAT
- •Reference files: Always include file paths
- •Keep it concise: CHANGELOG = 1 line, DEVLOG = 150-250 words
- •Link commits: Include commit hashes when available