agentleFS
MarioJamesMarioJames/skill-foundry/skills/provision-xray-hy2-node/SKILL.md

provision-xray-hy2-node

Skill1 starsChanged 4 days agoApache-2.0View on GitHub

部署、排查或审计 Xray Vision/REALITY 与 Hysteria 2 混合节点,包括证书、网络链路和客户端配置。

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep Xray on TCP/443 and Hysteria 2 on UDP/443 as independent paths.

    line 8
  2. Distinctive:

    Read-only audit: use verification.md for inventory and requested evidence.

    line 12
  3. Distinctive:

    Renewal: use the certificate section of deployment.md.

    line 14
  4. Distinctive:

    Deployment / upgrade / migration: use the relevant sections of deployment.md, then verify the changed paths with verification.md.

    line 15
  5. Distinctive:

    Use a persistent SSH session when available and close it after verification.

    line 17
  6. Distinctive:

    Never expose DNS credentials, private keys, UUIDs, short IDs, HY2 passwords, ACME account keys, or unredacted secret-bearing configuration.

    line 21
  7. Distinctive:

    Keep Xray by default and add HY2.

    line 24
  8. Distinctive:

    Treat TCP/443 and UDP/443 as separate listeners.

    line 25
  9. Distinctive:

    Keep the HY2 DNS record unproxied unless the selected DNS/CDN product explicitly supports the required UDP transport.

    line 26
  10. Distinctive:

    Stop when an existing DNS record points elsewhere, certificate identity conflicts, authentication material cannot be confirmed, or the …

    line 27

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Xray and Hysteria 2 nodes

Keep Xray on TCP/443 and Hysteria 2 on UDP/443 as independent paths. Select the route from the user's task and inspect current state before deciding what to change.

Task routes

  • Read-only audit: use verification.md for inventory and requested evidence. No DNS writes, installations, or certificate issuance; ask only for read access needed by the inspection.
  • Troubleshooting: inspect the failing path and relevant logs/listeners first. Use verification.md; read deployment details only if a supported fix requires them. Preserve the working protocol.
  • Renewal: use the certificate section of deployment.md. Establish the current renewal mechanism and certificate identity; collect DNS credentials only if actual issuance requires them.
  • Deployment / upgrade / migration: use the relevant sections of deployment.md, then verify the changed paths with verification.md.

Use a persistent SSH session when available and close it after verification. Consult current official documentation when versions, installers, provider APIs, or configuration fields matter. Read templates.md before writing configuration; replace placeholders at runtime.

Safety boundaries

  • Never expose DNS credentials, private keys, UUIDs, short IDs, HY2 passwords, ACME account keys, or unredacted secret-bearing configuration.
  • Pass credentials through protected runtime environment variables. Persist only what the selected ACME provider requires, in root-owned files with mode 600.
  • Back up Xray, Hysteria, certificate, and systemd configuration before changes. Preserve unrelated configuration and existing nodes.
  • Keep Xray by default and add HY2. Remove an existing path only when the user explicitly requests replacement.
  • Treat TCP/443 and UDP/443 as separate listeners. Verify service binding, host firewall, cloud firewall/security group, and network ACL independently.
  • Keep the HY2 DNS record unproxied unless the selected DNS/CDN product explicitly supports the required UDP transport.
  • Stop when an existing DNS record points elsewhere, certificate identity conflicts, authentication material cannot be confirmed, or the migration could cut off access.

Collect only inputs needed by the selected route. Host identity and current service state are enough to begin an audit; ACME email, DNS write credentials, client source paths, and target proxy groups are required only for operations that use them. Existing authorization covers routine steps within that route, not replacement of an unrelated service.

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.