fix(jj-workspaces): Create work/ directory before adding workspace
Assisted-by: Claude Opus 4.5 via Claude Code
change xupnnzlwpkuypmpknxntskwwvwrkyvwl
commit 4aacb2f070dacefc73f86d00b68f74d8e60680d9
author Alpha Chen <alpha@kejadlen.dev>
date
parent xlwkmuwr
diff --git a/ai/claude/skills/jj-workspaces/SKILL.md b/ai/claude/skills/jj-workspaces/SKILL.md
index ba96e636..34bef6fb 100644
--- a/ai/claude/skills/jj-workspaces/SKILL.md
+++ b/ai/claude/skills/jj-workspaces/SKILL.md
@@ -29,7 +29,8 @@ Create isolated jj workspaces for experimentation, parallel development, and sub
 ## Creating a Workspace
 
 ```bash
-# 1. Create workspace
+# 1. Ensure work directory exists and create workspace
+mkdir -p work
 jj workspace add --name=<name> work/<name>
 
 # Or from specific revision
@@ -133,8 +134,8 @@ rm -rf work/<name>
 ## Commands Reference
 
 ```bash
-# Create workspace
-jj workspace add --name=<name> work/<name>
+# Create workspace (ensure work/ exists first)
+mkdir -p work && jj workspace add --name=<name> work/<name>
 jj workspace add --name=<name> -r <rev> work/<name>
 
 # List workspaces