Skip to content

Taha2053/context-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🎯 context-switcher

Switch your AI assistant's entire behavior based on the mode of life you're in.

ClawHub Version No External Calls License


Install

clawhub install context-switcher

Or manually copy this folder to ~/.openclaw/skills/context-switcher/ and restart OpenClaw.


What It Does

When you switch modes, OpenClaw doesn't just change a label β€” it reshapes everything:

Mode Notifications Memory Loaded Response Style
🧠 Work/Focus Personal muted Tasks, projects, deadlines Concise, task-first
🏠 Personal Work muted Errands, goals, people Warm, conversational
🎨 Creative All muted Projects, inspiration, ideas Expansive, yes-and
πŸ”• Do Not Disturb All muted Nothing surfaced Silent, logs only

How to Trigger It

Just say it naturally in any message:

"Switch to focus mode"
"Personal time, I'm done for the day"
"Creative mode β€” working on my novel"
"DND until my next meeting"
"Going dark for 2 hours"
"I need to focus"

Or it triggers automatically from calendar event titles β€” words like "standup", "family dinner", "writing session", or "deep work" will auto-activate the matching mode.


Customize Your Modes

Edit the files in modes/ to make each mode personal to you:

  • modes/work.md β€” your projects, team, weekly priorities
  • modes/personal.md β€” your goals, errands, important people
  • modes/creative.md β€” your active projects, inspiration sources

The more you fill these in, the smarter each mode becomes.


Auto-Restore

OpenClaw automatically restores your previous state when:

  • A calendar event ends
  • A timer you set expires (e.g. "focus mode for 90 minutes")
  • You say "exit [mode] mode" or "restore"

On restore, you get a brief catch-up summary of what came in while you were in the session.


Security

This skill is 100% local. No data is sent to any external service. No API keys required. All state lives in ~/.openclaw/skills/context-switcher/.

See the External Endpoints and Security & Privacy sections in SKILL.md for full details.


File Structure

context-switcher/
β”œβ”€β”€ SKILL.md                    ← Core skill instructions
β”œβ”€β”€ README.md                   ← This file
β”œβ”€β”€ current-context.json        ← Live mode state
β”œβ”€β”€ modes/
β”‚   β”œβ”€β”€ work.md                 ← Customize work mode
β”‚   β”œβ”€β”€ personal.md             ← Customize personal mode
β”‚   └── creative.md             ← Customize creative mode
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ switch.sh               ← Core switching logic
β”‚   β”œβ”€β”€ restore.sh              ← Auto-restore handler
β”‚   └── summarize.sh            ← Session summary generator
└── snapshots/
    β”œβ”€β”€ pre-switch-state.json   ← State saved before each switch
    └── dnd-log.json            ← Messages logged during DND

License

MIT β€” use freely, modify, share.


Contributing

Found a bug or have an idea? Open an issue or PR on GitHub. This skill is intentionally minimal β€” improvements should stay lightweight and local-first.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages