This skill covers server-side text and image generation with `@cloudbase/node-sdk`, including model groups, model enablement, cloud-function configuration, and SDK usage. It requires checking Token Credits eligibility and model readiness before writing code, and provides guidance on pricing, secrets, timeouts, streaming, error handling, and verification. It also explains when to use other CloudBase AI skills instead.
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
The canonical home for this skill is ai-model-nodejs in TencentCloudBase/CloudBase-AI-Toolkit
The skill handles credentials insecurely by requiring the agent to include secret values verbatim in its generated output. This exposes credentials in the agent’s context and conversation history, creating a risk of data exfiltration.
The main managed `cloudbase` path keeps credentials out of context, but the optional custom-onboarding branch directs the model to pass a user-supplied vendor API key (`Secret.ApiKey`) into a `CreateAIModel` tool call.
The skill prompts the agent to compromise the security or integrity of the user’s machine by modifying system-level services or configurations, such as obtaining elevated privileges, altering startup scripts, or changing system-wide settings.
The skill instructs the agent to run state-changing AI-group operations (`UpdateAIModel`, `CreateAIModel`, `DeleteAIModel`) on the environment, which passes the operational-change gate, but the supplied text describes only recoverable changes (models can be re-added, and custom groups can be re-onboarded), so the irreversible-loss gate fails.
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.