Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/netgrade-digital/shared-agentsnpx agentmods add skills/netgrade-digital/shared-agents/sa-cliWrote 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/netgrade-digital/shared-agents/sa-cli)<a href="https://agentmods.dev/skills/netgrade-digital/shared-agents/sa-cli"><img src="https://agentmods.dev/badge/skills/netgrade-digital/shared-agents/sa-cli/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/netgrade-digital/shared-agents/sa-cli"><img src="https://agentmods.dev/badge/skills/netgrade-digital/shared-agents/sa-cli.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.00071 | $0.04105 |
| Opus 5.5 | $0.00028 | $0.01642 |
| Sonnet 5.5 | $0.00014 | $0.00821 |
| Haiku 4.5 | $0.00007 | $0.00411 |
Grade E, and why
sa-cli scanned grade E with 3 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://raw.githubusercontent.com/netgrade-digital/shared-agents/refs/heads/main/scripts/bootstrap.sh | bash Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
| Wizard cancelled, half setup | `rm -rf ~/.shared-agents` · `sa bootstrap` again | Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://raw.githubusercontent.com/netgrade-digital/shared-agents/refs/heads/main/scripts/bootstrap.sh | bash How it starts
The opening of the file, as written. The whole thing — 412 lines — stays where its author put it; the contents beside it link to each section on GitHub.
shared-agents CLI (sa)
Canonical live help: run sa or sa help — prefer that over memorizing flags.
sa # help overview (default)
sa help # same
shared-agents … # alias
sharedagents … # alias
Without shell aliases (agents, CI, fresh shell):
"${SHARED_AGENTS_HOME:-$HOME/.shared-agents}/scripts/sa" help
Repo root (dev checkout): ./sa · ./sa install
Env: SHARED_AGENTS_HOME (default ~/.shared-agents) · Version: sa version
First-time setup
Recommended (Core + private team repo + adapters):
curl -fsSL https://raw.githubusercontent.com/netgrade-digital/shared-agents/refs/heads/main/scripts/bootstrap.sh | bash
# Piped curl uses /dev/tty for the wizard when possible (TUI or text prompts).
# Force auto-install only: SA_BOOTSTRAP_NON_INTERACTIVE=1 curl … | bash
# or after clone: ./scripts/bootstrap.sh · sa bootstrap
source ~/.bashrc # fish: source ~/.config/fish/config.fish
sa check
sa team verify # optional but useful after bootstrap
Classic (Core only, then wizard — team repo optional in wizard):
git clone [email protected]:netgrade/shared-agents.git ~/.shared-agents
cd ~/.shared-agents
./sa install
source ~/.bashrc # fish: source ~/.config/fish/config.fish
From dev checkout without ~/.shared-agents yet: ./sa install — wizard runs before clone; cancel leaves no ~/.shared-agents.
New AI tool installed? → run sa install again.
Commands (overview)
| Area | Command | Summary |
|---|---|---|
| Info | sa · sa help |
All commands |
| Info | sa version |
CLI version + HOME |
| Setup | sa bootstrap |
Full first-time setup (Core + team + adapters) |
| Setup | sa install |
Setup wizard (default in TTY) |
| Setup | sa install --non-interactive |
All detected tools, no prompts |
| Setup | sa install --wizard |
Wizard explicitly |
| Setup | sa check |
Tool installed vs configured (+ team warnings) |
| Setup | sa sync |
Pull Core + team; link skills + rules |
| Setup | sa status |
Open items: review, skills, adapters, team |
| Setup | sa doctor |
Diagnose symlink / rule link issues |
| Setup | sa doctor --fix |
Repair (backup + relink blocking rule files) |
| Setup | sa team verify |
Deep team repo validation |
| Setup | sa team migrate |
Legacy learnings/ → team/learnings/ |
| Setup | sa uninstall |
Uninstall (y/N) |
| Learnings | sa review |
Interactive: pending → approved |
| Learnings | sa review list |
Pending list |
| Learnings | sa review dry [file] |
Dry-run |
| Learnings | sa pending push [file] |
Commit + push pending |
| Learnings | sa pending path [slug] |
Canonical pending path |
| Learnings | sa unapprove [id|file] |
Remove from approved |
| Learnings | sa unapprove list |
Approved list |
| Learnings | sa learning report --id <id> --event <e> |
Buffer usage event (no git, no review) |
| Learnings | sa learning push |
Flush buffer → usage.yaml (+ commit/push; also sa sync) |
| Learnings | sa learning status [--json] |
Usage metrics + flags (rule candidates, orphans, unresolved) |
| Learnings | sa learning events <id> |
Raw events for one learning |
| Learnings | sa learning migrate |
One-time: flat approved/*.md → <id>/learning.md + usage.yaml |
| Team content | sa skill new |
Wizard: team/skills/<name>/SKILL.md |
| Team content | sa skill rm [name] |
Remove team skill |
| Team content | sa skill list |
List team skills |
| Team content | sa skill edit [name] |
Edit team skill (opens $EDITOR) |
| Team content | sa rule new |
Wizard: team/rules/<slug>.mdc |
| Team content | sa rule rm [slug] |
Remove team rule |
| Team content | sa rule list |
List team rules |
| Team content | sa rule edit [slug] |
Edit team rule (opens $EDITOR) |
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.
- 1mo ago Changed · +23 lines · +2 tokens per session 4edbbb6d2ceb
- 1mo ago Changed 48ce0bb7b21f
- 1mo ago Changed dfda67a308f2
- 3mo ago First seen · 389 lines · 69 tokens per session scan E a50327d8b98e
sa-cli is a skill published in the GitHub repository netgrade-digital/shared-agents (5 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 4,105 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
sa-cli compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sa-clinetgrade-digital/shared-agents | Skill | 5 | 1mo ago | MIT | E | 71 | Claude Code, Codex |
| user-research-cookiycookiy-ai/user-research-skill | Skill | 1.6k | 20d ago | MIT | A | 154 | Claude Code, Codex |
| skilld-tui-designskilld-dev/skilld | Skill | 337 | 3d ago | MIT | A | 47 | Claude Code |
| best-practicesMoizIbnYousaf/Ai-Agent-Skills | Skill | 1.2k | 2mo ago | MIT | A | 35 | Claude Code, Codex |
| Agent Browser AutomationPramodDutta/qaskills | Skill | 253 | 29d ago | MIT | A | 37 | Claude Code, Codex |
| code-documentationMoizIbnYousaf/Ai-Agent-Skills | Skill | 1.2k | 2mo ago | MIT | A | 35 | Claude Code, Codex |
| curate-a-team-libraryMoizIbnYousaf/Ai-Agent-Skills | Skill | 1.2k | 2mo ago | MIT | A | 49 | Claude Code, Codex |