Purpose: Update context when APIs, frameworks, or contracts change
Last Updated: 2026-01-06
Action: User describes what changed
Format:
What changed in {topic}?
[A] API changes
[B] Deprecations
[C] New features
[D] Breaking changes
[E] Other (describe)
Select all that apply (A B C D or describe):
Follow-up: Get specific details for each selected type
Validation: MUST get user input before proceeding
Action: Search for files referencing the topic
Process:
Format:
Found 5 files referencing {topic}:
📄 concepts/routing.md (3 references, 145 lines)
📄 examples/app-router-example.md (7 references, 78 lines)
📄 guides/setting-up-nextjs.md (2 references, 132 lines)
📄 errors/nextjs-errors.md (1 reference, 98 lines)
📄 lookup/nextjs-commands.md (4 references, 54 lines)
Total impact: 17 references across 5 files
Action: Show line-by-line diff for each file
Format:
Proposed updates:
━━━ concepts/routing.md ━━━
Line 15:
- App router is optional (use pages/ or app/)
+ App router is now default in Next.js 15 (pages/ still supported)
Line 42:
+ ## Metadata API (New in v15)
+ Next.js 15 introduces new metadata API...
━━━ examples/app-router-example.md ━━━
Line 8:
- // Optional: use app router
+ // Default in Next.js 15+
Preview next file? (yes/no/show-all)
Approve changes? (yes/no/edit):
Edit mode: Line-by-line approval for each change
Validation: MUST get approval before proceeding
Action: Create backup before updating
Location: .tmp/backup/update-{topic}-{timestamp}/
Purpose: Enable rollback if updates cause issues
Action: Apply approved changes
Process:
Enforcement: @critical_rules.mvi_strict
Action: Add migration guide to errors/
Format:
## Migration: {Old Version} → {New Version}
**Breaking Changes**:
- Change 1
- Change 2
**Migration Steps**:
1. Step 1
2. Step 2
**Reference**: [Link to changelog]
Location: {category}/errors/{topic}-errors.md
Action: Check all references and links
Checks:
Action: Show comprehensive results
Format:
✅ Updated X files
📝 Modified Y references
🔄 Added migration notes to errors/
💾 Backup: .tmp/backup/update-{topic}-{timestamp}/
Summary of changes:
- concepts/routing.md: 2 updates (145 → 162 lines)
- examples/app-router-example.md: 4 updates (78 → 89 lines)
- guides/setting-up-nextjs.md: 1 update (132 → 133 lines)
All files still under 200 line limit ✓
Rollback available if needed.
/context update for Next.js 15
/context update for React 19
/context update for Stripe API v2024
/context update for OpenAI API breaking changes
/context update for Tailwind CSS v4