agentleFS
liutaosliutaos/ops-skills/skills/infra-ops/file-ops/SKILL.md

file-ops

Skill0 starsChanged 53 days 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.

1 other project uses a version of this.

Adopted by

Most recently taken up by

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
  1. Very specific:

    Delete: rm (warnlist, needs --mode yes)

    line 14
  2. Very specific:

    Delete and chmod go through warnlist (--mode auto denies by default)

    line 20
  3. Distinctive:

    Write ops and sftp results are audited (host + exit code)

    line 22
  4. Very specific:

    Delete / chmod go through the gate's warn/block lists (--mode auto denies warn class by default).

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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/mv via shell-exec (same gate)

Safety gate

  • Delete and chmod go through warnlist (--mode auto denies by default)
  • file-write runs the gate on the target (e.g. overwriting /etc/passwd is hard-blocked)
  • Write ops and sftp results are audited (host + exit code)

Scenarios

  • Deploy: upload dist/ to /var/www
  • Backup: download /etc/nginx locally
  • 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 yes

Delete / 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.