CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-nodejs

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.

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

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

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.

Highly actionable, with an exemplary validated preflight workflow, concrete error-recovery loops, and genuine one-level-deep reference files. The main weakness is redundancy: the createModel legal-values rules, the preflight sequence, and the no-guessing guidance are each restated two to three times, inflating token cost without adding information.

Suggestions

Consolidate the createModel legal-values guidance into one canonical section: the STOP table, the four 'Available Providers and Models' subsections, and Best Practice #3 all restate the same four values — keep one and cross-reference it from the others.

Reduce Best Practice #1 to a one-line pointer to the 'Mandatory Two-Step Preflight' section instead of re-listing every call and parameter, and likewise merge the duplicated 'look up the signature / no guessing' text in Best Practice #4 with the SDK API Reference section.

Move the vendor/model roster detail (Hunyuan/DeepSeek/GLM/Kimi/MiniMax SKU lists and legacy-group history) into a reference file, keeping only the decision-relevant facts (four legal groups, the two discovery calls) inline.

DimensionReasoningScore

Conciseness

Information-dense and free of generic concept explanations, but the same guidance is restated repeatedly: the four legal createModel values appear in the STOP table, again across the four "Available Providers and Models" subsections, and again in Best Practice #3; the preflight call sequence is re-listed in Best Practice #1; and "look up the method signature there before writing code… No guessing" appears nearly verbatim in both the SDK API Reference section and Best Practice #4. This fits anchor 3 ("could be tightened") rather than 4 because the duplication exceeds minor over-explanation.

3 / 5

Actionability

Copy-paste-ready MCP calls with exact parameters (e.g. `callCloudApi(service="tcb", action="DescribeEnvPostpayPackage", params={ EnvId })`), explicit pass conditions, a fill-in purchase-link template with region/envId placeholders, a complete `UpdateAIModel` payload with full-replacement commentary, and runnable install/init code; the deferred examples in references/api-reference.md are complete and executable. Matches the anchor-5 copy-paste-ready standard.

5 / 5

Workflow Clarity

The mandatory two-step preflight is an explicitly sequenced workflow with validation checkpoints and error-recovery loops at every branch: missing pack → purchase link and re-check; missing model → `DescribeManagedAIModelList` for exact spelling → `UpdateAIModel` full-replacement; `InvalidParameter` → camelCase fallback; not in catalog → custom-onboarding path; plus a final self-verify step ("`tsc --noEmit` + project build + actually invoke the function … confirm `usage.total_tokens > 0`"). The destructive full-replacement `Models` update is explicitly guarded, so the validation cap does not apply.

5 / 5

Progressive Disclosure

Both referenced files exist, are one level deep (api-reference.md points back to SKILL.md, custom-onboarding.md is self-contained), and are clearly signaled ("read [api-reference.md](references/api-reference.md) … the authoritative reference", plus a closing Reference index). However, the ~285-line body is a full manual whose "Available Providers and Models" section substantially duplicates the STOP table — good structure with minor organization gaps (anchor 4) rather than the lean-overview anchor 5.

4 / 5

Total

17

/

20

Passed

Description

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

An unusually strong description: concrete capabilities, explicit use/no-use triggers with model-id examples, and explicit routing away from sibling skills for other runtime planes. All four dimensions sit at the top anchor; the length is dense with trigger content rather than padded.

DimensionReasoningScore

Specificity

Lists multiple concrete actions and entry points — "cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration", "ai.createImageModel + generateImage", and model ids going "in the `model` field of generateText/streamText". Coverage is comprehensive with no vague filler, matching the anchor-5 example rather than the minor-gaps anchor 4.

5 / 5

Completeness

Explicitly answers both what (backend text and image generation via the SDK, with API entry points) and when ("Use this skill for Node.js backend AI…", "NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)") with concrete trigger phrases — the exact structure of the anchor-5 example.

5 / 5

Trigger Term Quality

Natural phrases a user would say are comprehensively covered: "Node.js backend AI", "cloud functions", "image generation", "LLM proxies", "agent orchestration", alongside SDK/framework identifiers ("@cloudbase/node-sdk", "Express/Koa/NestJS") and concrete model ids ("deepseek-v4.1-flash, glm-5.3, kimi-k2.6") that function like file extensions for this domain. Not score 4 because no common synonym category is missing.

5 / 5

Distinctiveness Conflict Risk

Clear Node.js-backend niche with explicit negative routing to sibling skills ("use ai-model-web", "use ai-model-wechat", "http-api-cloudbase" for other runtimes), so the risk of triggering for the wrong runtime plane is minimal. It is more distinct than the anchor-4 case, which still allows minor overlap with closely related skills.

5 / 5

Total

20

/

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.