CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

auth-nodejs-cloudbase

CloudBase Node SDK auth guide for server-side identity, user lookup, and custom login tickets. This skill should be used when Node.js code must read caller identity, inspect end users, or bridge an existing user system into CloudBase; not when configuring providers or building client login UI.

60

Quality

76%

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

Fix and improve this skill with Tessl

tessl review fix ./config/source/skills/auth-nodejs-cloudbase/SKILL.md

The canonical home for this skill is auth-nodejs-cloudbase in TencentCloudBase/CloudBase-AI-Toolkit

SKILL.md
Quality
Evals
Security

Quality

Content

56%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 a solid, highly actionable reference with executable TypeScript patterns for every covered API, but it is heavily padded: routing rules are stated three times and initialization boilerplate repeats in every scenario, and nothing is offloaded to bundle files. Actionable guidance and workflow are good (4), while conciseness (2) and progressive disclosure (3) drag the score down.

Suggestions

Collapse the Activation Contract, 'When to use this skill', and 'Summary' sections into a single routing block — they restate the same scope and do-not-use rules three times (~60 redundant lines).

Show the `tcb.init({ env })` / `app.auth()` boilerplate once in Scenario 1 and reference it from the other scenarios instead of repeating it in all eight code blocks.

Move the API-signature reference and the nine scenarios into a references/ file (e.g. references/scenarios.md), keeping SKILL.md as a concise overview with clearly signaled links; also fix Scenarios 7-8 so the import/require style is consistent and executable.

DimensionReasoningScore

Conciseness

Several padded, redundant sections: the Activation Contract ("Use this first when", "Do NOT use for", "Common mistakes"), "When to use this skill", and the closing "Summary" restate the same routing rules three times (~60 redundant lines), and the 3-line `tcb.init`/`app.auth()` boilerplate is repeated verbatim in all eight scenario code blocks even though Scenario 1 exists solely to show initialization. This matches anchor 2 (noticeably verbose, several unnecessary padded sections); it is above anchor 1 because the scenario sections themselves are lean and accurate, not beginner-concept filler.

2 / 5

Actionability

Concrete, near copy-paste-ready TypeScript covering the common cases: `auth.queryUserInfo({ platform: "PHONE", platformId: "+86 13800000000" })`, `auth.createTicket(customUserId, { refresh, expire })`, plus concrete constraints ("Length 4-32 characters", allowed characters) and a canonical API-signature list. Not a 5 because Scenarios 7-8 mix `import` syntax with `require(path.join(__dirname, ...))`, which will not execute as-is in an ESM module — a minor executability gap matching anchor 4.

4 / 5

Workflow Clarity

"How to use this skill (for a coding agent)" gives a clearly sequenced 5-step flow (clarify runtime/responsibility → confirm env and SDK → pick scenario → follow API shapes exactly → consult docs if unsure) with a checking rule ("If you see a method in older code that is not listed here... treat it as suspect") and try/catch error patterns in the scenarios. Not a 5 because there are no explicit output-validation checkpoints or feedback loops, which anchor 5 requires; it clears anchor 3 because the sequence is explicit rather than merely listed.

4 / 5

Progressive Disclosure

Good section headers and clearly signaled one-level sibling references ("../auth-web-cloudbase/SKILL.md", "../http-api-cloudbase/SKILL.md"), but ~450 lines are fully inlined in a monolithic SKILL.md — the "Node Auth APIs covered by this skill" signature reference and the nine scenarios are exactly the material the rubric expects split into separate bundle files, and no references/ or scripts/ files exist. Matches anchor 3 (some structure, inline content that should be separate) better than 2 (structure and signaling are present) or 4 (most content is not appropriately placed in one file).

3 / 5

Total

13

/

20

Passed

Description

87%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 description: concrete third-person capability list, an explicit 'use when' clause with both positive and negative triggers, and clear separation from sibling CloudBase auth skills. Only minor gaps (no mention of the client-IP scenario or the SDK package name/云函数 as trigger terms) keep two dimensions at 4.

DimensionReasoningScore

Specificity

"server-side identity, user lookup, and custom login tickets" plus "read caller identity, inspect end users, or bridge an existing user system into CloudBase" list several specific concrete actions in third person. It is not a 5 because coverage has a minor gap: the client-IP retrieval scenario (auth.getClientIP) covered in the body is not mentioned.

4 / 5

Completeness

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 trigger phrases and explicit negative boundaries. Clearly matches anchor 5; anchor 4 would require the 'when' to be less explicit, which it is not.

5 / 5

Trigger Term Quality

Natural user phrasings are present: "Node.js code", "caller identity", "user lookup", "custom login tickets", "client login UI", "configuring providers". A few natural terms are missing that the body itself uses, such as "@cloudbase/node-sdk", "云函数", and "who is calling", so it fits anchor 4 (good coverage, a few terms missing) rather than 5.

4 / 5

Distinctiveness Conflict Risk

Clear niche anchored by "Node.js code" and explicit disambiguation against the closest overlapping skills ("not when configuring providers or building client login UI"). Minimal conflict risk; matches anchor 5 rather than 4 because the negative clause directly carves out the sibling auth skills.

5 / 5

Total

18

/

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/source/skills/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.