From a7a3f924b078c179a1a3db4388fb59c0ec3d56af Mon Sep 17 00:00:00 2001 From: leeguooooo Date: Fri, 5 Jun 2026 16:55:47 +0900 Subject: [PATCH] docs(skills): site-notes convention for remembering site quirks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Borrow web-access's site-experience persistence as an agent-workflow convention (no CLI code): keep one markdown file per domain under ~/.agent-browser/site-patterns/.md. Read it before working a domain (hints, not guarantees); update it after learning something durable — working selectors, required hidden fields, anti-bot traps, login needs. Makes repeat visits fast instead of re-solving the same page every run. --- skill-data/core/SKILL.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/skill-data/core/SKILL.md b/skill-data/core/SKILL.md index 4b5cb66..225fd6c 100644 --- a/skill-data/core/SKILL.md +++ b/skill-data/core/SKILL.md @@ -256,6 +256,44 @@ AGENT_BROWSER_SESSION_NAME=my-app agent-browser open https://app.example.com # State is auto-saved and restored on subsequent runs with the same name. ``` +### Remember a site's quirks (site notes) + +A site behaves the same every time you visit it. When you work out something +durable — a working selector, a URL pattern, a hidden field a form needs, an +anti-bot trap, what requires login — **write it down so the next run doesn't +re-discover it.** Keep one markdown file per domain (these are your own notes, +not shipped with the skill): + +``` +~/.agent-browser/site-patterns/.md +``` + +**Before** working on a domain, read its file if it exists (use your normal file +tools — this is plain markdown you own). Treat it as *hints, not guarantees* — +sites change; verify before relying. **After** a successful session that taught +you something durable, create or update it. Suggested shape: + +```markdown +--- +domain: app.example.com +updated: 2026-06-05 +--- +## Platform traits +SPA; form renders ~1s after load (wait --text). Cloudflare on /login. + +## Working patterns +- Address pick: the `
  • ` closes on blur — select with CLICK_MODE=dom. +- Submit needs hidden `point_choice` set (eval), the UI never exposes it. +- Stable selector for "Continue": button[data-testid=submit] + +## Known traps (date them) +- 2026-06-05: @ref to the basket button goes stale after the mini-cart opens; + re-snapshot or use `find role button --name "Checkout"`. +``` + +This is how repeat visits get fast and reliable instead of re-solving the same +page every time. + ### Extract data ```bash