skills/gkd/SKILL.md
GKD 基于无障碍、高级选择器和订阅规则的自定义屏幕点击 Android 应用。 提供快捷操作、跳过流程等自动化功能,支持复杂的选择器语法和订阅规则配置。 触发条件:GKD、无障碍点击、选择器、订阅规则、屏幕自动化、Android 自动化。
npx skillsauth add long36708/longmo-skills gkdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
GKD 是一款基于无障碍、高级选择器、订阅规则的自定义屏幕点击 Android 应用。通过自定义规则,在指定界面满足特定条件时,自动点击特定的节点或位置,实现快捷操作和跳过流程等功能。
| 优先级 | 类别 | 影响程度 | 前缀 | 规则数 |
|----------|----------|--------|--------|-------|
| 1 | 选择器语法 | 关键 | selector- | 6 |
| 2 | 性能优化 | 高 | optimization- | 2 |
| 3 | 订阅规则 | 高 | subscription- | 2 |
| 4 | 实际应用 | 高 | application- | 3 |
| 5 | 隐私保护 | 中等 | privacy- | 1 |
| 规则 | 文件 | 摘要 |
|------|------|---------|
| 使用 @ 符号标记目标节点 | selector-use-at-symbol.md | 明确标记需要点击的目标节点,避免误操作 |
| 理解选择器从右到左的匹配顺序 | selector-match-order-right-to-left.md | 选择器采用从右到左匹配,与直觉相反 |
| 正确处理嵌套转义字符 | selector-escape-characters.md | 考虑 GKD、JSON 和正则表达式的多层转义 |
| 理解选择器操作符优先级 | selector-operator-precedence.md | && 优先级高于 ||,需要正确分组 |
| 优先选择可点击节点 | selector-preferred-clickable-node.md | 优先选择 clickable=true 的节点,提高点击成功率 |
| 处理复选框状态 | selector-checkbox-state.md | 正确处理复选框的勾选状态,避免误操作 |
| 规则 | 文件 | 摘要 |
|------|------|---------|
| 利用快速查询优化选择器性能 | selector-fast-query-optimization.md | 使用特定格式触发 Android API 的快速查询 |
| 全局与局部快速查询 | selector-fast-query-global-local.md | 理解全局快速查询和局部快速查询的区别和应用 |
| 规则 | 文件 | 摘要 |
|------|------|---------|
| 使用 JSON5 格式编写订阅规则 | subscription-json5-format.md | 支持无引号键名、注释等便利特性 |
| 正确使用 key 值规范 | subscription-key-usage.md | 规则组 key 值的唯一标识和递增规范 |
| 规则 | 文件 | 摘要 |
|------|------|---------|
| 开屏广告通用规则 | application-splash-ad-general.md | 适用于大部分应用的开屏广告处理规则 |
| 弹窗广告处理规则 | application-popup-ad-rule.md | 各类弹窗广告的通用处理方案 |
| 卡片广告选择器 | application-card-ad-selector.md | 卡片式广告的定位和点击规则 |
| 规则 | 文件 | 摘要 |
|------|------|---------|
| 保护快照中的隐私信息 | snapshot-privacy-protection.md | 处理截图和节点信息中的敏感数据 |
| 技能 | 描述 | 参考文件 | |------|------|----------| | 选择器基础语法 | 类似 CSS 选择器的语法结构 | selector | | 属性选择器 | 节点属性匹配和逻辑表达式 | selector-attr | | 关系选择器 | 节点间关系定位(父子、兄弟等) | selector-connect | | 选择器示例 | 实际应用场景的选择器写法 | example |
| 技能 | 描述 | 参考文件 | |------|------|----------| | 节点属性 | Android 节点可用的属性列表 | node-attributes | | 类型方法 | null、boolean、int、string 类型的方法 | type-methods | | 上下文方法 | context 和 global 类型的特殊方法 | context-methods |
| 技能 | 描述 | 参考文件 | |------|------|----------| | 订阅规则格式 | JSON5 格式的规则配置 | subscription | | 应用规则 | 针对特定应用的自动化规则 | app-rules | | 全局规则 | 跨应用的通用规则配置 | global-rules |
| 技能 | 描述 | 参考文件 | |------|------|----------| | 查询优化 | 选择器性能优化技巧 | optimize | | 快速查询 | 利用 Android API 加速节点查找 | fast-query | | 主动查询 | 从根节点开始的查询优化 | enforce-query |
| 技能 | 描述 | 参考文件 | |------|------|----------| | 快照审查 | 网页工具调试和验证选择器 | snapshot | | 快照抓取 | 多种方式获取界面快照 | capture-snapshot | | 快照分享 | 上传和分享快照文件 | upload-snapshot |
| 技能 | 描述 | 参考文件 | |------|------|----------| | 通用选择器 | 各种广告场景的通用规则 | Selectors | | 复选框状态 | 处理复选框的勾选状态 | checkbox-state | | 快速查询优化 | 全局和局部快速查询技巧 | fast-query | | Key 值规范 | 规则组 key 值的正确使用 | key-usage | | 优先点击可点击节点 | 提高点击成功率的技巧 | preferred-clickable-node |
@LinearLayout > TextView[id=`com.byted.pangle:id/tt_item_tv`][text=`不感兴趣`]
{
id: 'com.zhihu.android',
name: '知乎',
groups: [
{
key: 0,
name: '开屏广告',
rules: { matches: 'TextView[id="com.zhihu.android:id/btn_skip"]' },
snapshotUrls: ['https://i.gkd.li/i/13070251'],
},
],
}
| 操作符 | 名称 | 说明 |
|--------|------|------|
| = | 等于 | 完全匹配 |
| ^= | 以...开头 | 字符串前缀匹配 |
| *= | 包含... | 字符串包含匹配 |
| $= | 以...结尾 | 字符串后缀匹配 |
| ~= | 正则匹配 | 正则表达式匹配 |
| 操作符 | 名称 | 说明 |
|--------|------|------|
| + | 前置兄弟节点 | 左侧节点是右侧节点的前一个兄弟 |
| - | 后置兄弟节点 | 左侧节点是右侧节点的后一个兄弟 |
| > | 祖先节点 | 左侧节点是右侧节点的祖先 |
| < | 直接子节点 | 左侧节点是右侧节点的直接子节点 |
| << | 子孙节点 | 左侧节点是右侧节点的子孙 |
| 参考资料 | 涵盖内容 | |----------|----------| | what-is-gkd | GKD 基本概念和使用场景 | | selector | 完整的选择器语法说明 | | node | 节点属性方法参考 | | subscription | 订阅规则配置指南 | | optimize | 性能优化技巧 | | snapshot | 快照工具使用指南 | | example | 实际应用示例 |
@ 标记目标节点documentation
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.
development
Portless development server proxy that eliminates port conflicts by routing through localhost subdomains. Use when setting up development servers, managing multiple apps, avoiding port conflicts, or working with monorepos and turborepo projects.
content-media
Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.
development
MSW (Mock Service Worker) v2 最佳实践、模式和API指南,用于 JavaScript/TypeScript测试和开发中的API模拟。涵盖处理器 设计、服务器设置、响应构造、测试模式、GraphQL和 v1到v2迁移。基准版本:msw ^2.0.0。 触发条件:msw导入,http.get,http.post,HttpResponse,setupServer, setupWorker,graphql.query,提及"msw"、"mock service worker"、 "api mocking"或"msw v2"。