[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75EPTHFG8F22V0BC7TBFYDE":3,"skill-same:01M75EPTHFG8F22V0BC7TBFYDE":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M75EPTHFG8F22V0BC7TBFYDE","arcane-docker-manager",null,"javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcougz\u002Farcane-docker-manager\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# OpenClaw - Arcane Docker Management Skill\r\n\r\n## Overview\r\nThis skill enables you to interact with your Arcane Docker Management API to manage Docker containers, compose stacks, templates, networks, volumes, images, and system monitoring. Arcane is a comprehensive Docker management platform with a REST API.\r\n\r\n## When to Use This Skill\r\nUse this skill when the user requests any of the following:\r\n- Managing Docker containers (list, start, stop, restart, remove, inspect)\r\n- Managing Docker Compose stacks (deploy, update, remove, view logs)\r\n- Working with Docker templates (create, deploy, manage)\r\n- Managing Docker images (list, pull, remove, prune)\r\n- Managing Docker networks and volumes\r\n- Monitoring system resources and Docker statistics\r\n- Managing user accounts and API keys\r\n- Viewing system logs and events\r\n\r\n## API Configuration\r\n\r\n### Base URL\r\nThe API base URL should be configured by the user. Default: `http:\u002F\u002Flocalhost:3552\u002Fapi`\r\n\r\n### Authentication\r\nArcane supports two authentication methods:\r\n\r\n1. **Bearer Token (JWT)**: Obtained via login endpoint\r\n2. **API Key**: Long-lived authentication using `X-API-Key` header\r\n\r\n#### Getting a Bearer Token\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fauth\u002Flogin\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"username\": \"admin\",\r\n    \"password\": \"your_password\"\r\n  }'\r\n```\r\n\r\nResponse includes `token`, `refreshToken`, and `expiresAt`.\r\n\r\n#### Using API Keys\r\nAPI keys can be created and managed through the `\u002Fapikeys` endpoints. Use the `X-API-Key` header for authentication.\r\n\r\n## Core Functionality\r\n\r\n### 1. Container Management\r\n\r\n#### List Containers\r\n```bash\r\n# Get all containers\r\ncurl -X GET \"$BASE_URL\u002Fcontainers\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Filter by status\r\ncurl -X GET \"$BASE_URL\u002Fcontainers?status=running\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Search containers\r\ncurl -X GET \"$BASE_URL\u002Fcontainers?search=nginx\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Container Operations\r\n```bash\r\n# Start container\r\ncurl -X POST \"$BASE_URL\u002Fcontainers\u002F{id}\u002Fstart\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Stop container\r\ncurl -X POST \"$BASE_URL\u002Fcontainers\u002F{id}\u002Fstop\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Restart container\r\ncurl -X POST \"$BASE_URL\u002Fcontainers\u002F{id}\u002Frestart\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Remove container\r\ncurl -X DELETE \"$BASE_URL\u002Fcontainers\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get container details\r\ncurl -X GET \"$BASE_URL\u002Fcontainers\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get container logs\r\ncurl -X GET \"$BASE_URL\u002Fcontainers\u002F{id}\u002Flogs?tail=100\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get container stats\r\ncurl -X GET \"$BASE_URL\u002Fcontainers\u002F{id}\u002Fstats\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Advanced Container Operations\r\n```bash\r\n# Execute command in container\r\ncurl -X POST \"$BASE_URL\u002Fcontainers\u002F{id}\u002Fexec\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"command\": [\"ls\", \"-la\"],\r\n    \"workingDir\": \"\u002Fapp\"\r\n  }'\r\n\r\n# Rename container\r\ncurl -X POST \"$BASE_URL\u002Fcontainers\u002F{id}\u002Frename\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"new-container-name\"\r\n  }'\r\n\r\n# Update container resources\r\ncurl -X POST \"$BASE_URL\u002Fcontainers\u002F{id}\u002Fupdate\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"cpuShares\": 512,\r\n    \"memory\": 536870912,\r\n    \"restartPolicy\": \"unless-stopped\"\r\n  }'\r\n```\r\n\r\n### 2. Docker Compose Stack Management\r\n\r\n#### List Stacks\r\n```bash\r\ncurl -X GET \"$BASE_URL\u002Fstacks\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Deploy Stack from Template\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fstacks\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"my-stack\",\r\n    \"templateId\": \"template-id\",\r\n    \"envVars\": {\r\n      \"PORT\": \"8080\",\r\n      \"DATABASE_URL\": \"postgres:\u002F\u002F...\"\r\n    }\r\n  }'\r\n```\r\n\r\n#### Deploy Stack from Compose File\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fstacks\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"my-stack\",\r\n    \"composeContent\": \"version: \\\"3.8\\\"\\nservices:\\n  web:\\n    image: nginx:latest\\n    ports:\\n      - \\\"80:80\\\"\"\r\n  }'\r\n```\r\n\r\n#### Stack Operations\r\n```bash\r\n# Get stack details\r\ncurl -X GET \"$BASE_URL\u002Fstacks\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Update stack\r\ncurl -X PUT \"$BASE_URL\u002Fstacks\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"envVars\": {\r\n      \"PORT\": \"9090\"\r\n    }\r\n  }'\r\n\r\n# Remove stack\r\ncurl -X DELETE \"$BASE_URL\u002Fstacks\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Start stack\r\ncurl -X POST \"$BASE_URL\u002Fstacks\u002F{id}\u002Fstart\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Stop stack\r\ncurl -X POST \"$BASE_URL\u002Fstacks\u002F{id}\u002Fstop\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Restart stack\r\ncurl -X POST \"$BASE_URL\u002Fstacks\u002F{id}\u002Frestart\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get stack logs\r\ncurl -X GET \"$BASE_URL\u002Fstacks\u002F{id}\u002Flogs?tail=100\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Pull latest images for stack\r\ncurl -X POST \"$BASE_URL\u002Fstacks\u002F{id}\u002Fpull\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n### 3. Template Management\r\n\r\n#### List Templates\r\n```bash\r\ncurl -X GET \"$BASE_URL\u002Ftemplates\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Create Template\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Ftemplates\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"nginx-template\",\r\n    \"description\": \"Basic nginx web server\",\r\n    \"content\": \"version: \\\"3.8\\\"\\nservices:\\n  web:\\n    image: nginx:{{VERSION}}\\n    ports:\\n      - \\\"{{PORT}}:80\\\"\",\r\n    \"variables\": [\r\n      {\r\n        \"name\": \"VERSION\",\r\n        \"description\": \"Nginx version\",\r\n        \"defaultValue\": \"latest\"\r\n      },\r\n      {\r\n        \"name\": \"PORT\",\r\n        \"description\": \"Host port\",\r\n        \"defaultValue\": \"80\"\r\n      }\r\n    ],\r\n    \"category\": \"web-servers\",\r\n    \"tags\": [\"nginx\", \"web\"]\r\n  }'\r\n```\r\n\r\n#### Template Operations\r\n```bash\r\n# Get template\r\ncurl -X GET \"$BASE_URL\u002Ftemplates\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Update template\r\ncurl -X PUT \"$BASE_URL\u002Ftemplates\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"updated-template-name\",\r\n    \"description\": \"Updated description\"\r\n  }'\r\n\r\n# Delete template\r\ncurl -X DELETE \"$BASE_URL\u002Ftemplates\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get template content with parsed variables\r\ncurl -X GET \"$BASE_URL\u002Ftemplates\u002F{id}\u002Fcontent\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Global Template Variables\r\n```bash\r\n# Get global variables\r\ncurl -X GET \"$BASE_URL\u002Ftemplates\u002Fglobal-variables\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Update global variables\r\ncurl -X PUT \"$BASE_URL\u002Ftemplates\u002Fglobal-variables\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"GLOBAL_DOMAIN\": \"example.com\",\r\n    \"GLOBAL_NETWORK\": \"traefik-public\"\r\n  }'\r\n```\r\n\r\n### 4. Image Management\r\n\r\n#### List Images\r\n```bash\r\ncurl -X GET \"$BASE_URL\u002Fimages\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Pull Image\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fimages\u002Fpull\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"image\": \"nginx:latest\"\r\n  }'\r\n```\r\n\r\n#### Image Operations\r\n```bash\r\n# Get image details\r\ncurl -X GET \"$BASE_URL\u002Fimages\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Remove image\r\ncurl -X DELETE \"$BASE_URL\u002Fimages\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Prune unused images\r\ncurl -X POST \"$BASE_URL\u002Fimages\u002Fprune\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Search images in registry\r\ncurl -X GET \"$BASE_URL\u002Fimages\u002Fsearch?term=nginx\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n### 5. Network Management\r\n\r\n#### List Networks\r\n```bash\r\ncurl -X GET \"$BASE_URL\u002Fnetworks\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Create Network\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fnetworks\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"my-network\",\r\n    \"driver\": \"bridge\",\r\n    \"internal\": false,\r\n    \"attachable\": true\r\n  }'\r\n```\r\n\r\n#### Network Operations\r\n```bash\r\n# Get network details\r\ncurl -X GET \"$BASE_URL\u002Fnetworks\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Remove network\r\ncurl -X DELETE \"$BASE_URL\u002Fnetworks\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Connect container to network\r\ncurl -X POST \"$BASE_URL\u002Fnetworks\u002F{id}\u002Fconnect\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"containerId\": \"container-id\"\r\n  }'\r\n\r\n# Disconnect container from network\r\ncurl -X POST \"$BASE_URL\u002Fnetworks\u002F{id}\u002Fdisconnect\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"containerId\": \"container-id\"\r\n  }'\r\n\r\n# Prune unused networks\r\ncurl -X POST \"$BASE_URL\u002Fnetworks\u002Fprune\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n### 6. Volume Management\r\n\r\n#### List Volumes\r\n```bash\r\ncurl -X GET \"$BASE_URL\u002Fvolumes\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Create Volume\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fvolumes\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"my-volume\",\r\n    \"driver\": \"local\",\r\n    \"labels\": {\r\n      \"project\": \"my-app\"\r\n    }\r\n  }'\r\n```\r\n\r\n#### Volume Operations\r\n```bash\r\n# Get volume details\r\ncurl -X GET \"$BASE_URL\u002Fvolumes\u002F{name}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Remove volume\r\ncurl -X DELETE \"$BASE_URL\u002Fvolumes\u002F{name}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Prune unused volumes\r\ncurl -X POST \"$BASE_URL\u002Fvolumes\u002Fprune\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n### 7. System Monitoring\r\n\r\n#### System Information\r\n```bash\r\n# Get Docker system info\r\ncurl -X GET \"$BASE_URL\u002Fsystem\u002Finfo\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get Docker version\r\ncurl -X GET \"$BASE_URL\u002Fsystem\u002Fversion\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get system stats\r\ncurl -X GET \"$BASE_URL\u002Fsystem\u002Fstats\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get disk usage\r\ncurl -X GET \"$BASE_URL\u002Fsystem\u002Fdf\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Events and Logs\r\n```bash\r\n# Get system events (streaming)\r\ncurl -X GET \"$BASE_URL\u002Fsystem\u002Fevents\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Get events with filters\r\ncurl -X GET \"$BASE_URL\u002Fsystem\u002Fevents?since=1609459200&type=container\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n### 8. User Management\r\n\r\n#### List Users\r\n```bash\r\ncurl -X GET \"$BASE_URL\u002Fusers\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Create User\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fusers\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"username\": \"newuser\",\r\n    \"email\": \"user@example.com\",\r\n    \"password\": \"securepassword123\",\r\n    \"role\": \"user\"\r\n  }'\r\n```\r\n\r\n#### User Operations\r\n```bash\r\n# Get user details\r\ncurl -X GET \"$BASE_URL\u002Fusers\u002F{userId}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Update user\r\ncurl -X PUT \"$BASE_URL\u002Fusers\u002F{userId}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"email\": \"newemail@example.com\",\r\n    \"role\": \"admin\"\r\n  }'\r\n\r\n# Delete user\r\ncurl -X DELETE \"$BASE_URL\u002Fusers\u002F{userId}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Change password\r\ncurl -X PUT \"$BASE_URL\u002Fauth\u002Fpassword\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"currentPassword\": \"oldpassword\",\r\n    \"newPassword\": \"newpassword123\"\r\n  }'\r\n```\r\n\r\n### 9. API Key Management\r\n\r\n#### List API Keys\r\n```bash\r\ncurl -X GET \"$BASE_URL\u002Fapikeys\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n#### Create API Key\r\n```bash\r\ncurl -X POST \"$BASE_URL\u002Fapikeys\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"CI\u002FCD Pipeline Key\",\r\n    \"description\": \"API key for automated deployments\",\r\n    \"expiresAt\": \"2025-12-31T23:59:59Z\"\r\n  }'\r\n```\r\n\r\n#### API Key Operations\r\n```bash\r\n# Get API key details\r\ncurl -X GET \"$BASE_URL\u002Fapikeys\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n\r\n# Update API key\r\ncurl -X PUT \"$BASE_URL\u002Fapikeys\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\" \\\r\n  -H \"Content-Type: application\u002Fjson\" \\\r\n  -d '{\r\n    \"name\": \"Updated Key Name\",\r\n    \"description\": \"Updated description\"\r\n  }'\r\n\r\n# Delete API key\r\ncurl -X DELETE \"$BASE_URL\u002Fapikeys\u002F{id}\" \\\r\n  -H \"Authorization: Bearer $TOKEN\"\r\n```\r\n\r\n## Implementation Guidelines\r\n\r\n### Error Handling\r\nAll API responses follow a standard format:\r\n```json\r\n{\r\n  \"success\": true|false,\r\n  \"data\": {...},\r\n  \"message\": \"Success or error message\"\r\n}\r\n```\r\n\r\nError responses use HTTP problem details (RFC 7807):\r\n```json\r\n{\r\n  \"type\": \"about:blank\",\r\n  \"title\": \"Error title\",\r\n  \"status\": 400,\r\n  \"detail\": \"Detailed error message\"\r\n}\r\n```\r\n\r\n### Pagination\r\nList endpoints support pagination with these query parameters:\r\n- `start`: Starting index (default: 0)\r\n- `limit`: Items per page (default: 20)\r\n- `sort`: Column to sort by\r\n- `order`: Sort direction (asc\u002Fdesc, default: asc)\r\n- `search`: Search query\r\n\r\nResponse includes pagination metadata:\r\n```json\r\n{\r\n  \"success\": true,\r\n  \"data\": [...],\r\n  \"pagination\": {\r\n    \"start\": 0,\r\n    \"limit\": 20,\r\n    \"total\": 100,\r\n    \"hasMore\": true\r\n  }\r\n}\r\n```\r\n\r\n### Using Python\r\nWhen implementing Arcane operations in Python, use the `requests` library:\r\n\r\n```python\r\nimport requests\r\n\r\nBASE_URL = \"http:\u002F\u002Flocalhost:3552\u002Fapi\"\r\nTOKEN = \"your-jwt-token\"\r\n\r\nheaders = {\r\n    \"Authorization\": f\"Bearer {TOKEN}\",\r\n    \"Content-Type\": \"application\u002Fjson\"\r\n}\r\n\r\n# List containers\r\nresponse = requests.get(f\"{BASE_URL}\u002Fcontainers\", headers=headers)\r\ncontainers = response.json()\r\n\r\n# Deploy stack\r\nstack_data = {\r\n    \"name\": \"my-stack\",\r\n    \"templateId\": \"template-id\",\r\n    \"envVars\": {\r\n        \"PORT\": \"8080\"\r\n    }\r\n}\r\nresponse = requests.post(f\"{BASE_URL}\u002Fstacks\", headers=headers, json=stack_data)\r\nresult = response.json()\r\n```\r\n\r\n### Using Bash\r\nFor simple operations, use curl with error handling:\r\n\r\n```bash\r\n#!\u002Fbin\u002Fbash\r\n\r\nBASE_URL=\"http:\u002F\u002Flocalhost:3552\u002Fapi\"\r\nTOKEN=\"your-jwt-token\"\r\n\r\n# Function to make authenticated requests\r\napi_call() {\r\n    local method=$1\r\n    local endpoint=$2\r\n    local data=$3\r\n    \r\n    if [ -z \"$data\" ]; then\r\n        curl -s -X \"$method\" \"$BASE_URL\u002F$endpoint\" \\\r\n            -H \"Authorization: Bearer $TOKEN\"\r\n    else\r\n        curl -s -X \"$method\" \"$BASE_URL\u002F$endpoint\" \\\r\n            -H \"Authorization: Bearer $TOKEN\" \\\r\n            -H \"Content-Type: application\u002Fjson\" \\\r\n            -d \"$data\"\r\n    fi\r\n}\r\n\r\n# Example: List containers\r\ncontainers=$(api_call GET \"containers\")\r\necho \"$containers\" | jq '.data[] | {id, name, status}'\r\n```\r\n\r\n## Common Workflows\r\n\r\n### 1. Deploy Application Stack\r\n```python\r\n# 1. Create or select template\r\ntemplate_data = {\r\n    \"name\": \"webapp-template\",\r\n    \"content\": \"version: '3.8'\\nservices:\\n  web:\\n    image: myapp:{{VERSION}}\\n    ports:\\n      - '{{PORT}}:8080'\",\r\n    \"variables\": [\r\n        {\"name\": \"VERSION\", \"defaultValue\": \"latest\"},\r\n        {\"name\": \"PORT\", \"defaultValue\": \"80\"}\r\n    ]\r\n}\r\ntemplate = requests.post(f\"{BASE_URL}\u002Ftemplates\", headers=headers, json=template_data).json()\r\n\r\n# 2. Deploy stack from template\r\nstack_data = {\r\n    \"name\": \"production-webapp\",\r\n    \"templateId\": template[\"data\"][\"id\"],\r\n    \"envVars\": {\r\n        \"VERSION\": \"v1.2.3\",\r\n        \"PORT\": \"8080\"\r\n    }\r\n}\r\nstack = requests.post(f\"{BASE_URL}\u002Fstacks\", headers=headers, json=stack_data).json()\r\n\r\n# 3. Monitor deployment\r\nstack_id = stack[\"data\"][\"id\"]\r\nlogs = requests.get(f\"{BASE_URL}\u002Fstacks\u002F{stack_id}\u002Flogs?tail=50\", headers=headers).json()\r\n```\r\n\r\n### 2. Scale and Monitor Containers\r\n```python\r\n# Get running containers\r\ncontainers = requests.get(f\"{BASE_URL}\u002Fcontainers?status=running\", headers=headers).json()\r\n\r\n# Get stats for each container\r\nfor container in containers[\"data\"]:\r\n    stats = requests.get(f\"{BASE_URL}\u002Fcontainers\u002F{container['id']}\u002Fstats\", headers=headers).json()\r\n    print(f\"{container['name']}: CPU {stats['data']['cpuPercent']:.2f}%, Memory {stats['data']['memoryPercent']:.2f}%\")\r\n\r\n# Update container resources if needed\r\nupdate_data = {\r\n    \"cpuShares\": 1024,\r\n    \"memory\": 1073741824  # 1GB\r\n}\r\nrequests.post(f\"{BASE_URL}\u002Fcontainers\u002F{container_id}\u002Fupdate\", headers=headers, json=update_data)\r\n```\r\n\r\n### 3. Cleanup and Maintenance\r\n```python\r\n# Prune unused resources\r\nrequests.post(f\"{BASE_URL}\u002Fimages\u002Fprune\", headers=headers)\r\nrequests.post(f\"{BASE_URL}\u002Fvolumes\u002Fprune\", headers=headers)\r\nrequests.post(f\"{BASE_URL}\u002Fnetworks\u002Fprune\", headers=headers)\r\n\r\n# Get disk usage before and after\r\ndf_before = requests.get(f\"{BASE_URL}\u002Fsystem\u002Fdf\", headers=headers).json()\r\n# ... perform cleanup ...\r\ndf_after = requests.get(f\"{BASE_URL}\u002Fsystem\u002Fdf\", headers=headers).json()\r\n```\r\n\r\n## Best Practices\r\n\r\n1. **Authentication**: Always use API keys for automated scripts and services. Use JWT tokens for interactive sessions.\r\n\r\n2. **Error Handling**: Check response status codes and handle errors appropriately:\r\n   - 200: Success\r\n   - 400: Bad request (validation error)\r\n   - 401: Unauthorized\r\n   - 403: Forbidden\r\n   - 404: Not found\r\n   - 500: Internal server error\r\n\r\n3. **Resource Management**: \r\n   - Always specify resource limits when creating containers\r\n   - Use labels to organize resources\r\n   - Regularly prune unused resources\r\n\r\n4. **Security**:\r\n   - Store API keys and tokens securely (use environment variables)\r\n   - Use HTTPS in production\r\n   - Implement proper access controls with user roles\r\n   - Rotate API keys regularly\r\n\r\n5. **Monitoring**:\r\n   - Monitor container stats regularly\r\n   - Set up alerts for resource usage\r\n   - Review system logs periodically\r\n\r\n6. **Templates**:\r\n   - Use variables for configurable values\r\n   - Document template variables clearly\r\n   - Version control your templates\r\n   - Use global variables for shared configuration\r\n\r\n## Troubleshooting\r\n\r\n### Common Issues\r\n\r\n**Authentication Failed**\r\n- Verify token is not expired (check `expiresAt`)\r\n- Use refresh token to get new access token\r\n- Verify API key is correct and not expired\r\n\r\n**Container Won't Start**\r\n- Check container logs: `GET \u002Fcontainers\u002F{id}\u002Flogs`\r\n- Inspect container: `GET \u002Fcontainers\u002F{id}`\r\n- Verify port conflicts and resource availability\r\n\r\n**Stack Deployment Failed**\r\n- Validate compose file syntax\r\n- Check template variables are properly defined\r\n- Review stack logs: `GET \u002Fstacks\u002F{id}\u002Flogs`\r\n\r\n**Resource Not Found**\r\n- Verify resource ID is correct\r\n- Check if resource was deleted\r\n- Ensure proper permissions\r\n\r\n## Notes\r\n\r\n- All timestamps are in ISO 8601 format (UTC)\r\n- Container IDs can be full or short (first 12 characters)\r\n- Image names support full registry paths (registry.example.com\u002Fimage:tag)\r\n- Network and volume names must be unique\r\n- Stack names must be unique per user\u002Fproject\r\n\r\n## Reference Links\r\n\r\nFor complete API documentation and schema definitions, refer to the OpenAPI specification provided in the JSON schema.",{},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fcougz\u002Farcane-docker-manager",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill arcane-docker-manager",{"tool":37,"command":38},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill arcane-docker-manager",{"tool":40,"command":41},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill arcane-docker-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcougz\u002Farcane-docker-manager\u002FSKILL.md",true,[],[46,54,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":53},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":53},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":53},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":53},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":53},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":53},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]