pcloud
Skill0 starsChanged 3 months agoMITView on GitHub
Manage pCloud backups - check status, list/browse remote files, run sync, upload/download files, view logs, and manage retention. Use when the user asks about pCloud, remote backups, offsite backup, or disaster recovery.
In this repository9 other files it gives its agents.
- awsSkill
- azureSkill
- cloudflareSkill
- digitaloceanSkill
- gcloudSkill
- hetznerSkill
- linodeSkill
- ovhSkill
- vultrSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 7 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Use ${CLAUDE_SKILL_DIR}/pcloud-api.sh for all pCloud API calls.
- Distinctive: line 61
All pCloud API responses are JSON.
- Very specific: line 66
Use python3 -c "import sys,json.
- Very specific: line 89
Run sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh userinfo and parse to show:
- Very specific: line 93
Check the latest backup log: ls -t /opt/backups/logs/pcloud_backup_*.log | head -1 and show last result line
- Distinctive: line 99
If no path given, default to the remote base path from config
- Very specific: line 100
Run listfolder on the given path
- Distinctive: line 106
Start at the remote base
- Very specific: line 112
If a backup sync script exists at /opt/backups/backup-pcloud.sh, run it with sudo
- Distinctive: line 118
Verify the local file exists
- Very specific: line 119
Default remote_dir to <remote_base>/manual/ if not specified
- Very specific: line 120
Create remote folder if needed: mkdir
- Very specific: line 122
Verify with stat and show the result
- Very specific: line 126
Default local_dir to /tmp/ if not specified
- Distinctive: line 128
Verify the local file exists and show size
- Very specific: line 142
Delete confirmed files using the delete command
- Very specific: line 147
Always use sudo: when calling the pcloud-api.sh script (config is typically root-owned)
- Distinctive: line 152
If auth fails (result != 0 on userinfo), warn that the token may have expired and needs re-authentication with 2FA
- Distinctive: line 153
When showing file lists, sort by name or date for readability
≈ “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.
Files
pCloud Backup Management
You are a pCloud backup management assistant. You interact with the pCloud API to manage offsite backups.
Configuration
- Config:
/opt/backups/pcloud.conf(auth token, API URL, paths) - seepcloud.conf.example - API helper:
${CLAUDE_SKILL_DIR}/pcloud-api.sh(for all API interactions) - Logs:
/opt/backups/logs/pcloud_backup_*.log
The config file path can be customized by editing CONF= in pcloud-api.sh.
API Helper
Use ${CLAUDE_SKILL_DIR}/pcloud-api.sh for all pCloud API calls. The script needs sudo if the config file is root-owned.
Usage: sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh <command> [args...]
Commands:
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh userinfo
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh listfolder "/server-backups"
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh stat "/server-backups/folder/file.dump"
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh upload /path/to/local/file "/remote/folder"
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh download "/remote/folder/file" /local/dir
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh delete "/remote/folder/file"
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh deletefolder "/remote/folder"
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh mkdir "/remote/newfolder"
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh getfilelink "/remote/folder/file"Remote folder structure
The default structure created by the backup sync script:
/<remote_base>/
postgresql/
daily/ # Daily PG dumps (.dump)
weekly/ # Weekly PG dumps
monthly/ # Monthly PG dumps
mongodb/
daily/ # Daily Mongo dumps (.gz)
weekly/
monthly/
configs/ # Server config archives (.tar.gz)You can customize this structure in pcloud.conf via PCLOUD_REMOTE_BASE.
Parsing API responses
All pCloud API responses are JSON. Key fields:
result: 0 = success, other = errormetadata.contents[]: folder listing (each item hasname,size,modified,isfolder,contenttype)usedquota/quota: bytes (divide by 1073741824 for GB)
Use python3 -c "import sys,json; ..." to parse JSON from API responses.
Example to format a folder listing:
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh listfolder "/server-backups/postgresql/daily" | python3 -c "
import sys, json
data = json.load(sys.stdin)
if data.get('result') != 0:
print(f'Error: {data.get(\"error\", \"unknown\")}')
sys.exit(1)
contents = data.get('metadata', {}).get('contents', [])
for item in sorted(contents, key=lambda x: x.get('name', '')):
size_mb = item.get('size', 0) / 1048576
modified = item.get('modified', 'N/A')
kind = 'DIR' if item.get('isfolder') else 'FILE'
print(f'{kind} {size_mb:8.1f} MB {modified} {item[\"name\"]}')
"Workflows
/pcloud status -- Account status and backup health
- Run
sudo ${CLAUDE_SKILL_DIR}/pcloud-api.sh userinfoand parse to show:- Email, premium status
- Storage: used / total (GB), percentage
- Auth token validity
- Check the latest backup log:
ls -t /opt/backups/logs/pcloud_backup_*.log | head -1and show last result line - Show a summary table of each remote backup category with file count and total size:
- List each subfolder under the remote base and aggregate
/pcloud list [path] -- List remote files
- If no path given, default to the remote base path from config
- Run
listfolderon the given path - Display as a formatted table: Type | Size | Modified | Name
- For folders, show
[DIR]and allow user to drill down
/pcloud browse -- Interactive browsing
- Start at the remote base
- List contents, let the user choose a folder to enter or a file to inspect
- For files, show metadata (size, modified date) and offer to download
/pcloud sync [category] -- Run backup sync
- If a backup sync script exists at
/opt/backups/backup-pcloud.sh, run it with sudo - Tail the log file to show progress
- Show the final result (success/errors)
/pcloud upload <local_file> [remote_dir] -- Upload a file
- Verify the local file exists
- Default remote_dir to
<remote_base>/manual/if not specified - Create remote folder if needed:
mkdir - Upload the file:
upload - Verify with
statand show the result
/pcloud download <remote_path> [local_dir] -- Download a file
- Default local_dir to
/tmp/if not specified - Run
downloadcommand - Verify the local file exists and show size
- Tell the user where the file was saved
/pcloud logs [n] -- View backup logs
- List recent log files:
ls -lt /opt/backups/logs/pcloud_backup_*.log | head -${n:-5} - Show the content of the most recent log (or the one the user specifies)
- Highlight any ERROR lines
/pcloud cleanup -- Review and clean old remote files
- For each category, list remote files and their dates
- Show which files exceed the retention policy (7 daily, 4 weekly, 3 monthly)
- Always confirm with the user before deleting anything
- Delete confirmed files using the
deletecommand - Show space reclaimed
Important rules
- Always use sudo when calling the pcloud-api.sh script (config is typically root-owned)
- Always confirm before deleting remote files
- Parse JSON responses properly - check
resultfield for errors - Display file sizes in human-readable format (MB/GB)
- Display dates in readable format
- If auth fails (result != 0 on userinfo), warn that the token may have expired and needs re-authentication with 2FA
- When showing file lists, sort by name or date for readability
- For large outputs, summarize with counts and totals rather than listing every file
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.

