sc:deploy-remote

sc:deploy-remote is a skill for Claude Code, Codex from squadcodercom/squadcoder. It costs 148 tokens per session (1,535 once invoked), scanned D, original, MIT.

A workflow for sending the current local project to a linked remote server over SSH and managing that server. It uses workspace settings to define the server, target folder, build command, and optional restart command.

In plain words
What is it for?
Use it to deploy releases, sync files, create remote directories, run server commands, and restart services after deployment.
Why use it?
It keeps deployment work connected to the local project and avoids manually switching to the server for routine commands. It also provides safe defaults for files that should not be uploaded.

Skill for Claude CodeCodex

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

Good fit Use it to deploy releases, sync files, create remote directories, run server commands, and restart services after deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/squadcodercom/squadcoder/sc-deploy-remote
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 squadcodercom/squadcoder --skill sc-deploy-remote
Clone the repo
git clone --depth 1 https://github.com/squadcodercom/squadcoder

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 sc:deploy-remote

README.md
[![agentmods](https://agentmods.dev/badge/skills/squadcodercom/squadcoder/sc-deploy-remote/github.svg)](https://agentmods.dev/skills/squadcodercom/squadcoder/sc-deploy-remote)
Your own site
<a href="https://agentmods.dev/skills/squadcodercom/squadcoder/sc-deploy-remote"><img src="https://agentmods.dev/badge/skills/squadcodercom/squadcoder/sc-deploy-remote/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 sc:deploy-remote

Your own site · 80×15
<a href="https://agentmods.dev/skills/squadcodercom/squadcoder/sc-deploy-remote"><img src="https://agentmods.dev/badge/skills/squadcodercom/squadcoder/sc-deploy-remote.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,535 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00148 $0.01535
Opus 5 $0.00074 $0.00767
Sonnet 5 $0.00030 $0.00307
Haiku 4.5 $0.00015 $0.00153

Measured 8d ago against content hash a8c24737c99b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade D, and why

sc:deploy-remote scanned grade D 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 8d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

"postDeploy": "sudo systemctl restart squadcoder || true" // optional: remote command after sync

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

run destructive commands (`rm -rf`, `DROP`, `systemctl stop`) without an explicit confirmation that

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

(`ssh <host> 'systemctl is-active <svc>'` or curl a health endpoint) and report.
.squadcoder/skills/sc-deploy-remote/SKILL.md · 96 lines

How it starts

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

Deploy & manage the remote from the local workspace

This skill lets the agent develop locally and then deploy / manage a remote host over SSH without leaving the local workspace. The workspace is linked to its remote via a small config file; you push code and run remote commands through that link. No remote engine, no server switching.

The link lives at .squadcoder/remote.json in the workspace root:

{
  "host": "Relay",                      // an ~/.ssh/config alias (preferred) OR user@host
  "path": "/opt/squadcoder",            // the remote target directory
  "build": "npm run build",             // optional: local build to run before deploy (or null)
  "exclude": ["node_modules", ".git", ".env", ".env.*", "*.key", "*.pem", "id_*", "*.log", "dist/cache"],
  "postDeploy": "sudo systemctl restart squadcoder || true"  // optional: remote command after sync
}
  • If the file exists, use it.
  • If it does not exist, ASK the user for the host (offer the hosts in ~/.ssh/config) and the remote path, then WRITE the file (with the secret-safe exclude defaults above) so the link persists for next time. Confirm the values back before deploying.

2. Pre-flight (do these EVERY time, in order)

  1. Confirm the target out loud: "Deploying <workspace><host>:<path>. Proceed?" Wait for go on the first deploy of a session.
  2. Verify SSH reachability (non-destructive): ssh <host> 'echo ok && whoami && uname -a'. If it fails, stop and report — do not guess credentials.
  3. Create the remote dir if missing (idempotent, never deletes): ssh <host> 'mkdir -p "<path>"'.
  4. Local build if build is set: run it locally and stop on failure (never deploy a broken build).

3. Security gate (MANDATORY — this is the whole point of the exclude list)

Before any file leaves the machine:

  • NEVER sync secrets. Always apply the exclude patterns (.env*, *.key, *.pem, id_*, credentials, .git). If you detect a secret-looking file that isn't excluded, STOP and warn.
  • Scan the diff for hard-coded secrets (API keys, tokens, passwords) in the files about to ship; if found, refuse and tell the user to move them to env/secret storage on the remote.
  • Least privilege: prefer a non-root SSH user + sudo only for the specific service restart. Never chmod 777, never deploy as root unless the user explicitly says so.
  • Loopback/keys only: rely on the host's key auth from ~/.ssh/config; never put passwords in argv.

Read the full file on GitHub · 96 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. 8d ago First seen · 96 lines · 148 tokens per session scan D a8c24737c99b

Subscribe to this mod's changes

sc:deploy-remote is a skill published in the GitHub repository squadcodercom/squadcoder (11 stars, last pushed 2mo ago), licensed MIT. It adds 148 tokens to every session and 1,535 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.