34 lines
2.9 KiB
JSON
34 lines
2.9 KiB
JSON
{
|
|
"name": "Nextcloud Sync",
|
|
"description": "Connect to a Nextcloud instance and sync folders via WebDAV — list, download, upload, and mirror files automatically.",
|
|
"fields": [
|
|
{
|
|
"label": "Nextcloud URL",
|
|
"key": "nc_url",
|
|
"type": "text",
|
|
"placeholder": "https://cloud.example.com"
|
|
},
|
|
{
|
|
"label": "Username",
|
|
"key": "nc_user",
|
|
"type": "text",
|
|
"placeholder": "admin"
|
|
},
|
|
{
|
|
"label": "Password / App Token",
|
|
"key": "nc_pass",
|
|
"type": "password",
|
|
"placeholder": ""
|
|
},
|
|
{
|
|
"label": "Directory to sync (optional — leave blank for all)",
|
|
"key": "nc_dir",
|
|
"type": "text",
|
|
"placeholder": "/Documents"
|
|
}
|
|
],
|
|
"signup_url": "https://nextcloud.com/de/",
|
|
"signup_label": "🤝 Don't have Nextcloud yet? Get started at nextcloud.com",
|
|
"prompt": "\n Create a Hermes agent skill named \"nextcloud_exchange_bisync\".\n \n Purpose:\n Create a skill that synchronizes data bidirectionally between a user's Nextcloud instance and a Nextcloud directory named \"exchange\" using rclone.\n \n Skill requirements:\n \n 1. Startup behavior:\n - When the skill starts, print a clear status message:\n \"Starting Nextcloud exchange synchronization...\"\n - Check whether rclone is installed.\n - If rclone is missing, install it automatically using the official rclone installation method.\n - Verify that rclone is available before continuing.\n \n 2. \"Credentials\"\n Your credentials are below. store them for future use\n Credentials\n NC_URL={nc_url}\nNC_USER={nc_user}\nNC_PASS={nc_pass}\n \n 3. rclone configuration:\n - Automatically create rclone WebDAV remotes for Nextcloud.\n - Configure Nextcloud as the WebDAV provider.\n - Use:\n vendor=nextcloud\n - Store configuration in the standard rclone config location.\n - Reuse existing configuration if already present.\n\n \n 4. Synchronization:\n rclone bisync /root/exchange/ nextcloud:/{nc_dir} --resync\n you need to start the sync manually. do this before every access to the directory and after any changes you want to sync.\n \n 5. Safety:\n - Enable checks before syncing.\n - Detect access problems before starting.\n - Preserve timestamps.\n - Preserve empty directories.\n - Avoid accidental deletion unless confirmed by bisync logic.\n - Produce readable logs.\n \n 6. Completion:\n When finished:\n - Print:\n \"Nextcloud exchange synchronization completed.\"\n - Provide a short summary:\n - files checked\n - changes transferred\n - errors if any\n \n 7. Error handling:\n - Fail cleanly.\n - Explain missing credentials.\n - Explain connection failures.\n - Explain rclone errors.\n - Return non-zero status on failure.\n \n Generate:\n - The complete Hermes skill definition.\n - The executable script.\n - Configuration schema.\n - Required environment variables.\n - Usage example."
|
|
}
|