agentleFS
yansirccyansircc/llm-broker/.agents/skills/cells/SKILL.md

cells

Skill1 starsChanged 9 months agoMITView on GitHub

Provision and register broker egress cells without exposing root-level infra steps in the frontend. Triggers: add cell, create cell, provision cell, 开 cell, 新增 cell, local cell, France cell, danted, wg-backed proxy.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat cell creation as an ops workflow:

    line 10
  2. Distinctive:

    Verify egress from the broker host before binding any account

    line 14
  3. Distinctive:

    Only override it if the provider explicitly requires a different prefix length.

    line 18
  4. Distinctive:

    Use display names, not IDs, for the human naming convention.

    line 22
  5. Distinctive:

    Keep IDs stable and technical

    line 26
  6. Distinctive:

    Do not encode control-plane topology into IDs

    line 27
  7. Distinctive:

    Use the wrapper for the normal flow:

    line 42
  8. Very specific:

    Verify the proxy from the broker host using https://api64.ipify.org

    line 53
  9. Distinctive:

    Use the lower-level scripts when you need to reprovision or debug a single step.

    line 96
  10. Very specific:

    Do not bind unrelated accounts during validation.

    line 98

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

Cells

Treat cell creation as an ops workflow:

  1. Provision the proxy endpoint on the broker host or a remote WG-backed host
  2. Register the endpoint as an egress cell in broker admin API
  3. Verify egress from the broker host before binding any account

For per-cell IPv6 source addresses, default to --ipv6-prefixlen 128. This is the safe default for routed single-address egress on Linode and similar hosts. Only override it if the provider explicitly requires a different prefix length.

Naming

Use display names, not IDs, for the human naming convention.

  • Format: COUNTRY Provider NN
  • Local broker cells: COUNTRY Provider NN(local)
  • Keep IDs stable and technical
  • Do not encode control-plane topology into IDs
  • In particular, do not append -local to IDs; keep local only in display names or labels

Current naming baseline:

  • UK Linode 01(local) for the existing broker-host local cell
  • FR Linode 01 for the existing France Linode cell

So the next cells should be:

  • UK Linode 02(local)
  • UK Linode 03(local)
  • FR Linode 02
  • FR Linode 03

Use the wrapper for the normal flow:

bash .Codex/skills/cells/scripts/add_cell.sh local ...
bash .Codex/skills/cells/scripts/add_cell.sh remote ...

What the wrapper does:

  1. Provision Dante on the target host
  2. Register the cell as disabled
  3. Verify the proxy from the broker host using https://api64.ipify.org
  4. Flip the cell to active unless --leave-disabled is set

Local broker cell

bash .Codex/skills/cells/scripts/add_cell.sh local \
  --id cell-uk-linode-02 \
  --name "UK Linode 02(local)" \
  --listen-port 11082 \
  --ipv6 2600:3c13:e001:ae::101 \
  --ipv6-prefixlen 128 \
  --label site=core-local \
  --label ipv6=2600:3c13:e001:ae::101

Remote WG-backed cell

bash .Codex/skills/cells/scripts/add_cell.sh remote \
  --id cell-fr-linode-02 \
  --name "FR Linode 02" \
  --target root@172.239.9.209 \
  --listen-port 12081 \
  --proxy-host 10.77.0.2 \
  --wg-bind-ip 10.77.0.2 \
  --allow-from 10.77.0.1/32 \
  --ipv6 2600:3c1a:e001:16::101 \
  --ipv6-prefixlen 128 \
  --install-package \
  --label country=FR \
  --label city=Paris \
  --label transport=wg-direct \
  --label ipv6=2600:3c1a:e001:16::101

Underlying scripts

  • provision_local_danted.sh
  • provision_remote_danted.sh
  • register_cell.sh
  • verify_cell.sh

Use the lower-level scripts when you need to reprovision or debug a single step.

Do not bind unrelated accounts during validation. Provision and verify the cell first, then use the existing migration UI or /admin/accounts/{id}/cell afterwards.

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.