Λογότυπο Alibabacloud Suggest Cli

Alibabacloud Suggest Cli

Οργανισμός
aliyun
alibabacloud-suggest-cli

Suggest Alibaba Cloud `aliyun` CLI command strings from natural-language cloud operation requests, ready to pass as the `command` argument of the MCP `CallCLI` tool. Use when the user asks for the CLI command to do something, wants to manage cloud resources via aliyun, or asks "how do I do X with the aliyun CLI". Use `unifiedCli` from GenerateCLICommand (fallback to `cli` when empty) verbatim as the CallCLI command — no manual rewriting. Passes check_cli.py static validation. Suggest only — do not execute unless asked.

Επισκόπηση

Εκδότηςaliyun
Αποθετήριοalibabacloud-agent-toolkit
Όνομα δεξιότηταςalibabacloud-suggest-cli
Αστέρια
29
Διακλαδώσεις
13
Συνοδευτικά αρχεία
1
Άδεια χρήσηςApache-2.0
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 1

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό aliyun. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Alibabacloud Suggest Cli στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/aliyun/alibabacloud-agent-toolkit/tree/main/plugins/alibabacloud-core/skills/alibabacloud-suggest-cli
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aliyun/alibabacloud-agent-toolkit.git /tmp/alibabacloud-agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/alibabacloud-agent-toolkit/plugins/alibabacloud-core/skills/alibabacloud-suggest-cli .claude/skills/alibabacloud-suggest-cli
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Alibabacloud Suggest Cli σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Alibabacloud Suggest Cli μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Alibabacloud Suggest Cli δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Alibaba Cloud CLI Command Suggester

Turn a natural-language Alibaba Cloud request into one or more aliyun CLI command strings, each ready to be passed as the command argument of the MCP CallCLI tool. After calling GenerateCLICommand, take the returned unifiedCli field verbatim; if unifiedCli is empty, fall back to cli. Do not manually rewrite either field. Commands must satisfy CallCLI's constraints, must pass check_cli.py validation before output, and are suggested only — do not run them unless the user explicitly asks.

Scope Check Before You Start

  • CLI command suggestions (this skill): produce aliyun ... command strings (from GenerateCLICommand) for the MCP CallCLI tool. No execution, no SDK code.
  • CLI syntax & troubleshooting reference → alibabacloud-cli-guidance: the knowledge base for plugin vs built-in routing, --biz- naming, auth, install, and error fixes. Read it when you need rules; this skill is the generation + validation loop on top of those rules.

