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, hunyuan-exp, or custom-*; model ids (e.g. deepseek-v4-flash, glm-5, 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).

68

Quality

86%

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

81%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.

A highly actionable, well-sequenced skill body: exact API calls, explicit validation checkpoints, and disciplined routing of detailed material to one-level-deep reference files. Its main weakness is redundancy — the createModel guardrail and preflight procedure are each restated multiple times, inflating token cost without adding information.

Suggestions

Consolidate the createModel legal-argument rule into one authoritative section (e.g. the STOP table) and reduce the 'Available Providers and Models' section and Best Practice #3 to one-line cross-references to it, saving ~40 lines of repeated guidance.

Drop the re-narration of the preflight steps in Best Practices #1-#2 and replace with a single pointer to the Mandatory Two-Step Preflight section, keeping only the purchase-link behavior as new information.

Move the full UpdateAIModel payload and the recommended-timeout table into references/api-reference.md, keeping just the rule ('Models is a full replacement; image generation timeout 900s') inline to shrink the overview body.

DimensionReasoningScore

Conciseness

The createModel legal-argument rule is repeated three times (the STOP table, the 'Available Providers and Models' section, and Best Practice #3), and the two-step preflight is fully detailed then re-summarized in Best Practices #1-#2. The content is SDK-specific and non-obvious, but the duplication exceeds the 'minor instances of over-explanation' of anchor 4, fitting 'could be tightened' anchor 3.

3 / 5

Actionability

Fully executable guidance throughout: exact MCP calls with parameters (callCloudApi(service="tcb", action="DescribeAIModels", params={ EnvId })), explicit pass/fail conditions, a copy-paste UpdateAIModel payload, install and init code, and concrete timeout ranges. Copy-paste ready and covers the common cases — anchor 5.

5 / 5

Workflow Clarity

The two-step preflight is clearly sequenced with explicit validation checkpoints and stop conditions ('❌ Not satisfied → stop writing code', '✅ Satisfied → proceed to preflight ②'), error-recovery loops ('If the call returns InvalidParameter, fall back to camelCase'), and a self-verification checklist (Best Practice #13). Anchor 5.

5 / 5

Progressive Disclosure

The body links to two real, one-level-deep references (api-reference.md, custom-onboarding.md) with descriptive link text and a reference index — both files exist as linked. However, at ~270 lines the body itself carries inlinable bulk (full UpdateAIModel payload, timeout tables, 13 best practices), so organization is good with minor gaps — anchor 4 rather than a lean overview with everything appropriately split.

4 / 5

Total

17

/

20

Passed

Description

87%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 description: concrete, dense with SDK-specific facts, explicit what/when triggers, and clear routing boundaries against sibling skills. It slightly over-indexes on runtime/framework contexts versus user-facing capability verbs, leaving minor gaps in natural trigger phrasing.

DimensionReasoningScore

Specificity

Lists multiple concrete actions ('cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration', 'The only SDK supporting image generation', 'Text via ai.createModel') with good domain coverage. Several entries are deployment contexts rather than capabilities and the preflight mention is process detail, which keeps it below the comprehensive anchor 5.

4 / 5

Completeness

Explicitly answers both what ('Use this skill for Node.js backend AI via @cloudbase/node-sdk (>=3.16.0) — cloud functions, CloudRun...') and when, with concrete trigger phrases and explicit negative routing ('NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)'). Matches anchor 5; the when-clause is explicit and specific, not merely present.

5 / 5

Trigger Term Quality

Includes natural phrases users would say ('Node.js backend AI', 'cloud functions', 'image generation', 'scheduled jobs') plus concrete model ids (deepseek-v4-flash, glm-5, kimi-k2.6) for model-name triggers. A few common terms are missing (e.g. 'chat', 'text generation' as a plain phrase), so it fits anchor 4 rather than comprehensive anchor 5.

4 / 5

Distinctiveness Conflict Risk

Clear niche (Node.js backend via this specific SDK) with a distinctiveness claim ('The only SDK supporting image generation') and explicit routing away from sibling skills (ai-model-web, ai-model-wechat). Minimal conflict risk — anchor 5.

5 / 5

Total

18

/

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.