CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-nodejs

This skill explains how to use `@cloudbase/node-sdk` for server-side text and image generation, and when to route frontend or Mini Program work to a different skill. It prescribes eligibility and model-readiness preflight checks before SDK code, with guidance on model onboarding, configuration, pricing, timeouts, error handling, privacy, and self-verification.

Quality

90%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

The canonical home for this skill is ai-model-nodejs in TencentCloudBase/CloudBase-AI-Toolkit

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

85%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

An exceptionally actionable, well-sequenced skill body with a genuinely validated preflight workflow and clean one-level-deep reference structure. Its one real weakness is token efficiency: the same guardrail rules (legal createModel values, never-assume-enabled, Models-full-replacement) are restated three to four times each, and a stale-prone SKU roster is inlined that the skill's own advice says not to hard-code.

Suggestions

State the four legal createModel values once (in the ⛔ STOP table) and have the 'Available Providers and Models' section and Best Practices #3 refer back to it instead of restating it, trimming ~30 lines of duplication.

Move the vendor/model SKU roster ("DeepSeek-V4-Pro, ... GLM-5 ... Kimi K2.5, K2.6", etc.) out of the body into a reference file or drop it entirely — it will go stale and contradicts the skill's own "do not hard-code specific SKUs; discover at runtime" rule.

Consolidate the repeated "never assume a model is already enabled" / "Models is a full replacement" warnings into the preflight section, where the UpdateAIModel payload already demonstrates both, and delete the duplicate mentions elsewhere.

DimensionReasoningScore

Conciseness

The body never explains concepts Claude already knows (all detail is SDK-contract-specific, so above anchor 2), but core rules are repeated to the point of padding: the four legal createModel values are stated in the "⛔ STOP" table, again in "Available Providers and Models", and again in Best Practices #3; "never assume a model is already enabled" and "Models is a full replacement" each recur in 3–4 places; and a hard-coded vendor SKU roster ("DeepSeek-V4-Pro, DeepSeek-V4-Flash, ... GLM-5, GLM-5.1 ... Kimi K2.5, K2.6") is inlined despite the skill itself saying "do not hard-code specific SKUs; discover at runtime". This is more than anchor 4's "minor instances", so 3.

3 / 5

Actionability

Fully executable guidance throughout: exact MCP invocations ("callCloudApi(service=\"tcb\", action=\"DescribeEnvPostpayPackage\", params={ EnvId })"), enumerated pass conditions, a complete UpdateAIModel payload with the full-replacement warning, copy-paste init and createModel code blocks, parameterized timeout ranges, and a ready-to-use purchase URL template. The referenced api-reference.md contains complete runnable generateText/streamText/generateImage examples, matching the 5 anchor's copy-paste-ready coverage of common cases.

5 / 5

Workflow Clarity

The mandatory preflight is a clearly sequenced workflow — Step 0 (queryEnv) → ① eligibility → ② group readiness — with explicit validation checkpoints (each pass condition bullet-listed), failure branches with the exact user-facing message to surface, an error-recovery fallback ("If the call returns InvalidParameter, fall back to camelCase"), a numbered decision procedure for model requests, and a self-verify feedback loop in Best Practices #13 ("tsc --noEmit ... confirm usage.total_tokens > 0"). Matches the 5 anchor's explicit validation steps plus feedback loops.

5 / 5

Progressive Disclosure

Both bundle files exist and are linked one level deep with clear signals of their contents — "read [api-reference.md](references/api-reference.md)" for code examples/types and "[custom-onboarding.md](references/custom-onboarding.md)" for the onboarding flow — and a closing "Reference index" lists both; neither reference file points to further files (verified). The split is appropriate: routing/contract/preflight live in SKILL.md while bulk code and the onboarding walkthrough live in references, matching the 5 anchor.

5 / 5

Total

18

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A highly specific, well-routed description that answers what, when, and when-not with concrete API names, runtimes, model ids, and explicit sibling-skill disambiguation. Its only weaknesses are a few missing natural trigger synonyms (chat, chatbot, Tencent CloudBase) and density that borders on over-stuffing implementation detail into a routing description.

DimensionReasoningScore

Specificity

Names multiple concrete API actions with comprehensive coverage of the skill's surface: "The only SDK supporting image generation (ai.createImageModel + generateImage)" and "Text via ai.createModel with groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*; model ids ... go in the `model` field of generateText/streamText", plus operational uses like "scheduled jobs, LLM proxies, agent orchestration". This matches the 5 anchor ("multiple specific concrete actions; comprehensive coverage") rather than 4, since no capability area of the skill is left unnamed.

5 / 5

Completeness

Explicitly answers both what ("The only SDK supporting image generation", "Text via ai.createModel ... generateText/streamText") and when ("Use this skill for Node.js backend AI via @cloudbase/node-sdk — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration"), with concrete negative triggers too ("NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)"). The 'Use this skill for...' clause satisfies the trigger-guidance requirement, and the when is specific with concrete trigger contexts, matching the 5 anchor rather than 4's 'could be more explicit'.

5 / 5

Trigger Term Quality

Good natural-keyword coverage: "Node.js backend AI", "cloud functions", "CloudRun", "Express/Koa/NestJS", "serverless APIs", "scheduled jobs", "LLM proxies", and concrete model ids users would name ("deepseek-v4.1-flash, glm-5.3, kimi-k2.6"). However, common user phrasings such as "chat", "chatbot", or "Tencent CloudBase"/"TCB" are absent, so it fits 4 ("good keyword coverage; a few natural terms missing") rather than 5's comprehensive synonym coverage.

4 / 5

Distinctiveness Conflict Risk

Pins the exact SDK ("@cloudbase/node-sdk (>=3.16.0)") and runtime plane, and explicitly disambiguates sibling skills ("NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)"). Clear niche with distinct triggers and minimal conflict risk — matches the 5 anchor; nothing generic remains that would fire the wrong skill.

5 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

TencentCloudBase/CloudBase-AI-Toolkit

Path

config/.claude/skills/ai-model-nodejs/SKILL.md

Reviewed

Table of Contents

Is this your skill?

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.