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.
npx skills add jiushiwon/wg-skills --skill uniapp-auth-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote 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.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-auth-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-auth-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-auth-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.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-auth-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-auth-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.02845 |
| Opus 5.5 | $0.00035 | $0.01138 |
| Sonnet 5.5 | $0.00018 | $0.00569 |
| Haiku 4.5 | $0.00009 | $0.00284 |
Grade A, and why
uniapp-auth-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 24d 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.
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-standard-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(),
};
}
What ships with it
4 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.
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.
- 24d ago Changed 89498f64ed6d
- 2mo ago First seen · 400 lines · 88 tokens per session scan A 041db06200e8
uniapp-auth-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 7d 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.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-09-30.
uniapp-auth-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| uniapp-auth-skilljiushiwon/wg-skills | Skill | 154 | 7d ago | Apache-2.0 | A | 88 | Claude Code, Codex |
| orca-emulator-androidstablyai/orca | Skill | 147k | today | MIT | A | 102 | Claude Code, Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 8d ago | Apache-2.0 | A | 56 | Claude Code |
| android-tombstone-symbolicationdotnet/skills | Skill | 6.4k | today | MIT | A | 176 | Claude Code |
| dogfoodcallstack/agent-device | Skill | 5.6k | today | MIT | A | 55 | Claude Code |
| winapp-mauimicrosoft/winappCli | Skill | 1.4k | today | MIT | A | 68 | Claude Code |
| flutter-devMiniMax-AI/skills | Skill | 14k | 21d ago | MIT | A | 83 | Claude Code |