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

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.

The body delivers exceptionally actionable, validated workflows — exact MCP calls, pass/fail conditions, and a mandatory preflight with feedback loops — and splits detail appropriately across two real one-level-deep reference files. Its one weakness is token efficiency: the legal createModel values and the enable-verification rule are each repeated across three to four sections, which could be consolidated.

Suggestions

State the four legal createModel values once (e.g. in the STOP table) and replace the second full enumeration in 'Available Providers and Models' plus Best Practice #3 with one-line cross-references to it.

Consolidate the 'never assume a model is already enabled' guidance, currently repeated in the STOP decision procedure, preflight ② steps 2-3, the provider section, and Best Practice #2, into the preflight section alone.

Trim Best Practices #1-#4, which restate the preflight and createModel rules nearly verbatim, down to novel guidance only.

DimensionReasoningScore

Conciseness

The body is dense and free of background-concept padding, but the same critical facts are repeated several times: the four legal createModel values appear in the STOP table, again in 'Available Providers and Models', and again in Best Practice #3, while 'never assume a model is enabled' is restated in four places. Mostly efficient, but noticeable redundancy could be consolidated into one authoritative section with brief cross-references.

3 / 5

Actionability

Guidance is fully executable: exact MCP calls with parameter shapes ('callCloudApi(service="tcb", action="DescribeAIModels", params={ EnvId })'), explicit pass conditions for the resource pack, a ready-to-paste purchase link and user message, runnable init snippets, concrete timeout ranges per operation, and a correct/incorrect code pair for createModel. Copy-paste ready and covers the common cases.

5 / 5

Workflow Clarity

The two-step preflight is a clearly numbered sequence with explicit validation checkpoints (pass conditions on postpayPackageId/status), failure branches that stop code generation and surface a purchase link, a parameter-casing fallback on InvalidParameter, a warning that Models is a full replacement, and a final self-verify step (Best Practice 13) requiring a real round-trip. Feedback loops for error recovery are present throughout.

5 / 5

Progressive Disclosure

SKILL.md is a well-sectioned overview; the full code examples, error-handling pattern, and TypeScript types are correctly deferred to references/api-reference.md (145 lines) and custom onboarding to references/custom-onboarding.md (27 lines). Both linked files exist, are one level deep with no nested references, and are surfaced both in-context and 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 highly specific, well-triggered description that names exact API entry points, legal group names, and concrete model-id examples, with explicit negative triggers routing Web and Mini Program users elsewhere. The only gap is a handful of natural synonym phrasings a user might use, which keeps trigger-term quality just short of the top anchor.

DimensionReasoningScore

Specificity

The description names multiple concrete actions with exact API surface: 'ai.createImageModel + generateImage', 'ai.createModel with groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*', model ids in 'the `model` field of generateText/streamText', and the mandatory two-step preflight. Coverage spans text, image, model selection, and prerequisites, matching the comprehensive anchor.

5 / 5

Completeness

It opens with an explicit trigger clause 'Use this skill for Node.js backend AI via @cloudbase/node-sdk' (the when) and enumerates the concrete capabilities (the what), plus negative triggers 'NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)'. Both what and when are explicit with concrete trigger phrases.

5 / 5

Trigger Term Quality

Good natural-term coverage — 'Node.js backend AI', 'cloud functions', 'CloudRun', 'Express/Koa/NestJS', 'serverless APIs', 'scheduled jobs', 'LLM proxies', 'agent orchestration', 'image generation' — but a few common phrasings users would actually say (e.g. 'chat completions', 'LLM API backend', 'Hunyuan image') are absent. Fits the 4 anchor (good coverage, a few natural terms missing) rather than 5.

4 / 5

Distinctiveness Conflict Risk

It pins a specific SDK and version ('@cloudbase/node-sdk (>=3.16.0)'), claims a clear niche ('The only SDK supporting image generation'), and explicitly redirects adjacent runtimes to sibling skills, leaving minimal overlap risk with ai-model-web / ai-model-wechat / http-api-cloudbase.

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/source/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.