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-request-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-request-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-request-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-request-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-request-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-request-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00104 | $0.01188 |
| Opus 5.5 | $0.00042 | $0.00475 |
| Sonnet 5.5 | $0.00021 | $0.00238 |
| Haiku 4.5 | $0.00010 | $0.00119 |
Grade A, and why
uniapp-request-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 1mo 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 — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UniApp Request Layer Skill
定位
只聚焦 uniapp 请求层设计:基于 uni.request / uni.uploadFile / uni.downloadFile 建立统一、健壮、可维护的请求体系。
权威规范位于 frontend-request-skill/references/uniapp-spec.md。本 skill 是其在 uniapp 场景的入口与触发词聚合。
When to Use
触发词:
- "uniapp 请求封装"
- "uniapp request.ts"
- "uniapp 接口拦截"
- "uniapp Token 刷新"
- "uniapp 游客模式拦截"
- "uniapp Mock 数据"
- "uniapp 接口防抖"
- "uniapp 错误处理"
- "uniapp 文件上传"
- "uniapp SSE 流式"
- "uniapp AI 聊天流式回复"
- "uniapp 跨端请求层"
不触发场景
- 通用 Web/Vue/React 请求设计(用
frontend-request-skill) - 完整登录鉴权体系(用
uniapp-auth-skill) - 跨平台兼容性审计(用
uniapp-crossplatform-audit-skill)
Workflow
Phase 1: 现状评估
读取项目 src/utils/request.* / src/api/* / src/services/*
评估是否已封装、是否接入鉴权、是否处理 SSE
Phase 2: 规范对照
按 frontend-request-skill/references/uniapp-spec.md 的 11 项要点逐条对照
输出"差距清单"
Phase 3: 用户确认
列出"哪些项需要补、哪些项可保持现状"
用户确认后进入实施
Phase 4: 改造实施
新建或改造 src/utils/request.ts
集成 auth、错误处理、Mock、防抖、SSE、上传
Phase 5: 验证
小程序 / H5 / App 三端联调
401 刷新流程、SSE 流式、上传进度回归
11 项核心要点(详见 frontend-request-skill/references/uniapp-spec.md)
| # | 要点 | 适用层 |
|---|---|---|
| 1 | 统一入口 request.ts |
request |
| 2 | 响应信封 { code, message, data } |
response |
| 3 | 鉴权拦截 + Token 注入 | interceptor |
| 4 | 401 自动刷新 Token + 队列重试 | interceptor |
| 5 | 游客模式拦截 | interceptor |
| 6 | 请求防抖 / 重复拦截 | interceptor |
| 7 | Mock 数据机制 | dev |
| 8 | 错误码统一映射与通知 | interceptor |
| 9 | 文件上传独立封装 + 进度回调 | upload |
| 10 | SSE 流式请求 + 打字机效果 | stream |
| 11 | 网络异常 / 超时重试策略 | interceptor |
跨端差异要点
| 端 | 网络 API | 注意点 |
|---|---|---|
| 微信小程序 | uni.request / uni.uploadFile |
需配置合法域名;不支持长连接需用 SSE 兼容方案 |
| H5 | uni.request(包装 fetch) |
CORS 跨域处理 |
| App | uni.request(plus.net) |
SSL 证书、离线缓存 |
完整端间差异参见 uniapp-crossplatform-audit-skill。
输出文件
src/utils/request.ts— 请求层入口src/utils/upload.ts— 上传封装src/utils/sse.ts— SSE 流式封装src/api/auth.ts— Token 刷新队列示例
What ships with it
2 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.
- 1mo ago Changed 34b560910fc1
- 2mo ago Changed f69bb4d7a693
- 3mo ago First seen · 108 lines · 104 tokens per session scan A 51840b19be4e
uniapp-request-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 104 tokens to every session and 1,188 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-08-30.
uniapp-request-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| uniapp-request-skilljiushiwon/wg-skills | Skill | 154 | 6d ago | Apache-2.0 | A | 104 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 3d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |