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

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 excellent, highly actionable skill body: the preflight workflow has explicit validation checkpoints and recovery paths, and detail is properly pushed to two real, clearly signaled reference files. The main cost is token efficiency — the same three guardrails are restated many times across the STOP section, preflight, providers, and Best Practices.

Suggestions

Deduplicate the 'never assume a model is enabled' rule: state it once in preflight ② and reference it from the STOP table, decision procedure, and Best Practices #1–#2 instead of restating the full DescribeAIModels → DescribeManagedAIModelList → UpdateAIModel sequence in each place.

Collapse the four legal createModel values into a single authoritative statement (the STOP section table) and have the 'Available Providers and Models' section cover only per-group details, cutting the repeated legal/wrong-pattern lists from Best Practice #3.

State the 'SKILL.md + references/api-reference.md is the authoritative reference — no guessing' rule once (the SDK API Reference section) and drop the near-verbatim repetition in Best Practice #4.

DimensionReasoningScore

Conciseness

The body is uniformly skill-specific (no explanations of concepts Claude already knows) but noticeably repetitive: 'never assume a model is enabled / DescribeAIModels → UpdateAIModel' appears in the STOP table, decision procedure step 4, preflight ② steps 2–4, the providers section, and Best Practices #1–#2; the four legal createModel values are restated across the STOP section, providers section, and Best Practice #3; the 'SKILL.md + api-reference.md is authoritative' rule appears twice. This fits 'mostly efficient but... could be tightened' — below the 4 anchor because the duplication is extensive (an estimated 25–35% could be cut with no information loss), above the 2 anchor because nothing is generic-concept padding.

3 / 5

Actionability

Fully executable throughout: exact MCP calls with parameters (callCloudApi(service="tcb", action="DescribeEnvPostpayPackage", params={ EnvId })), explicit pass conditions, a ready-to-use purchase-link template with {region}/{envId} placeholders, a complete UpdateAIModel payload including the full-replacement warning, runnable init code, and correct createModel usage. Code examples for generateText/streamText are properly deferred to the real, verified references/api-reference.md.

5 / 5

Workflow Clarity

The two-step preflight is a clearly sequenced workflow with explicit validation checkpoints (pass conditions on postpayPackageId prefix and status, DescribeAIModels Status=1 and Models[] membership), feedback loops (InvalidParameter → camelCase fallback; missing resource pack → stop, surface purchase link, 'Let me know once it's done and I'll re-check'), a branch to custom onboarding, and a self-verification step in Best Practice #13 (tsc --noEmit, real invocation, confirm usage.total_tokens > 0). Matches the 5 anchor's explicit validation with error-recovery loops.

5 / 5

Progressive Disclosure

The body is an overview that delegates cleanly: [api-reference.md](references/api-reference.md) and [custom-onboarding.md](references/custom-onboarding.md) are both real files, well-signaled with what they contain, one level deep (neither nests further references), plus a bottom reference index. Bulk API examples and TypeScript types are split out; the inline material (preflight, group semantics) is decision-critical. Matches the 5 anchor's clear overview with well-signaled one-level-deep references.

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-scoped description with explicit positive and negative triggers and concrete SDK entry points. Its only weakness is that a portion of the budget is spent on SDK mechanics (group names, the model-field rule, the preflight notice) that is operational detail rather than natural trigger phrasing.

DimensionReasoningScore

Specificity

Quotes: "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... or custom-*". Multiple concrete capabilities are named with exact SDK entry points and model ids, matching the 'comprehensive coverage' anchor; it is dense rather than padded, and stays in third-person/impersonal voice.

5 / 5

Completeness

Explicitly answers both: what ("Use this skill for Node.js backend AI via @cloudbase/node-sdk... The only SDK supporting image generation... Text via ai.createModel") and when ("Use this skill for..." plus negative triggers "NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)"). Clear 'what' and 'when' with concrete trigger phrases, matching the 5 anchor; the 4 anchor's 'when could be more explicit' does not apply.

5 / 5

Trigger Term Quality

Natural phrases users would say are well covered ("Node.js backend AI", "cloud functions", "serverless APIs", "agent orchestration", "image generation", model names deepseek/glm/kimi), but a meaningful chunk is SDK jargon rather than trigger language ("groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*; model ids... go in the `model` field of generateText/streamText") and common phrasings like "call an LLM from my server" or "AI chat backend" are absent. Fits the 'good keyword coverage; a few natural terms missing' anchor, not the 5 anchor's comprehensive synonyms.

4 / 5

Distinctiveness Conflict Risk

Clear niche: Node.js backend AI via a specific SDK with a pinned version, with explicit routing away from siblings ("NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)"). Minimal conflict risk — the description itself disambiguates the closely related skills.

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.