generating-sing-box-configs

Generate sing-box configuration files for client, server, and TUN setups.

629|22|Updated Nov 18, 2023
One-click install
npx skills add https://github.com/JohanChane/clashtui --skill generating-sing-box-configs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-sing-box-configs
Source: https://github.com/JohanChane/clashtui/tree/main/.agents/skills/generating-sing-box-configs
Command: npx skills add https://github.com/JohanChane/clashtui --skill generating-sing-box-configs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken or non-matching sing-box configurations by guiding you through the required upfront decisions and producing a version-appropriate config structure for your target scenario.

Core Features & Use Cases

  • Config Generation from Scratch: Produce complete sing-box client or server configuration templates based on user intent.
  • TUN Proxy Setup Guidance: Support TUN-based proxy clients with correct DNS/route rule patterns.
  • ClashTui Template Placeholder Support: Generate clashtui sing-box templates using ${} placeholders for dynamic outbound expansion.
  • Mandatory Verification Workflow: Emphasize validating output with sing-box check before you rely on the config.

Quick Start

Use generating-sing-box-configs to generate a sing-box configuration for my PC client with the focus, platform type, whether I need Clash API, and the sing-box version clearly specified.

Frequently Asked Questions about generating-sing-box-configs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a valid sing-box config for a TUN proxy setup?

Generating a sing-box config for a TUN proxy requires specifying your focus, platform type, Clash API requirements, and sing-box version. This ensures correct DNS strategy and routing rules for your client deployment.

What is the best way to create a sing-box configuration template for ClashTui?

Creating a sing-box configuration template for ClashTui involves generating configs with ${} outbound placeholders. This allows dynamic outbound expansion within the ClashTui interface for your proxy client.

Why does my sing-box configuration fail the version compatibility check?

Your sing-box configuration fails version compatibility when incorrect fields are used for your specific sing-box version. Selecting version-appropriate fields during config generation prevents these broken or non-matching setups.

How do I verify my generated sing-box configuration before deployment?

Verify your generated sing-box configuration by running the sing-box check command. This mandatory validation workflow ensures the config structure is correct and reliable before you rely on it for proxy routing.

Do I need to specify the sing-box version to generate a server configuration?

Yes, specifying the sing-box version is required to generate a server configuration. This ensures the config structure uses version-appropriate fields, preventing broken setups and matching your target deployment scenario.

Can I generate sing-box configs from scratch for both client and server deployments?

Yes, you can generate sing-box configs from scratch for both client and server deployments. Providing your target scenario and answering four mandatory upfront questions produces a complete and valid configuration file.