Agent skill

SublinkPro Manager

by ZeroDeng01 in ZeroDeng01/sublinkPro

Manages a SublinkPro proxy subscription server through natural language, adding nodes, building subscriptions and share links, and editing templates and tags.

MITAuto-check passedBackend & APIs

Install SublinkPro Manager

skills CLI
$ npx skills add ZeroDeng01/sublinkPro --skill sublinkpro -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZeroDeng01/sublinkPro sublinkpro --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZeroDeng01/sublinkPro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill-sublinkpro .claude/skills/sublinkpro && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sublinkpro
GitHub stars
1.7k
Token cost
~7.2k tokens
SKILL.md length
3,751 words
Files
7 (incl. scripts)
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Manages a SublinkPro proxy subscription server through natural language, adding nodes, building subscriptions and share links, and editing templates and tags.

  • Works in 3 steps: Copy this directory into your AI agent's… → Set environment variables → Get an API key
  • Adding a new proxy node to a SublinkPro server
  • SKILL.md covers Installation, How to Use, Interaction Style: Guided by… and Capability Menu, plus 3 more sections
  • Runs Python scripts from its folder; calls curl, docker and docker-compose; needs SUBLINK_API_KEY and SUBLINK_JWT_SECRET

What it does

Once pointed at your SublinkPro server with a base URL and API key, the skill lets you add or query proxy nodes, build and share subscriptions, manage airports and templates, including AI-assisted template edits, work with smart tags and view dashboard stats, all by calling the SublinkPro REST API with curl or an optional Python helper. You do not need to know the API or its parameter names; a plain request such as add this node or show dashboard stats is enough, and asking what can I do lists the available actions.

The skill treats every request as a guided, conversational flow rather than a one-shot command that fails on a missing field, walking through each step when details are missing instead of asking for everything up front. It can also fetch and explain the product's own documentation, for example how the smart tag system works, and if SublinkPro is not installed yet it walks through deploying it using a separate deploy reference.

When your agent uses it

  • Adding a new proxy node to a SublinkPro server
  • Building or sharing a subscription from existing nodes
  • Editing a SublinkPro template or checking dashboard stats

Example prompts

  • “Add this node to SublinkPro and tell me which group it landed in.”
  • “Build a new subscription from my fastest nodes and give me a share link.”
  • “Edit the ACL4SSR template to block ads.”

Requirements

  • A running SublinkPro server
  • A SublinkPro API key

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Copy this directory into your AI agent's skills directory. The exact path depends on your tool — for Claude Code it is…
  2. Set environment variables
  3. Get an API key

What it can do on your machine

Read from SKILL.md and the folder at commit 11479da. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • curl
    • docker
    • docker-compose
    • python
    • ssh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • t.me

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SUBLINK_API_KEY
    • SUBLINK_JWT_SECRET
    • SUBLINK_API_ENCRYPTION_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

SublinkPro Manager loads about 7.2k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 3,751 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~7.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from ZeroDeng01/sublinkPro at commit 11479da, republished under its MIT licence (© ZeroDeng01). 3,751 words, ~7,158 tokens.

Download SKILL.mdSave it as .claude/skills/sublinkpro/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
sublinkpro
description
Manage SublinkPro proxy subscriptions via its REST API — add/query nodes, build and share subscriptions, manage airports, templates (incl. AI template editing), tags, and view dashboard stats. Use when the user wants to operate their SublinkPro instance.

SublinkPro AI Skill

Control your SublinkPro instance through natural language. This skill lets an AI assistant call the SublinkPro API directly, so you can manage nodes, subscriptions, shares, airports, and templates without opening the web UI.

Installation

  1. Copy this directory into your AI agent's skills directory. The exact path depends on your tool — for Claude Code it is ~/.claude/skills/sublinkpro:

    bash
    cp -r skill-sublinkpro ~/.claude/skills/sublinkpro
    # or symlink if you cloned the repo:
    ln -s /path/to/sublinkE/skill-sublinkpro ~/.claude/skills/sublinkpro

    For other agents, place the directory wherever that tool loads skills from.

  2. Set environment variables:

    bash
    export SUBLINK_BASE_URL=http://localhost:8000  # your SublinkPro server address
    export SUBLINK_API_KEY=prefix_xxx_yyy          # your API key
  3. Get an API key:

    • Open SublinkPro web UI
    • Go to Settings → Access Keys
    • Click Create (or Add)
    • Copy the key (shown only once) and set SUBLINK_API_KEY

