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

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

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 exceptionally actionable, well-structured skill body with a validated preflight workflow and correct use of one-level-deep bundle references. Its one real weakness is redundancy — several critical rules are restated three or four times across the STOP section, provider sections, and Best Practices, inflating token cost without adding information.

Suggestions

State the 'four legal createModel values' rule once (in the STOP section) and have the Available Providers section and Best Practice #3 reference it instead of restating it in full.

Merge the near-duplicate 'stop and ask / no guessing' guidance in the SDK API Reference section and Best Practice #4 into a single statement.

Trim the repeated 'never assume a model is already enabled' admonitions (STOP table, preflight steps 2–3, Best Practice #2) to one canonical statement plus cross-references.

DimensionReasoningScore

Conciseness

The material is almost entirely non-obvious and Claude-specific (preflight procedure, legal createModel values), but core rules are repeated verbatim across sections: the "exactly four legal values" rule appears in the STOP section, the Available Providers section, and Best Practice #3; "never assume a model is enabled" appears four times; and the "stop and ask, no guessing" guidance appears near-identically in the SDK API Reference section and Best Practice #4. This is more than the 'minor instances' of the 4 anchor but not the padded over-explanation of the 2 anchor.

3 / 5

Actionability

Guidance is fully executable: exact MCP tool invocations with complete params blocks (DescribeAIModels, UpdateAIModel with the full-replacement Models payload), a ready-to-send purchase URL template, runnable createModel/generateText code, and concrete timeout ranges (300–900 s for generateImage). Copy-paste ready and covering the common cases.

5 / 5

Workflow Clarity

The two-step preflight is a clearly numbered sequence with explicit validation checkpoints (postpayPackageId prefix check, status not in [3, 4], Models[] membership check), a stop-and-surface failure path with user-facing messaging, error-recovery fallbacks (PascalCase → camelCase on InvalidParameter), and a final self-verify step requiring a real round-trip with usage.total_tokens > 0 — matching the anchor with explicit validation and feedback loops.

5 / 5

Progressive Disclosure

The body is an overview plus load-bearing decision rules, with bulk API details correctly split into references/api-reference.md and custom-onboarding.md; both referenced files exist in the bundle, are one level deep (no nested references), and are indexed with content descriptions in a Reference Index section.

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 dense, highly specific description that clearly delimits the skill's scope with explicit positive and negative triggers and concrete SDK entry points. Its only weakness is that natural synonyms for the platform itself (CloudBase / Tencent CloudBase / Node SDK) are absent from the trigger vocabulary.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities — "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" — with concrete SDK entry points, matching the comprehensive-coverage anchor rather than the minor-gaps anchor at 4.

5 / 5

Completeness

It explicitly answers both what ("Node.js backend AI via @cloudbase/node-sdk", text via ai.createModel, image generation) and when ("Use this skill for Node.js backend AI…", plus negative triggers "NOT for browser/Web (use ai-model-web) or Mini Program"), which exceeds the 4 anchor's 'when could be more explicit'.

5 / 5

Trigger Term Quality

Natural trigger terms are well covered ("Node.js backend AI", "cloud functions", "serverless APIs", "LLM proxies", "image generation", model ids like "deepseek-v4.1-flash, glm-5.3, kimi-k2.6"), but common synonyms a user would say — notably the platform name "CloudBase"/"Tencent CloudBase" itself and "Node SDK" — are missing, so it sits at good-but-not-comprehensive coverage rather than 5.

4 / 5

Distinctiveness Conflict Risk

It carves out a clear niche ("The only SDK supporting image generation", server-side Node.js via this specific SDK) and explicitly routes conflicting runtimes to sibling skills ("use ai-model-web", "use 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

plugin/cloudbase/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.