Skip to content

DanielSuo117/velocitai / skills/locator-replacer

locator-replacer

Verified

替换占位定位符为真实选择器(六级优先级)。触发:替换定位符、locator、selector、定位失败、元素找不到、DOM 分析。

FileKindSize
SKILL.mdskill md4.3 KB
references/priority-levels.mdmarkdown3.7 KB
references/troubleshooting.mdmarkdown595 B

references/troubleshooting.md

View on GitHub
# 定位常见问题处理

> 由 [locator-replacer](../SKILL.md) 按需加载。命中对应症状时再读。

### 同一文本出现多次导致 `text=` 不唯一

降级到 P3/P5,用父容器 + 文本组合:`css=.list-card:first-child >> text=查看详情`

### 元素无任何稳定属性

向前端团队提出添加 `data-testid`(P4)需求,附元素清单;临时用 P5 相对 XPath 过渡。

### 前端构建后选择器批量失效

检查是否使用了哈希类名(违反 P3)→ 优先升级到 P0/P1(不受构建影响)→ 文案变更则对照新文案更新。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall