重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
gleap-sdk-setup by gleapsdk/agent-skills
npx skills add https://github.com/gleapsdk/agent-skills --skill gleap-sdk-setup引导用户将 Gleap SDK 集成到他们的项目中。支持 JavaScript、iOS、Android、React Native、Flutter、Ionic/Capacitor、Cordova 和 FlutterFlow。
在继续之前,检测用户的平台。如果用户明确说明了他们的平台,则跳过检测。
按此顺序检查(首次匹配即停止):
是否存在 pubspec.yaml?
flutterflow 引用或用户提及 FlutterFlow -> FlutterFlow (platform-flutterflow.md)platform-flutter.md)是否存在 package.json? 读取并检查 dependencies 和 :
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
devDependenciesreact-native -> React Native (platform-react-native.md)@capacitor/core 或 capacitor-core -> Ionic/Capacitor (platform-ionic-capacitor.md)cordova,或存在包含 <widget> 的 config.xml -> Cordova (platform-cordova.md)@angular/core -> JavaScript (Angular)react (没有 react-native) -> JavaScript (React)vue -> JavaScript (Vue)next -> JavaScript (Next.js)nuxt -> JavaScript (Nuxt)platform-javascript.md是否存在 *.xcodeproj、*.xcworkspace 或 Podfile? -> iOS (platform-ios.md)
是否存在 build.gradle、build.gradle.kts 或 app/build.gradle? -> Android (platform-android.md)
是否存在 index.html (没有 package.json)? -> JavaScript CDN 方式 (platform-javascript.md)
检测到服务器端 Web 框架? 这些都在客户端使用 JavaScript SDK (platform-javascript.md):
composer.json (PHP / Laravel) — 根据是否存在 JS 构建管道,使用 CDN 或 npmGemfile 包含 rails (Ruby on Rails) — 在布局中使用 CDN,如果存在 Webpacker/esbuild/importmap 则使用 npmrequirements.txt / pyproject.toml 包含 django 或 flask (Python) — 在基础模板中使用 CDN*.cshtml / *.csproj 文件 (.NET / ASP.NET) — 在布局视图中使用 CDNpom.xml / build.gradle 包含 Spring Boot (Java) — 在 Thymeleaf 模板中使用 CDNpackage.json,步骤 2 已经覆盖了这种情况。未检测到任何内容 -> 询问用户他们目标平台是什么。
使用 Glob 扫描关键文件:
pubspec.yamlpackage.json**/*.xcodeproj**/*.xcworkspacePodfilebuild.gradlebuild.gradle.ktsapp/build.gradleconfig.xmlindex.htmlcomposer.jsonGemfilerequirements.txtpyproject.toml如果找到 package.json,使用 Read 检查其 dependencies 和 devDependencies 键。
在向用户询问其 API 密钥之前,按顺序检查以下位置:
.env 文件 — 查找 GLEAP_API_KEY=...echo $GLEAP_API_KEY 设置了 GLEAP_API_KEY当找到或提供密钥时,建议将其保存到项目的 .env 文件中(如果需要则创建它,如果尚未添加则将 .env 添加到 .gitignore),以便将来使用。
按顺序执行以下步骤:
scripts/get-latest-versions.sh。在所有安装命令中使用返回的版本,而不是硬编码的版本号。platform-{name}.md 文件。设置完成后,如果用户询问使用 Gleap API,请参考相关平台文件中的 "Common API Usage" 部分。最常见的任务是:
重新阅读平台文件的 API 部分以获取正确的方法签名,因为它们在不同平台之间有所不同。
initialize() 必须在应用程序生命周期中恰好调用一次pod install 失败:首先运行 pod repo update,然后重试minSdkVersion 至少为 21tools:overrideLibrary="io.gleap.gleap_sdk"sdk.gleap.ioGleap.getInstance().softReInitialize()android:hardwareAccelerated="false"每周安装次数
55
仓库
首次出现
2026年2月18日
安全审计
安装于
codex55
kimi-cli54
gemini-cli54
amp54
github-copilot54
opencode54
Guides users through integrating the Gleap SDK into their project. Supports JavaScript, iOS, Android, React Native, Flutter, Ionic/Capacitor, Cordova, and FlutterFlow.
Detect the user's platform before proceeding. If the user explicitly states their platform, skip detection.
Check in this order (first match wins):
pubspec.yaml exists?
flutterflow references or user mentions FlutterFlow -> FlutterFlow (platform-flutterflow.md)platform-flutter.md)package.json exists? Read it and check dependencies + devDependencies:
react-native present -> React Native (platform-react-native.md)@capacitor/core or capacitor-core present -> Ionic/Capacitor (platform-ionic-capacitor.md)cordova present, or config.xml exists with <widget> -> Cordova (platform-cordova.md)@angular/core present -> (Angular)*.xcodeproj, *.xcworkspace, or Podfile exists? -> iOS (platform-ios.md)
build.gradle, build.gradle.kts, or app/build.gradle exists? -> Android (platform-android.md)
index.html exists (no package.json)? -> JavaScript CDN approach (platform-javascript.md)
Server-side web framework detected? These all use the JavaScript SDK on the client side (platform-javascript.md):
composer.json exists (PHP / Laravel) — use CDN or npm depending on whether a JS build pipeline existsGemfile with rails (Ruby on Rails) — use CDN in layouts, or npm if Webpacker/esbuild/importmap is presentrequirements.txt / pyproject.toml with django or flask (Python) — use CDN in base templates*.cshtml / files (.NET / ASP.NET) — use CDN in layout viewsNothing detected -> Ask the user which platform they are targeting.
Use Glob to scan for key files:
pubspec.yamlpackage.json**/*.xcodeproj**/*.xcworkspacePodfilebuild.gradlebuild.gradle.ktsapp/build.gradleconfig.xmlindex.htmlIf package.json is found, use Read to inspect its dependencies and devDependencies keys.
Before asking the user for their API key, check these locations in order:
.env file in the project root — look for GLEAP_API_KEY=...GLEAP_API_KEY is set via echo $GLEAP_API_KEYWhen a key is found or provided, offer to save it to the project's .env file (creating it if needed, and adding .env to .gitignore if not already there) so it's available for future use.
Follow these steps in order:
scripts/get-latest-versions.sh from this skill's directory. Use the returned versions in all install commands instead of hardcoded version numbers.platform-{name}.md file from this skill's directory.After setup, if the user asks about using the Gleap API, refer to the "Common API Usage" section in the relevant platform file. The most common tasks are:
Re-read the platform file's API section for the correct method signatures, as they differ between platforms.
initialize() must be called exactly once in the application lifecyclepod install fails: Run pod repo update first, then retryminSdkVersion is at least 21tools:overrideLibrary="io.gleap.gleap_sdk" to AndroidManifest.xmlsdk.gleap.ioGleap.getInstance().softReInitialize() after reloadandroid:hardwareAccelerated="false" at application levelWeekly Installs
55
Repository
First Seen
Feb 18, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex55
kimi-cli54
gemini-cli54
amp54
github-copilot54
opencode54
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
125,600 周安装
Remotion 演练视频制作指南:使用 Stitch 与 Remotion 创建专业应用演示视频
18,200 周安装
Git Commit 规范指南:使用 Conventional Commits 标准化提交信息
22,700 周安装
Playwright 最佳实践指南 - 端到端测试、组件测试、API测试全面教程
24,600 周安装
Expo原生UI开发指南:构建iOS/Android原生界面与动画效果
27,100 周安装
Overdrive:浏览器极限性能优化,打造非凡用户体验的Web界面增强技能
38,300 周安装
typeset排版优化工具 - 评估改进网页字体层级、可读性与一致性,提升设计感
39,500 周安装
react present (without react-native) -> JavaScript (React)vue present -> JavaScript (Vue)next present -> JavaScript (Next.js)nuxt present -> JavaScript (Nuxt)platform-javascript.md for all JavaScript variants*.csprojpom.xml / build.gradle with Spring Boot (Java) — use CDN in Thymeleaf templatespackage.json with a frontend framework, step 2 already covers this.composer.jsonGemfilerequirements.txtpyproject.toml