CtrlK
BlogDocsLog inGet started
Tessl Logo

ai-model-web

Use this skill when a browser/Web app (React, Vue, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI, 页面, 前端, 网页) needs AI models via @cloudbase/js-sdk. Default routing for Web/frontend AI — call directly from the browser, do NOT propose a Node.js proxy. Covers generateText and streamText; models via ai.createModel with groups cloudbase, hunyuan-exp, or custom-*, model id in the `model` field. MUST run two-step preflight before code — see body. NOT for Node.js backend (use ai-model-nodejs), Mini Program (use ai-model-wechat), or image generation (Node SDK only).

72

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-web in TencentCloudBase/CloudBase-AI-Toolkit

SKILL.md
Quality
Evals
Security

Quality

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.

This is a highly actionable, well-sequenced skill body with explicit validation checkpoints and a strong anti-hallucination guard around createModel. Its weaknesses are repetition (the routing/legal-values rules are restated several times) and a lack of progressive disclosure — large reference material (type defs, model catalog, onboarding) lives inline in SKILL.md rather than in bundled reference files.

Suggestions

Split the Type Definitions block and the full Available Providers/Models catalog into a references/ file (e.g. references/models.md) and link to it one level deep, keeping only the three legal createModel values inline.

De-duplicate the createModel legal-values guidance: state it once in the STOP section and have the Available Providers and Best Practices sections cross-reference it rather than restating it.

Move the custom-onboarding CreateAIModel example into references/onboarding.md, leaving a concise pointer plus the custom- naming rule in the main body.

DimensionReasoningScore

Conciseness

The body is information-dense and free of generic concept explanations, but it repeats the same guidance in multiple places (the createModel legal-values rule appears in the STOP section, Available Providers, Best Practices, and the decision procedure) and restates the preflight steps in Best Practices, which pushes it above the 'mostly efficient' bar into noticeable repetition.

3 / 5

Actionability

Fully executable: copy-paste-ready generateText/streamText/init snippets, exact MCP callCloudApi invocations with PascalCase params and camelCase fallback, and a precise UpdateAIModel full-replacement example covering the common enablement case.

5 / 5

Workflow Clarity

The two-step preflight is explicitly sequenced (Step 0 envId → ① eligibility → ② group readiness) with concrete pass/fail conditions, a branching decision procedure for missing models, and a validation feedback loop (inspect DescribeAIModels → enable via UpdateAIModel → re-confirm before calling createModel), plus a self-verify checklist in Best Practices.

5 / 5

Progressive Disclosure

The body is well section-headed but monolithic: the Type Definitions block, the full provider/model catalog, and the custom-onboarding CreateAIModel example are sizable reference material inlined in SKILL.md rather than split into one-level-deep reference files, and no bundle files (references/scripts/assets) are present to offload them.

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.

The description is dense, concrete, and trigger-rich: it states what the skill does, when to use it (with broad synonym coverage including CJK terms), default routing behavior, and explicit exclusion routing to sibling skills. It is slightly long and could be split into a one-line trigger plus a routing sentence, but every token carries useful disambiguation rather than fluff.

DimensionReasoningScore

Specificity

Names concrete actions (generateText, streamText, ai.createModel, two-step preflight) plus concrete groups (cloudbase, hunyuan-exp, custom-*) and the `model` field semantics, giving comprehensive coverage of the skill's behavior.

5 / 5

Completeness

Explicitly answers both 'what' (call AI models via @cloudbase/js-sdk, generateText/streamText) and 'when' ('Use this skill when a browser/Web app ... needs AI models'), plus explicit anti-trigger routing for sibling skills, satisfying the both-what-and-when anchor with concrete triggers.

5 / 5

Trigger Term Quality

Covers natural user phrasings including synonyms and CJK terms — 'browser/Web app', 'React, Vue, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI', and '页面, 前端, 网页' — matching the comprehensive synonym/extension coverage of the 5-anchor example.

5 / 5

Distinctiveness Conflict Risk

Scoped to a clear niche (Web/frontend AI via @cloudbase/js-sdk, browser-direct, no Node proxy) with explicit exclusion routing to ai-model-nodejs, ai-model-wechat, and http-api-cloudbase, minimizing conflict with sibling 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.

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.