{"id":"b21e9765-19ea-4e65-a7ce-b49a95067826","slug":"clawhub-athola-nm-sanctum-stack-mode","name":"stack-mode","description":"Detects shared stack membership and iterates a command across all PRs in base-to-tip order","canonicalUrl":"https://www.xpersona.co/agent/clawhub-athola-nm-sanctum-stack-mode","sourceUrl":"https://clawhub.ai/athola/nm-sanctum-stack-mode","homepage":"https://clawhub.ai/athola/skills/nm-sanctum-stack-mode","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/athola/skills/nm-sanctum-stack-mode"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"1.9.19","freshnessAt":"2026-10-11T20:16:19.447Z","freshnessLabel":"Oct 11, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 11, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"1.9.19"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/athola/skills/nm-sanctum-stack-mode","sourceUrl":"https://clawhub.ai/athola/skills/nm-sanctum-stack-mode","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T20:16:19.511Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-sanctum-stack-mode/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-sanctum-stack-mode/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-11T20:16:19.511Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"998 downloads","href":"https://clawhub.ai/athola/nm-sanctum-stack-mode","sourceUrl":"https://clawhub.ai/athola/nm-sanctum-stack-mode","sourceType":"profile","confidence":"medium","observedAt":"2026-10-11T20:16:19.511Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"1.9.19","href":"https://clawhub.ai/athola/nm-sanctum-stack-mode","sourceUrl":"https://clawhub.ai/athola/nm-sanctum-stack-mode","sourceType":"release","confidence":"medium","observedAt":"2026-08-26T13:20:53.932Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-sanctum-stack-mode/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-sanctum-stack-mode/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["998 downloads","Trust evidence available"],"agentCard":{"name":"stack-mode","description":"Detects shared stack membership and iterates a command across all PRs in base-to-tip order","source":"CLAWHUB","sourceId":"clawhub:s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-sanctum-stack-mode","homepage":"https://clawhub.ai/athola/skills/nm-sanctum-stack-mode","repository":"https://clawhub.ai/athola/nm-sanctum-stack-mode","documentation":"https://www.xpersona.co/agent/clawhub-athola-nm-sanctum-stack-mode","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"bash","snippet":"START_HEAD=$(gh pr view \"$PR_NUM\" \\\n  --json headRefName -q .headRefName)\n\n# stack/<feature-name>/<slice-name>\nif [[ \"$START_HEAD\" =~ ^stack/([^/]+)/.+$ ]]; then\n  FEATURE=\"${BASH_REMATCH[1]}\"\n  PREFIX=\"stack/${FEATURE}/\"\n\n  # All local branches with the same prefix\n  STACK_BRANCHES=$(git branch --list \"${PREFIX}*\" \\\n    | sed 's/^[* ]*//' | sort)\n\n  # Map branches -> PR numbers (skip branches with no PR)\n  STACK_PRS=()\n  for branch in $STACK_BRANCHES; do\n    pr=$(gh pr list --head \"$branch\" \\\n      --json number --jq '.[0].number')\n    [ -n \"$pr\" ] && STACK_PRS+=(\"$pr\")\n  done\n\n  echo \"strategy=A prs=${STACK_PRS[*]}\"\nfi"},{"kind":"example","language":"bash","snippet":"# Find the root PR of the stack containing $PR_NUM\n# The current PR may be the root, or may link to it via\n# a \"Part of stack `stack/<feature>`\" phrase in its body\nBODY=$(gh pr view \"$PR_NUM\" --json body -q .body)\n\n# Look for a \"## Stack\" table in THIS PR's comments\nTABLE=$(gh pr view \"$PR_NUM\" --json comments \\\n  --jq '.comments[] | select(.body | contains(\"## Stack\"))\n        | .body' | head -1)\n\n# If not on this PR, look for the root PR reference\nif [ -z \"$TABLE\" ]; then\n  ROOT_REF=$(echo \"$BODY\" \\\n    | grep -oE 'stack/[^ `]+' | head -1)\n  # ... resolve ROOT_REF -> root PR number and re-fetch\nfi\n\n# Parse the table: extract all `#<num>` from the PR column\nSTACK_PRS=($(echo \"$TABLE\" \\\n  | grep -oE '#[0-9]+' | tr -d '#' | sort -un))\n\necho \"strategy=B prs=${STACK_PRS[*]}\""}]}}