How to Use

You don't need to know the API, the parameter names, or what data already exists. Just say what you want in plain language and the assistant guides you the rest of the way. If you're not sure what's possible, simply ask "what can I do?" and you'll get a menu.

Example openers:

  • "I want to add a node" → the assistant walks you through it step by step
  • "Add this node: vless://..."
  • "Help me build a new subscription"
  • "Show me all my subscriptions"
  • "Create a share link"
  • "Import an airport"
  • "Edit the 'ACL4SSR' template to block ads"
  • "Show dashboard stats"
  • "How does the smart tag system work?" → the assistant fetches and explains the relevant documentation
  • "I don't have SublinkPro yet — help me set it up" → the assistant guides you through deploying it (see Deploy below)

Under the hood the assistant calls the SublinkPro REST API with curl (or the optional Python helper). Authentication and API quirks are handled for you.


Interaction Style: Guided by Default

This is the most important section. The agent must treat every request as a guided, conversational flow — never a one-shot command that fails on a missing field. Users generally do not know the API, the parameter names, or what data already exists. Lead them.

Core rules for the agent:

  1. Never guess or invent required values. If a required field is missing, either discover it (rule 2) or ask the user — do not fabricate names, IDs, links, or URLs.
  2. Discover before you ask the user to type. Before asking "which group / which subscription / which node?", call the matching GET endpoint and present the existing options as a short numbered list so the user can pick a number instead of typing. Examples:
    • which group → GET /api/v1/nodes/groups
    • which subscription → GET /api/v1/subcription/get
    • which nodes → GET /api/v1/nodes/selector (compact id+name list)
    • which airport → GET /api/v1/airports
    • which template → GET /api/v1/template/get
    • which country / protocol / source filters → GET /api/v1/nodes/countries / /protocols / /sources
  3. Collect required fields one step at a time, in plain language. Don't dump a 15-field form on the user. Ask for what's required first; then offer optional refinements as a single "want to set any filters/options? (or say 'no' to skip)" step.
  4. Explain choices in the user's terms. When a field has fixed options (e.g. share expire_type: never / N days / specific date), describe them in words and let the user choose, then map to the correct value yourself.
  5. Always confirm before any write (POST/PUT/DELETE). Show a plain-language summary of exactly what will happen ("I'll create a subscription named 'US Servers' with these 3 nodes, no filters") and wait for a yes.
  6. Confirm extra carefully for destructive or bulk actions — delete, batch-delete, batch-update-*, share token refresh, airport delete. Show the count and the names/IDs that will be affected, and make clear it can't be easily undone.
  7. Report results in plain language, not raw JSON. On success, say what was created/changed and surface the useful bits (e.g. the share URL). On error, read the msg, explain it simply, and propose the fix.
  8. Offer the logical next step. After adding nodes → offer to put them in a subscription. After creating a subscription → offer to create a share link. After importing an airport → offer to pull its nodes now.
  9. Respect mixed content types and the envelope (see Technical Reference). The user never sees --form vs --json; the agent handles it.

Capability Menu

When the user asks "what can you do", "help", or seems unsure where to start, present this menu and ask which one they'd like:

  • Nodes — add a node (paste a link / WireGuard / Clash YAML), list or search nodes, move nodes between groups, set country/source, delete nodes
  • Subscriptions — build a new subscription, edit one, preview which nodes it will output, sort nodes, copy a subscription, delete one
  • Sharing — create a share link for a subscription, set expiration, list/refresh/disable share links, view access logs, fetch the actual subscription output
  • Airports — import an airport (URL + schedule), pull nodes now, list airports, edit/batch-edit, refresh usage, delete
  • Templates — list templates, edit a template by hand, or use AI template editing (describe a change in words → generate → review → apply)
  • Chain proxy — view/add chain-proxy rules on a subscription
  • Tags — list tags, create rules, apply tagging
  • Tasks — view running/finished tasks (speed tests etc.), stop a task
  • Dashboard — node/subscription counts, fastest node, country/protocol stats, system stats
  • Documentation & help — explain features, configuration, installation, or troubleshooting by fetching the project's official docs (smart tags, speed tests, chain proxy, MFA, etc.)
  • Deploy / install SublinkPro — stand up a new instance via docker, docker-compose, or the install script, locally or on a remote host (see the Deploy workflow below)
  • Manage an instance — check status / view logs, update to the latest version, or uninstall

Documentation & Help

