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.
npx skills add sharpninja/McpServer --skill bash-usagegit clone --depth 1 https://github.com/sharpninja/McpServerWrote 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.
[](https://agentmods.dev/skills/sharpninja/mcpserver/bash-usage)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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_powershellandrun_bash. - A
run_bashcall returnedavailable: falseand 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-pluginwrapper (workflow.*/client.*methods), not throughrun_bashorrun_powershell. Nevercat,grep, orsedthedocs/Project/TODO.yamlor 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
availableboolean returned byrun_bash. Whenavailableisfalse, Git Bash was not found onPATHand 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
run_powershell(pwsh) is the primary shell on this host and is always available. Default to it. The repo standard ispwsh.exe(PowerShell 7+); never targetpowershell.exe(Windows PowerShell 5.1).run_bashis OPTIONAL. It only works when Git Bash is onPATH. If the tool returnsavailable: false, treat bash as unavailable for this run and do not retry the same call expecting a different result.- Do not invent shell tool names, flags, or fields. Only
run_powershellandrun_bashexist for QBAgent shell execution, and the only availability signal is theavailablefield on therun_bashresult. - When
run_bashis unavailable, translate the command to PowerShell and run it throughrun_powershell. Do not assume a bash path or callbash.exedirectly. - Use absolute paths in commands. The agent working directory is not guaranteed to persist between tool calls.
- PowerShell syntax differs from POSIX: use
$nullnot/dev/null,$env:VARnot$VAR, backtick for line continuation, andpwsh-native cmdlets instead ofgrep/sed/cat.
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.
- 4d ago Changed d3dc5cc7a33b
- 1mo ago First seen · 104 lines · 0 tokens per session scan A df311599a30f
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.
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).
omh-rust
This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
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.
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.
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…
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.