CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-model-web

This skill guides agents in calling CloudBase AI models from browser and Web applications, with examples for `generateText`, `streamText`, and custom model onboarding. It requires checking environment eligibility and model readiness before SDK code, and covers authentication, pricing, error handling, and verification. It distinguishes this Web workflow from backend, Mini Program, and image-generation use cases.

Quality

88%

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

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 body delivers exceptionally actionable, well-sequenced guidance with genuine validation loops for a fragile API workflow, and almost every token teaches CloudBase-specific contract detail Claude could not otherwise know. Its weaknesses are heavy deliberate repetition of the same warnings (conciseness) and a monolithic single-file structure that inlines API reference and catalog material better suited to reference files (progressive disclosure).

Suggestions

Deduplicate the repeated core instructions: state the four legal createModel arguments and the DescribeAIModels → DescribeManagedAIModelList → UpdateAIModel full-replacement flow once authoritatively (e.g. in the STOP and preflight sections) and have other sections reference them in one line instead of restating them in full.

Move the TypeScript Type Definitions, the provider/model catalog details, and the custom-onboarding walkthrough into references/ files (e.g. references/types.md, references/custom-models.md) linked one level deep from SKILL.md, keeping the main file as an overview plus the preflight workflow.

Trim content that assumes less competence than needed, such as the standalone try/catch Error Handling Pattern example, which restates knowledge Claude already has — a one-line 'wrap calls in try/catch; distinguish preflight failure from call failure' suffices.

DimensionReasoningScore

Conciseness

The body is mostly efficient — nearly all of it is CloudBase-specific contract detail Claude cannot know (MCP tool params, group semantics, offline dates), not padding — but the same critical instructions are repeated verbatim many times: the four legal createModel values appear in full in the STOP section, again in "Available Providers and Models", and again in Best Practice 3; the DescribeAIModels → UpdateAIModel full-replacement flow is restated in at least four places; the PascalCase/camelCase fallback note appears three times. This matches the 3 anchor ("mostly efficient ... could be tightened") rather than 2, since the redundancy is deliberate safety emphasis over genuinely unfamiliar material rather than padded explanation of known concepts.

3 / 5

Actionability

Guidance is fully executable throughout: exact MCP call signatures with parameters ("callCloudapi(service=\"tcb\", action=\"DescribeEnvPostpayPackage\", params={ EnvId })"), copy-paste-ready init/generateText/streamText code, a concrete purchase URL template, console onboarding URL, full TypeScript type definitions, and a self-verification checklist ("Run tsc --noEmit + the project build + open the page with agent-browser"). Specific examples cover the common cases, matching the 5 anchor.

5 / 5

Workflow Clarity

The mandatory two-step preflight is a clearly sequenced workflow with explicit validation checkpoints and feedback loops: enumerated pass conditions ("postpayPackageId starts with pkg_tcb_tokencredits_", "status is NOT in [3, 4]"), a stop-and-surface branch with a purchase link on failure, "jump to step 4" routing for missing models, a warning that UpdateAIModel's Models is a full replacement (guarding a destructive mistake), and a final verify-before-done step. This matches the 5 anchor's explicit validation with error-recovery loops.

5 / 5

Progressive Disclosure

Section headers are clear and cross-skill references (../auth-tool-cloudbase/SKILL.md, ai-model-wechat, web-development/browser-testing.md) are one level deep and well signaled, but the skill ships no bundle files at all: ~395 lines including a full TypeScript API reference, provider/model catalog, and custom-onboarding walkthrough are all inlined in SKILL.md when they clearly belong in separate reference files. This matches the 3 anchor ("content that should be separate is inline") rather than 2, since in-file structure is good and navigation within the monolith is easy.

3 / 5

Total

16

/

20

Passed

Description

95%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 strong, information-dense description that clearly states what the skill covers, when to trigger it (including multilingual synonyms), and how it differs from its siblings. The only minor weakness is that a few actions are pointers into the body ("see body") rather than self-contained statements, and the length is at the upper bound of what remains concise.

DimensionReasoningScore

Specificity

The description names concrete actions and API surfaces — "Covers generateText and streamText; models via ai.createModel with groups cloudbase, the legacy hunyuan-v3 / hunyuan-exp, or custom-*, model id in the `model` field" — plus routing rules and explicit exclusions. It falls just short of the 5 anchor because some actions are deferred rather than stated ("MUST run two-step preflight before code — see body" names a step without saying what it checks), leaving minor gaps in coverage.

4 / 5

Completeness

Both 'what' and 'when' are answered explicitly with concrete trigger phrases: "Use this skill when a browser/Web app ... needs AI models via @cloudbase/js-sdk" (when), and the generateText/streamText/createModel coverage (what). It even adds explicit negative scope ("NOT for Node.js backend ..., Mini Program ..., or image generation"), which strengthens the when-clause beyond the 5 anchor's requirements.

5 / 5

Trigger Term Quality

Trigger coverage is comprehensive with natural synonyms across languages: "browser/Web app (React, Vue, Next, Nuxt, static sites, SPAs, dashboards, AI chat UI, 页面, 前端, 网页)" plus the SDK package name "@cloudbase/js-sdk". These are exactly the phrases a user would say when they need this skill, including Chinese-language variants; no common terms are obviously missing.

5 / 5

Distinctiveness Conflict Risk

The niche is clear and conflict risk is minimal: browser-side AI via @cloudbase/js-sdk, with sibling skills explicitly disambiguated inline — "use ai-model-nodejs", "use ai-model-wechat", "use the http-api-cloudbase skill" — and an explicit anti-trigger ("do NOT propose a Node.js proxy"). This matches the 5 anchor's clear-niche, distinct-triggers profile.

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

connectors/cloudbase-intl/skills/references/ai-model-web/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.