agentleFS
danjdewhurstdanjdewhurst/hcloud-skills/skills/hcloud-security/SKILL.md

hcloud-security

Skill4 starsChanged 10 months agoMITView on GitHub

Use when the user needs to manage SSH keys, TLS/SSL certificates (uploaded or managed), resource protection, reverse DNS, or labels across Hetzner Cloud resources.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All managed resources support labels for organisation and filtering.

    line 244
  2. Very specific:

    Use label selectors on any list command to filter results:

    line 268

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Hetzner Cloud Security

SSH Keys

Create an SSH Key

hcloud ssh-key create [options] --name <name> (--public-key <key> | --public-key-from-file <file>)
FlagDescription
--nameKey name (required)
--public-keyPublic key string
--public-key-from-filePath to file containing the public key
--labelUser-defined labels as key=value (repeatable)
-o, --outputOutput options: json|yaml

List SSH Keys

hcloud ssh-key list [options]

Columns: id, name, fingerprint, public_key, age, created, labels

FlagDescription
-l, --selectorFilter by label selector
-s, --sortSort results
-o, --outputOutput options: noheader|columns=...|json|yaml

Describe an SSH Key

hcloud ssh-key describe [options] <ssh-key>
FlagDescription
-o, --outputOutput options: json|yaml|format

Delete SSH Keys

hcloud ssh-key delete <ssh-key>...

Accepts one or more SSH keys by name or ID.

Update an SSH Key

hcloud ssh-key update [options] <ssh-key>
FlagDescription
--nameNew SSH key name

Labels

hcloud ssh-key add-label [--overwrite] <ssh-key> <label>...
hcloud ssh-key remove-label <ssh-key> (--all | <label>...)

Certificates

Create a Certificate (Uploaded)

hcloud certificate create --name <name> --type uploaded --cert-file <file> --key-file <file>
FlagDescription
--nameCertificate name (required)
-t, --typeCertificate type: uploaded or managed (default: uploaded)
--cert-fileFile containing the PEM encoded certificate (required for uploaded)
--key-fileFile containing the PEM encoded private key (required for uploaded)
--labelUser-defined labels as key=value (repeatable)
-o, --outputOutput options: json|yaml

Create a Certificate (Managed)

hcloud certificate create --name <name> --type managed --domain <domain>
FlagDescription
--nameCertificate name (required)
-t, --typeMust be managed
--domainDomain the certificate is valid for (repeatable for multiple domains)
--labelUser-defined labels as key=value (repeatable)
-o, --outputOutput options: json|yaml

Retry Managed Certificate Issuance

hcloud certificate retry <certificate>

Retries issuance of a managed certificate that failed.

List Certificates

hcloud certificate list [options]

Columns: id, name, type, domain_names, not_valid_after, not_valid_before, fingerprint, issuance_status, renewal_status, age, created, labels

FlagDescription
-l, --selectorFilter by label selector
-s, --sortSort results
-o, --outputOutput options: noheader|columns=...|json|yaml

Describe a Certificate

hcloud certificate describe [options] <certificate>
FlagDescription
-o, --outputOutput options: json|yaml|format

Delete Certificates

hcloud certificate delete <certificate>...

Accepts one or more certificates by name or ID.

Update a Certificate

hcloud certificate update [options] <certificate>
FlagDescription
--nameNew certificate name

Labels

hcloud certificate add-label [--overwrite] <certificate> <label>...
hcloud certificate remove-label <certificate> (--all | <label>...)

Cross-Resource Protection

Protection prevents accidental deletion (and rebuild for servers). Enable or disable protection per resource type:

Server Protection

hcloud server enable-protection <server> (delete|rebuild)...
hcloud server disable-protection <server> (delete|rebuild)...

Servers support two protection types: delete and rebuild. Specify one or both.

Other Resource Protection

Networks, volumes, floating IPs, primary IPs, load balancers, and images support delete protection:

hcloud network enable-protection <network> delete
hcloud network disable-protection <network> delete

hcloud volume enable-protection <volume> delete
hcloud volume disable-protection <volume> delete

hcloud floating-ip enable-protection <floating-ip> delete
hcloud floating-ip disable-protection <floating-ip> delete

hcloud primary-ip enable-protection <primary-ip> delete
hcloud primary-ip disable-protection <primary-ip> delete

hcloud load-balancer enable-protection <load-balancer> delete
hcloud load-balancer disable-protection <load-balancer> delete

hcloud image enable-protection <image> delete
hcloud image disable-protection <image> delete

Cross-Resource Reverse DNS

Set reverse DNS (PTR) records on resources with public IP addresses. Use --ip to target a specific address when the resource has multiple IPs.

Server

hcloud server set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <server>

Floating IP

hcloud floating-ip set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <floating-ip>

Primary IP

hcloud primary-ip set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <primary-ip>

Load Balancer

hcloud load-balancer set-rdns [--ip <ip>] (--hostname <hostname> | --reset) <load-balancer>

Reverse DNS Flags

FlagDescription
-i, --ipIP address for which the reverse DNS entry should be set
-r, --hostnameHostname to set as a reverse DNS PTR entry
--resetReset the reverse DNS entry to the default value

Cross-Resource Labels

All managed resources support labels for organisation and filtering.

Add Labels

hcloud <resource> add-label [--overwrite] <id-or-name> <label>...

Labels use key=value format. Use --overwrite (-o) to replace an existing label key.

Supported resources: server, network, volume, floating-ip, primary-ip, load-balancer, firewall, image, ssh-key, certificate, placement-group

Remove Labels

hcloud <resource> remove-label <id-or-name> (--all | <label>...)
FlagDescription
-a, --allRemove all labels from the resource

Filtering by Labels

Use label selectors on any list command to filter results:

hcloud server list -l env=production
hcloud server list -l 'env=production,team=backend'
hcloud server list -l 'env!=staging'
hcloud network list -l project=myapp

Labels for Firewall Targeting

Firewalls can target servers by label selector instead of individual server IDs:

hcloud firewall apply-to-resource --type label_selector --label-selector 'env=production' <firewall>
hcloud firewall remove-from-resource --type label_selector --label-selector 'env=production' <firewall>

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.