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 liza-mas/liza --skill bash-policygit clone --depth 1 https://github.com/liza-mas/lizaWrote 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/liza-mas/liza/bash-policy)<a href="https://agentmods.dev/skills/liza-mas/liza/bash-policy"><img src="https://agentmods.dev/badge/skills/liza-mas/liza/bash-policy/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/liza-mas/liza/bash-policy"><img src="https://agentmods.dev/badge/skills/liza-mas/liza/bash-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00050 | $0.02177 |
| Opus 5 | $0.00025 | $0.01089 |
| Sonnet 5 | $0.00010 | $0.00435 |
| Haiku 4.5 | $0.00005 | $0.00218 |
Grade A, and why
bash-policy 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 9d 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 — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bash Policy
Core Workflow
-
Find the repo root and inspect current policy state.
- Use
git status --short -- .bash-policy.yaml .bash-policy-candidates.yamlbefore edits. - Treat
.bash-policy.yamlas curated source of truth;.bash-policy-candidates.yamlis generated evidence. - Keep
policy-artifact-rootdistinct fromsafe-root: the artifact root is the durable project root where.bash-policy.yaml, dry-run logs, and candidates live; the safe root is the active checkout/worktree used for path validation. - For interactive curation, use an absolute
--policy-artifact-root. Do not rely on hook cwd or an auxiliary worktree root.
- Use
-
Generate or refresh Claude candidates.
-
Bash-policy curation is mostly for Claude permission telemetry.
-
Use this exact export shape by default:
bash-policy export --provider claude --policy-artifact-root "$repo_root" --claude-settings .claude/settings.json -
If
.claude/settings.jsonis missing, ask or locate the intended Claude settings file before guessing. -
bash-policy exportregenerates.bash-policy-candidates.yamlfrom current sources; previous candidate-file contents are not policy state. -
Export sources are aggregated dry-run evidence and optional Claude settings. Claude settings contribute
Bash(...)permission-family candidates; dry-run evidence contributes command-shape candidates. -
Use
bash-policy report --provider claude --policy-artifact-root "$repo_root"when frequency, proposed status, or examples from.bash-policy-dry-run.jsonlwould improve curation. -
Generated evidence artifacts are not intended policy deliverables:
.bash-policy-candidates.yaml,.bash-policy-dry-run.jsonl,.bash-policy-dry-run.jsonl.lock, and.bash-policy-dry-run.jsonl.lock.owner.jsonshould be ignored or worktree-excluded.
-
-
Curate command-shape candidates.
- Add runtime
command-shaperules only for safe, read-only inspection commands. - A command-shape rule may use
decision: allow,decision: deny, ordecision: manual. - Configured command-shape rules override built-in defaults, but never override the non-overridable safety floor: secret exposure, credential paths, safe-root escape, verified bypasses, unsupported redirections, dynamic shell forms, and destructive irreversible operations must not become auto-allowed.
- Prefer a built-in profile over a custom rule when the current evaluator already allows a representative command. Export should omit built-in-covered shapes; if a candidate appears anyway, behavior-check before adding a redundant rule.
- Prefer normalized placeholders:
<safe-path>for a single normalized safe path.<safe-path>...for one or more final path operands.<pattern>for non-sensitive search patterns.<number>and<fields>for numeric and field-list values.<safe-glob>for constrained non-sensitive filename globs such as*.goin supported option-value positions.<safe-pathspec>when the engine emits pathspec-shaped operands.
- Generalize command shapes whenever the broader rule is still safe. Replace specific single-path or literal-value rules with placeholder or terminal-variadic forms, then remove narrower rules covered by the general rule.
- Do not copy highly specific literals such as project regexes, command names, timestamps, local absolute paths, or generated line ranges when a placeholder rule captures the intent.
- Do not keep literal glob tokens such as
*.goor*.pyin command-shape identities. For git pathspec operands, includinggit grep ... -- *.goandgit diff ... -- *.go, expect current bash-policy to normalize safe extension globs to<safe-path>and cover repeated operands with<safe-path>.... - For grep filename filters, use
--include=<safe-glob>only when current validation/evaluation supports it. Do not rewrite include globs as--include=<pattern>; if<safe-glob>is unsupported in the installed binary, omit the rule and leave that command manual. - For sed read-range forms, prefer normalized rules such as
sed -n <number>,<number>p <safe-path>...over literal line ranges and filenames when current evaluation emits that shape. Do not add sed rules for-e,--expression,-f,--file,-i, or--in-placeforms; those can execute commands, read scripts, or write files and must remain manual. - Do not emit display summaries, transcript fragments, or truncation markers such as standalone
...as policy identities. Export should canonicalize full legacy summaries when possible and omit unreconstructable truncated identities. - Curate compound command evidence as leaf command-shape rules. Do not add whole-compound rules for
;,&&,||, or|; every leaf must pass the safety floor and resolve through a built-in, configured command-shape rule, or admissible Claude setting. rtkis a wrapper. Candidate and policy identities should use the wrapped command shape when recoverable, not anrtk-prefixed rule.- Never add rules containing
<redacted>or secret-looking values. - Keep state-changing commands manual unless the user explicitly approves a narrow rule. Be skeptical of candidates like
python3 <safe-path> ...,git add,git commit, package managers, broad shell wrappers, and tool invocations that mutate coordination state.
- Add runtime
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.
- 9d ago First seen · 122 lines · 50 tokens per session scan A e72eaa774113
bash-policy is a skill published in the GitHub repository liza-mas/liza (372 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 2,177 once invoked, about $0.0003 per session on Opus 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-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…