nocobase-publish-manage
Use when users need NocoBase backup restore or migration publish operations through nb api backup and nb api migration commands.
What this skill does
# Goal Orchestrate NocoBase backup restore and migration workflows with the current API CLI command surface. The skill converts user intent into an API-first publish context, carries generated names and local paths between steps, and requires explicit confirmation before restore or migration execution changes target data. # Scope - Backup list, create, status, download, remove, restore, restore-upload, and restore-status through `nb api backup`. - Migration file list, get, create, download, remove, check, and execute through `nb api migration`. - Migration rule list, get, and global rule create through `nb api migration rules`. - Migration log list, get, and download through `nb api migration logs` for diagnosis. - Same-environment and cross-environment workflows. The default test workflow uses `source_env=dev` and `target_env=dev`. - Planning, dry explanation, read-only validation, and failure diagnosis from command output. # Non-Goals - This skill focuses on the API CLI command surface listed in Scope. - Package and rule selection stays explicit. - Restore, execute, and remove actions stay behind the execution confirmation gate. - Failure recovery preserves the current context and waits for user direction before a new package or rule is created. # Input Contract | Input | Required | Default | Validation | Clarification | |---|---|---|---|---| | `action` | yes | inferred | `plan`, `run`, or `validate` | "Should I plan, run, or validate the workflow?" | | `method` | run: yes | inferred | `backup` or `migration` | "Use backup restore or migration publish?" | | `source_env` | conditional | `dev` for tests | non-empty env name | "Which environment provides or generates the file?" | | `target_env` | run: yes | `dev` for tests | non-empty env name | "Which environment should receive and execute the file?" | | `backup_name` | optional | unset | backup file name from `backup list/create` | "Which server backup should be restored or downloaded?" | | `migration_name` | optional | unset | migration file name from `migration list/create` | "Which server migration package should be downloaded?" | | `local_file` | optional | unset | readable local `.nbdata` path | "Which local package file should be uploaded or executed?" | | `cli_home` | optional | CLI global home | writable CLI home directory | "Which CLI home should store downloaded release files?" | | `rule_id` | migration create only | unset | non-empty id | "Which migration rule ID should be used?" | | `migration_user_rule` | migration rule create only | `schema-only` | `schema-only` or `overwrite` | "How should user-defined tables be handled?" | | `migration_system_rule` | migration rule create only | `overwrite-first` | `overwrite-first` or `schema-only` | "How should system tables be handled?" | | `title` | migration create only | `publish-<source>-to-<target>` | non-empty text | "Which migration title should be used?" | | `execute_options` | optional | safe CLI defaults | known `nb api backup restore*` or `nb api migration execute` flags | "Any high-risk flags such as `--skip-backup` or `--skip-revert-on-error`?" | | `confirm_publish_input` | before create/download/rule create/check | unset | explicit approval | "Confirm the selected input before I create, download, or check the package." | | `confirm_execute` | before restore/execute/remove | unset | must be `confirm` | "Type `confirm` to execute on the target environment." | # Mandatory Clarification Gate - Max clarification rounds: 2. - Ask at most 3 short questions per round. - Mutation steps require resolved `method`, `source_env`, and `target_env`. - Migration package creation requires a selected or newly created `rule_id`. - Existing package list flows require user selection of a specific file. - Package create, package download, migration rule create, and migration check require publish input confirmation. - Backup restore, backup restore-upload, backup remove, migration execute, and migration remove require execution confirmation. - If the user says "you decide", choose a read-only planning path. # Workflow 1. Route intent to `backup` or `migration`. 2. Build a context with `method`, `sourceEnv`, `targetEnv`, `cliHome`, `releaseDir`, `backupName`, `migrationName`, `localFile`, `downloadPath`, `ruleId`, `title`, and `step`. 3. Run read-only capability probes for the needed command groups. Treat 404, `Not Found`, unknown resource, inactive plugin, or license capability errors as `unsupported_publish_env`. 4. For backup restore: - Local file: confirm the file, then restore it with `nb api backup restore-upload --file <localFile> -e <targetEnv> --force`. - Server backup on target: confirm the backup name, then restore it with `nb api backup restore --name <backupName> -e <targetEnv> --force`. - Source-to-target: create or select the backup on `sourceEnv`, download it to `<cliHome>/release/<sourceEnv>/<backupName>`, then restore-upload that path on `targetEnv` with `--force`. 5. For migration: - Local file: confirm the file, check it on `targetEnv`, then execute it on `targetEnv`. - Server migration package: download it from `sourceEnv` to `<cliHome>/release/<sourceEnv>/<migrationName>`, check it on `targetEnv`, then execute it on `targetEnv`. - Created migration package: list or create a global rule, create the migration on `sourceEnv`, poll `migration get` until the generated package reports `status=ok`, download it to `<cliHome>/release/<sourceEnv>/<migrationName>`, check it on `targetEnv`, then execute it on `targetEnv`. 6. Poll or inspect status with available commands when needed: `backup status`, `backup restore-status --task <taskId>`, `migration get`, and `migration logs`. 7. Treat restore task ids as compatible fields: parse `taskId` from `data.taskId` or `data.task`, then pass that value to `backup restore-status --task`. 8. Report the final state, commands executed or planned, file names, local paths, failed step, and next verification command. See [Runtime Contract](references/v1-runtime-contract.md) for exact command construction and parsing rules. # Reference Loading Map | Reference | Use When | |---|---| | [Intent Routing](references/intent-routing.md) | Mapping user phrases to backup, migration, file reuse, and environment shape. | | [Runtime Contract](references/v1-runtime-contract.md) | Building commands and carrying names, paths, rules, and status between steps. | | [Test Playbook](references/test-playbook.md) | Validating supported API workflows and failure cases. | # Safety Gate High-impact actions: - `nb api backup restore` - `nb api backup restore-upload` - `nb api backup remove` - `nb api migration execute` - `nb api migration remove` - `nb api migration rules create` - any option that skips target backup or revert behavior, such as `--skip-backup` or `--skip-revert-on-error` Publish input confirmation template: ```text Confirm publish input: <method> from <source_env> to <target_env>. Package source: <existing server file | local file | create new>. Migration rule: <ruleId/name | create new with user-defined-rule/system-defined-rule | not applicable>. Reply `confirm input` to continue with package creation, download, or check. ``` Execution confirmation template: ```text Confirm execution: <backup restore | migration execute> on <target_env> using <backupName | migrationName | localFile>. This may change target data. Reply `confirm` to continue. ``` Failure guidance: - Backup restore failure: if a restore task id is available from `data.taskId` or `data.task`, inspect `nb api backup restore-status --task <taskId> -e <targetEnv>`. - Migration package creation: if `migration get` reports `status=in_progress`, tell the user the package is still generating, wait, and do not run `migration download` until `status=ok`. - Migration check failure: report the check output and keep the local package path. - Migration execution failure: inspect `nb api migration logs list -e <targetEnv>` an
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.