Workflow

  1. Split the request into atomic cloud operations. For each, verify the product, API/action name, version, and required parameters using MCP tools — do not guess.

  2. Search APIs for operations whose action you are unsure about. Use AlibabaCloud___SearchApis with a natural-language description. Keep to one parallel batch.

  3. Read API definitions to confirm exact parameter names, types, and which are required. Use AlibabaCloud___GetApiDefinition with product, action, and version. Do not skip this step for unfamiliar APIs.

  4. Build jsonApiParameters from the API definition before generating the command. Prefer user-provided values. For missing values needed to make a useful suggestion, create reasonable mock values from the parameter structure returned by GetApiDefinition:

    • Use exact OpenMeta parameter names; never invent names from CLI flags or memory.
    • Include parameters marked required, plus small harmless shaping parameters for list/query APIs when useful (for example PageSize: 10, MaxItems: 10, or max-keys: 10) only if those parameters exist in the definition.
    • For region-like parameters, use the user's region when present; otherwise use cn-hangzhou.
    • For IDs, use realistic placeholders with the correct service prefix, such as i-test1234567890, vpc-test1234567890, vsw-test1234567890, sg-test1234567890, or eipalloc-test1234567890.
    • For names and descriptions, use short safe placeholders such as test-vpc, test-sg, or updated by static cli test.
    • For CIDR and network fields, use documentation-style private/test ranges such as 10.0.0.0/8, 10.0.1.0/24, or 203.0.113.0/24.
    • For enums and booleans, choose conservative valid-looking values from the parameter description or examples, such as tcp, accept, PayByTraffic, EcsInstance, or false.
    • For integer sizes/counts/bandwidths, use small values such as 1, 5, or 10.
    • For arrays/objects, preserve the schema shape: pass arrays as JSON arrays and objects as JSON objects in jsonApiParameters; do not flatten them into guessed CLI flags.
    • If a required parameter cannot be mocked safely from the definition, use a clear placeholder value like <instance-id> and mention that it must be replaced.

    Treat mock values as examples only. Do not execute generated commands unless the user explicitly asks.

  5. Generate the command with AlibabaCloud___GenerateCLICommand (product, version, action, params). From the response, take unifiedCli verbatim as the aliyun ... string for MCP CallCLI. If unifiedCli is empty, take cli instead. Do NOT manually rewrite, re-case, or word-split either field — GenerateCLICommand already emits the correct subcommand and parameter names (avoiding proper-noun mistakes like Vpc, Ipv6, SLB). Only supply parameter values in the GenerateCLICommand request from the user's input and the API definition. When multiple independent calls are needed, batch the MCP lookups in parallel. Never repeat the same tool call with identical arguments.

  6. Write the command string(s) to /tmp/aliyun-cli-commands.sh (one per line) and validate with the local checker:

    bash
    cat > /tmp/aliyun-cli-commands.sh <<'SHEOF'
    <aliyun command strings here, one per line>
    SHEOF
    python3 <SKILL_DIR>/script/check_cli.py /tmp/aliyun-cli-commands.sh

    Where <SKILL_DIR> is the directory containing this SKILL.md file.

  7. If validation fails, read the -> fix suggestion for each violation, fix ONLY the listed issues, and re-validate. Maximum 3 rounds. If violations persist, show them to the user.

  8. After validation passes, output the command string(s) in a single code block — each line is a value you would pass as the command argument of MCP CallCLI. Optionally add a one-line note about required parameters or --help. Do not execute them.

CLI Contract

Enforced by script/check_cli.py (local pre-check). On failure, read each violation's -> fix line; for broader CLI syntax, auth, or troubleshooting, see alibabacloud-cli-guidance.

Rule IDCategoryRule
—Command sourceAfter GenerateCLICommand, use the returned unifiedCli as the CallCLI command string. If unifiedCli is empty, use cli. Take the chosen field verbatim — do NOT hand-rewrite casing or split words. Only parameter values are supplied in the GenerateCLICommand request.
REQ-3001CallCLI stringEach line is one aliyun ... command string to pass to MCP CallCLI. It must start with aliyun — no echo, env prefixes, or leading subshell.
SEC-2002No shell constructsCallCLI runs a single command with no shell. No pipes |, redirects >/<, operators &&/||/;, or substitution $(...)/backticks. Use --cli-query to filter instead of piping to grep/jq. Operators inside quoted values (JMESPath, JSON) are fine.
SEC-2003No local filesThe MCP server is remote: no file:// / fileb:// paths. File-based commands (e.g. oss cp) must run with the local Bash tool, not CallCLI.
—Dependent stepsChain dependent operations by showing separate command lines with a <placeholder> for values carried on a previous command's output — never wire them with $(...).
—OSS / ossutilOSS has custom commands (aliyun oss cp/ls/mb, aliyun ossutil sync), not OpenAPI actions. File operations (cp, sync) need local filesystem access and must use the Bash tool, not CallCLI.
—Structured paramsLists are space-separated (--security-group-ids sg-1 sg-2); repeatable key-values use repeated flags (--tag Key=env Value=prod); complex structures use single-quoted JSON (--data-disk '{"Size":100}').
—Output filteringUse --cli-query "<jmespath>" to filter, --output table, json, or cols=... to format, --pager / --page-size for pagination, --waiter expr='Status' to='Available' to wait.
—No auto-execSuggest the command string(s) only. Do not call MCP CallCLI or run aliyun locally unless the user explicitly asks.
—Output formatOutput the command string(s) in one code block. Keep prose minimal — at most a one-line note about required params or --help.

