Take, check or release the team work lock (a committed, expiring LOCK.md) on the whole brain or one spec, so two people don't change the same thing. Use for "lock the brain", "lock the <x> spec", "release the lock" or "who has the lock".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Lock?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/neamulmorshed-lock)
---
description: Take, check or release the team work lock (a committed, expiring LOCK.md) on the whole brain or one spec, so two people don't change the same thing. Use for "lock the brain", "lock the <x> spec", "release the lock" or "who has the lock".
argument-hint: "acquire <brain|spec-slug> [--hours N] | release | status"
effort: low
---
# /brain:lock — one writer at a time
The driver is `node "${CLAUDE_SKILL_DIR}/../../hooks/scripts/lock.js"`.
1. **Check first:** `lock.js status` — who holds what, until when.
2. **Take it:** `lock.js acquire <brain|spec-slug> --hours N --note "what you're changing"`
(default 8 hours). A spec lock covers `specs/<slug>.md` and `projects/<slug>.md`; a brain
lock covers every knowledge layer except the append-only log.
3. **Commit and push `LOCK.md` right away** (offer `session: lock <scope>`) — a lock only
protects you once teammates have pulled it.
4. **Release it when done:** `lock.js release`, then commit and push. Take over someone's active
lock (`acquire … --force` / `release --force`) only after they've agreed.