From f56f5dc8491be4031122ad581963f74b1b4e4fbb Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Sat, 28 Feb 2026 17:53:04 +0300 Subject: [PATCH] docs(web-test): add anti-loop guidelines to SKILL.md Prevent models from endlessly retrying the same failed search. Rules: max 2 attempts per approach, try alternatives not repeats, report partial results instead of silent retry. Co-Authored-By: Claude Opus 4.6 --- .claude/skills/web-test/SKILL.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.claude/skills/web-test/SKILL.md b/.claude/skills/web-test/SKILL.md index d3da6d29..b7e5022a 100644 --- a/.claude/skills/web-test/SKILL.md +++ b/.claude/skills/web-test/SKILL.md @@ -354,6 +354,13 @@ On error (auto-screenshot taken): { "ok": false, "error": "Element not found", "output": "...", "screenshot": "error-shot.png", "elapsed": 1.5 } ``` +## Avoiding loops + +- **Max 2 attempts per operation.** If an action fails twice with the same approach — stop and report to the user +- **Not found = not found.** If `filterList` returns 0 rows or `readTable` is empty after filtering — the item likely doesn't exist in this database. Don't retry the same search 5 times with slight variations +- **Try a different approach, not the same one.** Couldn't find via section navigation? Try `navigateLink`. Couldn't find via simple search? Try advanced search with a specific field. But don't repeat the same method +- **Report partial results.** If you found the list but not the specific item — say so. Show what IS available instead of silently retrying + ## Important notes - **Headed mode** — 1C requires visible browser, no headless