Agent skill

uni-ad Ads for uni-app

by feige996 in feige996/unibest

“A comprehensive skill for uni-ad monetization in uni-app. Use this skill to integrate ads, configure ad types, handle ad events, and follow official uni-ad documentation.”

— description from SKILL.md by feige996
MITAuto-check passedMobile

Install uni-ad Ads for uni-app

skills CLI
$ npx skills add feige996/unibest --skill uniapp-ad -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install feige996/unibest uniapp-ad --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/feige996/unibest.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/bak-skills/uniapp-ad .claude/skills/uniapp-ad && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
uniapp-ad
GitHub stars
2.3k
Token cost
~675 tokens
SKILL.md length
283 words
Files
10
Skills in repo
14
Repo updated
First seen
Licence
MIT

At a glance

  • Works in 5 steps: 环境准备 → 配置初始化 → 核心功能使用 → …
  • SKILL.md covers When to use this skill, How to use this skill, Examples and Templates and Best Practices, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

uni-ad Ads for uni-app is a skill in feige996/unibest (2.3k stars). Its SKILL.md is about 675 tokens, with 9 other files in the folder. Licence: MIT.

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 环境准备
  2. 配置初始化
  3. 核心功能使用
  4. 测试验证
  5. 部署上线

What it can do on your machine

Read from SKILL.md and the folder at commit dc3af8d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • uniapp.dcloud.net.cn

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

uni-ad Ads for uni-app loads about 675 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 283 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~675

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from feige996/unibest at commit dc3af8d, republished under its MIT licence (© feige996). 283 words, ~675 tokens.

Download SKILL.mdSave it as .claude/skills/uniapp-ad/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
uniapp-ad
description
A comprehensive skill for uni-ad monetization in uni-app. Use this skill to integrate ads, configure ad types, handle ad events, and follow official uni-ad documentation.
license
Complete terms in LICENSE.txt

When to use this skill

Use this skill whenever the user wants to:

  • Integrate ads into uni-app
  • Implement ad monetization
  • Configure different ad types (banner, interstitial, rewarded video, etc.)
  • Handle ad events (load, show, close, error)
  • Optimize ad revenue
  • Set up ad placement and timing
  • Handle ad policies and compliance

How to use this skill

To integrate ads:

  1. Identify the ad type from the user's request:

    • Banner ads → Use banner examples
    • Interstitial ads → Use interstitial examples
    • Rewarded video → Use rewarded video examples
    • Native ads → Use native ad examples
  2. Load the appropriate example file from the examples/ directory:

    • examples/guide/ - Ad integration guide
    • examples/ad-types/ - Different ad type examples
    • examples/integration/ - Integration examples
  3. Load the appropriate API reference from the api/ directory:

    • api/ad-api.md - uni-ad API reference
  4. Follow the specific instructions in those files for integration

Examples and Templates

Examples

Located in examples/:

  • guide/ - Ad integration guide and setup
  • ad-types/ - Different ad type examples (banner, interstitial, rewarded video, etc.)
  • integration/ - Integration examples and best practices
API Reference

Located in api/:

  • ad-api.md - Complete uni-ad API reference

Best Practices

  1. User experience: Don't interrupt user experience with excessive ads
  2. Ad placement: Place ads strategically for maximum revenue
  3. Loading: Handle ad loading states properly
  4. Error handling: Implement proper error handling for ad failures
  5. Compliance: Follow ad policies and regulations

Resources

Keywords

uni-ad, 广告变现, banner广告, 激励视频, 插屏广告, ad monetization, ad integration

能力边界

✅ 适用场景
  • 当你需要使用此技能对应的技术栈时
  • 当项目需要遵循最佳实践时
  • 当需要快速上手或深入理解核心概念时
⚠️ 需要注意
  • 复杂业务逻辑需要结合具体场景调整
  • 性能优化需要根据实际数据量评估
❌ 不适用场景
  • 不相关的技术栈或框架
  • 需要完全自定义的特殊场景

常见陷阱 (Gotchas)

  1. 版本兼容性:注意框架版本与依赖库的兼容性,不同版本 API 可能有差异
  2. 配置文件格式:配置文件格式错误是最常见的问题,建议使用编辑器的语法检查
  3. 环境变量:确保所有必要的环境变量已正确设置,敏感信息不要硬编码
  4. 依赖冲突:多版本共存时注意依赖冲突,使用 lock 文件锁定版本
  5. 性能陷阱:大数据量场景下注意性能优化,避免 N+1 查询等常见问题

使用流程

Step 1: 环境准备

确保开发环境已安装必要的依赖和工具。

Step 2: 配置初始化

根据项目需求进行基础配置。

Step 3: 核心功能使用

按照示例代码实现核心功能。

Step 4: 测试验证

运行测试确保功能正常。

Step 5: 部署上线

完成开发后进行部署和监控。

© feige996, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files in .agents/bak-skills/uniapp-ad of feige996/unibest.

  • SKILL.md
  • LICENSE.txt
  • api/ad-api.md
  • examples/ad-types/banner.md
  • examples/ad-types/interstitial.md
  • examples/ad-types/native.md
  • examples/ad-types/rewarded-video.md
  • examples/guide/intro.md
  • examples/integration/config.md
  • examples/integration/events.md

Open the folder on GitHubat commit dc3af8d

Compare with similar skills

uni-ad Ads for uni-app next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

