ssh-remote-operations
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
Run DevOps remote operations through project-root SSH configuration. Use when DevOps must execute commands, install software or packages, inspect a remote host, stage release artifacts, or prepare a non-local server through `.ssh/config` without exposing private keys, SSH config contents, passwords, or environment secrets to the model.
- Reads credentials
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Resolve the target host alias: Use only a named host alias from project-root .ssh/config.
- Very specific: line 25
Run a safe preflight: Verify connectivity with a non-secret command such as ssh -F .ssh/config <alias> 'printf "%s\n" ok.
- Very specific: line 28
Stage artifacts without copying secrets: Use scp -F .ssh/config or rsync -e 'ssh -F .ssh/config' only for build artifacts, compose files, …
- Very specific: line 29
Make commands reproducible: Prefer checked-in scripts or task-scoped scripts under docs/devops/<task-id>/ for multi-step remote work.
- Very specific: line 34
Never read or print project-root .ssh/ files, private keys, ~/.ssh/, passwords, agent sockets, or known-host material.
- Very specific: line 35
Never run remote secret-dumping commands (env, printenv, set, cat ~/.ssh/*, cat .env*, kubectl config view --raw) through SSH.
- Distinctive: line 36
Never install packages on staging or production without explicit task approval and rollback notes.
- Distinctive: line 37
Never pipe unaudited network downloads into a shell on the remote host.
- Distinctive: line 38
Never put credentials, SSH config contents, private hostnames, or secret environment values into deploy reports.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SSH Remote Operations
When to use
Use this skill when a DevOps task targets a remote VM or bare server and the project provides SSH connection configuration under project-root .ssh/. The SSH files are operator-owned credential material: DevOps may reference them in commands, but must not read, summarize, copy, or print their contents.
Inputs and outputs
- Inputs: task ID, target environment, approved SSH host alias, project-root
.ssh/config, architecture/deploy docs, package/software requirements, and any human approval required for non-dev environments. - Outputs: remote preflight evidence, command/package-change summary, health-check evidence, rollback notes, and
docs/deploy-reports/<task-id>.mdordocs/devops/<task-id>/artifacts with secrets redacted.
Procedure
- Resolve the target host alias. Use only a named host alias from project-root
.ssh/config. Do not read.ssh/config; ask the operator for the alias if the task does not name it. Usessh -F .ssh/config <alias> <command>for remote execution. - Gate the target environment. Local/dev/test servers may proceed when the task explicitly names the target. Staging requires task approval evidence. Production requires a human-approved change record, a dry-run or written execution plan, and rollback instructions before any mutation.
- Run a safe preflight. Verify connectivity with a non-secret command such as
ssh -F .ssh/config <alias> 'printf "%s\n" ok; uname -s; uname -m; id -un'. Do not runenv,printenv,set,cat ~/.ssh/*, or commands that dump service credentials. - Detect the remote OS before installing packages. Read non-secret OS metadata (
/etc/os-release,uname) and choose the native package manager. Use non-interactive flags and exact package names from the task or architecture docs. Ifsudoprompts for a password, stop withNEEDS_CONTEXT; never ask the model to handle passwords. - Install only declared software. Package installation is allowed only when the task explicitly requires it. Record package names and versions in the report. Do not run broad upgrades (
apt upgrade,yum update,brew upgrade) unless the task is specifically an OS maintenance task with approval. - Stage artifacts without copying secrets. Use
scp -F .ssh/configorrsync -e 'ssh -F .ssh/config'only for build artifacts, compose files, manifests, or generated release bundles. Never copy.env*,.ssh/,.k8s/kubeconfigs, private keys, registry credentials, or raw secret manifests. - Make commands reproducible. Prefer checked-in scripts or task-scoped scripts under
docs/devops/<task-id>/for multi-step remote work. Remote one-liners should useset -euo pipefailwhen run throughbash -lc. - Capture redacted evidence. Store command summaries, package changes, remote host alias, target environment, health-check URLs, and rollback commands. Do not store host private IPs, usernames, tokens, key paths beyond the alias/config path, or raw command output that contains secrets.
Hard rules
- Never read or print project-root
.ssh/files, private keys,~/.ssh/, passwords, agent sockets, or known-host material. - Never run remote secret-dumping commands (
env,printenv,set,cat ~/.ssh/*,cat .env*,kubectl config view --raw) through SSH. - Never install packages on staging or production without explicit task approval and rollback notes.
- Never pipe unaudited network downloads into a shell on the remote host.
- Never put credentials, SSH config contents, private hostnames, or secret environment values into deploy reports.
References
../docker-deployment/SKILL.md- combine with SSH for remote Docker or Compose deployment.../kubernetes-deployment/SKILL.md- use kubeconfig by reference only; do not read credentials.../../hooks/privacy-check.cjs- runtime credential-path guard.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