When the user asks how a feature works, how to configure something, what a feature does, or how to troubleshoot — fetch the project's official documentation from GitHub and answer from it. Do not invent or paraphrase from memory. The documentation is always current and authoritative.

How to use the docs:

  1. Match the user's question to a topic in reference/docs.md (the documentation map).
  2. Fetch the relevant doc's raw URL from GitHub using your web-fetch capability.
  3. Read it and answer in the user's language — summarize and quote the doc directly.
  4. Cite the human-readable GitHub page URL so the user can read the full doc themselves.
  5. If you can't fetch the doc (offline / no web access), tell the user and give them the GitHub link to read it themselves — never fabricate the content.

Topics covered: installation & configuration, smart tags, speed tests, unlock checks, chain proxy, AI template editing, airport management, subscription sharing, host management, Cloudflare Tunnel, Telegram bot, MFA, script support, development guide, protocol extensions, internationalization.

When docs don't solve the problem:

If the documentation can't answer the user's question, or they've tried the documented solution and it still doesn't work, guide them to escalate:

Phrase it like: "The docs cover X but your specific case (Y) isn't documented. I'd recommend opening a GitHub issue at [link] or reaching out to the author on Telegram at [link] — they can help diagnose this."


Technical Reference (for the AI agent)

How to Call the API

Call the REST API with curl — it ships on virtually every macOS, Windows 10+, and Linux system, so it's the most portable choice and the default. (A Python convenience wrapper, scripts/sublink.py, also exists for hosts that have Python 3 — see the end of this section — but it is optional.)

First ensure the env vars are set (check before calling; if missing, guide the user — see "Error Handling Playbook"):

bash
export SUBLINK_BASE_URL=http://localhost:8000
export SUBLINK_API_KEY=prefix_xxx_yyy

Each endpoint in reference/api.md is tagged with a content type. Map it to curl like this:

Tag in api.mdcurl form
GET + querycurl -s -H "X-API-Key: $SUBLINK_API_KEY" "$SUBLINK_BASE_URL<path>?k=v&k2=v2"
form (POST)curl -s -H "X-API-Key: $SUBLINK_API_KEY" --data-urlencode 'k=v' --data-urlencode 'k2=v2' "$SUBLINK_BASE_URL<path>"
JSON (POST/PUT)curl -s -H "X-API-Key: $SUBLINK_API_KEY" -H "Content-Type: application/json" -d '{"k":"v"}' "$SUBLINK_BASE_URL<path>"
DELETEcurl -s -X DELETE -H "X-API-Key: $SUBLINK_API_KEY" "$SUBLINK_BASE_URL<path>?id=123"
raw (/c/, SSE)same as GET, but read the body as-is (no {code,msg,data} wrapper)

Which endpoints are form vs JSON:

  • form (c.PostForm in backend): auth login, node add/update, subscription add/update, template add/update/delete.
  • JSON (c.ShouldBindJSON): access keys, node batch operations, subscription preview, subscription sort/batch-sort, chain rules, airports, tags (except /tags/delete which is a query param), scripts, hosts, geoip, group-sort, node-check, settings, AI template endpoints.
  • query: all GET list/filter params, plus several deletes and a few POSTs (copy, refresh, trigger).

Judge success by the body's code, not the HTTP status — a failure often returns HTTP 200 with code:500. Parse the JSON, check .code (200 = ok; 400/403/404/500 = failure, read .msg and translate it). The #1 cause of 参数错误 failures is a form-vs-JSON mismatch or wrong field casing — re-check the endpoint's tag and exact field names in reference/api.md before retrying.

Examples:

bash
# Get version (public, no key needed)
curl -s "$SUBLINK_BASE_URL/api/v1/version"

# Add a node (form)
curl -s -H "X-API-Key: $SUBLINK_API_KEY" \
  --data-urlencode 'link=vless://...' --data-urlencode 'group=US' \
  "$SUBLINK_BASE_URL/api/v1/nodes/add"

# Create an airport (JSON)
curl -s -H "X-API-Key: $SUBLINK_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"MyAirport","url":"https://...","cronExpr":"0 */6 * * *","enabled":true}' \
  "$SUBLINK_BASE_URL/api/v1/airports"

# List nodes (GET + query)
curl -s -H "X-API-Key: $SUBLINK_API_KEY" \
  "$SUBLINK_BASE_URL/api/v1/nodes/get?page=1&pageSize=50"

