bokuwalily/claude-code-skills/automation-bool-selector-pitfalls
Claude Code and agent skill by bokuwalily/claude-code-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Webブラウザ自動化スクリプト(Playwright/Puppeteer/Selenium)で何日も止まっていたレーンの真因になりやすい2大手抜き=「booleanの戻り値抜け」と「document全体を走査するセレクタ」の診断・修正パターン。social-autolike/note-autolike/tiktok-autopost等の自動化レーンが突然失敗し始めたときに最初に確認する。
Install
npx vskill@latest install bokuwalily/claude-code-skills/automation-bool-selector-pitfallsSKILL.md
The same SKILL.md was published earlier as bokuwalily/claude-code-skills/automation-bool-selector-pitfalls.
背景
2026-08-09 hot.md 28h窓(71件)の横断診断結果: 何日も止まっていたレーンの真因が、ほぼ全部たった2つの手抜きだった。
| # | パターン | 症状 | 該当レーン例 | |
|---|---|---|---|---|
| 1 | boolean の戻り値抜け | アクション成功なのに呼び出し元が失敗と判定 → ABORT連鎖 | social-autolike, note-autolike | |
| 2 | document 全体を走査するセレクタ | 意図しない要素にヒット → クリック先間違い・NoSuchElement | ai-portraits/swim, tiktok-autopost |
Pitfall 1: boolean の戻り値抜け
症状
スクリプト本体は正常終了しているのに、呼び出し元が if result: で falsy を受け取り失敗扱いにする。
原因パターン
修正
診断コマンド
Pitfall 2: document 全体を走査するセレクタ
症状
「ボタンをクリックしたはずが別のボタンを押していた」「モーダルの外の要素が先にヒットした」。
原因パターン
修正:スコープを限定する
診断コマンド
診断チェックリスト(レーン ABORT 時に最初に確認)
Pitfall 3(派生): async 関数の await 忘れ
boolean 抜けと同時に発生しやすい。
関連スキル
- — 成功したように見えて失敗している全パターン
- — クールダウンフラグ stale による誤 ABORT
- — 同パターンの会話ログ処理フロー
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/automation-bool-selector-pitfalls/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bokuwalily/claude-code-skills/automation-bool-selector-pitfalls)