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.01198 |
| Opus 5 | $0.00052 | $0.00599 |
| Sonnet 5 | $0.00021 | $0.00240 |
| Haiku 4.5 | $0.00010 | $0.00120 |
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 11d 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-components-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
1 file 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.
- 11d 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 (99 stars, last pushed today), licensed Apache-2.0. It adds 104 tokens to every session and 1,198 once invoked, about $0.0005 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.
Other skills, from other repositories
visual-ralph
Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
repro-admin
Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.
create-site
Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…
prototype-web
A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.
menu-transitions-rtl
Animate react-horizontal-scrolling-menu scrolling and build right-to-left menus: noPolyfill defaults to true since v8, so transitionDuration (default 500), a custom-easing-function transitionBehavior, and per-call ScrollOptions { duration, boundary } on scrollToItem/scrollNext/scrollPrev are silently ignored unless…