CtrlK
BlogDocsLog inGet started
Tessl Logo

ai-model-web

Use this skill when a browser/Web app (React, Vue, Angular, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI) needs AI models via @cloudbase/js-sdk. Default routing for page/页面/Web/前端/frontend/网页/H5 AI — call directly from browser, do NOT propose a Node.js proxy. Covers generateText and streamText. Models via ai.createModel with groups cloudbase, hunyuan-exp, or custom-*. Model IDs (deepseek-v4-flash, deepseek-v3.2, hunyuan-2.0-instruct-20251111, glm-5, kimi-k2.6) go in the model field. MUST run two-step preflight before code — see body. Keywords: 页面, Web, 前端, React, Vue, Next, Nuxt, SPA, AI chat UI, generateText, streamText, createModel, hunyuan-exp, Token Credits, TokenHub, Hunyuan, DeepSeek, GLM, Kimi, MiniMax. NOT for Node.js backend (use ai-model-nodejs), Mini Program (use ai-model-wechat), or image generation (Node SDK only).

72

Quality

88%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

High

Do not use without reviewing

SKILL.md
Quality
Evals
Security

Quality

Content

77%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 content is highly actionable and workflow-clear with executable code and well-sequenced validation checkpoints, but it is hurt by substantial verbatim repetition of core guidance and by keeping all reference material inline in one long file rather than splitting it into bundled reference files.

Suggestions

Deduplicate the 'three legal createModel values' and 'never assume a model is enabled' guidance — state each once authoritatively (e.g. in the STOP section) and link rather than re-explaining in Available Providers and Best Practices.

Extract stable material into bundle files under references/ (e.g. type-definitions.md for the TS interfaces, onboarding.md for the custom-model CreateAIModel flow) and link to them from the body to improve progressive disclosure.

Move the full ManagedAIModel/UpdateAIModel parameter detail out of the main flow into a reference, keeping the body focused on the decision procedure and the validation checkpoints.

DimensionReasoningScore

Conciseness

The body is SDK-specific (not explaining concepts Claude already knows), but the same guidance is repeated verbatim several times — the three legal createModel values appears in the STOP table, 'Available Providers and Models', and Best Practice #3; 'never assume a model is enabled' and the two-step preflight recur similarly, so it could be tightened by deduplication.

3 / 5

Actionability

Fully executable guidance throughout — concrete callCloudApi MCP calls with exact service/action/params, copy-paste JS for init/generateText/streamText/error handling, and precise field spellings covering the common cases.

5 / 5

Workflow Clarity

The mandatory two-step preflight is a clearly sequenced process (Step 0 EnvId → ① eligibility → ② group readiness) with explicit validation checkpoints ('✅ Satisfied → proceed', '❌ Not satisfied → stop'), error-recovery feedback loops, and a self-verify checklist in Best Practice #13.

5 / 5

Progressive Disclosure

Good section structure with clear headers, but no bundle files exist and all content (Type Definitions, full onboarding flow, preflight details) is inlined in a ~387-line single file rather than split into one-level-deep reference files; sibling-skill references are signaled but are external, not progressive disclosure of this skill's own material.

3 / 5

Total

16

/

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.

A highly specific, well-triggered description that explicitly states both what the skill does and when to use it, with rich synonym coverage and explicit out-of-scope boundaries to prevent routing conflicts.

DimensionReasoningScore

Specificity

Names the domain (browser/Web apps needing AI models via @cloudbase/js-sdk) and lists multiple concrete actions — generateText, streamText, ai.createModel with groups cloudbase/hunyuan-exp/custom-*, model IDs in the model field, two-step preflight — for comprehensive coverage.

5 / 5

Completeness

Explicitly answers both: what ('Covers generateText and streamText', createModel groups, model-field placement) and when ('Use this skill when a browser/Web app ... needs AI models') with concrete trigger phrases.

5 / 5

Trigger Term Quality

Comprehensive natural-term coverage with synonyms and framework names: 'browser/Web app (React, Vue, Angular, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI)', 'page/页面/Web/前端/frontend/网页/H5', plus a dedicated Keywords list spanning Hunyuan, DeepSeek, GLM, Kimi, MiniMax.

5 / 5

Distinctiveness Conflict Risk

Clear niche with explicit boundary carve-outs — 'NOT for Node.js backend (use ai-model-nodejs), Mini Program (use ai-model-wechat), or image generation (Node SDK only)' — minimizing wrong-skill triggering.

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.

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