[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71M4HZX3Q13YH9VRR1HESXJ":3,"skill-same:01M71M4HZX3Q13YH9VRR1HESXJ":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M71M4HZX3Q13YH9VRR1HESXJ","mastermind-workspaces",null,"Mastermind workspaces — manage isolated git worktree workspaces per project. List, attach, detach, stop, and prune workspaces. Grouped by project with running service counts and agent assignments.","monoes\u002Fmonomind","monoes","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F276744696?v=4","01M71KWF37AJ2NJBP3KWBVSDGT","01M71KWF4CSF8ADH0M6HA09VD2",23,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmastermind-workspaces\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"workspaces","mastermind workspaces","running","domain","project","manage","with","attach","git worktree","worktree","git","list","grouped","prune","service","stop","2026-11-10 10:56:23",false,"---\nname: mastermind-workspaces\ndescription: Mastermind workspaces — manage isolated git worktree workspaces per project. List, attach, detach, stop, and prune workspaces. Grouped by project with running service counts and agent assignments.\ntype: domain-skill\ndefault_mode: confirm\npick: low\n---\n\n# Mastermind Workspaces\n\nThis skill is invoked directly via `\u002Fmastermind-workspaces`.\n\n---\n\n## Inputs\n\n- `brain_context`: BRAIN CONTEXT block (injected by command, or loaded below if standalone)\n- `org_name`: org to manage workspaces for (required)\n- `action`: list | status | attach | detach | stop | prune\n- `workspace_id`: workspace id (required for status\u002Fdetach\u002Fstop)\n- `project_id`: project to filter by (optional for list)\n- `agent_id`: agent to assign to workspace (required for attach)\n- `worktree_path`: filesystem path of the worktree (required for attach)\n- `caller`: command | master\n\n---\n\n## Workspace Model\n\nA workspace is a git worktree assigned to a project, optionally running services and assigned to an agent.\n\n```json\n{\n  \"id\": \"ws-abc123\",\n  \"project_id\": \"project-slug\",\n  \"agent_id\": \"backend-dev\",\n  \"worktree_path\": \"\u002Ftmp\u002Fmonomind\u002Fworktrees\u002Fproject-slug-abc123\",\n  \"branch\": \"feat\u002Fmy-feature\",\n  \"status\": \"active\",\n  \"services\": [\"dev-server\", \"db-watcher\"],\n  \"createdAt\": \"2026-01-01T00:00:00Z\",\n  \"lastActiveAt\": \"2026-01-02T00:00:00Z\"\n}\n```\n\n---\n\n## Step 0 — Brain Load (standalone only)\n\nIf `caller` is not \"command\", load brain context following mastermind-protocol\u002FSKILL.md Brain Load Procedure with namespace: `ops`.\n\n---\n\n## Step 1 — Load Workspace Data\n\n```bash\norgFile=\".monomind\u002Forgs\u002F${org_name}.json\"\n[ ! -f \"$orgFile\" ] && { echo \"ERROR: Org '${org_name}' not found.\"; exit 1; }\n\nwsFile=\".monomind\u002Forgs\u002F${org_name}-workspaces.json\"\n[ ! -f \"$wsFile\" ] && echo '{\"workspaces\":[]}' > \"$wsFile\"\n\nprojectsFile=\".monomind\u002Forgs\u002F${org_name}-projects.json\"\nworktreeRegistry=\".monomind\u002Forgs\u002F${org_name}-worktrees.json\"\n```\n\n---\n\n## Step 2 — Execute Action\n\n### list (default)\n\n```bash\necho \"WORKSPACES — org: $org_name\"\n[ -n \"$project_id\" ] && echo \"(filtered by project: $project_id)\"\necho \"────────────────────────────────────────────────────────\"\n\ntotal=$(jq '.workspaces | length' \"$wsFile\")\n\nif [ \"$total\" -eq 0 ]; then\n  echo \"  No workspaces. Use --action attach to register one.\"\nelse\n  # Group by project\n  projects=$(jq -r --arg pid \"${project_id:-}\" '\n    .workspaces |\n    if $pid != \"\" then map(select(.project_id == $pid)) else . end |\n    [.[].project_id] | unique[]\n  ' \"$wsFile\")\n\n  while IFS= read -r proj; do\n    [ -z \"$proj\" ] && continue\n    projName=$([ -f \"$projectsFile\" ] && jq -r --arg pid \"$proj\" '(.projects \u002F\u002F [])[] | select(.id == $pid) | .name \u002F\u002F $pid' \"$projectsFile\" || echo \"$proj\")\n    echo \"\"\n    echo \"  PROJECT: $projName\"\n    echo \"  ──────────────────────────────────────────────────\"\n    printf \"  %-18s %-14s %-18s %-12s %-6s %s\\n\" \"ID\" \"STATUS\" \"AGENT\" \"BRANCH\" \"SVCS\" \"PATH\"\n\n    jq -r --arg pid \"$proj\" '(.workspaces \u002F\u002F [])[] | select(.project_id == $pid) |\n      [.id, (.status \u002F\u002F \"unknown\"), (.agent_id \u002F\u002F \"(none)\"),\n       (.branch \u002F\u002F \"?\"), ((.services \u002F\u002F []) | length | tostring),\n       (.worktree_path \u002F\u002F \"-\")]\n      | @tsv' \"$wsFile\" | while IFS=$'\\t' read -r id st ag br svc path; do\n      printf \"  %-18s %-14s %-18s %-12s %-6s %s\\n\" \"$id\" \"$st\" \"$ag\" \"$br\" \"$svc\" \"$path\"\n    done\n  done \u003C\u003C\u003C \"$projects\"\nfi\n\necho \"\"\necho \"Total: $total workspace(s)\"\n```\n\n### status\n\n```bash\n[ -z \"$workspace_id\" ] && { echo \"ERROR: --workspace-id required.\"; exit 1; }\nwsDef=$(jq -r --arg id \"$workspace_id\" '(.workspaces \u002F\u002F [])[] | select(.id == $id)' \"$wsFile\")\n[ -z \"$wsDef\" ] && { echo \"ERROR: Workspace '$workspace_id' not found.\"; exit 1; }\n\necho \"WORKSPACE STATUS — $workspace_id\"\necho \"────────────────────────────────────────────────────────\"\necho \"$wsDef\" | jq -r '\n  \"  ID:           \\(.id)\",\n  \"  Project:      \\(.project_id \u002F\u002F \"-\")\",\n  \"  Agent:        \\(.agent_id \u002F\u002F \"(unassigned)\")\",\n  \"  Branch:       \\(.branch \u002F\u002F \"?\")\",\n  \"  Status:       \\(.status \u002F\u002F \"unknown\")\",\n  \"  Created:      \\(.createdAt \u002F\u002F \"-\")\",\n  \"  Last active:  \\(.lastActiveAt \u002F\u002F \"-\")\",\n  \"  Path:         \\(.worktree_path \u002F\u002F \"-\")\"\n'\n\n# Check if worktree path exists\npath=$(echo \"$wsDef\" | jq -r '.worktree_path \u002F\u002F \"\"')\nif [ -n \"$path\" ]; then\n  if [ -d \"$path\" ]; then\n    echo \"\"\n    echo \"  Worktree: EXISTS at $path\"\n    branch=$(git -C \"$path\" rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"?\")\n    echo \"  Git branch: $branch\"\n    dirty=$(git -C \"$path\" status --porcelain 2>\u002Fdev\u002Fnull | wc -l | tr -d ' ')\n    [ \"$dirty\" -gt 0 ] && echo \"  Uncommitted changes: $dirty file(s)\"\n  else\n    echo \"  WARNING: Worktree path does not exist: $path\"\n  fi\nfi\n\necho \"\"\necho \"Services:\"\necho \"$wsDef\" | jq -r '(.services \u002F\u002F [])[] | \"  · \\(.)\"' || echo \"  (none)\"\n```\n\n### attach\n\n```bash\n[ -z \"$project_id\" ] && { echo \"ERROR: --project-id required.\"; exit 1; }\n[ -z \"$worktree_path\" ] && { echo \"ERROR: --worktree-path required.\"; exit 1; }\n\n[ ! -d \"$worktree_path\" ] && { echo \"ERROR: Path does not exist: $worktree_path\"; exit 1; }\n\nwsId=\"ws-$(openssl rand -hex 4 2>\u002Fdev\u002Fnull || python3 -c 'import secrets; print(secrets.token_hex(4))')\"\nbranch=$(git -C \"$worktree_path\" rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"unknown\")\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\n\ntmp=\"${wsFile}.tmp\"\njq --arg id \"$wsId\" \\\n   --arg pid \"$project_id\" \\\n   --arg ag \"${agent_id:-}\" \\\n   --arg path \"$worktree_path\" \\\n   --arg branch \"$branch\" \\\n   --arg ts \"$ts\" \\\n  '.workspaces += [{\"id\":$id,\"project_id\":$pid,\n    \"agent_id\":(if $ag != \"\" then $ag else null end),\n    \"worktree_path\":$path,\"branch\":$branch,\n    \"status\":\"active\",\"services\":[],\"createdAt\":$ts,\"lastActiveAt\":$ts}]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\n\necho \"Workspace attached: $wsId\"\necho \"  Project:  $project_id\"\necho \"  Agent:    ${agent_id:-(unassigned)}\"\necho \"  Branch:   $branch\"\necho \"  Path:     $worktree_path\"\n```\n\n### detach\n\n```bash\n[ -z \"$workspace_id\" ] && { echo \"ERROR: --workspace-id required.\"; exit 1; }\ntmp=\"${wsFile}.tmp\"\njq --arg id \"$workspace_id\" \\\n  '.workspaces = [(.workspaces \u002F\u002F [])[] | if .id == $id then .status = \"detached\" else . end]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\necho \"Workspace '$workspace_id' → detached. The worktree is preserved on disk.\"\n```\n\n### stop\n\n```bash\n[ -z \"$workspace_id\" ] && { echo \"ERROR: --workspace-id required.\"; exit 1; }\nwsDef=$(jq -r --arg id \"$workspace_id\" '(.workspaces \u002F\u002F [])[] | select(.id == $id)' \"$wsFile\")\n[ -z \"$wsDef\" ] && { echo \"ERROR: Workspace '$workspace_id' not found.\"; exit 1; }\n\nservices=$(echo \"$wsDef\" | jq -r '(.services \u002F\u002F [])[]')\nif [ -n \"$services\" ]; then\n  echo \"Stopping services for workspace $workspace_id…\"\n  while IFS= read -r svc; do\n    echo \"  Stopping: $svc\"\n  done \u003C\u003C\u003C \"$services\"\nfi\n\ntmp=\"${wsFile}.tmp\"\njq --arg id \"$workspace_id\" --arg ts \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\" \\\n  '.workspaces = [(.workspaces \u002F\u002F [])[] | if .id == $id then .status = \"stopped\" | .services = [] | .lastActiveAt = $ts else . end]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\n\necho \"Workspace '$workspace_id' stopped.\"\n```\n\n### prune\n\n```bash\necho \"Pruning stopped\u002Fdetached workspaces for org '$org_name'…\"\n\nbefore=$(jq '.workspaces | length' \"$wsFile\")\nremoved=0\norphaned=0\n\ntmp=\"${wsFile}.tmp\"\njq '.workspaces = [(.workspaces \u002F\u002F [])[] | select(.status != \"stopped\" and .status != \"detached\")]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\n\nafter=$(jq '.workspaces | length' \"$wsFile\")\nremoved=$((before - after))\n\n# Find orphaned worktrees (path gone)\nwhile IFS= read -r path; do\n  { [ -z \"$path\" ] || [ \"$path\" = \"null\" ]; } && continue\n  [ ! -d \"$path\" ] && orphaned=$((orphaned + 1))\ndone \u003C \u003C(jq -r '(.workspaces \u002F\u002F [])[].worktree_path \u002F\u002F \"\"' \"$wsFile\")\n\necho \"  Removed $removed stopped\u002Fdetached workspace record(s).\"\n[ \"$orphaned\" -gt 0 ] && echo \"  WARNING: $orphaned workspace(s) have missing worktree paths. Run --action status to investigate.\"\necho \"Done. Active workspaces: $(jq '.workspaces | length' \"$wsFile\")\"\n```\n\n---\n\n## Step 3 — Return Output\n\n```yaml\ndomain: ops\nstatus: complete\naction: \u003Caction>\norg: \u003Corg_name>\nworkspace_id: \u003Cid if applicable>\nworkspaces_total: \u003CN>\n```\n\n---\n\n## Step 4 — Brain Write (standalone only)\n\nIf `caller` is not \"command\", follow mastermind-protocol\u002FSKILL.md Brain Write Procedure for domain `ops`.\n","# Mastermind Workspaces\n\nThis skill is invoked directly via `\u002Fmastermind-workspaces`.\n\n---\n\n## Inputs\n\n- `brain_context`: BRAIN CONTEXT block (injected by command, or loaded below if standalone)\n- `org_name`: org to manage workspaces for (required)\n- `action`: list | status | attach | detach | stop | prune\n- `workspace_id`: workspace id (required for status\u002Fdetach\u002Fstop)\n- `project_id`: project to filter by (optional for list)\n- `agent_id`: agent to assign to workspace (required for attach)\n- `worktree_path`: filesystem path of the worktree (required for attach)\n- `caller`: command | master\n\n---\n\n## Workspace Model\n\nA workspace is a git worktree assigned to a project, optionally running services and assigned to an agent.\n\n```json\n{\n  \"id\": \"ws-abc123\",\n  \"project_id\": \"project-slug\",\n  \"agent_id\": \"backend-dev\",\n  \"worktree_path\": \"\u002Ftmp\u002Fmonomind\u002Fworktrees\u002Fproject-slug-abc123\",\n  \"branch\": \"feat\u002Fmy-feature\",\n  \"status\": \"active\",\n  \"services\": [\"dev-server\", \"db-watcher\"],\n  \"createdAt\": \"2026-01-01T00:00:00Z\",\n  \"lastActiveAt\": \"2026-01-02T00:00:00Z\"\n}\n```\n\n---\n\n## Step 0 — Brain Load (standalone only)\n\nIf `caller` is not \"command\", load brain context following mastermind-protocol\u002FSKILL.md Brain Load Procedure with namespace: `ops`.\n\n---\n\n## Step 1 — Load Workspace Data\n\n```bash\norgFile=\".monomind\u002Forgs\u002F${org_name}.json\"\n[ ! -f \"$orgFile\" ] && { echo \"ERROR: Org '${org_name}' not found.\"; exit 1; }\n\nwsFile=\".monomind\u002Forgs\u002F${org_name}-workspaces.json\"\n[ ! -f \"$wsFile\" ] && echo '{\"workspaces\":[]}' > \"$wsFile\"\n\nprojectsFile=\".monomind\u002Forgs\u002F${org_name}-projects.json\"\nworktreeRegistry=\".monomind\u002Forgs\u002F${org_name}-worktrees.json\"\n```\n\n---\n\n## Step 2 — Execute Action\n\n### list (default)\n\n```bash\necho \"WORKSPACES — org: $org_name\"\n[ -n \"$project_id\" ] && echo \"(filtered by project: $project_id)\"\necho \"────────────────────────────────────────────────────────\"\n\ntotal=$(jq '.workspaces | length' \"$wsFile\")\n\nif [ \"$total\" -eq 0 ]; then\n  echo \"  No workspaces. Use --action attach to register one.\"\nelse\n  # Group by project\n  projects=$(jq -r --arg pid \"${project_id:-}\" '\n    .workspaces |\n    if $pid != \"\" then map(select(.project_id == $pid)) else . end |\n    [.[].project_id] | unique[]\n  ' \"$wsFile\")\n\n  while IFS= read -r proj; do\n    [ -z \"$proj\" ] && continue\n    projName=$([ -f \"$projectsFile\" ] && jq -r --arg pid \"$proj\" '(.projects \u002F\u002F [])[] | select(.id == $pid) | .name \u002F\u002F $pid' \"$projectsFile\" || echo \"$proj\")\n    echo \"\"\n    echo \"  PROJECT: $projName\"\n    echo \"  ──────────────────────────────────────────────────\"\n    printf \"  %-18s %-14s %-18s %-12s %-6s %s\\n\" \"ID\" \"STATUS\" \"AGENT\" \"BRANCH\" \"SVCS\" \"PATH\"\n\n    jq -r --arg pid \"$proj\" '(.workspaces \u002F\u002F [])[] | select(.project_id == $pid) |\n      [.id, (.status \u002F\u002F \"unknown\"), (.agent_id \u002F\u002F \"(none)\"),\n       (.branch \u002F\u002F \"?\"), ((.services \u002F\u002F []) | length | tostring),\n       (.worktree_path \u002F\u002F \"-\")]\n      | @tsv' \"$wsFile\" | while IFS=$'\\t' read -r id st ag br svc path; do\n      printf \"  %-18s %-14s %-18s %-12s %-6s %s\\n\" \"$id\" \"$st\" \"$ag\" \"$br\" \"$svc\" \"$path\"\n    done\n  done \u003C\u003C\u003C \"$projects\"\nfi\n\necho \"\"\necho \"Total: $total workspace(s)\"\n```\n\n### status\n\n```bash\n[ -z \"$workspace_id\" ] && { echo \"ERROR: --workspace-id required.\"; exit 1; }\nwsDef=$(jq -r --arg id \"$workspace_id\" '(.workspaces \u002F\u002F [])[] | select(.id == $id)' \"$wsFile\")\n[ -z \"$wsDef\" ] && { echo \"ERROR: Workspace '$workspace_id' not found.\"; exit 1; }\n\necho \"WORKSPACE STATUS — $workspace_id\"\necho \"────────────────────────────────────────────────────────\"\necho \"$wsDef\" | jq -r '\n  \"  ID:           \\(.id)\",\n  \"  Project:      \\(.project_id \u002F\u002F \"-\")\",\n  \"  Agent:        \\(.agent_id \u002F\u002F \"(unassigned)\")\",\n  \"  Branch:       \\(.branch \u002F\u002F \"?\")\",\n  \"  Status:       \\(.status \u002F\u002F \"unknown\")\",\n  \"  Created:      \\(.createdAt \u002F\u002F \"-\")\",\n  \"  Last active:  \\(.lastActiveAt \u002F\u002F \"-\")\",\n  \"  Path:         \\(.worktree_path \u002F\u002F \"-\")\"\n'\n\n# Check if worktree path exists\npath=$(echo \"$wsDef\" | jq -r '.worktree_path \u002F\u002F \"\"')\nif [ -n \"$path\" ]; then\n  if [ -d \"$path\" ]; then\n    echo \"\"\n    echo \"  Worktree: EXISTS at $path\"\n    branch=$(git -C \"$path\" rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"?\")\n    echo \"  Git branch: $branch\"\n    dirty=$(git -C \"$path\" status --porcelain 2>\u002Fdev\u002Fnull | wc -l | tr -d ' ')\n    [ \"$dirty\" -gt 0 ] && echo \"  Uncommitted changes: $dirty file(s)\"\n  else\n    echo \"  WARNING: Worktree path does not exist: $path\"\n  fi\nfi\n\necho \"\"\necho \"Services:\"\necho \"$wsDef\" | jq -r '(.services \u002F\u002F [])[] | \"  · \\(.)\"' || echo \"  (none)\"\n```\n\n### attach\n\n```bash\n[ -z \"$project_id\" ] && { echo \"ERROR: --project-id required.\"; exit 1; }\n[ -z \"$worktree_path\" ] && { echo \"ERROR: --worktree-path required.\"; exit 1; }\n\n[ ! -d \"$worktree_path\" ] && { echo \"ERROR: Path does not exist: $worktree_path\"; exit 1; }\n\nwsId=\"ws-$(openssl rand -hex 4 2>\u002Fdev\u002Fnull || python3 -c 'import secrets; print(secrets.token_hex(4))')\"\nbranch=$(git -C \"$worktree_path\" rev-parse --abbrev-ref HEAD 2>\u002Fdev\u002Fnull || echo \"unknown\")\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\n\ntmp=\"${wsFile}.tmp\"\njq --arg id \"$wsId\" \\\n   --arg pid \"$project_id\" \\\n   --arg ag \"${agent_id:-}\" \\\n   --arg path \"$worktree_path\" \\\n   --arg branch \"$branch\" \\\n   --arg ts \"$ts\" \\\n  '.workspaces += [{\"id\":$id,\"project_id\":$pid,\n    \"agent_id\":(if $ag != \"\" then $ag else null end),\n    \"worktree_path\":$path,\"branch\":$branch,\n    \"status\":\"active\",\"services\":[],\"createdAt\":$ts,\"lastActiveAt\":$ts}]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\n\necho \"Workspace attached: $wsId\"\necho \"  Project:  $project_id\"\necho \"  Agent:    ${agent_id:-(unassigned)}\"\necho \"  Branch:   $branch\"\necho \"  Path:     $worktree_path\"\n```\n\n### detach\n\n```bash\n[ -z \"$workspace_id\" ] && { echo \"ERROR: --workspace-id required.\"; exit 1; }\ntmp=\"${wsFile}.tmp\"\njq --arg id \"$workspace_id\" \\\n  '.workspaces = [(.workspaces \u002F\u002F [])[] | if .id == $id then .status = \"detached\" else . end]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\necho \"Workspace '$workspace_id' → detached. The worktree is preserved on disk.\"\n```\n\n### stop\n\n```bash\n[ -z \"$workspace_id\" ] && { echo \"ERROR: --workspace-id required.\"; exit 1; }\nwsDef=$(jq -r --arg id \"$workspace_id\" '(.workspaces \u002F\u002F [])[] | select(.id == $id)' \"$wsFile\")\n[ -z \"$wsDef\" ] && { echo \"ERROR: Workspace '$workspace_id' not found.\"; exit 1; }\n\nservices=$(echo \"$wsDef\" | jq -r '(.services \u002F\u002F [])[]')\nif [ -n \"$services\" ]; then\n  echo \"Stopping services for workspace $workspace_id…\"\n  while IFS= read -r svc; do\n    echo \"  Stopping: $svc\"\n  done \u003C\u003C\u003C \"$services\"\nfi\n\ntmp=\"${wsFile}.tmp\"\njq --arg id \"$workspace_id\" --arg ts \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\" \\\n  '.workspaces = [(.workspaces \u002F\u002F [])[] | if .id == $id then .status = \"stopped\" | .services = [] | .lastActiveAt = $ts else . end]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\n\necho \"Workspace '$workspace_id' stopped.\"\n```\n\n### prune\n\n```bash\necho \"Pruning stopped\u002Fdetached workspaces for org '$org_name'…\"\n\nbefore=$(jq '.workspaces | length' \"$wsFile\")\nremoved=0\norphaned=0\n\ntmp=\"${wsFile}.tmp\"\njq '.workspaces = [(.workspaces \u002F\u002F [])[] | select(.status != \"stopped\" and .status != \"detached\")]' \\\n  \"$wsFile\" > \"$tmp\" && mv \"$tmp\" \"$wsFile\"\n\nafter=$(jq '.workspaces | length' \"$wsFile\")\nremoved=$((before - after))\n\n# Find orphaned worktrees (path gone)\nwhile IFS= read -r path; do\n  { [ -z \"$path\" ] || [ \"$path\" = \"null\" ]; } && continue\n  [ ! -d \"$path\" ] && orphaned=$((orphaned + 1))\ndone \u003C \u003C(jq -r '(.workspaces \u002F\u002F [])[].worktree_path \u002F\u002F \"\"' \"$wsFile\")\n\necho \"  Removed $removed stopped\u002Fdetached workspace record(s).\"\n[ \"$orphaned\" -gt 0 ] && echo \"  WARNING: $orphaned workspace(s) have missing worktree paths. Run --action status to investigate.\"\necho \"Done. Active workspaces: $(jq '.workspaces | length' \"$wsFile\")\"\n```\n\n---\n\n## Step 3 — Return Output\n\n```yaml\ndomain: ops\nstatus: complete\naction: \u003Caction>\norg: \u003Corg_name>\nworkspace_id: \u003Cid if applicable>\nworkspaces_total: \u003CN>\n```\n\n---\n\n## Step 4 — Brain Write (standalone only)\n\nIf `caller` is not \"command\", follow mastermind-protocol\u002FSKILL.md Brain Write Procedure for domain `ops`.\n",{"name":5,"pick":39,"type":40,"description":7,"default_mode":41},"low","domain-skill","confirm","main","f7cd4595d0f8959822163e14f9787117765c931a",".claude\u002Fskills\u002Fmastermind-workspaces",2,"https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind","https:\u002F\u002Fmonoes.github.io\u002Fmonomind\u002F","https:\u002F\u002Fgithub.com\u002Fmonoes","https:\u002F\u002Fmonoes.me","2026-11-14 03:30:52",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add monoes\u002Fmonomind --skill mastermind-workspaces",{"tool":57,"command":58},"bunx","bunx skills add monoes\u002Fmonomind --skill mastermind-workspaces",{"tool":60,"command":61},"pnpm","pnpm dlx skills add monoes\u002Fmonomind --skill mastermind-workspaces","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmastermind-workspaces\u002FSKILL.md",true,[],[66,76,84,92,100,108],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M73YHAZDWV4ZVTGSKMWQ4Z1S","isms-audit-expert","Use when planning or running an ISO 27001 ISMS audit: risk-based audit schedules, Annex A control assessment, Statement of Applicability and nonconformities. Auditor-side procedures, versus compliance-auditor, which is org role guidance across SOC 2, HIPAA and PCI-DSS.","MIT","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fisms-audit-expert\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fisms-audit-expert\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":75},"01M73YGBS2APTY71Y4CYA2DKSQ","instrument-data-to-allotrope","Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS\u002FELN systems, or generating parser code for production pipelines.","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Finstrument-data-to-allotrope\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Finstrument-data-to-allotrope\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":75},"01M73YB23X4NP40R73TS6YY8TX","experiment-designer","Use when planning a product A\u002FB or multivariate test: If\u002FThen\u002FBecause hypotheses, primary and guardrail metrics, sample size and MDE, ICE prioritization. For logging and reproducing ML runs use experiment-tracker; for scientific study design use experimental-design.","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fexperiment-designer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fexperiment-designer\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":75},"01M73Y8ETSB9072G5ZGPPR0X6E","digest","Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fdigest\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fdigest\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":75},"01M73Y7XJJBH0QXCM5GKJW6N21","design-critique","Get structured design feedback on usability, hierarchy, and consistency. Trigger with \"review this design\", \"critique this mockup\", \"what do you think of this screen?\", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fdesign-critique\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fdesign-critique\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":70,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":75},"01M73Y7SM786ZEMNXGPT595AM3","deployment-pipeline-design","Use when architecting a multi-stage CI\u002FCD pipeline with approval gates, SAST and DAST scans, environment promotion, canary rollout and automated rollback. Design-level; for concrete Dockerfile and health check patterns use deployment-patterns.","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fdeployment-pipeline-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002Fpackages\u002F@monomind\u002Fcli\u002Forg-skills\u002Fdeployment-pipeline-design\u002FSKILL.md",[],[]]