agentleFS
tiangong-aitiangong-ai/agent-skills/synology-file-station/SKILL.md

synology-file-station

Skill11 starsChanged 3 months agoMITView on GitHub

Operate Synology DSM File Station via WebAPI for major file workflows including listing, search, folder creation, rename, copy/move, delete, upload/download, and archive extract. Use when tasks need scripted NAS file operations with service address, username, and password loaded from environment variables. Note: compress is temporarily unavailable in this skill.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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. Distinctive:

    Run major Synology File Station file operations with one CLI script.

    line 9
  2. Distinctive:

    Read connection credentials from env instead of hardcoding secrets.

    line 10
  3. Very specific:

    Run the required file operation command (see references/commands.md).

    line 27
  4. Very specific:

    Read/browse: info, list-shares, list, get-info

    line 30
  5. Very specific:

    Search: search-start, search-list, search-stop, search-clean

    line 31

≈ “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.

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

Synology File Station

Core Goal

  • Run major Synology File Station file operations with one CLI script.
  • Read connection credentials from env instead of hardcoding secrets.
  • Return JSON output suitable for automation pipelines.

Workflow

  1. Prepare env variables (see references/env.md and assets/config.example.env).
  2. Validate config:
python3 scripts/synology_file_station.py check-config
  1. Optional connection probe:
python3 scripts/synology_file_station.py check-config --probe
  1. Run the required file operation command (see references/commands.md).

Major Operations

  • Read/browse: info, list-shares, list, get-info
  • Search: search-start, search-list, search-stop, search-clean
  • Directory/file mutation: mkdir, rename, copy, move, delete
  • Transfer: upload, download
  • Archive workflows: extract (compress is temporarily unavailable)
  • Background task control: background-list, task-status, task-stop

Environment Contract

Required env:

  • SYNOLOGY_BASE_URL
  • SYNOLOGY_USERNAME
  • SYNOLOGY_PASSWORD

Optional env:

  • SYNOLOGY_VERIFY_SSL
  • SYNOLOGY_TIMEOUT
  • SYNOLOGY_SESSION
  • SYNOLOGY_READONLY (default false; set true to block mutation commands)
  • SYNOLOGY_MUTATION_ALLOW_PATHS (optional mutation path allowlist)

Output Contract

  • Success: JSON object with type=status and operation-specific fields.
  • Failure: JSON object with type=error and structured error metadata.
  • Exit code:
    • 0: success
    • 1: runtime/API error
    • 2: invalid env configuration

References

  • references/env.md
  • references/commands.md

Assets

  • assets/config.example.env

Scripts

  • scripts/synology_file_station.py

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.