Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add alibaba/nacos --skill "find-skill-from-nacos"
Install specific skill from multi-skill repository
# Description
Discover and install AI skills from Nacos. Use when users want to find or install skills from a team's Nacos server.
# SKILL.md
name: find-skill-from-nacos
description: Discover and install AI skills from Nacos. Use when users want to find or install skills from a team's Nacos server.
Find Skills from Nacos
This skill helps you discover and install AI skills from a Nacos configuration center using the nacos-cli tool.
When to Use This Skill
Use this skill when the user:
- Asks "how do I do X" where X might be a task with an existing skill in Nacos
- Says "find a skill for X" or "is there a skill in Nacos for X"
- Asks "what skills are available" or "list skills from Nacos"
- Wants to search for tools, templates, or workflows stored in Nacos
- Needs to download or install a skill from a team/organization's Nacos server
- Mentions they want to share or discover skills within their team
What is nacos-cli?
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-time
How to Help Users Find and Install Skills
Step 1: Ensure nacos-cli is Available
Check if nacos-cli is installed:
which nacos-cli
If not found, install it from source:
git clone https://github.com/nacos-group/nacos-cli.git
cd nacos-cli && go build -o nacos-cli
mkdir -p ~/.local/bin
cp nacos-cli ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"
To make the PATH change permanent, add the following line to ~/.bashrc or ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"
Step 2: Resolve Configuration
The default config file path is ~/.find-skill-from-nacos.conf. Check if it exists:
cat ~/.find-skill-from-nacos.conf
If the config file exists, use it directly for all subsequent commands:
nacos-cli --config ~/.find-skill-from-nacos.conf skill-list
If the config file does NOT exist, ask the user to choose one of the following options:
- Provide an existing config file path - User has a config file elsewhere. Use it directly, no need to save.
- Use default configuration - Use the built-in defaults (127.0.0.1:8848, nacos/nacos). Save to
~/.find-skill-from-nacos.conf. - Input custom configuration - User provides host, port, username, password, namespace. Save to
~/.find-skill-from-nacos.conf.
For options 2 and 3, save the configuration to ~/.find-skill-from-nacos.conf so it can be reused next time:
# ~/.find-skill-from-nacos.conf
host: 127.0.0.1
port: 8848
username: nacos
password: nacos
namespace: ""
Step 3: Understand What They Need
When a user asks for help, identify:
- The domain (e.g., code review, testing, deployment, documentation)
- The specific task (e.g., writing tests, reviewing PRs, generating docs)
- Whether this is a common enough task that a skill likely exists in Nacos
Step 4: Search for Skills
Run the skill-list command with the resolved config:
nacos-cli --config ~/.find-skill-from-nacos.conf skill-list
To filter by name:
nacos-cli --config ~/.find-skill-from-nacos.conf skill-list --name <keyword>
For example:
- User asks "can you help me review code?" ->
nacos-cli skill-list --name review - User asks "is there a skill for testing?" ->
nacos-cli skill-list --name test - User asks "what skills do we have?" ->
nacos-cli skill-list
The command returns results in this format:
Skill List (Total: N)
═══════════════════════════════════════════════════════════════════════════════
1. <skill-name> - <description>
2. <skill-name> - <description>
...
Step 5: Present Options to the User
When you find relevant skills, present them clearly:
- Summarize what skills were found
- Highlight the most relevant skill(s) based on user's needs
- Provide the install command
Example response:
I found N skills in Nacos. The most relevant one for your needs is:
**<skill-name>** - <description>
To install it:
nacos-cli --config ~/.find-skill-from-nacos.conf skill-get <skill-name>
This will download the skill to ~/.skills/ and make it available immediately.
Would you like me to install it?
Step 6: Install the Skill
If the user wants to proceed, download and install the skill:
nacos-cli --config ~/.find-skill-from-nacos.conf skill-get <skill-name>
The skill will be downloaded to ~/.skills/ by default. To install to a custom location:
nacos-cli --config ~/.find-skill-from-nacos.conf skill-get <skill-name> -o /custom/path
After installation, confirm the skill is available by checking the directory:
ls ~/.skills/<skill-name>/SKILL.md
Connection Reference
Command-line flags (can override config file settings):
| Flag | Short | Description |
|---|---|---|
| --server | -s | Nacos server address (host:port) |
| --username | -u | Nacos username (default: nacos) |
| --password | -p | Nacos password (default: nacos) |
| --namespace | -n | Nacos namespace ID |
| --config | -c | Path to configuration file |
When No Skills Are Found
If no relevant skills exist in Nacos:
- Acknowledge that no existing skill was found
- Offer to help with the task directly using general capabilities
- Suggest creating and publishing a new skill
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 --config ~/.find-skill-from-nacos.conf
Tips for Effective Use
- Use specific keywords: "react testing" is better than just "testing" when filtering
- Try alternative terms: If "deploy" doesn't work, try "deployment" or "ci-cd"
- Check namespaces: Different teams may store skills in different Nacos namespaces - use
-n <namespace>to switch - Use config files: Save connection details to avoid typing credentials repeatedly
- Keep skills updated: Use
nacos-cli skill-sync --allto keep local skills in sync with Nacos
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.