commit ae7385bcdb702be07096fb90153b1c514b1e7b76 Author: Amir Husayn Panahifar Date: Thu Dec 3 22:42:28 2026 +0330 Add cloud-ops-skills 0.1.0 Capability skills for safe cloud operations through provider MCP servers: shared rules, CDN/DNS, compute, object storage, databases, logging. First provider guides: ArvanCloud (unofficial). Claude Code plugin and marketplace manifests. diff --git a/.claude-plugin/icon.png b/.claude-plugin/icon.png new file mode 100644 index 0000000..8e6b354 Binary files /dev/null and b/.claude-plugin/icon.png differ diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json new file mode 100644 index 0000000..3287504 --- /dev/null +++ b/.claude-plugin/marketplace.json @@ -0,0 +1,21 @@ +{ + "name": "cloud-ops-skills", + "owner": { + "name": "Amir Husayn Panahifar", + "url": "https://github.com/Panahifarah" + }, + "metadata": { + "description": "Agent skills for safe cloud operations through provider MCP servers.", + "version": "0.1.0" + }, + "plugins": [ + { + "name": "cloud-ops-skills", + "source": "./", + "description": "Agent skills for managing cloud infrastructure safely through provider MCP servers: CDN/DNS, compute, object storage, databases, logging, cost. Organised by capability with per-provider guides (first provider: ArvanCloud, unofficial).", + "version": "0.1.0", + "license": "CC-BY-4.0", + "category": "cloud" + } + ] +} diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..f256aba --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,25 @@ +{ + "name": "cloud-ops-skills", + "displayName": "Cloud Ops Skills", + "version": "0.1.0", + "description": "Agent skills for managing cloud infrastructure safely through provider MCP servers: CDN/DNS, compute, object storage, databases, logging, cost. Organised by capability with per-provider guides (first provider: ArvanCloud, unofficial).", + "author": { + "name": "Amir Husayn Panahifar", + "url": "https://github.com/Panahifarah" + }, + "homepage": "https://github.com/Panahifarah/cloud-ops-skills", + "repository": "https://github.com/Panahifarah/cloud-ops-skills", + "license": "CC-BY-4.0", + "keywords": [ + "cloud", + "infrastructure", + "devops", + "mcp", + "skills", + "cdn", + "dns", + "compute", + "object-storage", + "database" + ] +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8e5f2a0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog + +Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions: [SemVer](https://semver.org/). + +## [0.1.0] - 2026-12-03 +### Added +- Capability skills: `cloud-ops` (shared rules), `cloud-ops-cdn`, `cloud-ops-compute`, `cloud-ops-storage`, `cloud-ops-database`, `cloud-ops-logging`. +- First provider: ArvanCloud (unofficial), guides for all six skills, checked against the hosted MCP server (205 tools). +- Claude Code plugin and marketplace manifests. + +[0.1.0]: https://github.com/Panahifarah/cloud-ops-skills/releases/tag/v0.1.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..89765ae --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,17 @@ +# Contributing + +## Add a provider +1. Pick a lowercase file name for the provider, e.g. `exampleprovider.md`. +2. Add `skills/cloud-ops/providers/.md`: how to connect (MCP server URL, auth header or method, tool prefixes), cost/billing tools, and where the provider's own docs are. +3. For each capability the provider's MCP server covers, add `skills/cloud-ops-/providers/.md`: tool names, required arguments, value formats, async behaviour, and which tools are destructive. Skip capabilities it does not cover. +4. Start every guide with "Unofficial guide; checked " and the server version or tool count you checked against. +5. Add a row to the Providers table in `README.md` and an entry in `CHANGELOG.md`. + +## Rules +- Generic rules go in `SKILL.md`; anything vendor-specific goes in `providers/`. Never put a provider or brand name in a skill name. +- Describe only tools and arguments you have seen in the server's tool list or official docs. Mark examples you could not verify as illustrative. +- No API keys, account ids, real domains or IPs in examples. +- Keep `SKILL.md` front matter valid: `name` matching the folder, a plain-text `description`. + +## Release +Bump `version` in `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json`, update `CHANGELOG.md`, tag `vX.Y.Z`. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..da6ab6c --- /dev/null +++ b/LICENSE @@ -0,0 +1,396 @@ +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..374a1b6 --- /dev/null +++ b/README.md @@ -0,0 +1,79 @@ +# Cloud Ops Skills + +Agent skills that let coding agents (Claude Code, Codex, Cursor and other clients that read `SKILL.md`) manage cloud infrastructure +through a provider's MCP server **safely**: approval before every change, no invented identifiers, verification afterwards, cost checks. + +Skills are organised by **capability**, not by vendor. Each skill has a generic workflow plus one guide per provider in `providers/`, +loaded only when that provider is in use. Adding a provider means adding files, not new skills. + +| Skill | Capability | +|---|---| +| `cloud-ops` | shared rules for any provider: production safety, identifiers, verification, secrets, cost. Load first | +| `cloud-ops-cdn` | CDN, cloud DNS, nameserver/DNSSEC setup, WAF rules, DDoS protection | +| `cloud-ops-compute` | servers, plans, images, networks, volumes, security groups | +| `cloud-ops-storage` | S3-compatible object storage: buckets, policies, CORS, lifecycle, versioning, lock, replication | +| `cloud-ops-database` | managed databases: clusters, backups, resize, users, IP allow lists | +| `cloud-ops-logging` | log spaces, routing rules, forwarders | + +## Providers + +| Provider | Guides | MCP server | Checked | +|---|---|---|---| +| ArvanCloud (unofficial) | all six skills | hosted, `https://mcp.arvancloud.ir` | 2026-12-03, 205 tools | + +Provider guides are unofficial and community-maintained. This project is not affiliated with, sponsored or endorsed by any provider listed; +provider names are used only to say which service a guide works with and are trademarks of their owners. + +## Install + +### Skills +Pick one, then restart the agent; skills load automatically from their descriptions. + +**Claude Code plugin:** +``` +/plugin marketplace add Panahifarah/cloud-ops-skills +/plugin install cloud-ops-skills@cloud-ops-skills +``` + +**Any agent** with the [`skills`](https://www.npmjs.com/package/skills) CLI: +```sh +npx skills add Panahifarah/cloud-ops-skills --skill '*' --global +``` + +**By hand** (pin a release tag): +```sh +git clone --branch v0.1.0 https://github.com/Panahifarah/cloud-ops-skills.git +mkdir -p ~/.claude/skills && cp -r cloud-ops-skills/skills/* ~/.claude/skills/ +``` + +### Provider MCP server +Connect your provider's MCP server to the agent with a key that has only the permissions you need (read-only unless you want changes). + +ArvanCloud with Claude Code, key from an environment variable: +```sh +claude mcp add arvancloud --scope user --transport http https://mcp.arvancloud.ir \ + --header "Arvancloud-Api-Key: apikey ${ARVANCLOUD_API_KEY}" +``` +This stores the expanded key in `~/.claude.json`. To keep it out of config files, use a `headersHelper` that reads the key +from a secret store at connect time: +```sh +secret-tool store --label='ArvanCloud API key' service arvancloud account machine-user # paste key at the prompt +cat > ~/.local/bin/arvancloud-mcp-headers <<'EOF' +#!/usr/bin/env bash +set -euo pipefail +printf '{"Arvancloud-Api-Key":"apikey %s"}\n' "$(secret-tool lookup service arvancloud account machine-user)" +EOF +chmod 700 ~/.local/bin/arvancloud-mcp-headers +claude mcp add-json --scope user arvancloud \ + '{"type":"http","url":"https://mcp.arvancloud.ir","headersHelper":"'"$HOME"'/.local/bin/arvancloud-mcp-headers"}' +``` + +## Privacy +The skills are instructions only. They collect nothing and send nothing; the agent talks only to the MCP servers you configure. + +## Contributing +New providers and fixes are welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). Changes: [CHANGELOG.md](CHANGELOG.md). +Mirrors: [GitHub](https://github.com/Panahifarah/cloud-ops-skills), [Gitea](https://src.panahifar.ir/ahp/cloud-ops-skills). + +## License +[CC BY 4.0](LICENSE). © 2026 Amir Husayn Panahifar. diff --git a/assets/icon.svg b/assets/icon.svg new file mode 100644 index 0000000..5e91867 --- /dev/null +++ b/assets/icon.svg @@ -0,0 +1,7 @@ + +Cloud Ops Skills + + + + + \ No newline at end of file diff --git a/skills/cloud-ops-cdn/SKILL.md b/skills/cloud-ops-cdn/SKILL.md new file mode 100644 index 0000000..20f4297 --- /dev/null +++ b/skills/cloud-ops-cdn/SKILL.md @@ -0,0 +1,28 @@ +--- +name: cloud-ops-cdn +description: Manage CDN and cloud DNS on a cloud provider through MCP - domains, DNS records, nameserver/CNAME setup, DNSSEC, WAF firewall rules, DDoS protection, cache purge. Follows the cloud-ops rules; provider details in providers/. +--- +# Cloud ops: CDN and DNS + +Follow the `cloud-ops` skill. Then read `providers/.md` here for tool names and value formats. + +## DNS records +- List the zone's records first; show the current record next to the proposed one. +- Record value formats differ by type and provider: copy the shape from an existing record of the same type, never guess. +- Before bulk edits or zone imports, export the zone and name the export as the rollback. +- Proxying a record through the CDN changes the visible origin and the TLS path; say so. +- After changes, check with `dig` against the provider's nameservers and a public resolver; mention TTL for propagation. + +## Zone setup, nameservers, DNSSEC +- Nameserver changes and DNSSEC changes must be done in step with the registrar (NS records, DS record) or the zone goes offline. Show the registrar action needed before changing anything. + +## WAF and firewall rules +- List rules first: order decides. Insert at a position with the provider's reprioritise call instead of renumbering everything. +- New deny/drop/challenge rules: create disabled, show, enable after approval. Never block the user's own IP, health checkers or webhook sources. +- Changing the default action affects all traffic on the domain. + +## DDoS and challenge modes +- JavaScript or captcha challenges break API clients and webhooks: exclude those paths first. + +## High impact, separate approval each +Deleting, renaming or cloning a domain (clone overwrites the target), cache purge on a busy site (origin load spike), nameserver reset. diff --git a/skills/cloud-ops-cdn/providers/arvancloud.md b/skills/cloud-ops-cdn/providers/arvancloud.md new file mode 100644 index 0000000..b9ca226 --- /dev/null +++ b/skills/cloud-ops-cdn/providers/arvancloud.md @@ -0,0 +1,13 @@ +# ArvanCloud CDN and DNS (`cdn_*`) + +Unofficial guide; checked 2026-12-03. Connection: see `cloud-ops/providers/arvancloud.md`. + +- Start: `cdn_domain_get` (status, setup, plan); find a domain with `cdn_domain_list` (`search`). +- Records: `cdn_dns_record_list` (`type`, `search`), `_get`, `_create`/`_update` (`domain`, `type`, `name`, `value`, optional `ttl`, `cloud`, `upstreamHttps`, `ipFilterMode`), `_delete`. Name `@` is the apex. `value` is polymorphic per type (A/AAAA arrays, CNAME/TXT objects): copy it from `cdn_dns_record_get`. +- Proxy toggle: `cdn_dns_record_set_cloud` (compatible types only). +- Backup and bulk: `cdn_dns_record_export` (BIND) before `cdn_dns_record_import` (may create or replace records). +- Setup: `cdn_domain_create` (`domainType` full, or partial = CNAME setup, subdomains only), `cdn_dns_cname_setup_check`, `cdn_dns_ns_keys_check`. Risky: `cdn_dns_ns_keys_reset`/`_set`, `cdn_dns_dnssec_update`. +- WAF per domain: `cdn_firewall_rule_list/get/create/update/delete/reprioritize` (`afterRuleId`/`beforeRuleId`), `cdn_firewall_settings_get/update` (`defaultAction`). Account-wide rules: `cdn_account_firewall_rule_*`, `cdn_account_firewall_rule_domains_add/remove`. +- Filter expressions are Wireshark-style (`filterExpr`), e.g. `ip.src in {1.2.3.4 5.6.7.0/24}` (illustrative; confirm field names against an existing rule). Actions: allow, deny, drop, bypass, challenge. +- DDoS: `cdn_ddos_settings_get/update` (modes off, cookie, javascript, captcha), path rules `cdn_ddos_rule_*`. +- High impact: `cdn_domain_delete`, `cdn_domain_update` (renames), `cdn_domain_clone` (overwrites target), `cdn_domain_regenerate`. diff --git a/skills/cloud-ops-compute/SKILL.md b/skills/cloud-ops-compute/SKILL.md new file mode 100644 index 0000000..0717f6e --- /dev/null +++ b/skills/cloud-ops-compute/SKILL.md @@ -0,0 +1,24 @@ +--- +name: cloud-ops-compute +description: Manage cloud servers (VMs) on a cloud provider through MCP - regions, plans/flavors, images, server create/resize/power, private networks, volumes, security groups, SSH keys. Follows the cloud-ops rules; provider details in providers/. +--- +# Cloud ops: compute + +Follow the `cloud-ops` skill. Then read `providers/.md` here. + +## Create a server +- Resolve in order: region → available options → plan/flavor → image → SSH key → security group / network. Never invent ids. +- Prefer SSH keys over passwords. Cloud-init/user-data must not contain secrets. +- Show the full argument set and the plan's price before creating; poll until the server is running. + +## Change a server +- Reboot, power off and resize interrupt service: state the expected downtime and confirm the server's name and id back to the user. +- Assume disks cannot shrink unless the provider documents otherwise. +- Volumes: unmount inside the guest before detaching, or data may be corrupted. + +## Security groups +- Read current rules first. Do not open SSH, RDP or database ports to `0.0.0.0/0` or `::/0` unless explicitly asked; suggest a CIDR. +- A server must keep at least one security group that still allows the user's own access. + +## After creation +- Work on the new host itself is remote production work: read-only first, approval for each change. diff --git a/skills/cloud-ops-compute/providers/arvancloud.md b/skills/cloud-ops-compute/providers/arvancloud.md new file mode 100644 index 0000000..7490c98 --- /dev/null +++ b/skills/cloud-ops-compute/providers/arvancloud.md @@ -0,0 +1,10 @@ +# ArvanCloud IaaS (`iaas_*`) + +Unofficial guide; checked 2026-12-03. Connection: see `cloud-ops/providers/arvancloud.md`. Resource guide: `iaas://docs/provision`. + +- Every call except `iaas_region_list` and `iaas_server_list` needs `region`: use the `code` from `iaas_region_list` (e.g. `ir-thr-c2`). +- Create: `iaas_server_options` → `iaas_flavor_list` → `iaas_image_list` → `iaas_ssh_key_list` → `iaas_firewall_list` → `iaas_server_create` (`region`, `name`, `flavorId`, `imageId`, `diskSize`, `securityGroupNames`; plus `enableIpv4: true` or `networkIds`; optional `keyName`, `initScript`, `count`). Poll `iaas_server_get` until ACTIVE; `iaas_server_inquiry` lists the server's actions. +- Power and size: `iaas_server_reboot`, `iaas_server_power_off`/`_on`, `iaas_server_resize` (`flavorId`, optional `diskSize`), `iaas_server_rename`. +- Security groups: `iaas_firewall_create`, `iaas_firewall_get`, `iaas_firewall_rule_add` (`direction` ingress/egress, `protocol`, `ips`, `portFrom`, `portTo`). Rules are add-only here: there is no rule update or delete tool. +- Networks: `iaas_network_create` (`cidr`), `iaas_network_attach`/`_detach`. Volumes: `iaas_volume_create` (`size` in GB), `iaas_volume_attach`/`_detach`. +- There is no server delete tool: deletion happens in the panel. Say so instead of improvising. diff --git a/skills/cloud-ops-database/SKILL.md b/skills/cloud-ops-database/SKILL.md new file mode 100644 index 0000000..78dd916 --- /dev/null +++ b/skills/cloud-ops-database/SKILL.md @@ -0,0 +1,14 @@ +--- +name: cloud-ops-database +description: Manage managed databases (DBaaS) on a cloud provider through MCP - clusters, nodes and replicas, resize, backups and restore, databases and users, IP allow lists, metrics and slow-query logs. Follows the cloud-ops rules; provider details in providers/. +--- +# Cloud ops: managed databases + +Follow the `cloud-ops` skill. Then read `providers/.md` here. + +- Take engine, version, zone and plan from the provider's catalog; never invent them. +- Health first: cluster status, metrics, slow-query logs. Diagnose before resizing: slow queries and missing indexes are usually cheaper to fix than a bigger plan. +- Before resize, node removal, database or cluster delete: create a backup and confirm it is listed as complete. +- IP allow lists are usually replaced as a whole: fetch the current list, show old → new, and never drop the application's or the user's own access silently. +- Generated passwords: show them only when asked; store them in a secret store, never in files. +- Restores: state whether the provider restores into a new cluster or overwrites an existing one, where the data will land, and what happens to current data. diff --git a/skills/cloud-ops-database/providers/arvancloud.md b/skills/cloud-ops-database/providers/arvancloud.md new file mode 100644 index 0000000..3fae23f --- /dev/null +++ b/skills/cloud-ops-database/providers/arvancloud.md @@ -0,0 +1,11 @@ +# ArvanCloud DBaaS (`dbaas_*`) + +Unofficial guide; checked 2026-12-03. Connection: see `cloud-ops/providers/arvancloud.md`. Resource guide: `dbaas://docs/provision`. + +- Catalog first: `dbaas_catalog_get` gives engines, versions, availability zones (e.g. `ir-thr-ba1`) and `flavorRef` plans. +- Create: `dbaas_cluster_create` (`name`, `nodeType`, `engine`, `version`, `az`, `flavorRef`, `volumeSizeGigaBytes`; optional `backupRef` to restore, `multiZone`, `selectedStandbyCount`). No password argument. Returns 202: poll `dbaas_cluster_get` until ACTIVE. +- Health: `dbaas_cluster_get`, `dbaas_cluster_metrics`, `dbaas_cluster_logs` (`category`, e.g. `slow_query`). +- Backups: `dbaas_backup_create` (`name`), `dbaas_backup_list`. +- Changes: `dbaas_cluster_resize` (`flavorRef`, `volumeSizeGigaBytes`), `dbaas_cluster_node_add`/`_remove`, `dbaas_cluster_set_whitelist` (`ips`, replaces the list). +- Objects: `dbaas_database_create`/`_delete`, `dbaas_user_create`/`_delete`. +- Destructive: `dbaas_cluster_delete`, `dbaas_cluster_resize`, `dbaas_cluster_node_remove`, `dbaas_cluster_set_whitelist`, `dbaas_database_delete`, `dbaas_user_delete`. diff --git a/skills/cloud-ops-logging/SKILL.md b/skills/cloud-ops-logging/SKILL.md new file mode 100644 index 0000000..9c3ec76 --- /dev/null +++ b/skills/cloud-ops-logging/SKILL.md @@ -0,0 +1,14 @@ +--- +name: cloud-ops-logging +description: Manage a cloud provider's log routing through MCP - log storage spaces and retention, routing rules (sinks) with filter queries, forwarders to external destinations. Follows the cloud-ops rules; provider details in providers/. +--- +# Cloud ops: logging + +Follow the `cloud-ops` skill. Then read `providers/.md` here. + +- Model the flow before changing it: which sources match which routing rule, and where each rule sends logs (stored space or external forwarder). +- Read the provider's filter-query reference before writing a rule; test a narrow filter first. +- Lowering retention deletes older logs: state the date from which data is lost. +- Deleting a space or forwarder breaks the rules that point to it: list the rules first and handle them. +- Forwarder destinations hold credentials: take them from a secret store; never echo them back. +- Logs can contain personal data: route to external destinations only with the user's explicit intent. diff --git a/skills/cloud-ops-logging/providers/arvancloud.md b/skills/cloud-ops-logging/providers/arvancloud.md new file mode 100644 index 0000000..863b979 --- /dev/null +++ b/skills/cloud-ops-logging/providers/arvancloud.md @@ -0,0 +1,8 @@ +# ArvanCloud Logs (`logs_*`) + +Unofficial guide; checked 2026-12-03. Connection: see `cloud-ops/providers/arvancloud.md`. Query reference: resource `logs://docs/arql`. + +- Spaces (storage): `logs_space_list/get/create/update/delete` (`name`, `region`, `retentionDays`). +- Forwarders (external): `logs_forwarder_list/get/create/update/delete` (`destinationType`, `destinationConfig`). +- Sinks (routing): `logs_sink_list/get/create/update/delete` (`destinationType` `logSpace` or `logForwarder`; `destinationId` is the destination's **name**; `inclusionRule`/`exclusionRule` in ARQL, e.g. `severity == "ERROR" AND resource.type == "cdn"`; `disabled`). +- Create sinks with `disabled: true`, check, then enable. diff --git a/skills/cloud-ops-storage/SKILL.md b/skills/cloud-ops-storage/SKILL.md new file mode 100644 index 0000000..8d1ab9b --- /dev/null +++ b/skills/cloud-ops-storage/SKILL.md @@ -0,0 +1,29 @@ +--- +name: cloud-ops-storage +description: Manage S3-compatible object storage on a cloud provider through MCP - buckets, ACLs and bucket policies, CORS, lifecycle, versioning, object lock, replication, static websites, custom domains, CDN acceleration, access keys. Follows the cloud-ops rules; provider details in providers/. +--- +# Cloud ops: object storage + +Follow the `cloud-ops` skill. Then read `providers/.md` here. + +## Exposure +- Public ACLs, policies with a wildcard principal, static website hosting and public download pages make data readable by anyone. Show exactly what becomes public and confirm. Default to private plus signed URLs. + +## Configuration that replaces +- CORS rules, tags and often policies are replaced as a whole: fetch the current value, merge, show old vs new. +- Lifecycle expiration deletes objects: state prefix, age and an estimate of affected objects; create the rule inactive first where possible. + +## Protection +- Turn on versioning before risky changes. +- Object lock cannot be undone and blocks deletes for the retention period: confirm the duration explicitly. +- Replication that propagates deletes, or a forced sync, can overwrite or remove data at the destination. + +## Credentials +- Regenerating access keys breaks every client using them: separate approval, and list known clients first. +- Keep access keys in a secret store, never in repository files. + +## Object-level work +- For copying, syncing or listing objects, use an S3 client (`rclone`, `aws s3 --endpoint-url ...`) with credentials from a secret store; take the endpoint for the bucket's region from the provider, do not guess it. + +## Irreversible, separate approval each +Bucket delete, purging incomplete uploads, CDN cache purge, enabling multi-zone or object lock. diff --git a/skills/cloud-ops-storage/providers/arvancloud.md b/skills/cloud-ops-storage/providers/arvancloud.md new file mode 100644 index 0000000..fddbdd6 --- /dev/null +++ b/skills/cloud-ops-storage/providers/arvancloud.md @@ -0,0 +1,14 @@ +# ArvanCloud Object Storage (`storage_*`) + +Unofficial guide; checked 2026-12-03. Connection: see `cloud-ops/providers/arvancloud.md`. Resource guides: `storage://docs/*`. + +- Inventory: `storage_bucket_list`, `storage_bucket_get`; usage `storage_stats_storage_get`, `_traffic_get`, `_operations_get`, `_usage_rate_get`, `storage_metrics_get`. +- Create: `storage_bucket_create` (`name`, `region`; optional `isPublic`, `versioningEnabled`, `multiZoneEnabled`, `lockEnabled`, `lockRetention`). +- Exposure: `storage_acl_update` (`public` = public-read, or `private`), `storage_bucket_policy_create/update/get/delete` (create returns 409 if one exists: get, then update), `storage_website_update`, `storage_bucket_download_*` (`isPublic`). +- Replace-style config: `storage_cors_update` (`rules`), `storage_tag_update` (`tags`). +- Lifecycle: `storage_lifecycle_list/get/create/update/delete`, `storage_lifecycle_status_update` (`active`). +- Protection: `storage_versioning_update` (`isActive`), `storage_lock_update` (`retention`). +- Replication: `storage_replication_create` (`syncNow`, `syncOnDelete`), `_sync`, `_detect_sync_status`. +- Keys: `storage_credentials_get` returns the access key only (secret is redacted; read it in the panel). `storage_credentials_refresh` invalidates the current keys. +- Acceleration (CDN in front of a bucket): `storage_acceleration_*`; `storage_acceleration_cache_purge` is irreversible. +- Irreversible: `storage_bucket_delete`, `storage_incomplete_upload_purge`, `storage_multi_zone_enable`. diff --git a/skills/cloud-ops/SKILL.md b/skills/cloud-ops/SKILL.md new file mode 100644 index 0000000..81ff670 --- /dev/null +++ b/skills/cloud-ops/SKILL.md @@ -0,0 +1,31 @@ +--- +name: cloud-ops +description: Safe operating rules for managing a cloud provider account through an MCP server or API - approval before writes, no invented identifiers, verification after changes, cost checks. Load first for any cloud infrastructure task (CDN, DNS, servers, storage, databases, logs, billing); the cloud-ops-* skills build on it. +--- +# Cloud ops: shared rules + +## Identify the provider +- Look at the MCP tools available (tool name prefixes, server name) or ask. Then read `providers/.md` in this skill and in the capability skill you use (`cloud-ops-cdn`, `-compute`, `-storage`, `-database`, `-logging`). +- Supported providers are listed in `providers/`. For a provider without a file, apply these rules with that provider's own documentation, and say that no provider guide exists. + +## Treat the account as production +- Reads are free. Every create, update, delete, power action, purge, import or permission change needs explicit approval **for that action**, after showing: the exact tool and arguments, what it affects (blast radius), expected cost change, and how to roll back. Approval does not carry over to the next step. +- "Destructive" is wider than delete: replacing a list (IP allow lists, CORS rules, tags), importing records, reprioritising firewall rules, resizing, rotating credentials, changing nameservers or DNSSEC, enabling irreversible features (object lock). Use the tool's annotations (`destructiveHint`, `readOnlyHint`) as a minimum, not the full picture. +- Prefer a reversible path: create disabled then enable, snapshot or back up first, export before import. + +## Never invent +- Resolve every identifier (region, zone, plan/flavor, image, engine version, resource id) with list/get/catalog tools. If still ambiguous, ask. +- Paginate list calls to the end before concluding something does not exist. + +## After every change +- Verify with the matching get/list call and report the observed state, not the API's success code. +- Async operations (202/accepted): poll until the resource reaches its ready state, and report if it does not. +- Report API errors verbatim. On 401/403, say the key is invalid or lacks permission and stop; do not retry with other guesses. + +## Secrets +- API keys belong in the MCP client configuration or a secret store. Never ask for them in chat, print them, write them to files or pass them as tool arguments. +- Credentials returned by tools (access keys, database passwords) are shown only when the user asks, and never written to repository files. + +## Cost +- Before creating or resizing paid resources, look up the price with the provider's billing/tariff tools when available and state it with its currency. +- Cost questions: current balance, current billing period usage by product or instance, invoices, unit prices. See the provider file for the tools. diff --git a/skills/cloud-ops/providers/arvancloud.md b/skills/cloud-ops/providers/arvancloud.md new file mode 100644 index 0000000..b69d675 --- /dev/null +++ b/skills/cloud-ops/providers/arvancloud.md @@ -0,0 +1,14 @@ +# ArvanCloud: connection and billing + +Unofficial guide. Not affiliated with ArvanCloud. Checked against the hosted MCP server on 2026-12-03 (205 tools). + +## Connection +- Hosted MCP server: `https://mcp.arvancloud.ir`, header `Arvancloud-Api-Key: apikey `. Optional header `X-Mcp-Toolsets` selects tool groups. +- Key: an IAM Machine User key. 401/403 means the key is revoked or its policy does not allow the action. +- Tool prefixes: `billing_`, `cdn_`, `dbaas_`, `iaas_`, `logs_`, `storage_`. The server's own instructions also require confirming deletes and verifying after writes. +- The server publishes guidance as MCP resources; read the relevant one before non-trivial writes: `cdn://docs/domain-operations`, `iaas://docs/provision`, `dbaas://docs/provision`, `logs://docs/arql`, `storage://docs/{bucket,bucket-config,bucket-policy,replication,acceleration,access-point,antivirus,bucket-download,reports,uploads}`. +- REST API reference for anything the tools do not cover: https://www.arvancloud.ir/fa/dev/api + +## Billing (`billing_*`) +- Read-only except `billing_burn_threshold_set` (minimum 500000 IRR, 2 EUR or 200 RUB): needs approval. +- Balance: `billing_wallet_get`. Usage: `billing_cycle_list` then `billing_cycle_usage_item_list` (filter `productId`, `instanceId`). Invoices: `billing_invoice_list`/`_get`. Unit prices: `billing_tariff_list` (`metricKey`, `currency`, `region`).