Plan Export to Summary
Export PROJECT_PLAN.md as a condensed Markdown summary.
Usage
bash
/planExportSummary
Step 0: Load Configuration
javascript
function getConfig() {
if (fileExists("./.plan-config.json")) {
try { return JSON.parse(readFile("./.plan-config.json")) } catch {}
}
const globalPath = expandPath("~/.config/claude/plan-plugin-config.json")
if (fileExists(globalPath)) {
try { return JSON.parse(readFile(globalPath)) } catch {}
}
return { "language": "en" }
}
const config = getConfig()
const language = config.language || "en"
const t = JSON.parse(readFile(`locales/${language}.json`))
Step 1: Read PROJECT_PLAN.md
If not found:
code
{t.commands.update.planNotFound}
{t.commands.update.runPlanNew}
Step 2: Parse Project Data
Extract summary information:
- •Overall progress
- •Current focus (next task, in progress, blocked)
- •Phase breakdown
- •Tech stack
Step 3: Create Summary Structure
markdown
# [Project Name] - Summary **Type**: [Full-Stack/Backend/Frontend] **Progress**: [X]% complete ([Y]/[Z] tasks done) **Status**: [In Progress/Blocked/Complete] ## Current Focus 🎯 **Next Task**: T[X].[Y] - [Name] 🔄 **In Progress**: [N] tasks 🚫 **Blocked**: [M] tasks ## Progress by Phase | Phase | Name | Progress | Status | |-------|------|----------|--------| | 1 | Foundation | █████░░░░░ 50% | In Progress | | 2 | Core Features | ░░░░░░░░░░ 0% | Not Started | | 3 | Advanced | ░░░░░░░░░░ 0% | Not Started | | 4 | Testing & Deploy | ░░░░░░░░░░ 0% | Not Started | ## Task Checklist ### Phase 1: Foundation - [x] T1.1: Project Setup (DONE) - [x] T1.2: Database Setup (DONE) - [ ] T1.3: Authentication (TODO) - [ ] T1.4: Basic API (TODO) ### Phase 2: Core Features - [ ] T2.1: User CRUD (TODO) - [ ] T2.2: Dashboard (TODO) ... ## Tech Stack **Frontend**: [Frameworks] **Backend**: [Frameworks] **Database**: [Database] ## Quick Stats - 📅 Started: [Date] - 📅 Updated: [Date] - ⏱️ Total Estimated: [X] hours - ✅ Completed: [Y] hours - 📋 Remaining: [Z] hours --- *Generated by plan-plugin* *Full plan: PROJECT_PLAN.md*
Step 4: Write File
Write to PROJECT_SUMMARY.md
Success Output:
code
Writing Markdown summary... ✅ Exported to: PROJECT_SUMMARY.md 📄 Summary includes: • Overall progress • Phase breakdown • Task checklist • Tech stack overview 💡 Use this for: • Quick project overview • Sharing with team • Status reports • README updates View file: cat PROJECT_SUMMARY.md
Error Handling
code
❌ Error: Cannot write export file Please check directory permissions and try again.