# Writer's Studio Feature Pack — Implementation Plan > **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. **Goal:** Add Zen Mode, Document Outline, and Writing Analytics to MarkdownConverter v4.2.0. **Architecture:** Three independent feature modules that integrate into the existing sidebar, modal, command palette, and CodeMirror 6 infrastructure. Each feature is self-contained in its own file with minimal modifications to existing code. **Tech Stack:** CodeMirror 6 (ViewPlugin, Decoration, scrollIntoView), existing SidebarManager/ModalManager APIs, pure JS math for analytics. --- ## Task 1: Document Outline Panel **Files:** - Create: `src/sidebar/outline-panel.js` - Modify: `src/renderer.js` (lazy loader + panel registration + command palette + keyboard shortcut) - Modify: `src/index.html` (sidebar icon button) ### Step 1: Create outline panel module Create `src/sidebar/outline-panel.js`: ```javascript /** * Document Outline Sidebar Panel * Shows heading hierarchy parsed from active markdown document. */ function renderOutlinePanel(container, { getEditorContent, onHeadingClick, getActiveLine }) { container.innerHTML = `
No headings found
Use # to create headings