sa-cli

sa-cli is a skill for Claude Code, Codex from netgrade-digital/shared-agents. It costs 71 tokens per session (4,105 once invoked), scanned E, original, MIT.

A command-line guide for shared-agents, a terminal tool used to install, sync, check, and manage shared coding-agent resources. It includes setup instructions and troubleshooting commands.

In plain words
What is it for?
Use it to learn commands such as install, sync, status, check, review, and uninstall, configure the shared-agents directory, and verify team-repository setup.
Why use it?
It gives developers one reference for running the tool and completing its initial setup. It also helps diagnose problems after installation or synchronization.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is # or after clone: ./scripts/bootstrap.sh · sa bootstrap.

Good fit Use it to learn commands such as install, sync, status, check, review, and uninstall, configure the shared-agents directory, and verify team-repository setup.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/netgrade-digital/shared-agents
agentmods
npx agentmods add skills/netgrade-digital/shared-agents/sa-cli

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 sa-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/netgrade-digital/shared-agents/sa-cli/github.svg)](https://agentmods.dev/skills/netgrade-digital/shared-agents/sa-cli)
Your own site
<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.

agentmods 80×15 button for sa-cli

Your own site · 80×15
<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>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 3 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.00071 $0.04105
Opus 5.5 $0.00028 $0.01642
Sonnet 5.5 $0.00014 $0.00821
Haiku 4.5 $0.00007 $0.00411

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

Security

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
skills/sa-cli/SKILL.md · 412 lines

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)

Read the full file on GitHub · 412 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 · +23 lines · +2 tokens per session 4edbbb6d2ceb
  2. 1mo ago Changed 48ce0bb7b21f
  3. 1mo ago Changed dfda67a308f2
  4. 3mo ago First seen · 389 lines · 69 tokens per session scan E a50327d8b98e

Subscribe to this mod's changes

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.

Related

sa-cli compared with skills from other repositories

sa-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sa-clinetgrade-digital/shared-agentsSkill51mo agoMITE71Claude Code, Codex
user-research-cookiycookiy-ai/user-research-skillSkill1.6k20d agoMITA154Claude Code, Codex
skilld-tui-designskilld-dev/skilldSkill3373d agoMITA47Claude Code
best-practicesMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA35Claude Code, Codex
Agent Browser AutomationPramodDutta/qaskillsSkill25329d agoMITA37Claude Code, Codex
code-documentationMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA35Claude Code, Codex
curate-a-team-libraryMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA49Claude Code, Codex