CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-nodejs

Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration. The only SDK supporting image generation (ai.createImageModel + generateImage). Text via ai.createModel with groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*; model ids (e.g. deepseek-v4.1-flash, glm-5.3, kimi-k2.6) go in the `model` field of generateText/streamText. MUST run two-step preflight before code — see body. NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat).

Quality

90%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

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

SKILL.md
Quality
Evals
Security

Quality

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.

Highly actionable, well-sequenced content with a rigorous preflight workflow and a clean one-level-deep bundle split. The main cost is token efficiency: the createModel legal-values rules and the 'never assume enabled' warning are each restated in three to four places, which could be consolidated into one canonical section without losing the guardrail effect.

Suggestions

Consolidate the four-legal-values rule for createModel into one canonical section (the STOP table) and reduce the 'Available Providers and Models' and Best Practice #3 repetitions to one-line cross-references.

State the 'never assume a model is enabled' rule once in preflight ② and reference it from the STOP table, Providers section, and Best Practice #2 instead of restating the full DescribeAIModels/DescribeManagedAIModelList/UpdateAIModel procedure in each place.

Consider moving the provider roster detail in 'Available Providers and Models' (per-vendor model lists, resource-point quota behavior) into a reference file, keeping only the routing decision (which group to use) in SKILL.md.

DimensionReasoningScore

Conciseness

No filler or explanations of concepts Claude already knows, but core guardrails are repeated verbatim across sections: the four legal createModel values appear in the STOP section, again in 'Available Providers and Models', and again in Best Practice #3, while 'never assume a model is enabled' appears in four places. Consolidating these would cut substantial tokens, so the body is mostly efficient but could be tightened rather than merely having minor trim spots.

3 / 5

Actionability

Fully executable throughout: exact MCP tool calls with parameters (e.g. callCloudApi(service="tcb", action="DescribeAIModels", params={ EnvId })), explicit pass conditions, a ready-to-send user-facing failure message with the purchase URL, a complete UpdateAIModel payload, install/init code, and concrete timeout ranges per operation type.

5 / 5

Workflow Clarity

The two-step preflight is a clearly sequenced workflow with explicit validation checkpoints and feedback loops — pass/fail branches for the resource-pack check, 'Do not write createModel("cloudbase") yet' gates, a numbered 5-step decision procedure, and a re-check loop after the user purchases — and Best Practice #13 adds self-verification before claiming done.

5 / 5

Progressive Disclosure

The body keeps the always-needed routing and preflight logic inline and appropriately splits bulk material into references/api-reference.md (full API examples and types) and references/custom-onboarding.md (onboarding flow) — both real files, clearly signaled, one level deep with no nested references, and indexed in a closing Reference index.

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 strong, information-dense description that explicitly answers what, when, and when-not with concrete API names and disambiguation against sibling skills. The only weakness is that the jargon-heavy middle sentence (group names and model-field mechanics) displaces more user-natural phrasing, keeping trigger-term coverage at good rather than comprehensive.

DimensionReasoningScore

Specificity

Names both SDK capabilities with concrete API entry points — 'image generation (ai.createImageModel + generateImage)' and 'Text via ai.createModel' with model ids in 'the `model` field of generateText/streamText' — plus a comprehensive list of backend contexts (cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration). Text and image are the SDK's full AI surface, so coverage is comprehensive rather than having minor gaps.

5 / 5

Completeness

Opens with an explicit trigger clause ('Use this skill for Node.js backend AI via @cloudbase/node-sdk') and closes with explicit negative triggers ('NOT for browser/Web (use ai-model-web) or Mini Program'), so both 'what' and 'when' are clearly and concretely answered.

5 / 5

Trigger Term Quality

Good natural-keyword coverage ('Node.js backend AI', 'cloud functions', 'CloudRun', 'image generation', 'agent orchestration', model names deepseek/glm/kimi), but the middle sentence is SDK-internal jargon ('groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*') users would not naturally say, and a few common phrasings (e.g. chat/chatbot, calling an LLM from a server) are missing — so it falls short of the comprehensive-synonyms bar of the top anchor.

4 / 5

Distinctiveness Conflict Risk

Occupies a clear niche (server-side AI via this specific Node SDK, 'The only SDK supporting image generation') and explicitly routes adjacent runtimes to sibling skills (ai-model-web, ai-model-wechat), giving minimal conflict risk.

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

connectors/cloudbase-intl/skills/references/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.