CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

auth-nodejs-cloudbase

This skill guides coding agents through CloudBase Node.js authentication tasks, including identifying callers, retrieving user profiles, querying users, and issuing custom login tickets. It provides SDK patterns, decision guidance, and security recommendations, and distinguishes backend identity work from provider configuration and frontend login flows.

Quality

84%

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 auth-nodejs-cloudbase in TencentCloudBase/CloudBase-AI-Toolkit

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

71%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 is highly actionable — every scenario is copy-paste-ready executable TypeScript with canonical API shapes, constraints, and best practices — and the selection workflow is clearly sequenced. Its weaknesses are redundancy (duplicated activation guidance and repeated init boilerplate across nine scenarios) and a monolithic single-file structure that inlines an API reference and scenario catalog which would be better split into reference files.

Suggestions

Merge the 'Activation Contract' section and 'When to use this skill' section into a single trigger block — they currently repeat the same use/don't-use guidance almost verbatim, costing roughly 50 lines.

State the tcb.init/app.auth() boilerplate once in Scenario 1 and reference it from the other scenarios instead of repeating the same four lines in all nine code blocks.

Move the API-signature reference and the scenario catalog into a references/ file (e.g. references/scenarios.md) linked one level deep from SKILL.md, keeping SKILL.md as a concise overview with the activation triggers and workflow.

DimensionReasoningScore

Conciseness

The technical content assumes Claude's competence (no basic-concept explanations), but the trigger guidance is stated twice — the "Activation Contract" section ("Use this first when", "Do NOT use for", "Common mistakes") repeats the later "When to use this skill" section almost verbatim — and the 4-line SDK init boilerplate is repeated in all nine scenarios. This fits "mostly efficient but includes some unnecessary content that could be tightened" better than the noticeably-verbose anchor of 2, since the padding is duplication rather than explanation of known concepts.

3 / 5

Actionability

Every scenario provides complete, executable TypeScript with exact SDK method names and parameter shapes (e.g. auth.getUserInfo(), auth.queryUserInfo({ platform: "PHONE", platformId: ... }), auth.createTicket(customUserId, { refresh, expire })), plus concrete constraints for customUserId (length 4–32, allowed characters). The code is copy-paste ready and covers the common cases, matching the top anchor.

5 / 5

Workflow Clarity

The "How to use this skill" section gives a clear numbered procedure (clarify runtime → confirm env → pick scenario → follow API shapes → fallback when unsure) with explicit scenario routing, and scenarios include try/catch error handling. It falls short of 5 because there are no explicit validation checkpoints or feedback loops (e.g. verifying the credentials file loaded before issuing tickets), but the operations are not destructive or batch, so the workflow-clarity cap does not apply.

4 / 5

Progressive Disclosure

No bundle files exist (references/, scripts/, assets/ are absent), so everything lives in a single ~440-line SKILL.md. Section headers are clear and sibling-skill references (../auth-tool-cloudbase/SKILL.md, ../auth-web-cloudbase/SKILL.md, ../http-api-cloudbase/SKILL.md) are clearly signaled, but the full API reference and nine complete scenarios are inlined when they naturally belong in one-level-deep reference files. This matches "some structure but content that should be separate is inline"; it is above the minimal-structure anchor because navigation is genuinely good.

3 / 5

Total

15

/

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.

The description is specific, complete, and well-fenced: it states concrete capabilities, gives an explicit use-when clause with both positive and negative triggers, and clearly distinguishes itself from provider-configuration and client-UI skills. Its only weakness is modest keyword coverage — a few natural synonyms and API-name triggers are absent.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — "read caller identity", "user lookup", "inspect end users", "issue custom login tickets", "bridge an existing user system into CloudBase" — with comprehensive coverage of the skill's declared scope. It matches the anchor for multiple specific concrete actions with comprehensive coverage, and falls short of no gap that would warrant a 4.

5 / 5

Completeness

It explicitly answers both "what" ("CloudBase Node SDK auth guide for server-side identity, user lookup, and custom login tickets") and "when" ("This skill should be used when Node.js code must read caller identity, inspect end users, or bridge an existing user system into CloudBase"), with concrete negative triggers as well. This matches the anchor for clearly and explicitly answering both with concrete trigger phrases.

5 / 5

Trigger Term Quality

Good keyword coverage including natural phrases users would say: "CloudBase Node SDK", "server-side identity", "caller identity", "custom login tickets", "Node.js". A few natural terms are missing (e.g. "cloud function auth", method names like getUserInfo or createTicket), which keeps it below the comprehensive-synonyms anchor of 5.

4 / 5

Distinctiveness Conflict Risk

The scope is a clear niche (Node SDK server-side identity) and the clause "not when configuring providers or building client login UI" explicitly fences off closely related sibling skills. Conflict risk with other auth skills is minimal, matching the top 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

connectors/cloudbase-intl/skills/references/auth-nodejs-cloudbase/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.