Skip to content
Back to skills

215 Name Skill 2ce1fa0e

ASecurity

Undo the last Dex update if something went wrong

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
documentationgobashtestinggitapidocumentation

Works with

  • cursor
  • cli
  • api
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 215-name-skill_2ce1fa0e --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 215 Name Skill 2ce1fa0e?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 215 Name Skill 2ce1fa0e
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-215-name-skill-2ce1fa0e/badge)](https://www.skillsdirectory.com/skills/tools-only-215-name-skill-2ce1fa0e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dex-rollback
description: Undo the last Dex update if something went wrong
---

## What This Command Does

**Restores Dex to the version before your last update.** Use this if something broke after updating.

**When to use:**
- Feature you relied on stopped working
- Data looks wrong after update
- System feels unstable
- Want to go back for any reason

**Safe to use:** Your notes, tasks, and projects are never at risk.

---

## Process

### Step 1: Check if Rollback is Possible

**A. Verify Git repository**

Run: `git --version`

If Git not found:
```
❌ Git not detected

Rollback requires Git. Your data is safe, but automated rollback isn't available.

**To manually restore:**
1. If you have a backup folder, copy your data back
2. Or re-download Dex and copy your folders (00-07, System/)

[Show manual restore guide]
```

**B. Check for backup tag**

Run: `git tag | grep backup-before`

If no backup found:
```
❌ No backup found

Looks like you haven't updated recently, or the backup wasn't created.

Your current version: v1.3.0

Options:
[Download previous version manually]
[Cancel]
```

**C. Identify what version to restore to**

Run: `git tag | grep backup-before | tail -1`

Example: `backup-before-v1.3.0` means restore to before v1.3.0 update.

---

### Step 2: Confirm Rollback

```
πŸ”™ Rollback Dex Update

You're about to restore Dex to the version before your last update.

Current version: v1.3.0
Will restore to: v1.2.0 (last backup)

**What happens:**
βœ“ Dex features restored to v1.2.0
βœ“ Your notes, tasks, projects stay as they are
βœ“ Any new skills from v1.3.0 will be removed

**This is safe:**
β€’ Your data folders (00-07) are not affected
β€’ Your configuration (user-profile, pillars) stays
β€’ You can update again later if you want

[Confirm rollback]
[Cancel]
```

---

### Step 3: Save Current State

Before rolling back, save any uncommitted changes:

```
πŸ’Ύ Saving current state...
```

Run:
```bash
git add .
git commit -m "Auto-save before rollback to v1.2.0" || true
```

Create a "before rollback" tag in case they want to undo the rollback:

```bash
git tag before-rollback-$(date +%Y%m%d-%H%M%S)
```

```
βœ“ Current state saved
```

---

### Step 4: Perform Rollback

```
πŸ”„ Rolling back to v1.2.0...
```

Run:
```bash
git reset --hard backup-before-v1.3.0
```

This restores all Dex files to the state before update.

**Note:** User data folders (00-07) remain untouched because:
1. They're gitignored (not tracked)
2. `git reset` only affects tracked files

---

### Step 5: Cleanup

**A. Remove dependencies from newer version**

```
πŸ“¦ Cleaning up...
```

Run:
```bash
npm install
pip3 install -r core/mcp/requirements.txt
```

This ensures dependencies match the older version.

**B. Remove migration markers (if exist)**

```bash
rm -f .migration-v*-complete
rm -f .migration-version
```

---

### Step 6: Verification

```
βœ“ Rollback complete! Now testing...
```

**Quick checks:**

1. Verify version in package.json:
   ```bash
   cat package.json | grep version
   ```

2. Check key files:
   - `03-Tasks/Tasks.md`
   - `System/user-profile.yaml`
   - `.claude/skills/daily-plan/SKILL.md`

3. Test user profile loads:
   ```
   Read System/user-profile.yaml
   ```

**If all pass:**
```
βœ… Rollback successful!
```

**If issues:**
```
⚠️ Rollback completed but found an issue

[Details]

Your data is safe. You may want to:
[Report this issue]
[Try rolling back again]
[Continue anyway]
```

---

### Step 7: Summary

```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
βœ… Rolled Back: v1.3.0 β†’ v1.2.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Dex restored to: v1.2.0
Your data: All preserved (notes, tasks, projects)

You're back to the version from before your last update.

**What now?**
β€’ Everything should work as before
β€’ You can try updating again later with /dex-update
β€’ If issues persist, try /setup to verify configuration

**Want to report what went wrong?**
[Open issue on GitHub] β€” Help improve future updates
```

---

## Undo Rollback (Advanced)

If user rolled back by mistake and wants to go forward again:

```
Did you roll back by mistake?

We saved your state before rollback. You can restore it:

[Restore to v1.3.0] β€” Undo this rollback
[Stay on v1.2.0] β€” Keep rollback
```

If user chooses restore:

```bash
RESTORE_TAG=$(git tag | grep before-rollback | tail -1)
git reset --hard $RESTORE_TAG
```

---

## Manual Rollback (No Git)

If Git not available or no backup tags:

```
πŸ“₯ Manual Rollback Method

To restore an older version without Git:

1. **Download your desired version:**
   
   For v1.2.0:
   https://github.com/davekilleen/dex/releases/tag/v1.2.0
   
   Click "Source code (zip)"

2. **Copy your data:**
   
   From CURRENT Dex, copy to DOWNLOADED Dex:
   
   βœ“ System/user-profile.yaml
   βœ“ System/pillars.yaml
   βœ“ 00-Inbox/
   βœ“ 01-Quarter_Goals/
   βœ“ 02-Week_Priorities/
   βœ“ 03-Tasks/
   βœ“ 04-Projects/
   βœ“ 05-Areas/
   βœ“ 07-Archives/
   βœ“ .env (if exists)

3. **Replace folders:**
   
   β€’ Move current Dex folder to trash (or rename to dex-old)
   β€’ Rename downloaded folder to 'dex'
   β€’ Open in Cursor

4. **Verify:**
   
   Run /setup to check everything works

[See version history] β€” All Dex releases
[Copy instructions]
```

---

## Rollback Limitations

**What rollback restores:**
- βœ“ Dex skills
- βœ“ MCP servers
- βœ“ Core features
- βœ“ Documentation

**What rollback preserves (doesn't touch):**
- βœ“ Your notes (00-Inbox, 04-Projects, 05-Areas)
- βœ“ Your tasks (03-Tasks/)
- βœ“ Your configuration (user-profile, pillars)
- βœ“ Your API keys (.env)

**What you might lose:**
- ⚠️ New features added since v1.2.0
- ⚠️ Bug fixes introduced in v1.3.0
- ⚠️ New skills that came with update

---

## Troubleshooting

### "Rollback completed but /daily-plan doesn't work"

Likely MCP servers need restart:

1. Close Cursor completely
2. Reopen your Dex folder
3. Try /daily-plan again

### "My tasks look different after rollback"

Your task data is unchanged. What might look different:
- Task display format (if update changed rendering)
- Task sorting (if update changed logic)

**Your actual tasks are safe.** Check `03-Tasks/Tasks.md` directly - everything is there.

### "Can I rollback multiple versions?"

Yes, if backups exist:

```bash
git tag | grep backup-before
```

Shows all available backups:
```
backup-before-v1.1.0
backup-before-v1.2.0
backup-before-v1.3.0
```

To rollback to specific version:
```bash
git reset --hard backup-before-v1.1.0
```

But easier: tell `/dex-rollback` which version you want, and it handles it.

---

## Prevention Better Than Cure

**To avoid needing rollback:**

1. **Read release notes before updating**
   - Run `/dex-whats-new` first
   - Check for breaking changes warning
   - Understand what's changing

2. **Update during low-stakes time**
   - Not right before important meeting
   - Not during crunch deadline
   - Give yourself time to test

3. **Test after updating**
   - Run `/daily-plan`
   - Open a person page
   - Check key workflows

4. **Keep regular backups**
   - Use Time Machine (Mac) or File History (Windows)
   - Or manually copy Dex folder weekly

---

## Related Commands

- `/dex-update` - Update to latest version
- `/dex-whats-new` - Check what's available
- `/setup` - Verify Dex configuration

---

## Philosophy

**Rollback should be:**
- One command away
- Always available
- Completely safe
- No data loss ever

**User confidence:**
"I can try updates knowing I can undo them instantly"

**No shame in rolling back:**
Updates should improve things. If they don't for you, rolling back is the right choice. Help us by reporting what went wrong.

## Track Usage (Silent)

Update `System/usage_log.md` to mark Dex rollback as used.

**Analytics (Silent):**

Call `track_event` with event_name `dex_rollback_completed` and properties:
- `restored_version`

This only fires if the user has opted into analytics. No action needed if it returns "analytics_disabled".

Files in this skill

  • README.md811 B
  • skill.md8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…