file-ops
Skill0 starsChanged 2 months agoMITView on GitHub
Manage remote files over SFTP (upload / download / permission / archive). Use when: transferring files, changing permissions, or packing/unpacking on an authorized server. Boundary: delete and chmod go through second confirmation to protect critical paths.
In this repository27 other files it gives its agents.
- mysql-opsSkill
- redis-opsSkill
- data-opsSkill
- docker-containerSkill
- docker-imageSkill
- docker-installSkill
- docker-opsSkill
- apt-repoSkill
- server-settingsSkill
- shell-execSkill
- infra-opsSkill
- ssh-terminalSkill
- bbrSkill
- firewallSkill
- net-secSkill
- ssh-keysSkill
- monitorSkill
- process-manageSkill
- obs-opsSkill
- opsSkill
- lnmpSkill
- nginx-rewriteSkill
- php-manageSkill
- reverse-proxySkill
- site-manageSkill
- web-stackSkill
- ssl-manageSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Delete: rm (warnlist, needs --mode yes)
- Very specific: line 20
Delete and chmod go through warnlist (--mode auto denies by default)
- Distinctive: line 22
Write ops and sftp results are audited (host + exit code)
- Very specific: line 42
Delete / chmod go through the gate's warn/block lists (--mode auto denies warn class by default).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
file-ops — SFTP file management
Capabilities (engine status)
- Upload / download (
put/get, space-safe quoting for paths) - Permission:
chmod(warnlist, needs--confirm yes) - Delete:
rm(warnlist, needs--mode yes) - Directory:
mkdir(default 755, write is audited) - Stat:
stat(size / type) - Compress / batch copy-move: run
tar/cp/mvviashell-exec(same gate)
Safety gate
- Delete and chmod go through warnlist (
--mode autodenies by default) file-writeruns the gate on the target (e.g. overwriting/etc/passwdis hard-blocked)- Write ops and sftp results are audited (host + exit code)
Scenarios
- Deploy: upload
dist/to/var/www - Backup: download
/etc/nginxlocally - Permission:
chmod 644 config.json
Forbidden
- Unauthorized hosts
- Silently delete critical paths
EXECUTION (real engine)
This skill is executed by the file-* subcommands of bin/opsctl.js (src/transport.js calls system sftp).
opsctl file-read --host web1 --path /etc/nginx/nginx.conf
opsctl file-write --host web1 --path /var/www/app.js --content "$(cat app.js)" --mode 644
opsctl file-mkdir --host web1 --path /var/www/new --mode 755
opsctl file-delete --host web1 --path /tmp/old.log --mode yes
opsctl file-chmod --host web1 --path /var/www/app.js --mode 644 --confirm yesDelete / chmod go through the gate's warn/block lists (--mode auto denies warn class by default);
writes and executions (host + exit code) are logged to ~/.opsctl/audit.log.
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.

