[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71M0XTC1RJD73NA8F0VPQYS":3,"skill-same:01M71M0XTC1RJD73NA8F0VPQYS":67},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M71M0XTC1RJD73NA8F0VPQYS","mastermind-issue-detail",null,"Mastermind issue-detail — inspect and manage one org task: thread, run history, comments, sub-issues, attachments, assignment, closing and recovery.","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-issue-detail\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"mastermind issue detail","issue","detail","org","run","recovery","closing","attachments","run history","task","one","comments","thread","auto","issues","manage","inspect","domain","history","2026-11-10 10:56:23",false,"---\nname: mastermind-issue-detail\ndescription: \"Mastermind issue-detail — inspect and manage one org task: thread, run history, comments, sub-issues, attachments, assignment, closing and recovery.\"\ntype: domain-skill\ndefault_mode: auto\npick: low\n---\n\n# Mastermind Issue Detail\n\nThis skill is invoked directly via `\u002Fmastermind-issue-detail`.\n\n---\n\n## Inputs\n\n- `brain_context`: BRAIN CONTEXT block (injected by command, or loaded below if standalone)\n- `org_name`: org the issue belongs to (required)\n- `issue_id`: issue id\u002Fslug (required)\n- `action`: show | thread | runs | sub-issues | attachments | comment | assign | close | reopen | recover\n- `comment_body`: comment text (required for comment action)\n- `assignee_id`: agent id to assign (required for assign action)\n- `recovery_action`: accept | reject (for recover action)\n- `days`: lookback window for run history (default 14)\n- `caller`: command | master\n\n---\n\n## Issue Status Flow\n\n```\ntodo → in_progress → in_review → done\n         ↓\n      blocked → in_progress\n         ↓\n    cancelled\n```\n\nRecovery actions apply when an issue enters `needs_recovery` state after a failed run.\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 Issue Data\n\n```bash\norgFile=\".monomind\u002Forgs\u002F${org_name}.json\"\n[ ! -f \"$orgFile\" ] && { echo \"ERROR: Org '${org_name}' not found.\"; exit 1; }\n\nissuesFile=\".monomind\u002Forgs\u002F${org_name}-issues.json\"\n[ ! -f \"$issuesFile\" ] && { echo \"ERROR: No issues file for org '$org_name'. Create issues via \u002Fmastermind-issues --action create.\"; exit 1; }\n\nissueDef=$(jq -r --arg id \"$issue_id\" '(.issues \u002F\u002F [])[] | select(.id == $id or .slug == $id)' \"$issuesFile\")\n[ -z \"$issueDef\" ] && { echo \"ERROR: Issue '$issue_id' not found in org '$org_name'.\"; exit 1; }\n\nresolvedId=$(echo \"$issueDef\" | jq -r '.id')\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\nthreadFile=\".monomind\u002Forgs\u002F${org_name}-threads.jsonl\"\ndays=${days:-14}\ncutoff=$(date -u -v-${days}d +%Y-%m-%dT%H:%M:%SZ 2>\u002Fdev\u002Fnull || date -u -d \"${days} days ago\" +%Y-%m-%dT%H:%M:%SZ 2>\u002Fdev\u002Fnull || echo \"\")\n```\n\nNormalize any legacy records written by a pre-2.10 version of these skills. Idempotent — safe to run on every load.\n\n```bash\npython3 - \"$issuesFile\" \u003C\u003C'PYEOF'\nimport json, sys\npath = sys.argv[1]\ndata = json.load(open(path))\nRENAME = {\n    \"assignee_id\": \"assigneeId\", \"assigned_to\": \"assigneeId\",\n    \"created_at\": \"createdAt\", \"updated_at\": \"updatedAt\",\n    \"closed_at\": \"closedAt\", \"project_id\": \"projectId\",\n    \"parent_id\": \"parentId\", \"recovery_status\": \"recoveryStatus\",\n    \"lastActivityAt\": \"updatedAt\",\n}\nchanged = False\nfor iss in data.get(\"issues\", []):\n    for old, new in RENAME.items():\n        if old in iss:\n            iss.setdefault(new, iss.pop(old))\n            iss.pop(old, None)\n            changed = True\n    if iss.get(\"status\") == \"open\":\n        iss[\"status\"] = \"todo\"\n        changed = True\nif changed:\n    tmp = path + \".tmp\"\n    with open(tmp, \"w\") as f:\n        json.dump(data, f, indent=2)\n    import os; os.replace(tmp, path)\nPYEOF\n```\n\n---\n\n## Step 2 — Execute Action\n\n### show (default)\n\n```bash\necho \"ISSUE DETAIL — $issue_id @ $org_name\"\necho \"────────────────────────────────────────────────────────\"\n\necho \"$issueDef\" | jq -r '\n  \"  ID:            \\(.id)\",\n  \"  Title:         \\(.title \u002F\u002F \"(no title)\")\",\n  \"  Status:        \\(.status \u002F\u002F \"todo\")\",\n  \"  Priority:      \\(.priority \u002F\u002F \"medium\")\",\n  \"  Assignee:      \\(.assigneeId \u002F\u002F \"(unassigned)\")\",\n  \"  Agent:         \\(.assigneeAgentId \u002F\u002F \"(none)\")\",\n  \"  Project:       \\(.projectId \u002F\u002F \"(none)\")\",\n  \"  Created:       \\(.createdAt \u002F\u002F \"-\")\",\n  \"  Updated:       \\(.updatedAt \u002F\u002F \"-\")\"\n'\n\n# Sub-issues\nsubCount=$(jq --arg pid \"$resolvedId\" '[(.issues \u002F\u002F [])[] | select(.parentId == $pid)] | length' \"$issuesFile\" 2>\u002Fdev\u002Fnull || echo 0)\necho \"  Sub-issues:    $subCount\"\n\n# Attachments\nattCount=$(echo \"$issueDef\" | jq -r '(.attachments \u002F\u002F []) | length')\necho \"  Attachments:   $attCount\"\n\n# Recovery\nrecoveryStatus=$(echo \"$issueDef\" | jq -r '.recoveryStatus \u002F\u002F \"none\"')\n[ \"$recoveryStatus\" != \"none\" ] && echo \"\" && echo \"  RECOVERY STATUS: $recoveryStatus\"\n\n# Description\ndesc=$(echo \"$issueDef\" | jq -r '.description \u002F\u002F \"\"')\nif [ -n \"$desc\" ]; then\n  echo \"\"\n  echo \"DESCRIPTION\"\n  echo \"────────────────────────────────────────────────────────\"\n  echo \"$desc\" | head -10\nfi\n```\n\n### thread\n\n```bash\necho \"THREAD — $issue_id\"\necho \"────────────────────────────────────────────────────────\"\n\nfound=0\nif [ -f \"$threadFile\" ]; then\n  while IFS= read -r line; do\n    iid=$(echo \"$line\" | jq -r '.issue_id \u002F\u002F \"\"')\n    [ \"$iid\" != \"$resolvedId\" ] && continue\n    ts=$(echo \"$line\" | jq -r '.ts \u002F\u002F \"\"')\n    role=$(echo \"$line\" | jq -r '.role \u002F\u002F \"agent\"')\n    body=$(echo \"$line\" | jq -r '.body \u002F\u002F \"\"' | head -3)\n    msgType=$(echo \"$line\" | jq -r '.type \u002F\u002F \"message\"')\n    printf \"\\n  [%s] %-10s (%s)\\n\" \"$ts\" \"$role\" \"$msgType\"\n    echo \"$body\" | while IFS= read -r l; do echo \"    $l\"; done\n    found=$((found + 1))\n  done \u003C \"$threadFile\"\nfi\n\n[ \"$found\" -eq 0 ] && echo \"  No thread messages for this issue.\"\necho \"\"\necho \"  $found message(s). To add a comment: --action comment --comment-body '...'\"\n```\n\n### runs\n\n```bash\necho \"RUN HISTORY — $issue_id (last ${days} days)\"\necho \"────────────────────────────────────────────────────────\"\nprintf \"%-26s %-12s %-8s %-14s %s\\n\" \"TIMESTAMP\" \"STATUS\" \"TOKENS\" \"AGENT\" \"SUMMARY\"\necho \"────────────────────────────────────────────────────────\"\n\nfound=0\nif [ -f \"$activityFile\" ]; then\n  while IFS= read -r line; do\n    iid=$(echo \"$line\" | jq -r '.issue_id \u002F\u002F \"\"')\n    [ \"$iid\" != \"$resolvedId\" ] && continue\n    ts=$(echo \"$line\" | jq -r '.ts \u002F\u002F \"\"')\n    [ -n \"$cutoff\" ] && [ \"$ts\" \\\u003C \"$cutoff\" ] && continue\n    st=$(echo \"$line\" | jq -r '.status \u002F\u002F \"-\"')\n    tok=$(echo \"$line\" | jq -r '.tokens \u002F\u002F \"-\"')\n    ag=$(echo \"$line\" | jq -r '.agent \u002F\u002F \"-\"')\n    summary=$(echo \"$line\" | jq -r '.summary \u002F\u002F .type \u002F\u002F \"-\"' | cut -c1-30)\n    printf \"%-26s %-12s %-8s %-14s %s\\n\" \"$ts\" \"$st\" \"$tok\" \"$ag\" \"$summary\"\n    found=$((found + 1))\n  done \u003C \"$activityFile\"\nfi\n\n[ \"$found\" -eq 0 ] && echo \"  No runs found in the last $days days.\"\n```\n\n### sub-issues\n\n```bash\necho \"SUB-ISSUES — $issue_id\"\necho \"────────────────────────────────────────────────────────\"\nprintf \"%-24s %-12s %-10s %s\\n\" \"ID\" \"STATUS\" \"PRIORITY\" \"TITLE\"\necho \"────────────────────────────────────────────────────────\"\n\ncount=0\njq -r --arg pid \"$resolvedId\" '(.issues \u002F\u002F [])[] | select(.parentId == $pid) |\n  [.id, (.status \u002F\u002F \"todo\"), (.priority \u002F\u002F \"medium\"), (.title \u002F\u002F \"(no title)\")] | @tsv' \\\n  \"$issuesFile\" 2>\u002Fdev\u002Fnull | while IFS=$'\\t' read -r id st pri title; do\n  printf \"%-24s %-12s %-10s %s\\n\" \"$id\" \"$st\" \"$pri\" \"$title\"\n  count=$((count + 1))\ndone\n\necho \"\"\necho \"To create a sub-issue: \u002Fmastermind-issues --org $org_name --action create --title '\u003Ctitle>' --parent-id $issue_id\"\n```\n\n### attachments\n\n```bash\necho \"ATTACHMENTS — $issue_id\"\necho \"────────────────────────────────────────────────────────\"\natts=$(echo \"$issueDef\" | jq -r '(.attachments \u002F\u002F [])[]' 2>\u002Fdev\u002Fnull)\nif [ -z \"$atts\" ]; then\n  echo \"  No attachments.\"\nelse\n  echo \"$issueDef\" | jq -r '(.attachments \u002F\u002F [])[] |\n    \"  [\\(.type \u002F\u002F \"file\")] \\(.name \u002F\u002F .path \u002F\u002F \"unnamed\") — \\(.size_bytes \u002F\u002F \"?\") bytes — added \\(.added_at \u002F\u002F \"?\")\"'\nfi\n```\n\n### comment\n\n```bash\n[ -z \"$comment_body\" ] && { echo \"ERROR: --comment-body required.\"; exit 1; }\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\n\nentry=$(jq -cn --arg iid \"$resolvedId\" --arg body \"$comment_body\" --arg ts \"$ts\" \\\n  '{\"issue_id\":$iid,\"role\":\"user\",\"type\":\"comment\",\"body\":$body,\"ts\":$ts}')\necho \"$entry\" >> \"$threadFile\"\n\necho \"Comment added to issue '$issue_id'.\"\necho \"  Body: $comment_body\"\necho \"  Time: $ts\"\n```\n\n### assign\n\n```bash\n[ -z \"$assignee_id\" ] && { echo \"ERROR: --assignee-id required.\"; exit 1; }\n\n# Validate agent exists in org\nexists=$(jq --arg id \"$assignee_id\" '[(.roles \u002F\u002F [])[] | select(.id == $id)] | length' \"$orgFile\")\n[ \"$exists\" -eq 0 ] && echo \"WARNING: Agent '$assignee_id' not found in org '$org_name'. Assigning anyway.\"\n\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg ag \"$assignee_id\" --arg ts \"$ts\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then .assigneeId = $ag | .assigneeAgentId = $ag | .assigneeUserId = null | .updatedAt = $ts else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\n\necho \"Issue '$issue_id' assigned to '$assignee_id'.\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\ncurrentStatus=$(jq -r --arg id \"$resolvedId\" '(.issues \u002F\u002F [])[] | select(.id == $id) | .status \u002F\u002F \"todo\"' \"$issuesFile\")\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"$currentStatus\" --arg ag \"$assignee_id\" --arg sm \"assign $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"assign\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n### close\n\n```bash\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg ts \"$ts\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then .status = \"done\" | .updatedAt = $ts | .closedAt = $ts else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\necho \"Issue '$issue_id' → done (closed at $ts).\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"done\" --arg ag \"operator\" --arg sm \"close $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"close\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n### reopen\n\n```bash\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg ts \"$ts\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then .status = \"todo\" | .updatedAt = $ts | .closedAt = null else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\necho \"Issue '$issue_id' → reopened.\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"todo\" --arg ag \"operator\" --arg sm \"reopen $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"reopen\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n### recover\n\n```bash\n[ -z \"$recovery_action\" ] && { echo \"ERROR: --recovery-action required (accept|reject).\"; exit 1; }\ncase \"$recovery_action\" in accept|reject) : ;; *)\n  echo \"ERROR: --recovery-action must be 'accept' or 'reject'.\"; exit 1 ;;\nesac\n\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\nnewStatus=$([ \"$recovery_action\" = \"accept\" ] && echo \"in_progress\" || echo \"cancelled\")\n\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg st \"$newStatus\" --arg ts \"$ts\" --arg ra \"$recovery_action\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then\n     .status = $st | .recoveryStatus = $ra | .updatedAt = $ts\n   else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\n\necho \"Recovery action '$recovery_action' applied to '$issue_id'.\"\necho \"  New status: $newStatus\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"$newStatus\" --arg ag \"operator\" --arg sm \"recover $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"recover\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n---\n\n## Step 3 — Return Output\n\n```yaml\ndomain: ops\nstatus: complete\naction: \u003Caction>\norg: \u003Corg_name>\nissue_id: \u003Cissue_id>\nissue_status: \u003Cstatus>\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 Issue Detail\n\nThis skill is invoked directly via `\u002Fmastermind-issue-detail`.\n\n---\n\n## Inputs\n\n- `brain_context`: BRAIN CONTEXT block (injected by command, or loaded below if standalone)\n- `org_name`: org the issue belongs to (required)\n- `issue_id`: issue id\u002Fslug (required)\n- `action`: show | thread | runs | sub-issues | attachments | comment | assign | close | reopen | recover\n- `comment_body`: comment text (required for comment action)\n- `assignee_id`: agent id to assign (required for assign action)\n- `recovery_action`: accept | reject (for recover action)\n- `days`: lookback window for run history (default 14)\n- `caller`: command | master\n\n---\n\n## Issue Status Flow\n\n```\ntodo → in_progress → in_review → done\n         ↓\n      blocked → in_progress\n         ↓\n    cancelled\n```\n\nRecovery actions apply when an issue enters `needs_recovery` state after a failed run.\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 Issue Data\n\n```bash\norgFile=\".monomind\u002Forgs\u002F${org_name}.json\"\n[ ! -f \"$orgFile\" ] && { echo \"ERROR: Org '${org_name}' not found.\"; exit 1; }\n\nissuesFile=\".monomind\u002Forgs\u002F${org_name}-issues.json\"\n[ ! -f \"$issuesFile\" ] && { echo \"ERROR: No issues file for org '$org_name'. Create issues via \u002Fmastermind-issues --action create.\"; exit 1; }\n\nissueDef=$(jq -r --arg id \"$issue_id\" '(.issues \u002F\u002F [])[] | select(.id == $id or .slug == $id)' \"$issuesFile\")\n[ -z \"$issueDef\" ] && { echo \"ERROR: Issue '$issue_id' not found in org '$org_name'.\"; exit 1; }\n\nresolvedId=$(echo \"$issueDef\" | jq -r '.id')\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\nthreadFile=\".monomind\u002Forgs\u002F${org_name}-threads.jsonl\"\ndays=${days:-14}\ncutoff=$(date -u -v-${days}d +%Y-%m-%dT%H:%M:%SZ 2>\u002Fdev\u002Fnull || date -u -d \"${days} days ago\" +%Y-%m-%dT%H:%M:%SZ 2>\u002Fdev\u002Fnull || echo \"\")\n```\n\nNormalize any legacy records written by a pre-2.10 version of these skills. Idempotent — safe to run on every load.\n\n```bash\npython3 - \"$issuesFile\" \u003C\u003C'PYEOF'\nimport json, sys\npath = sys.argv[1]\ndata = json.load(open(path))\nRENAME = {\n    \"assignee_id\": \"assigneeId\", \"assigned_to\": \"assigneeId\",\n    \"created_at\": \"createdAt\", \"updated_at\": \"updatedAt\",\n    \"closed_at\": \"closedAt\", \"project_id\": \"projectId\",\n    \"parent_id\": \"parentId\", \"recovery_status\": \"recoveryStatus\",\n    \"lastActivityAt\": \"updatedAt\",\n}\nchanged = False\nfor iss in data.get(\"issues\", []):\n    for old, new in RENAME.items():\n        if old in iss:\n            iss.setdefault(new, iss.pop(old))\n            iss.pop(old, None)\n            changed = True\n    if iss.get(\"status\") == \"open\":\n        iss[\"status\"] = \"todo\"\n        changed = True\nif changed:\n    tmp = path + \".tmp\"\n    with open(tmp, \"w\") as f:\n        json.dump(data, f, indent=2)\n    import os; os.replace(tmp, path)\nPYEOF\n```\n\n---\n\n## Step 2 — Execute Action\n\n### show (default)\n\n```bash\necho \"ISSUE DETAIL — $issue_id @ $org_name\"\necho \"────────────────────────────────────────────────────────\"\n\necho \"$issueDef\" | jq -r '\n  \"  ID:            \\(.id)\",\n  \"  Title:         \\(.title \u002F\u002F \"(no title)\")\",\n  \"  Status:        \\(.status \u002F\u002F \"todo\")\",\n  \"  Priority:      \\(.priority \u002F\u002F \"medium\")\",\n  \"  Assignee:      \\(.assigneeId \u002F\u002F \"(unassigned)\")\",\n  \"  Agent:         \\(.assigneeAgentId \u002F\u002F \"(none)\")\",\n  \"  Project:       \\(.projectId \u002F\u002F \"(none)\")\",\n  \"  Created:       \\(.createdAt \u002F\u002F \"-\")\",\n  \"  Updated:       \\(.updatedAt \u002F\u002F \"-\")\"\n'\n\n# Sub-issues\nsubCount=$(jq --arg pid \"$resolvedId\" '[(.issues \u002F\u002F [])[] | select(.parentId == $pid)] | length' \"$issuesFile\" 2>\u002Fdev\u002Fnull || echo 0)\necho \"  Sub-issues:    $subCount\"\n\n# Attachments\nattCount=$(echo \"$issueDef\" | jq -r '(.attachments \u002F\u002F []) | length')\necho \"  Attachments:   $attCount\"\n\n# Recovery\nrecoveryStatus=$(echo \"$issueDef\" | jq -r '.recoveryStatus \u002F\u002F \"none\"')\n[ \"$recoveryStatus\" != \"none\" ] && echo \"\" && echo \"  RECOVERY STATUS: $recoveryStatus\"\n\n# Description\ndesc=$(echo \"$issueDef\" | jq -r '.description \u002F\u002F \"\"')\nif [ -n \"$desc\" ]; then\n  echo \"\"\n  echo \"DESCRIPTION\"\n  echo \"────────────────────────────────────────────────────────\"\n  echo \"$desc\" | head -10\nfi\n```\n\n### thread\n\n```bash\necho \"THREAD — $issue_id\"\necho \"────────────────────────────────────────────────────────\"\n\nfound=0\nif [ -f \"$threadFile\" ]; then\n  while IFS= read -r line; do\n    iid=$(echo \"$line\" | jq -r '.issue_id \u002F\u002F \"\"')\n    [ \"$iid\" != \"$resolvedId\" ] && continue\n    ts=$(echo \"$line\" | jq -r '.ts \u002F\u002F \"\"')\n    role=$(echo \"$line\" | jq -r '.role \u002F\u002F \"agent\"')\n    body=$(echo \"$line\" | jq -r '.body \u002F\u002F \"\"' | head -3)\n    msgType=$(echo \"$line\" | jq -r '.type \u002F\u002F \"message\"')\n    printf \"\\n  [%s] %-10s (%s)\\n\" \"$ts\" \"$role\" \"$msgType\"\n    echo \"$body\" | while IFS= read -r l; do echo \"    $l\"; done\n    found=$((found + 1))\n  done \u003C \"$threadFile\"\nfi\n\n[ \"$found\" -eq 0 ] && echo \"  No thread messages for this issue.\"\necho \"\"\necho \"  $found message(s). To add a comment: --action comment --comment-body '...'\"\n```\n\n### runs\n\n```bash\necho \"RUN HISTORY — $issue_id (last ${days} days)\"\necho \"────────────────────────────────────────────────────────\"\nprintf \"%-26s %-12s %-8s %-14s %s\\n\" \"TIMESTAMP\" \"STATUS\" \"TOKENS\" \"AGENT\" \"SUMMARY\"\necho \"────────────────────────────────────────────────────────\"\n\nfound=0\nif [ -f \"$activityFile\" ]; then\n  while IFS= read -r line; do\n    iid=$(echo \"$line\" | jq -r '.issue_id \u002F\u002F \"\"')\n    [ \"$iid\" != \"$resolvedId\" ] && continue\n    ts=$(echo \"$line\" | jq -r '.ts \u002F\u002F \"\"')\n    [ -n \"$cutoff\" ] && [ \"$ts\" \\\u003C \"$cutoff\" ] && continue\n    st=$(echo \"$line\" | jq -r '.status \u002F\u002F \"-\"')\n    tok=$(echo \"$line\" | jq -r '.tokens \u002F\u002F \"-\"')\n    ag=$(echo \"$line\" | jq -r '.agent \u002F\u002F \"-\"')\n    summary=$(echo \"$line\" | jq -r '.summary \u002F\u002F .type \u002F\u002F \"-\"' | cut -c1-30)\n    printf \"%-26s %-12s %-8s %-14s %s\\n\" \"$ts\" \"$st\" \"$tok\" \"$ag\" \"$summary\"\n    found=$((found + 1))\n  done \u003C \"$activityFile\"\nfi\n\n[ \"$found\" -eq 0 ] && echo \"  No runs found in the last $days days.\"\n```\n\n### sub-issues\n\n```bash\necho \"SUB-ISSUES — $issue_id\"\necho \"────────────────────────────────────────────────────────\"\nprintf \"%-24s %-12s %-10s %s\\n\" \"ID\" \"STATUS\" \"PRIORITY\" \"TITLE\"\necho \"────────────────────────────────────────────────────────\"\n\ncount=0\njq -r --arg pid \"$resolvedId\" '(.issues \u002F\u002F [])[] | select(.parentId == $pid) |\n  [.id, (.status \u002F\u002F \"todo\"), (.priority \u002F\u002F \"medium\"), (.title \u002F\u002F \"(no title)\")] | @tsv' \\\n  \"$issuesFile\" 2>\u002Fdev\u002Fnull | while IFS=$'\\t' read -r id st pri title; do\n  printf \"%-24s %-12s %-10s %s\\n\" \"$id\" \"$st\" \"$pri\" \"$title\"\n  count=$((count + 1))\ndone\n\necho \"\"\necho \"To create a sub-issue: \u002Fmastermind-issues --org $org_name --action create --title '\u003Ctitle>' --parent-id $issue_id\"\n```\n\n### attachments\n\n```bash\necho \"ATTACHMENTS — $issue_id\"\necho \"────────────────────────────────────────────────────────\"\natts=$(echo \"$issueDef\" | jq -r '(.attachments \u002F\u002F [])[]' 2>\u002Fdev\u002Fnull)\nif [ -z \"$atts\" ]; then\n  echo \"  No attachments.\"\nelse\n  echo \"$issueDef\" | jq -r '(.attachments \u002F\u002F [])[] |\n    \"  [\\(.type \u002F\u002F \"file\")] \\(.name \u002F\u002F .path \u002F\u002F \"unnamed\") — \\(.size_bytes \u002F\u002F \"?\") bytes — added \\(.added_at \u002F\u002F \"?\")\"'\nfi\n```\n\n### comment\n\n```bash\n[ -z \"$comment_body\" ] && { echo \"ERROR: --comment-body required.\"; exit 1; }\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\n\nentry=$(jq -cn --arg iid \"$resolvedId\" --arg body \"$comment_body\" --arg ts \"$ts\" \\\n  '{\"issue_id\":$iid,\"role\":\"user\",\"type\":\"comment\",\"body\":$body,\"ts\":$ts}')\necho \"$entry\" >> \"$threadFile\"\n\necho \"Comment added to issue '$issue_id'.\"\necho \"  Body: $comment_body\"\necho \"  Time: $ts\"\n```\n\n### assign\n\n```bash\n[ -z \"$assignee_id\" ] && { echo \"ERROR: --assignee-id required.\"; exit 1; }\n\n# Validate agent exists in org\nexists=$(jq --arg id \"$assignee_id\" '[(.roles \u002F\u002F [])[] | select(.id == $id)] | length' \"$orgFile\")\n[ \"$exists\" -eq 0 ] && echo \"WARNING: Agent '$assignee_id' not found in org '$org_name'. Assigning anyway.\"\n\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg ag \"$assignee_id\" --arg ts \"$ts\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then .assigneeId = $ag | .assigneeAgentId = $ag | .assigneeUserId = null | .updatedAt = $ts else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\n\necho \"Issue '$issue_id' assigned to '$assignee_id'.\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\ncurrentStatus=$(jq -r --arg id \"$resolvedId\" '(.issues \u002F\u002F [])[] | select(.id == $id) | .status \u002F\u002F \"todo\"' \"$issuesFile\")\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"$currentStatus\" --arg ag \"$assignee_id\" --arg sm \"assign $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"assign\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n### close\n\n```bash\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg ts \"$ts\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then .status = \"done\" | .updatedAt = $ts | .closedAt = $ts else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\necho \"Issue '$issue_id' → done (closed at $ts).\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"done\" --arg ag \"operator\" --arg sm \"close $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"close\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n### reopen\n\n```bash\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg ts \"$ts\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then .status = \"todo\" | .updatedAt = $ts | .closedAt = null else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\necho \"Issue '$issue_id' → reopened.\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"todo\" --arg ag \"operator\" --arg sm \"reopen $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"reopen\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n### recover\n\n```bash\n[ -z \"$recovery_action\" ] && { echo \"ERROR: --recovery-action required (accept|reject).\"; exit 1; }\ncase \"$recovery_action\" in accept|reject) : ;; *)\n  echo \"ERROR: --recovery-action must be 'accept' or 'reject'.\"; exit 1 ;;\nesac\n\nts=$(date -u +%Y-%m-%dT%H:%M:%SZ)\nnewStatus=$([ \"$recovery_action\" = \"accept\" ] && echo \"in_progress\" || echo \"cancelled\")\n\ntmp=\"${issuesFile}.tmp\"\njq --arg id \"$resolvedId\" --arg st \"$newStatus\" --arg ts \"$ts\" --arg ra \"$recovery_action\" \\\n  '.issues = [(.issues \u002F\u002F [])[] | if .id == $id then\n     .status = $st | .recoveryStatus = $ra | .updatedAt = $ts\n   else . end]' \\\n  \"$issuesFile\" > \"$tmp\" && mv \"$tmp\" \"$issuesFile\"\n\necho \"Recovery action '$recovery_action' applied to '$issue_id'.\"\necho \"  New status: $newStatus\"\n\nactivityFile=\".monomind\u002Forgs\u002F${org_name}-activity.jsonl\"\njq -cn --arg iid \"$resolvedId\" --arg ts \"$ts\" --arg st \"$newStatus\" --arg ag \"operator\" --arg sm \"recover $resolvedId\" \\\n  '{issue_id:$iid, ts:$ts, status:$st, tokens:null, agent:$ag, type:\"recover\", summary:$sm}' \\\n  >> \"$activityFile\"\n```\n\n---\n\n## Step 3 — Return Output\n\n```yaml\ndomain: ops\nstatus: complete\naction: \u003Caction>\norg: \u003Corg_name>\nissue_id: \u003Cissue_id>\nissue_status: \u003Cstatus>\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":42,"type":43,"description":7,"default_mode":31},"low","domain-skill","main","f7cd4595d0f8959822163e14f9787117765c931a",".claude\u002Fskills\u002Fmastermind-issue-detail",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":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add monoes\u002Fmonomind --skill mastermind-issue-detail",{"tool":59,"command":60},"bunx","bunx skills add monoes\u002Fmonomind --skill mastermind-issue-detail",{"tool":62,"command":63},"pnpm","pnpm dlx skills add monoes\u002Fmonomind --skill mastermind-issue-detail","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmonoes\u002Fmonomind\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmastermind-issue-detail\u002FSKILL.md",true,[],[68,78,86,94,102,110],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":72,"licenseFileUrl":73,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":77},"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":77},"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":72,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":77},"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":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":77},"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":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":77},"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":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":72,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":77},"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",[],[]]