# Fetch subscription output (raw — uses a share token, not the API key)
curl -s "$SUBLINK_BASE_URL/c/?token=<shareToken>"

Optional helper script. If Python 3 is present, scripts/sublink.py does the auth header, form-vs-JSON routing, and code check for you, exiting non-zero on failure. The --form/--json/--query/--raw flags used throughout this doc map directly to the curl table above:

bash
python scripts/sublink.py GET  /api/v1/nodes/get --query page=1 --query pageSize=50
python scripts/sublink.py POST /api/v1/nodes/add --form link='vless://...' --form group='US'
python scripts/sublink.py POST /api/v1/airports --json name='MyAirport' --json enabled=true
python scripts/sublink.py GET  /c/ --query token='<shareToken>' --raw

Use whichever is available on the host — curl first, the script if you prefer and Python is installed. Throughout the workflows below, an endpoint marked (--form) / (--json) just means "use that content type" — apply it with either tool.

Key API Patterns

Base URL: All routes are under /api/v1/... (except /c/ for subscription consumption)

Response envelope: Every JSON response has {code, msg, data} where code: 200 = success, code: 500 = error

Subscription group spelling: /api/v1/subcription (missing second 's')

Demo mode: Write endpoints with DemoModeRestrict are blocked in demo mode

Share tokens vs API keys: Subscription consumption (/c/?token=...) uses share tokens (from POST /api/v1/shares/add), NOT the API key

Full Endpoint Catalog

See reference/api.md for the complete list of endpoints with parameters and response shapes.

Field Discovery Map (turn blanks into multiple-choice)

This is how the skill replaces complex web-UI widgets. In the web UI, fields like "Clash template", "nodes", "group", "country filter" are dropdowns, multi-selects, and visual builders. In this skill, the agent reproduces that experience by calling a discovery endpoint, showing the results as a numbered list, and letting the user pick a number. The agent never asks the user to free-type a value that can be discovered, and never invents one.

Whenever you need one of these values, call its source first and present choices:

Field (what the user picks)Discovery callWhat to show / how it maps
Clash/Surge template (subscription config)GET /api/v1/template/getList each file with its category (e.g. clash.yaml — clash). The chosen file string IS the config value. Empty = no template (raw node list).
Nodes (nodeIds)GET /api/v1/nodes/selector (paginated; supports --query group= / country= / protocol= filters)Show items[].ID + Name (+ Group/LinkCountry for context). Selected IDs → comma-joined nodeIds. For "all matching", use GET /api/v1/nodes/ids.
Group(s) (groups, or node group)GET /api/v1/nodes/groupsNumbered list of group names. Selected → comma-joined.
Country filter (CountryWhitelist/CountryBlacklist)GET /api/v1/nodes/countriesList country codes present; user picks; comma-join.
Protocol filter (ProtocolWhitelist/ProtocolBlacklist)GET /api/v1/nodes/protocolsList protocols in use; user picks; comma-join.
Source filter (node source)GET /api/v1/nodes/sourcesList sources; user picks.
Tag filter (TagWhitelist/TagBlacklist)GET /api/v1/tags/listList tag names; user picks; comma-join.
Scripts (scripts)GET /api/v1/script/listList scripts by id+name; selected IDs → comma-joined.
Subscription (to edit/share)GET /api/v1/subcription/getList by id+name.
Airport (to pull/edit)GET /api/v1/airportsList by id+name.

If a discovery call returns an empty list (e.g. no groups yet), say so and offer the alternative (e.g. "you have no groups — want to pick individual nodes instead, or create the group while adding?").

