home / skills / ananddtyagi / cc-marketplace / master-plan-manager

This skill safely manages MASTER_PLAN.md updates with backups, validation, and structured changes to tasks, bugs, and roadmaps.

npx playbooks add skill ananddtyagi/cc-marketplace --skill master-plan-manager

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
4.1 KB
---
name: master-plan-manager
description: Safe MASTER_PLAN.md management with backup, validation, and intelligent updates. Use when updating task tracking, adding features to roadmap, or modifying project documentation.
---

# Master Plan Manager

Intelligent management of MASTER_PLAN.md files with comprehensive safety measures.

## When to Use

Use this skill when:
- Updating task status (TASK-XXX, BUG-XXX)
- Adding items to roadmap or ideas sections
- Modifying project tracking documentation
- Ensuring safe updates to critical planning files

## Safety Protocol

**MANDATORY** before any MASTER_PLAN.md modification:

1. **Read First** - Always read the entire file before editing
2. **Backup** - Create timestamped backup before changes
3. **Validate** - Check if update is actually needed (avoid duplicates)
4. **Preserve** - Maintain existing structure and formatting
5. **Verify** - Confirm integrity after changes

## Core Operations

### 1. Status Updates

Update task/bug status in the Dependency Index table:

```markdown
| ID | Status | Primary Files | Depends | Blocks |
|----|--------|---------------|---------|--------|
| TASK-XXX | πŸ”„ **IN PROGRESS** | `file.ts` | - | - |
```

Status transitions:
- `πŸ“‹ TODO` β†’ `πŸ”„ IN PROGRESS` β†’ `πŸ‘€ REVIEW` β†’ `βœ… DONE`

### 2. Adding New Items

**New Task:**
```markdown
### TASK-XXX: Task Title (πŸ“‹ TODO)

**Priority**: P2-MEDIUM

**Files to Modify:**
- `src/file.ts`

**Steps:**
- [ ] Step 1
- [ ] Step 2
```

**New Bug:**
```markdown
### BUG-XXX: Bug Description (πŸ”„ IN PROGRESS)

**Severity**: HIGH

**Symptoms**: What's wrong

**Root Cause**: (To be determined)
```

**Roadmap Item:**
```markdown
| ROAD-XXX | Feature description | P2 | TODO | Notes |
```

### 3. Completing Items

When marking complete:
1. Add strikethrough to ID: `~~TASK-XXX~~`
2. Update status: `(βœ… DONE)`
3. Move to "Recently Completed" section
4. Update Dependency Index table

### 4. ID Format

| Prefix | Usage |
|--------|-------|
| `TASK-XXX` | Features and tasks |
| `BUG-XXX` | Bug fixes |
| `ROAD-XXX` | Roadmap items |
| `IDEA-XXX` | Ideas to consider |
| `ISSUE-XXX` | Known issues |

## Safe Update Workflow

```
1. READ current MASTER_PLAN.md
   ↓
2. ANALYZE what needs to change
   ↓
3. CHECK if content already exists (avoid duplicates)
   ↓
4. BACKUP before modifications
   ↓
5. APPLY changes incrementally
   ↓
6. VALIDATE markdown structure
   ↓
7. CONFIRM with user if significant changes
```

## Examples

### Example 1: Mark Task Complete

**Before:**
```markdown
### TASK-033: Create Plugin (πŸ”„ IN PROGRESS)
```

**After:**
```markdown
### ~~TASK-033~~: Create Plugin (βœ… DONE)
```

**Also update Dependency Index:**
```markdown
| ~~TASK-033~~ | βœ… **DONE** | `plugin/*` | - | - |
```

### Example 2: Add New Bug

```markdown
### BUG-XXX: Button not responding (πŸ”„ IN PROGRESS)

**Severity**: MEDIUM

**Symptoms**: Click handler not firing on mobile

**Root Cause**: Touch event not handled

**Fix**: Add touchstart listener
```

### Example 3: Update Progress

```markdown
**Steps:**
- [x] Research βœ…
- [x] Implementation βœ…
- [ ] Testing
- [ ] Documentation
```

## Integration Commands

When chief-architect or other skills delegate:

```
master-plan-manager: update-status TASK-033 done
master-plan-manager: add-task "New feature" P2
master-plan-manager: add-bug "Issue description" HIGH
master-plan-manager: move-to-completed TASK-033
```

## Validation Checklist

Before completing any update:

- [ ] Read entire file first
- [ ] Backup created
- [ ] No duplicate IDs
- [ ] Proper markdown formatting
- [ ] Strikethrough on completed IDs
- [ ] Status emoji matches state
- [ ] Dependency Index updated

## Error Recovery

If something goes wrong:

```bash
# Restore from backup
cp docs/MASTER_PLAN.md.backup docs/MASTER_PLAN.md

# Or use git
git checkout HEAD -- docs/MASTER_PLAN.md
```

## Best Practices

1. **Never blindly append** - Always check if section exists
2. **Preserve formatting** - Match existing style (emojis, spacing)
3. **Atomic updates** - One logical change at a time
4. **User verification** - Ask user to confirm significant changes
5. **Keep history** - Document why changes were made

Overview

This skill provides safe, automated management for MASTER_PLAN.md files with backup, validation, and intelligent updates. It streamlines status changes, adds roadmap or bug entries, and preserves document structure. Designed to avoid duplicates and ensure recoverability before any change.

How this skill works

The skill reads the entire MASTER_PLAN.md, analyzes requested edits, and checks for duplicates or formatting issues before applying changes. It creates a timestamped backup, applies incremental edits (status updates, new tasks/bugs/roadmap items), validates markdown structure, and can prompt for user confirmation on significant updates. After changes it verifies integrity and updates the Dependency Index and Recently Completed sections as needed.

When to use it

  • Updating task or bug status (TASK-XXX, BUG-XXX)
  • Adding new tasks, bugs, roadmap, or idea entries
  • Modifying project tracking or planning documentation
  • Moving items to Recently Completed or adjusting dependencies
  • Before making any change to critical planning files

Best practices

  • Always read the full MASTER_PLAN.md before editing
  • Create a timestamped backup before applying changes
  • Check for existing IDs and avoid duplicates
  • Preserve existing formatting, emojis, and section structure
  • Make atomic, single-purpose updates and request user confirmation for large edits

Example use cases

  • Mark TASK-033 as done and move it to Recently Completed while updating the Dependency Index
  • Add a new BUG-021 with severity, symptoms, and initial root cause notes
  • Insert a ROAD-005 roadmap entry with priority and status without breaking table formatting
  • Update a task’s checklist progress (tick boxes) and keep progress history intact
  • Restore the file from a backup if an automated edit introduced a formatting error

FAQ

What safeguards run automatically before editing?

The skill reads the whole file, checks for duplicate IDs, creates a timestamped backup, and validates markdown structure before making edits.

How are completed items handled?

Completed items get strikethrough on the ID, status updated to βœ… DONE, moved to Recently Completed, and the Dependency Index is updated accordingly.