opencli-browser-sitemap
Original:🇺🇸 English
Translated
Use when driving a website with opencli browser and sitemap context is available, requested, or needed to avoid blind navigation. Guides agents to consume site sitemap files lazily, choose adapter/browser fallback paths, resume from state signatures, and mark stale sitemap entries without trusting them over live browser state.
7installs
Sourcejackwener/opencli
Added on
NPX Install
npx skill4agent add jackwener/opencli opencli-browser-sitemapTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →opencli-browser-sitemap
Use this skill when or reports , or when the user asks you to use a site's sitemap.
opencli browser openopencli browser analyzesitemap.available: trueThe sitemap is prior knowledge, not ground truth. It should reduce blind clicking, but it must never override the live browser state.
Consumption Loop
- Run or reuse to know the current page.
opencli browser <session> state - Read only the smallest relevant sitemap files:
- for site-level orientation.
SITE.md - One matching for current state.
pages/<page-id>.md - One matching for the user goal.
workflows/<task-id>.md - only when blocked or warned by the workflow.
pitfalls.md
- Prefer the workflow's Best path. If it names an adapter such as , use that before raw browser actions.
opencli twitter post - If the adapter is unavailable or fails, use the Fallback path browser workflow.
- After each navigation or state-changing action, refresh and compare the workflow's
state.state_signature - If reality disagrees, trust reality, continue probing, and write a local stale note or draft patch.
- If an action recovery includes , update the local overlay workflow that references that adapter so future agents go straight to the fallback path.
adapter_health_update: <adapter> -> suspect|broken
Lookup Order
Read local overlay first, then global seed:
text
~/.opencli/sites/<site>/sitemap/
skills/opencli-sitemap-author/references/site-memory/<site>/sitemap/Local files override global files with the same stable id.
Do not load an entire large sitemap into context. If the directory is large, list filenames first and then read only the page/workflow you need.
Trust Reality Rule
If sitemap says a button, URL, route, or API should exist but the browser does not show it:
- Re-run or
statewith semantic anchors.find - Check whether login, locale, viewport, A/B test, or route state differs.
- Follow the real page if a safe path is visible.
- Mark the sitemap item stale in local overlay.
Never keep clicking because "the sitemap says it should work."
Stale / Draft Notes
When you discover drift, write a small local note under the relevant page/workflow file or a draft file in the local overlay:
md
Stale note:
- observed_at: YYYY-MM-DD
- current_url:
- expected:
- actual:
- next_probe:Do not edit global seed files unless the task is explicitly a sitemap-authoring or repo PR task.
Adapter Health Write-Back
When an adapter fails and the sitemap action or workflow tells you to update adapter health:
- Find the local workflow file under whose
~/.opencli/sites/<site>/sitemap/workflows/references the adapter command.Best path - If no local workflow exists, copy the matching global workflow into the local overlay first; never edit the global seed directly during browser task execution.
- Set or
adapter_health: suspectas directed.broken - Add a short stale note with observed error, current URL, and timestamp.
- Continue with the browser fallback path.
This write-back is the memory loop: the current agent falls back once, and the next agent does not waste a turn retrying a known-suspect adapter.
Output Discipline
When reporting back, include:
- Path chosen: adapter best path or browser fallback.
- Checkpoint reached: current URL/state signature.
- Sitemap health: used as-is, stale marked, or missing workflow.
Keep the report task-focused. Do not summarize the whole sitemap.