Field Tiers (don't dump everything at once)

For multi-field resources (subscriptions especially), split fields into three tiers and walk them in order. Never present all fields at once.

  1. Required — ask first, can't proceed without. (Subscription: name + at least one of nodeIds/groups.)
  2. Common optional — offer as a short, skippable batch with sensible defaults. (Subscription: template config, country/protocol filter, DelayTime, MinSpeed, UpdateInterval.)
  3. Advanced — only mention they exist; set only if the user explicitly asks. These include the structured-JSON builder fields (DeduplicationRule, NodeNamePreprocess, UnlockRules) which mirror visual builders in the UI and are easy to malform. Do not hand-craft their JSON from a vague request; if the user wants them, ask precise questions or point them to the web UI for that specific widget, and confirm the exact JSON before sending.
Show full SKILL.md (1,747 more words)Show less
Guided Workflows

These describe how to lead the user through each task. Discovery calls (GET) need no confirmation — run them freely to populate choices. Writes (POST/PUT/DELETE) always need a confirmation step. Use the Field Discovery Map above for every "which X?" question.

Add a node

  1. Ask for the node link (proxy URI, WireGuard config, or Clash YAML). If the user already pasted one, skip.
  2. Ask which group → discover via GET /api/v1/nodes/groups, numbered list (plus "new group" / "no group").
  3. Optionally ask for a custom name (else the link's own name is used).
  4. Confirm, then POST /api/v1/nodes/add (--form). Report the result; offer to add it to a subscription.

Build a subscription (the flagship multi-field flow — follow the tiers)

  1. Required — name: ask for it. (Will be rejected if it duplicates an existing one; if so, ask for another.)
  2. Required — node selection: ask "pick by group, or pick individual nodes?"
    • By group → GET /api/v1/nodes/groups, numbered list, multi-pick → groups (comma-joined).
    • By node → GET /api/v1/nodes/selector (offer to narrow with a group/country/protocol filter first since lists can be long), numbered list → nodeIds (comma-joined). At least one of the two is required.
  3. Common optional — template (config): "Which output template? I'll list your Clash/Surge templates." → GET /api/v1/template/get, list each file+category, the picked file becomes config. Offer "none" (raw nodes).
  4. Common optional — filters (one skippable step): offer country / protocol filter (discover via the map), plus DelayTime (max latency ms), MinSpeed (min MB/s), UpdateInterval (hours). Describe each plainly; default all to off. Say "or just say 'skip' to use none."
  5. Advanced: mention dedup / node-name preprocessing / unlock rules exist; only collect if explicitly requested (see Field Tiers caution).
  6. Confirm the whole picture in plain words ("Subscription 'US-Servers': 12 nodes from group 'US', clash.yaml template, protocol filter vless+trojan, max delay 300ms, no other filters"), then POST /api/v1/subcription/add (--form).
  7. Offer preview or to create a share link next. Preview-before-create is a good default to suggest when filters are involved. Note: POST /api/v1/subcription/preview is JSON with capitalized field names (NodeIDs as an int array, Groups, DelayTime, CountryWhitelist, ...) — it does NOT mirror the add form fields. See reference/api.md "Preview subscription nodes" for the exact shape.

Edit a subscription

  1. Pick it via GET /api/v1/subcription/get. Show current values so the user edits from a known state, not a blank form.
  2. Ask which aspect to change (name / nodes / template / filters), discover options for that aspect via the map, confirm, then POST /api/v1/subcription/update (--form). Key detail: the subscription is located by oldname (its current name); name is the new name (use the same value if not renaming). You must resend the full field set you want to keep — omitted fields are not preserved. So fetch current values first and re-send them plus your edits.

Create a share link

  1. Pick the subscription via GET /api/v1/subcription/get (numbered list).
  2. Ask about expiration in words: never / after N days / specific date → map to expire_type 0/1/2 (+ expire_days or expire_at).
  3. Confirm, then POST /api/v1/shares/add (--json).
  4. Report the share token and build the consumable URL: GET /c/?token=<shareToken> (use --raw if fetching the actual output).

Import an airport

  1. Ask for the airport URL.
  2. Ask for an update schedule in words (e.g. "every 6 hours") → cron expr; offer a sensible default.
  3. Ask name + optional group/usage tracking.
  4. Confirm, then POST /api/v1/airports (--json).
  5. Offer to pull nodes immediately: POST /api/v1/airports/{id}/pull, then show new nodes via GET /api/v1/nodes/get --query groups=<airportGroup>.

AI template editing

  1. Pick the template via GET /api/v1/template/get; capture its text and category.
  2. Ask what change they want in plain words.
  3. If the user asks for all/every/全部/所有 matching template entries, explain that Template AI can use exact match: "all" for replace/delete operations. Otherwise the default operation contract requires one exact unique match and may fail with PATCH_AMBIGUOUS_MATCH when the same text appears more than once.
  4. POST /api/v1/template/ai/edit-sessions/stream (--json with userPrompt, filename, category, currentText, plus current template metadata such as ruleSource, useProxy, proxyLink, and enableIncludeAll when available). Read the SSE stream until template.edit.preview.ready or template.edit.completed; model deltas are progress only. Note: this requires the server's AI assistant to be configured in the web UI; if it returns an upstream/credential error, explain that and stop.
  5. Summarize the server-materialized preview from the returned candidateText, list operations and warnings, and confirm whether the user wants to accept it. Explain that warnings are review metadata, while validation errors block accept.
  6. POST /api/v1/template/ai/edit-sessions/{sessionId}/accept (--json with optional currentText set to the editor's current text). Send currentText whenever you have the current editor text, especially after a prior accepted preview has not been saved yet. It proves the editor base matches the session base so consecutive unsaved accepts can work. It is not the candidate, is never persisted, and must not be treated as the accepted output. Don't include warning-related request fields. The response returns candidateText for the editor but does not persist the template, so save it with the normal template update flow after the user confirms. If currentText is absent or mismatched, the server still protects stale bases through the saved template file check and may return AI_EDIT_STALE_BASE.
  7. If the user rejects the preview, call POST /api/v1/template/ai/edit-sessions/{sessionId}/discard when a sessionId exists.

Edit / delete (any resource)

  • Always fetch and show the current state first (GET), confirm the exact target by id+name, summarize the change, then confirm before the write. For deletes and any batch-* operation, show the count and affected names/IDs and warn it isn't easily reversible.

Deploy or install SublinkPro (the skill can stand up a new instance, not just operate one)

Full command reference: reference/deploy.md. Read it before running anything — never invent deploy commands. Lead the user through these steps:

  1. Confirm intent & location. Are we setting up a new SublinkPro instance? Ask local or remote host. If remote, ask which mode:
    • Mode 1 — agent runs it: the user lets you run commands on the remote box over their existing SSH access (ssh user@host '...'). Only do this after they confirm the host and grant permission for each remote command.
    • Mode 2 — user runs it: you generate the exact commands / compose file and the user runs them on the host themselves. Default to this if unsure.
  2. Detect the environment. Check what's available before recommending: docker --version, docker compose version (or docker-compose version). For the install script, note it needs root and is interactive.
  3. Pick a method — recommend docker-compose for most users (easy to update and re-run). Alternatives: plain docker run, or the one-line install script (binary + systemd/OpenRC; root; interactive menu — hand it over, don't pipe answers).
  4. Offer configuration as one short, skippable step. Most users want defaults — lead with "I can use sensible defaults, or set a few options; want to customize anything?". If they want to customize, walk the common ones in plain language (host port, admin password, database, captcha, hidden base path) and map them to the right env vars yourself. The full authoritative variable list and the config.yaml alternative are in reference/deploy.md ("Configuration: environment variables & config file") — consult it, never invent a variable. Only add the env vars the user actually chose; everything else stays default. For multi-instance/migration setups, remember SUBLINK_JWT_SECRET + SUBLINK_API_ENCRYPTION_KEY must be set and identical across instances.
  5. Confirm the exact command(s) or compose file in plain language before running or handing over. For remote Mode 1, show the full ssh/scp command you're about to run and get a yes.
  6. Run or hand over per the chosen mode.
  7. Health-check: GET /api/v1/version against the new address (public, no key needed) to confirm it's up. (curl <base>/api/v1/version works too, e.g. for remote.)
  8. First-run hand-off (be honest — this part is manual). You cannot auto-create an API key (login has a captcha by default), so guide the user: open http://<host>:8000 → sign in admin / 123456 → change the password immediately → Settings → Access Keys → Create → copy the key → set export SUBLINK_BASE_URL=... and export SUBLINK_API_KEY=.... Then offer to continue into operating the instance.

Manage an existing deployment (status / logs / update / uninstall) — see reference/deploy.md "Lifecycle".

  • Status/logs: GET /api/v1/version for up/down; docker ps, docker logs sublinkpro, or docker-compose ps / docker-compose logs -f for container detail.
  • Update: compose → docker-compose pull && docker-compose up -d; plain docker → stop/rm/pull/run with the same flags; script install → re-run the install script.
  • Uninstall: docker-compose down or docker stop/rm, or uninstall.sh. Removing the ./db ./template ./logs data directories is destructive — show exactly what would be deleted and get explicit confirmation before suggesting it.

Error Handling Playbook

Whenever an API call fails (curl returns an error envelope, or the optional scripts/sublink.py exits non-zero), never dump raw output at the user. Translate it into plain language + the concrete next step, and offer to fix it. Before any call, also make sure SUBLINK_BASE_URL and SUBLINK_API_KEY are set — if not, guide the user through setting them (or deploying) rather than letting the call fail. Map the failure to one of these classes:

ConditionWhat it meansWhat to do for the user
$SUBLINK_BASE_URL is empty/unsetNo instance address configuredAsk for their instance address and set it; if they don't have one running, offer to deploy (see workflow above).
$SUBLINK_API_KEY is empty/unsetNo API key configuredWalk them through creating one: web UI → sign in (admin/123456 if fresh) → Settings → Access Keys → Create → copy → set the env var.
curl connection error / no response (or the script prints "Could not reach...")Server unreachable (wrong host/port, not running, firewall)Run the checklist: is it running? right host/port? remote port exposed? Confirm with GET /api/v1/version. Offer to deploy or check container status.
code:403 (or HTTP 403)Auth rejectedKey missing/wrong/expired, or base URL points at a different instance than the key. Re-create the key in the web UI. (Exception: /settings/ai-assistant* 403s by design with an API key — explain that's expected and not fixable via the key.)
code:500 with a msgServer rejected the requestRead the msg (it's usually specific, e.g. "订阅名称不能重复"), explain it simply, and propose the correction (pick another name, fill the missing field, etc.).
code:400/code:404Bad/missing parameter or wrong pathRe-check required fields and the resource id (and the form-vs-JSON tag in reference/api.md); re-run discovery (GET) to get valid values, then retry.
body isn't {code,msg,data} JSONHit a non-envelope endpoint (/c/ output, SSE)That's expected for those endpoints — read the body as-is; don't try to parse an envelope.

After explaining, always offer the fix as the next action ("want me to set that now?" / "shall I create the key step by step?" / "want me to deploy an instance?") rather than leaving the user at a dead end.

© ZeroDeng01, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts) in skill-sublinkpro of ZeroDeng01/sublinkPro.

  • SKILL.md
  • README.md
  • README.zh-CN.md
  • reference/api.md
  • reference/deploy.md
  • reference/docs.md
  • scripts/sublink.py

Open the folder on GitHubat commit 11479da

Compare with similar skills

SublinkPro Manager next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

SublinkPro Manager compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
SublinkPro Manager this skillZeroDeng01/sublinkPro1.7k—~7.2kAutomated safety check: PassMIT
Brave Local POI Detailsbrave/brave-search-skills183—~1.9kAutomated safety check: PassMIT
OmniRoute Provider Managementdiegosouzapw/OmniRoute74k—~2.4kAutomated safety check: PassMIT
OpenAPI CLI CallerEvilFreelancer/openapi-to-cli265—~879Automated safety check: PassMIT
Fivetranrocky-data/rocky304—~914Automated safety check: PassApache-2.0
Dinobase Connector Builderkappa90/dinobase263—~1.9kAutomated safety check: PassCustom licence

Similar skills

  • Brave Local POI Details

    brave/brave-search-skills

    Looks up full details for local businesses and places, including ratings, hours and contact information, from Brave Search API point-of-interest IDs.

    183 GitHub stars~1.9k tokensUpdated 14 days ago
    Backend & APIsAuto-check passed
  • OmniRoute Provider Management

    diegosouzapw/OmniRoute

    Manages AI provider connections, API keys, OAuth flows and connection tests through OmniRoute's REST API across its 327-provider catalog.

    74k GitHub stars~2.4k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • OpenAPI CLI Caller

    EvilFreelancer/openapi-to-cli

    Turns an OpenAPI, Swagger or OpenRPC spec into CLI commands the agent can search and call, with no MCP server or code generation.

    265 GitHub stars~879 tokensUpdated 15 days ago
    Backend & APIsAuto-check passed
  • Fivetran

    rocky-data/rocky

    Fivetran REST API reference for Rocky's source adapter. An agent skill from rocky-data/rocky.

    304 GitHub stars~914 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Writes a new Dinobase YAML connector for a REST API that has no verified dlt source, covering auth, pagination, read and write endpoints and incremental loading.

    263 GitHub stars~1.9k tokensUpdated 3 mo ago
    Backend & APIsAuto-check passed
  • Frappe Core API

    Impertio-Studio/Frappe_Claude_Skill_Package

    A skill your agent uses when building ERPNext/Frappe API integrations (v14/v15/v16) including REST API, RPC API, authentication, webhooks, and rate limiting.

    187 GitHub starsUsed in 1 repo~3.2k tokens
    Backend & APIsAuto-check passed

More from ZeroDeng01/sublinkPro

All 8 skills in this repo
  • Performance Check

    ZeroDeng01/sublinkPro

    Checklist for reviewing code changes that touch queries, APIs, rendering, caching or algorithms for performance, scalability and resource-usage problems.

    1.7k GitHub stars~1.8k tokensUpdated 3 days ago
    Auto-check passed
  • Security Review Checklist

    ZeroDeng01/sublinkPro

    Checklist-driven security review for changes to authentication, authorization, MFA, secrets, input validation and other security-critical code.

    1.7k GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Post-Development Workflow

    ZeroDeng01/sublinkPro

    A required checklist for after code changes: validate each changed layer, check that docs and other layers stay in sync, and test before committing or opening a PR.

    1.7k GitHub stars~4.4k tokensUpdated 3 days ago
    Auto-check passed
  • Documentation Sync Check

    ZeroDeng01/sublinkPro

    Checklist for keeping README, feature, configuration, install and API docs in step with code changes in the same PR, including the Chinese copies.

    1.7k GitHub stars~2.6k tokensUpdated 3 days ago
    Auto-check passed
  • Pre-Commit Check Gate

    ZeroDeng01/sublinkPro

    Blocking checklist that runs formatting, lint and test commands for changed Go and frontend files before any git add, commit or pull request.

    1.7k GitHub stars~2.9k tokensUpdated 3 days ago
    Auto-check: notes
  • Theme Adaptation Checklist

    ZeroDeng01/sublinkPro

    A checklist for UI changes that touch colors, surfaces or theme code, making sure light and dark modes, devices, states and layering all still work.

    1.7k GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed

Questions about SublinkPro Manager

What does SublinkPro Manager do?

Manages a SublinkPro proxy subscription server through natural language, adding nodes, building subscriptions and share links, and editing templates and tags. Once pointed at your SublinkPro server with a base URL and API key, the skill lets you add or query proxy nodes, build and share subscriptions, manage airports and templates, including AI-assisted template edits, work with smart tags and view dashboard stats, all by calling the SublinkPro REST API with curl or an optional Python helper. You do not need to know the API or its parameter names; a plain request such as add this node or show dashboard stats is enough, and asking what can I do lists the available actions.

When should I use SublinkPro Manager?

SublinkPro Manager fits situations like: adding a new proxy node to a SublinkPro server; building or sharing a subscription from existing nodes; editing a SublinkPro template or checking dashboard stats.

How do I install SublinkPro Manager in Claude Code?

Run `npx skills add ZeroDeng01/sublinkPro --skill sublinkpro -a claude-code`. Or copy the skill folder (skill-sublinkpro in ZeroDeng01/sublinkPro) into .claude/skills/sublinkpro in your project. Claude Code loads it when a task matches its description.

How do I install SublinkPro Manager in Codex?

Run `npx skills add ZeroDeng01/sublinkPro --skill sublinkpro -a codex`. Or copy the skill folder (skill-sublinkpro in ZeroDeng01/sublinkPro) into .agents/skills/sublinkpro in your project. Codex loads it when a task matches its description.

Can I use SublinkPro Manager in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZeroDeng01/sublinkPro --skill sublinkpro -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sublinkpro, .gemini/skills/sublinkpro, .github/skills/sublinkpro and .opencode/skills/sublinkpro in your project.

What does SublinkPro Manager need to run?

Going by SKILL.md and its folder, SublinkPro Manager needs Python for the scripts in its folder, the command-line tools its instructions call (curl, docker, docker-compose, python and ssh) and credentials named SUBLINK_API_KEY, SUBLINK_JWT_SECRET and SUBLINK_API_ENCRYPTION_KEY. Our summary lists: A running SublinkPro server; A SublinkPro API key.

Does SublinkPro Manager access the network?

SKILL.md names 1 domain. As links in the text: t.me. This is read from the text; nothing was executed.

Is SublinkPro Manager safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does SublinkPro Manager use?

SublinkPro Manager is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does SublinkPro Manager use?

About 7.2k tokens (SKILL.md is roughly 29k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to SublinkPro Manager?

Skills that share tags, products or a category with SublinkPro Manager: Brave Local POI Details (brave/brave-search-skills, 183 stars), OmniRoute Provider Management (diegosouzapw/OmniRoute, 74k stars), OpenAPI CLI Caller (EvilFreelancer/openapi-to-cli, 265 stars) and Fivetran (rocky-data/rocky, 304 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains SublinkPro Manager?

ZeroDeng01 (a GitHub user) maintains it in ZeroDeng01/sublinkPro, which has 1,665 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 5, 2026.

Source: ZeroDeng01/sublinkPro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.