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

The canonical home for this skill is ai-model-nodejs in TencentCloudBase/CloudBase-AI-Toolkit

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.

An exceptionally actionable, well-structured skill body with a rigorously validated preflight workflow and clean one-level-deep progressive disclosure verified against the actual bundle. The one real weakness is redundancy: the four-legal-values rule, the never-assume-enabled rule, and the preflight itself are each restated multiple times across the STOP section, provider sections, and Best Practices, which inflates token cost without adding information.

Suggestions

State the 'exactly four legal createModel values' and 'never assume a model is enabled' rules once (in the STOP section and preflight ② respectively) and have Best Practices #1–#3 reference those sections instead of restating them in full, cutting an estimated 40–60 lines of duplication.

Trim the Available Providers and Models section to the decision table (legal values + when to use) and move the per-group prose details (resource-point quota behavior, offline dates, naming-collision rationale) into a short reference file or the existing custom-onboarding.md.

Compress Best Practice #1 into a two-line pointer to the Mandatory Two-Step Preflight section rather than repeating the full tool-call sequence, purchase link, and parameter names a second time.

DimensionReasoningScore

Conciseness

The body contains no filler explaining concepts Claude already knows — every section carries CloudBase-specific contract facts — but core rules are repeated three to four times: the "exactly four legal values" rule appears in the STOP section, the Available Providers section, and Best Practice #3; "never assume a model is already enabled" appears in the decision procedure, preflight ② steps 2–3, the providers section, and Best Practice #2; and Best Practice #1 re-summarizes the entire preflight verbatim. This matches 'mostly efficient but includes some unnecessary explanation or could be tightened' — not score 2 because nothing is generic padding, not score 4 because the redundancy goes beyond minor instances.

3 / 5

Actionability

Guidance is fully executable: exact MCP calls with parameters (e.g. the UpdateAIModel payload showing the full-replacement Models[] with commented resend logic), npm install/version-check commands, complete init snippets for both cloud-function and regular-server contexts, the correct createModel/generateText pattern, and the exact purchase URL to surface on preflight failure. Common cases (text, streaming, image, error handling) are covered by copy-paste-ready snippets inline and in the real references/api-reference.md, matching the score-5 anchor rather than the score-4 'minor gaps' anchor.

5 / 5

Workflow Clarity

The mandatory preflight is a clearly sequenced workflow (Step 0 env id → ① eligibility → ② group readiness → custom onboarding fallback) with explicit validation checkpoints ("Pass conditions (all required)", verify the model is in Models[] before calling), error-recovery feedback loops ("If the call returns InvalidParameter, fall back to camelCase", stop-and-surface branch with the exact message to show the user), and a self-verification checklist (Best Practice #13: tsc --noEmit, real invocation, confirm usage.total_tokens > 0). This matches the score-5 anchor with explicit validation steps and feedback loops.

5 / 5

Progressive Disclosure

The bundle structure checks out: both referenced files (references/api-reference.md and references/custom-onboarding.md) exist, are linked with clear signals and descriptions in the body, are exactly one level deep (neither references further files), and are indexed in a Reference index section. Core decision logic (preflight, group rules) stays inline while API examples, TypeScript types, and the onboarding payload are appropriately split out — matching the score-5 anchor for 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, complete description with explicit use/disuse triggers and explicit sibling-skill routing that minimizes conflict risk. Its only weakness is that portions of the keyword inventory (group names like hunyuan-v3/hunyuan-exp, custom-*) are SDK-internal jargon rather than phrases users naturally say, keeping trigger-term quality just below comprehensive.

DimensionReasoningScore

Specificity

The description lists multiple concrete capabilities with named API surface — "cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration", "image generation (ai.createImageModel + generateImage)", and model ids going "in the `model` field of generateText/streamText" — covering both text and image comprehensively. It clearly matches the anchor 'Lists multiple specific concrete actions; comprehensive coverage' rather than the score-4 anchor, which expects minor gaps in coverage.

5 / 5

Completeness

It explicitly answers both questions: what ("Text via ai.createModel… The only SDK supporting image generation (ai.createImageModel + generateImage)") and when ("Use this skill for Node.js backend AI via @cloudbase/node-sdk… cloud functions, CloudRun, Express/Koa/NestJS, serverless APIs, scheduled jobs, LLM proxies, agent orchestration"), plus explicit negative triggers ("NOT for browser/Web… or Mini Program"). This matches the score-5 anchor with concrete trigger phrases, exceeding the score-4 anchor where the 'when' is only present but less specific.

5 / 5

Trigger Term Quality

Natural trigger terms are well covered: "Node.js backend AI", "cloud functions", "image generation", "agent orchestration", plus concrete model names ("deepseek-v4.1-flash, glm-5.3, kimi-k2.6") and runtime synonyms (cloud functions / CloudRun / Express/Koa/NestJS / serverless). It falls short of the score-5 anchor because phrases like "groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*" are SDK jargon rather than user-natural terms, and common phrasings such as "AI chat" or "LLM API" are only implicitly covered.

4 / 5

Distinctiveness Conflict Risk

A clear niche is staked out with minimal conflict risk: it pins the runtime plane ("Node.js backend AI via @cloudbase/node-sdk"), claims a unique capability ("The only SDK supporting image generation"), and explicitly routes adjacent cases to sibling skills ("NOT for browser/Web (use ai-model-web) or Mini Program (use ai-model-wechat)"). This is a stronger fit for the score-5 anchor than the score-4 'minor overlap risk' anchor.

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