bash-usage

bash-usage is a skill for Claude Code, Codex from sharpninja/McpServer. It costs 0 tokens per session (1,515 once invoked), scanned A, original, Apache-2.0.

A guide for choosing between PowerShell and Git Bash on a Windows computer when a QBAgent tool needs to run shell commands. QBAgent is the tool system described by the add-on, and a shell is a program used to run commands.

In plain words
What is it for?
Use it when deciding how to run build or shell commands on the Windows host, especially after Git Bash is unavailable.
Why use it?
It prevents agents from assuming that Git Bash is installed or using the wrong command runner. It also states which project operations should use dedicated tools instead of shell commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when deciding how to run build or shell commands on the Windows host, especially after Git Bash is unavailable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sharpninja/mcpserver/bash-usage
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 sharpninja/McpServer --skill bash-usage
Clone the repo
git clone --depth 1 https://github.com/sharpninja/McpServer

Made for: Claude Code, Codex.

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 bash-usage

README.md
[![agentmods](https://agentmods.dev/badge/skills/sharpninja/mcpserver/bash-usage/github.svg)](https://agentmods.dev/skills/sharpninja/mcpserver/bash-usage)
Your own site
<a href="https://agentmods.dev/skills/sharpninja/mcpserver/bash-usage"><img src="https://agentmods.dev/badge/skills/sharpninja/mcpserver/bash-usage/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 bash-usage

Your own site · 80×15
<a href="https://agentmods.dev/skills/sharpninja/mcpserver/bash-usage"><img src="https://agentmods.dev/badge/skills/sharpninja/mcpserver/bash-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,515 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.00000 $0.01515
Opus 5.5 $0.00000 $0.00606
Sonnet 5.5 $0.00000 $0.00303
Haiku 4.5 $0.00000 $0.00152

Measured 4d ago against content hash d3dc5cc7a33b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bash-usage 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 4d 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/bash-usage/SKILL.md · 104 lines

How it starts

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

Bash Usage on the QBrainAi Windows Host

This skill governs shell selection for the optional QBAgent (QBrainAi.QBAgent, Quad-Brain) run_bash and run_powershell tools. The host OS is Windows 11. PowerShell 7+ (pwsh.exe) is the primary and always-present shell. Git Bash is optional and only usable when it is resolvable on PATH.

When to Use

  • A QBAgent tool loop needs to run a shell command and you must choose between run_powershell and run_bash.
  • A run_bash call returned available: false and you need the correct fallback.
  • You are porting a POSIX shell snippet (the build doc examples use ./build.ps1 ... but show bash fences) and need to decide which tool actually executes it.

When Not to Use

  • Pure file read/write/search work. Use the dedicated file tools, not a shell.
  • Session log, TODO, requirements, import/export, or traceability operations. Those must go through the mcpserver-claude-code-plugin wrapper (workflow.* / client.* methods), not through run_bash or run_powershell. Never cat, grep, or sed the docs/Project/TODO.yaml or session-log files from a shell.
  • Long-lived servers or builds you intend to background. Prefer the project's documented entry points (./build.ps1 Compile, ./build.ps1 Test, ./build.ps1 StartServer).

Inputs

  • The shell command string you intend to run.
  • The QBAgent tool result fields, specifically the available boolean returned by run_bash. When available is false, Git Bash was not found on PATH and no command was executed.
  • Whether the command is POSIX-specific (uses /dev/null, && chains over POSIX builtins, grep/sed/awk, single-quoted here-docs) or is already PowerShell-native.

Critical Rules

  1. run_powershell (pwsh) is the primary shell on this host and is always available. Default to it. The repo standard is pwsh.exe (PowerShell 7+); never target powershell.exe (Windows PowerShell 5.1).
  2. run_bash is OPTIONAL. It only works when Git Bash is on PATH. If the tool returns available: false, treat bash as unavailable for this run and do not retry the same call expecting a different result.
  3. Do not invent shell tool names, flags, or fields. Only run_powershell and run_bash exist for QBAgent shell execution, and the only availability signal is the available field on the run_bash result.
  4. When run_bash is unavailable, translate the command to PowerShell and run it through run_powershell. Do not assume a bash path or call bash.exe directly.
  5. Use absolute paths in commands. The agent working directory is not guaranteed to persist between tool calls.
  6. PowerShell syntax differs from POSIX: use $null not /dev/null, $env:VAR not $VAR, backtick for line continuation, and pwsh-native cmdlets instead of grep/sed/cat.

Read the full file on GitHub · 104 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. 4d ago Changed d3dc5cc7a33b
  2. 1mo ago First seen · 104 lines · 0 tokens per session scan A df311599a30f

Subscribe to this mod's changes

bash-usage is a skill published in the GitHub repository sharpninja/McpServer (4 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,515 tokens. 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-08-31.

Related

Other skills, from other repositories

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

omh-rust

This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 74 tokens

redteam-web-detail-pack

Routing and boundary guidance for authorized general web application security testing. Use as a web testing router when the attack surface should be dispatched to more specific web vulnerability skills.

Netw0rkNoob/VulnClaw · 38 tokens

android-pentest

A guide for authorized security testing of Android apps, covering APK inspection, runtime testing, traffic capture, code review, and function hooking. An APK is the installable package used by an Android app.

Netw0rkNoob/VulnClaw · 32 tokens

manage-schemas

Creates, views, edits, deletes, and validates note schemas for the MCP Task Orchestrator in .taskorchestrator/config.yaml — the templates that define which notes agents must fill at each workflow phase. Also recommends schema designs from a library of workflow patterns (autonomous coding loops, spec-driven teams…

jpicklyk/task-orchestrator · 212 tokens

lighting-report-extract

Check reported lighting quantities and results in supplied simulation PDFs without adding repeated calculation surfaces. Use for scoped luminaire inventories and illuminance results; not simulation or compliance.

AlpacaLabsLLC/skills-for-architects · 37 tokens