uniapp-components-skill

uniapp-components-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 88 tokens per session (2,845 once invoked), scanned A, original, Apache-2.0.

A set of rules for handling login and access checks in uni-app WeChat mini-programs. It covers tokens, user state, sign-out, and responses to unauthorized requests.

In plain words
What is it for?
Use it when adding login, token management, sign-out, permission checks, or redirects after a user must log in again.
Why use it?
It keeps login handling in one place and helps prevent unsafe storage or logging of passwords, tokens, and other sensitive data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding login, token management, sign-out, permission checks, or redirects after a user must log in again.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/uniapp-components-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jiushiwon/wg-skills --skill uniapp-components-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for uniapp-components-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-components-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-components-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-components-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-components-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for uniapp-components-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-components-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-components-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,845 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Tool Misuse · line 90
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.02845
Opus 5 $0.00044 $0.01422
Sonnet 5 $0.00018 $0.00569
Haiku 4.5 $0.00009 $0.00284

Measured 12d ago against content hash 00b5d80c582b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

uniapp-components-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vibeCoding/frontend/uniapp/uniapp-components-skill/SKILL.md · 400 lines

How it starts

The opening of the file, as written. The whole thing — 400 lines — stays where its author put it; the contents beside it link to each section on GitHub.

uniapp 登录鉴权与安全规范 Skill

Overview

本 skill 提供 uniapp 微信小程序项目的登录鉴权与安全规范,不包含业务逻辑。

前置依赖:建议配合 uniapp-common-skill 使用(红线规则、目录结构、接口规范)

When to Use

  • "登录鉴权怎么做"
  • "uniapp 登录"
  • "token 管理"
  • "401 处理"
  • "403 处理"
  • "登出流程"
  • "安全规范"
  • "接口安全"

快速索引

规范主题 位置 说明
红线规则 #一-红线规则 专属强制规范
认证服务 #二-认证服务架构 Bootstrap、登录态判断
Token 管理 #三-Token 管理 获取 Token、用户上下文
401 处理 #四-401-处理 并发去重、统一跳转
403 处理 #五-403-处理 权限不足处理
登出流程 #六-登出流程 清理状态、回跳
登录回跳 #七-登录回跳 保存/消费回跳地址
用户状态 #八-用户状态管理 Pinia Store
安全规范 #九-安全规范 接口/数据/代码安全

一、红线规则

编号 规则 说明
A01 认证服务收口 登录态统一走 auth.service.ts,禁止在各页面散落 Token 读写
A02 Token 只存 Storage 禁止在内存变量、组件 data、Storage 之外持久化 Token
A03 禁止明文存敏感信息 Storage 中禁止明文存储密码、身份证、银行卡
A04 401 统一处理 所有请求统一通过响应拦截器处理 401,禁止各页面各自跳转
A05 登出必清理 登出时必须清理所有登录态,保留回跳地址
A06 日志脱敏 禁止在日志中输出密码、Token、完整手机号

二、认证服务架构

2.1 核心模块

src/
├── services/
│   └── auth.service.ts    # 认证服务
├── stores/
│   └── user.ts           # 用户状态
├── utils/
│   └── auth.ts          # 鉴权工具
└── constants/
    └── storage.ts       # 存储 Key

2.2 bootstrap 启动引导

// src/services/auth.service.ts

export interface BootstrapResult {
  needLogin: boolean;
  isGuest: boolean;
  profileComplete?: boolean;
}

export async function bootstrap(): Promise<BootstrapResult> {
  const store = useUserStore();
  store.initUser();

  if (!store.isLoggedIn) {
    return { needLogin: true, isGuest: true };
  }

  const results = await Promise.allSettled([
    store.fetchUserProfile({ skipAuthHandler: true }),
    loadAllDictionaries(),
  ]);

  if (results[0].status === 'rejected') {
    const err = results[0].reason;
    if (err?.message?.includes('登录已过期')) {
      store.logout();
      return { needLogin: true, isGuest: true };
    }
  }

  return {
    needLogin: false,
    isGuest: false,
    profileComplete: isProfileComplete(),
  };
}

Read the full file on GitHub · 400 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 400 lines · 88 tokens per session scan A 00b5d80c582b

Subscribe to this mod's changes

uniapp-components-skill is a skill published in the GitHub repository jiushiwon/wg-skills (100 stars, last pushed 2d ago), licensed Apache-2.0. It adds 88 tokens to every session and 2,845 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

orca-emulator-android

Android device and emulator control from inside Orca over adb, with the live device view in Orca's emulator pane. Use when driving an adb-connected emulator or phone on Windows, Linux, or macOS: booting AVDs, taps, swipes, typing, hardware buttons, rotation, app install and launch, runtime permissions, the…

stablyai/orca · 102 tokens

android-tombstone-symbolication

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…

dotnet/skills · 176 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

winapp-maui

Package and sign .NET MAUI Windows apps with winapp, resolving the resizetizer manifest dependency. Use when packaging or signing a .NET MAUI Windows app, building a MAUI MSIX or signed unpackaged build in CI, or fixing 'manifest contains unresolved placeholders ($placeholder$)' errors from winapp package.

microsoft/winappCli · 71 tokens

react-native-ease-refactor

Scan for Animated/Reanimated code and migrate to EaseView.

appandflow/react-native-ease · 18 tokens

apple-search-ads

When the user wants to set up, optimize, or scale Apple Search Ads (ASA) campaigns — including keyword bidding, match types, campaign structure, Creative Product Sets, CPP routing, and ROAS optimization. Use when the user mentions "Apple Search Ads", "ASA", "Search Ads", "Search tab ads", "Today tab ads", "CPT"…

Eronred/aso-skills · 127 tokens