uni-ad Ads for uni-app compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
uni-ad Ads for uni-app this skillfeige996/unibest2.3k—~675Automated safety check: PassMIT
React Native Best Practicesvercel-labs/openreview1.7k17 repos~1.1kAutomated safety check: PassMIT
Expo Cicd WorkflowsCherryHQ/cherry-studio-app4k6 repos~870Automated safety check: PassMIT
Engine Whats Newflutter/flutter179k—~978Automated safety check: PassBSD-3-Clause
Flutter Cherry Pickflutter/flutter179k—~1.8kAutomated safety check: PassBSD-3-Clause
Upgrade Browserflutter/flutter179k—~1.1kAutomated safety check: PassBSD-3-Clause

Similar skills

  • React Native Best Practices

    vercel-labs/openreview

    Official

    A prioritized rule set for React Native and Expo apps covering list performance, animation, navigation, UI patterns, state, rendering, monorepos and configuration.

    1.7k GitHub starsUsed in 17 repos~1.1k tokens
    MobileAuto-check passed
  • Expo Cicd Workflows

    CherryHQ/cherry-studio-app

    Helps understand and write EAS workflow YAML files for Expo projects.

    4k GitHub starsUsed in 6 repos~870 tokens
    MobileAuto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    179k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • Flutter Cherry Pick

    flutter/flutter

    How to land a formal cherry-pick of a merged PR for the flutter/flutter repo stable or beta channel.

    179k GitHub stars~1.8k tokensUpdated today
    MobileAuto-check passed
  • Upgrade Browser

    flutter/flutter

    Upgrade browser versions (Chrome or Firefox) in the Flutter Web Engine and/or Framework tests.

    179k GitHub stars~1.1k tokensUpdated today
    MobileAuto-check passed
  • Expo Module

    bbplayer-app/BBPlayer

    Guide for creating and writing Expo native modules and views using the Expo Modules API (Swift, Kotlin, TypeScript).

    1.2k GitHub starsUsed in 3 repos~1.4k tokens
    MobileAuto-check passed

More from feige996/unibest

All 14 skills in this repo
  • Gives per-component and per-API examples, reference specs and compatibility notes for building cross-platform uni-app apps, mirroring the official documentation.

    2.3k GitHub stars~1.6k tokensUpdated 24 days ago
    Auto-check passed
  • Reference for using uni-app-x's built-in components and APIs, with one example file per item, official doc links and platform compatibility notes.

    2.3k GitHub stars~788 tokensUpdated 24 days ago
    Auto-check passed
  • Covers uniCloud for uni-app projects: project and cloud space setup, cloud database CRUD and permissions, cloud functions, storage and datacom components.

    2.3k GitHub stars~813 tokensUpdated 24 days ago
    Auto-check passed
  • A comprehensive skill for uni-app mini program development. Use when building uni-app mini programs, configuring mini program settings, or working with mini…

    2.3k GitHub stars~516 tokensUpdated 24 days ago
    Auto-check passed
  • A comprehensive skill for uni-app native app offline packaging. Use this skill to package uni-app as native Android/iOS apps, configure native app settings…

    2.3k GitHub stars~651 tokensUpdated 24 days ago
    Auto-check passed
  • A comprehensive skill for developing native plugins for uni-app. Use this skill when building Android/iOS native plugins, integrating native capabilities, or…

    2.3k GitHub stars~659 tokensUpdated 24 days ago
    Auto-check passed

Categories

Questions about uni-ad Ads for uni-app

How do I install uni-ad Ads for uni-app in Claude Code?

Run `npx skills add feige996/unibest --skill uniapp-ad -a claude-code`. Or copy the skill folder (.agents/bak-skills/uniapp-ad in feige996/unibest) into .claude/skills/uniapp-ad in your project. Claude Code loads it when a task matches its description.

How do I install uni-ad Ads for uni-app in Codex?

Run `npx skills add feige996/unibest --skill uniapp-ad -a codex`. Or copy the skill folder (.agents/bak-skills/uniapp-ad in feige996/unibest) into .agents/skills/uniapp-ad in your project. Codex loads it when a task matches its description.

Can I use uni-ad Ads for uni-app in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add feige996/unibest --skill uniapp-ad -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/uniapp-ad, .gemini/skills/uniapp-ad, .github/skills/uniapp-ad and .opencode/skills/uniapp-ad in your project.

What does uni-ad Ads for uni-app need to run?

SKILL.md names no scripts, command-line tools or credentials: uni-ad Ads for uni-app is instructions for the agent only.

Does uni-ad Ads for uni-app access the network?

SKILL.md names 1 domain. As links in the text: uniapp.dcloud.net.cn. This is read from the text; nothing was executed.

Is uni-ad Ads for uni-app safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does uni-ad Ads for uni-app use?

uni-ad Ads for uni-app is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does uni-ad Ads for uni-app use?

About 675 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to uni-ad Ads for uni-app?

Skills that share tags, products or a category with uni-ad Ads for uni-app: React Native Best Practices (vercel-labs/openreview, 1.7k stars), Expo Cicd Workflows (CherryHQ/cherry-studio-app, 4k stars), Engine Whats New (flutter/flutter, 179k stars) and Flutter Cherry Pick (flutter/flutter, 179k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains uni-ad Ads for uni-app?

feige996 (a GitHub user) maintains it in feige996/unibest, which has 2,275 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on September 15, 2026.

Source: feige996/unibest on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.