This skill helps you discover, install, and upload AI skills to a Nacos configuration center using the nacos-cli tool.
Use this skill when the user:
The nacos-cli is a command-line tool for managing AI skills stored in a Nacos configuration center. Think of Nacos as a private skill registry for teams and organizations.
GitHub: https://github.com/nacos-group/nacos-cli
Key commands:
nacos-cli skill-list - Search and list available skillsnacos-cli skill-get <name> - Download and install a skill locallynacos-cli skill-upload <path> - Publish a skill to Nacosnacos-cli skill-sync <name> - Keep a skill synchronized in real-timeCheck if nacos-cli is installed:
which nacos-cli
If not found, there are two options:
Option A: Use via npx (no install needed)
You can run nacos-cli directly through npx without any installation:
npx @nacos-group/cli <command>
For example: npx @nacos-group/cli skill-list or npx @nacos-group/cli skill-get my-skill.
If using npx, replace all nacos-cli commands in the subsequent steps with npx @nacos-group/cli.
Option B: Install nacos-cli globally
Linux / macOS:
curl -fsSL https://nacos.io/nacos-installer.sh | sudo bash -s -- --cli
Windows (PowerShell):
iwr -UseBasicParsing https://nacos.io/nacos-installer.ps1 -OutFile $env:TEMP\nacos-installer.ps1; & $env:TEMP\nacos-installer.ps1 -cli; Remove-Item $env:TEMP\nacos-installer.ps1
nacos-cli uses a profile-based configuration system. The default profile is stored at ~/.nacos-cli/default.conf.
Once configured, all commands work without any extra flags.
Check if the default profile already exists by running:
test -f ~/.nacos-cli/default.conf && echo "configured" || echo "not configured"
If the output is "configured", skip to the next step — nacos-cli will use it automatically.
If the output is "not configured", you need to create the config file for the user. Ask the user to provide the following information:
10.0.0.1)8848)nacos or aliyun)Then create the config file directly:
mkdir -p ~/.nacos-cli && cat > ~/.nacos-cli/default.conf << 'EOF'
host: <user-provided-host>
port: <user-provided-port>
authType: nacos
username: <user-provided-username>
password: <user-provided-password>
namespace: <user-provided-namespace>
EOF
For aliyun auth type, use this format instead:
mkdir -p ~/.nacos-cli && cat > ~/.nacos-cli/default.conf << 'EOF'
host: <user-provided-host>
port: <user-provided-port>
authType: aliyun
accessKey: <user-provided-access-key>
secretKey: <user-provided-secret-key>
namespace: <user-provided-namespace>
EOF
After creating the config, all subsequent commands will use it automatically — no extra flags needed.
When a user asks for help, identify:
Run the skill-list command (uses the default profile automatically):
nacos-cli skill-list
To filter by name:
nacos-cli skill-list --name <keyword>
For example:
nacos-cli skill-list --name review
nacos-cli skill-list --name test
nacos-cli skill-list
The command returns results in this format:
Skill List (Total: N)
═══════════════════════════════════════════════════════════════════════════════
1. <skill-name> - <description>
2. <skill-name> - <description>
...
When you find relevant skills, present them clearly:
Example response:
I found N skills in Nacos. The most relevant one for your needs is:
**<skill-name>** - <description>
To install it:
nacos-cli skill-get <skill-name>
This will download the skill to ~/.skills/ and make it available immediately.
Would you like me to install it?
If the user wants to proceed, download and install the skill:
nacos-cli skill-get <skill-name>
The skill will be downloaded to ~/.skills/ by default. To install to a custom location:
nacos-cli skill-get <skill-name> -o /custom/path
After installation, confirm the skill is available by checking the directory:
ls ~/.skills/<skill-name>/SKILL.md
When a user wants to share a skill with their team by publishing it to Nacos, follow these steps.
Same as the discovery flow above -- check which nacos-cli and ensure a profile is configured (see Step 2 of the
discovery flow).
A valid skill directory must contain a SKILL.md file with proper frontmatter (name, description). Confirm the path:
ls <path-to-skill>/SKILL.md
If the file doesn't exist or lacks frontmatter, help the user create or fix it before uploading.
nacos-cli skill-upload <path-to-skill>
The command reads the skill's SKILL.md frontmatter to determine the skill name and description, then publishes all files in the directory to the Nacos server.
After uploading, verify the skill is visible in Nacos:
nacos-cli skill-list --name <skill-name>
Example response to user:
Your skill "<skill-name>" has been uploaded to Nacos successfully!
Team members can install it with:
nacos-cli skill-get <skill-name>
When no flags are provided, nacos-cli automatically loads the default profile from ~/.nacos-cli/default.conf. This is
the recommended way to use nacos-cli — configure once with nacos-cli profile edit, then all commands work without any
flags.
If no relevant skills exist in Nacos:
Example:
I searched for skills related to "xyz" in Nacos but didn't find any matches.
I can still help you with this task directly! Would you like me to proceed?
If this is something your team does often, you could create a skill and
publish it to Nacos for everyone:
nacos-cli skill-upload /path/to/your-skill
nacos-cli profile edit once to configure, then all commands work without any flags-n <namespace> to switchnacos-cli skill-sync --all to keep local skills in sync with Nacos