uniapp-request-skill

uniapp-request-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 104 tokens per session (1,198 once invoked), scanned A, original, Apache-2.0.

A request-layer design guide for uni-app, a framework for building apps that run across platforms such as mini programs, web, and mobile. It covers how app code sends requests and handles responses.

In plain words
What is it for?
Use it to assess or build a shared request file, add token refresh and guest checks, support uploads or server-sent events, and test the flow across platforms.
Why use it?
It helps avoid scattered request code and inconsistent handling of authentication, errors, duplicate requests, mock data, uploads, and streaming responses.

Skill for Claude CodeCodex

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

Good fit Use it to assess or build a shared request file, add token refresh and guest checks, support uploads or server-sent events, and test the flow across platforms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/uniapp-request-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-request-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-request-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-request-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-request-skill)
Your own site
<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.

agentmods 80×15 button for uniapp-request-skill

Your own site · 80×15
<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>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,198 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 pass 7 Sept 2026
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.00104 $0.01198
Opus 5 $0.00052 $0.00599
Sonnet 5 $0.00021 $0.00240
Haiku 4.5 $0.00010 $0.00120

Measured 11d ago against content hash 51840b19be4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

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.

vibeCoding/frontend/uniapp/uniapp-request-skill/SKILL.md · 108 lines

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 刷新队列示例

Read the full file on GitHub · 108 lines

Files

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.

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. 11d ago First seen · 108 lines · 104 tokens per session scan A 51840b19be4e

Subscribe to this mod's changes

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.

Related

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.

Yeachan-Heo/oh-my-codex · 50 tokens

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…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

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.

emdash-cms/emdash · 48 tokens

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…

microsoft/power-platform-skills · 73 tokens

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.

nexu-io/html-anything · 24 tokens

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…

asmyshlyaev177/react-horizontal-scrolling-menu · 137 tokens