| name | create-ticloud-cli-command |
| description | Builds TiDB Cloud CLI commands. Use when creating new commands. |
| license | Complete terms in LICENSE.txt |
| metadata | {"author":"shiyuhang0"} |
Create TiCloud CLI Command
This skill builds TiDB Cloud CLI commands, helping users create new commands with production-ready code.
When to use
- The user asks to create new CLI commands or subcommands.
- Do not use when the agent does not support plan mode.
About TiDB Cloud CLI
TiDB Cloud CLI (TiCloud CLI) is a command-line interface for interacting with TiDB Cloud, built on the Cobra library.
Key design of TiDB Cloud CLI:
-
Built on the Cobra library.
-
Uses the TiDB Cloud Open API as the client and keeps the SDK inside the project.
-
Every command supports both interactive and non-interactive modes.
-
More about TiDB Cloud CLI: references/tidbcloud-cli.md.
-
More about Cobra: references/cobra.md.
Core Principles
Plan first
The AI agent must switch to plan mode to collect information from the user and generate a plan first.
Then use agent mode to generate the code.
Test first
If the user requires testing, testing takes precedence over implementation. Write tests first, then implement, and finally validate against the tests.