hubrun

hubrun is a skill for Claude Code from tonydzi/second-brain-starter-kit. It costs 87 tokens per session (1,193 once invoked), scanned A, original, MIT.

A command-line helper that runs a PowerShell command or script on a remote Windows machine and returns its output in one step.

In plain words
What is it for?
Use it to check machine state or run administrative scripts on a fleet hub or another configured Windows host.
Why use it?
It removes the manual process of copying a script to the machine, connecting over SSH, running it, and copying the result back.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the second-brain-skills plugin — 258 skills, 3 agents, 1 plugin shipped together

Good fit Use it to check machine state or run administrative scripts on a fleet hub or another configured Windows host.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonydzi/second-brain-starter-kit/hubrun
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tonydzi/second-brain-starter-kit --skill hubrun
Clone the repo
git clone --depth 1 https://github.com/tonydzi/second-brain-starter-kit

Made for: Claude Code.

Or install second-brain-skills, the plugin that ships this one along with the rest of its 258 skills, 3 agents, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hubrun

README.md
[![agentmods](https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/hubrun/github.svg)](https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/hubrun)
Your own site
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/hubrun"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/hubrun/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hubrun

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonydzi/second-brain-starter-kit/hubrun"><img src="https://agentmods.dev/badge/skills/tonydzi/second-brain-starter-kit/hubrun.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,193 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.01193
Opus 5.5 $0.00035 $0.00477
Sonnet 5.5 $0.00017 $0.00239
Haiku 4.5 $0.00009 $0.00119

Measured 1mo ago against content hash 897b59fecba7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hubrun scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hubrun/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/hubrun — запуск PowerShell на узле флота одной командой

Когда

Нужно что-то выполнить/проверить на хабе (или другом ssh-узле Windows) и увидеть вывод здесь. Заменяет ручную связку «Write .ps1 → scp → ssh → scp назад».

Как

Инлайн-команда (только простое, БЕЗ вложенных двойных кавычек — локальный PS 5.1 мнёт их при передаче в native-аргумент):

python ~/.claude/scripts/hubrun.py -c "Get-Date; $env:COMPUTERNAME"

Скрипт-файл (дефолт для всего нетривиального; писать payload в scratchpad):

python ~/.claude/scripts/hubrun.py <путь-к-локальному.ps1>

Опции: --host <alias> (дефолт hub; алиасы в ~/.ssh/config) · --keep (оставить out-файл на узле) · --timeout <сек> (дефолт 300).

⚠️ Грабли 10.09.2026: дефолт 300с рвёт ЛЮБОЙ прогон, который ходит в LLM (суточный оптимизатор канона, /tt чужого движка, ДР-рельсы) — вывод теряется, а работа на узле продолжается вслепую. Ходит в модель или в сеть → ставь --timeout 900 СРАЗУ, не после обрыва.

Контракт

  • Первая строка вывода ### hubrun status=OK|ERR; exit 0 только при OK.
  • Payload исполняется в том же PS-процессе → НЕ звать exit; финиш сигналь Write-Output-строкой.
  • Кириллица/тире в payload и в выводе доезжают целыми (BOM + файловый out).
  • За собой чистит и локально (temp), и на узле; во время прогона узел видит 2 своих файла _hubrun_<id>_* — это норма, не мусор.
  • GUI на узле из ssh не поднять (сессия 0) — для этого Interactive-задача планировщика, см. память hub-claude-fixers-disabled-and-msix-repair.

Тест

python ~/.claude/scripts/_test_hubrun.py (оффлайн 15 кейсов) · --live = смок на хаб. Счётчик: ~/.claude/usage_counters/hubrun.jsonl.

⚠️ -c и кириллица (замер 10.09.2026, раскатка fireat-door)

Защита от OEM-мятой кириллицы работает в режиме ФАЙЛА (hubrun.py script.ps1): вывод забирается UTF-8 out-файлом. В инлайн-режиме -c "..." этого пути нет — русский вывод удалённой команды вернулся кашей вида ╨Т╨Х╨а╨Ф╨Ш╨Ъ╨в и читался только по латинице и цифрам (md5, exit-коды).

Read the full file on GitHub · 52 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 897b59fecba7
  2. 1mo ago Changed · -1 lines df561e2c359e
  3. 1mo ago Changed · +13 lines 43602a56f676
  4. 2mo ago First seen · 40 lines · 87 tokens per session scan A 77f01c57ffad

Subscribe to this mod's changes

hubrun is a skill published in the GitHub repository tonydzi/second-brain-starter-kit (16 stars, last pushed 3d ago), licensed MIT. It adds 87 tokens to every session and 1,193 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.

Related

hubrun compared with skills from other repositories

hubrun next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hubruntonydzi/second-brain-starter-kitSkill163d agoMITA87Claude Code
wiki-modeAgriciDaniel/claude-obsidianSkill17k1mo agoMITA83Claude Code
wikiAgriciDaniel/claude-obsidianSkill17k1mo agoMITA84Claude Code
defuddleAgriciDaniel/claude-obsidianSkill17k1mo agoMITA61Claude Code
wiki-foldAgriciDaniel/claude-obsidianSkill17k1mo agoMITA76Claude Code
superbrain-distillm3talux/superbrainSkill433mo agoMITA36Claude Code
compliance-checkAiAi-Mastermind/aiai-mastermind-tools-and-skillsSkill21mo agoMITA74Claude Code, Codex