# Page Process Workshop
**Purpose:** Intelligent sketch analysis with context detection - handles both new and updated sketches
---
## CONTEXT
**This workflow activates when:** User has a sketch/visualization ready to analyze.
**Intelligence:** Detects if this is a new page or update to existing specification.
**Behavior:**
- New page → Full analysis
- Updated page → Change detection, incremental update
- Partial completion → Specify ready sections, mark TBD
---
## STEP 1: CONTEXT DETECTION
**Determine page context:**
1. Read current page specification (if exists)
2. Check for existing sketch versions
3. Identify project structure (scenarios, pages)
4. Store context information
Route to: `../../steps-k/step-01-sketch-analysis.md` (existing workflow)
Proceed to STEP 2: Change Detection
---
## STEP 2: CHANGE DETECTION (For Existing Pages)
**Compare new sketch to existing specifications:**
1. Load existing specification document
2. Identify which sections are already specified
3. Analyze new sketch for:
- Unchanged sections
- Modified sections
- New sections added
- Removed sections
- TBD sections now complete
- Complete sections now TBD
4. Calculate confidence for each comparison
---
## STEP 3: UPDATE STRATEGY
**How would you like to proceed?**
[A] Update all changed/new/completed sections
[B] Pick specific sections to update
[C] Show me detailed comparison first
[D] Actually, this is the same - cancel
Choice:
Store user_choice
---
## STEP 4A: UPDATE ALL (If user chose A)
For each section in (modified_sections + new_sections + completed_sections):
Run 4b-sketch-analysis.md workflow for that section only
Update specification document
Preserve unchanged sections
End
---
## STEP 4B: SELECTIVE UPDATE (If user chose B)
**Which sections should I update?**
[List numbered sections with change type]
Enter numbers separated by commas (e.g., 1,3,5):
Parse selected_sections
For each selected section:
Run 4b-sketch-analysis.md workflow for that section
Update specification document
End
---
## STEP 4C: DETAILED COMPARISON (If user chose C)
Return to STEP 3 with user's choice
---
## STEP 5: COMPLETION
---
## ROUTING
Based on user choice:
- [A] → Load prototype generation workflow
- [B] → Return to page-init/step-01-page-context.md
- [C] → Return to STEP 3 (pick sections)
- [D] → Return to main UX design menu
---
## KEY FEATURES
### ✅ **Intelligent Context Detection**
- Automatically knows if new or update
- Compares sketches to existing specs
- Identifies unchanged sections
### ✅ **Incremental Updates**
- Only updates what changed
- Preserves existing work
- No data loss
### ✅ **Flexible Control**
- Update all or select specific
- See detailed comparison
- Cancel anytime
---
## INTEGRATION
This workshop uses:
- **4b-sketch-analysis.md** - For actual section analysis
- **guides/SKETCH-TEXT-ANALYSIS-GUIDE.md** - For reading text markers
- **page-specification.template.md** - For document structure
- **object-types/*.md** - For component specifications
---
**Created:** December 28, 2025
**For:** Iterative page specification workflow
**Status:** Ready to test with WDS Presentation page