Command Patterns

Each line below is a command string for MCP CallCLI. These are illustrative shapes — the actual command must come from GenerateCLICommand's unifiedCli (or cli when unifiedCli is empty), not from copying the examples here.

Single command (one operation):

bash
aliyun ecs describe-instances --biz-region-id cn-hangzhou --page-size 50

Sequential (dependent steps — use a placeholder, not shell substitution):

bash
# 1) Create the VPC, note the returned VpcId
aliyun vpc create-vpc --biz-region-id cn-hangzhou --cidr-block 10.0.0.0/8
# 2) Create a VSwitch in that VPC (replace <vpc-id> with the value from step 1)
aliyun vpc create-vswitch --biz-region-id cn-hangzhou --vpc-id <vpc-id> --cidr-block 10.0.0.0/16 --zone-id cn-hangzhou-a

Do not chain with shell substitution or pipes (SEC-2002):

bash
# ❌ aliyun vpc create-vswitch --vpc-id $(aliyun vpc create-vpc ... --cli-query VpcId)
# ❌ aliyun ecs describe-instances --biz-region-id cn-hangzhou | grep Running

Pagination (list everything):

bash
aliyun ecs describe-instances --biz-region-id cn-hangzhou --pager path='Instances.Instance[]' PageNumber=PageNumber PageSize=PageSize

Filtered output (project specific fields):

bash
aliyun ecs describe-instances --biz-region-id cn-hangzhou --cli-query "Instances.Instance[?Status=='Running'].{ID:InstanceId,Name:InstanceName}" --output table

Wait for state:

bash
aliyun vpc describe-vpc-attribute --biz-region-id cn-shanghai --vpc-id <vpc-id> --waiter expr='Status' to='Available'

Guardrails

  • Suggest the aliyun ... command string(s) only. Do not call MCP CallCLI or run them locally unless the user explicitly asks.
  • Use unifiedCli from GenerateCLICommand as the CallCLI command; if empty, use cli. Do not rewrite either field. Only supply parameter values in the GenerateCLICommand request; do not invent flags or values.
  • Do not use any MCP server except the local alibabacloud-core server for API discovery.
  • Always validate with check_cli.py before output. Do not skip validation.
  • If the request is ambiguous but not dangerous, use <placeholder> values instead of asking.
  • Do not add boilerplate, redundant flags, or unused parameters.

References

  • script/check_cli.py — local CallCLI constraint checker (REQ-3001, SEC-2002, SEC-2003).
  • alibabacloud-cli-guidance — CLI syntax, auth, install, plugin system, and troubleshooting.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Alibabacloud Suggest Cli;

Suggest Alibaba Cloud `aliyun` CLI command strings from natural-language cloud operation requests, ready to pass as the `command` argument of the MCP `CallCLI` tool. Use when the user asks for the CLI command to do something, wants to manage cloud resources via aliyun, or asks "how do I do X with the aliyun CLI". Use `unifiedCli` from GenerateCLICommand (fallback to `cli` when empty) verbatim as the CallCLI command — no manual rewriting. Passes check_cli.py static validation. Suggest only — do not execute unless asked.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Alibabacloud Suggest Cli στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Alibabacloud Suggest Cli είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Alibabacloud Suggest Cli στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/aliyun/alibabacloud-agent-toolkit/tree/main/plugins/alibabacloud-core/skills/alibabacloud-suggest-cli. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Alibabacloud Suggest Cli;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Alibabacloud Suggest Cli;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Alibabacloud Suggest Cli με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Alibabacloud Suggest Cli;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό aliyun με την άδεια χρήσης Apache-2.0. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