/opencli-browser-sitemap
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
$ npx -y skills add jackwener/opencli --skill opencli-browser-sitemap --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/opencli-browser-sitemap
Context preview
The summary Claude sees to decide when to auto-load this skill.
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
SKILL.md
opencli-browser-sitemap.SKILL.mdname: opencli-browser-sitemap
description: 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.
allowed-tools: Bash(opencli:*), Read, Edit, Write, Grep
opencli-browser-sitemap
Use this skill when `opencli browser open` or `opencli browser analyze` reports `sitemap.available: true`, or when the user asks you to use a site's sitemap.
The sitemap is **prior knowledge**, not ground truth. It should reduce blind clicking, but it must never override the live browser state.
---
Consumption Loop
1. Run or reuse `opencli browser <session> state` to know the current page. 2. Read only the smallest relevant sitemap files:
- `SITE.md` for site-level orientation.
- One matching `pages/<page-id>.md` for current state.
- One matching `workflows/<task-id>.md` for the user goal.
- `pitfalls.md` only when blocked or warned by the workflow.
3. Prefer the workflow's **Best path**. If it names an adapter such as `opencli twitter post`, use that before raw browser actions. 4. If the adapter is unavailable or fails, use the **Fallback path** browser workflow. 5. After each navigation or state-changing action, refresh `state` and compare the workflow's `state_signature`. 6. If reality disagrees, trust reality, continue probing, and write a local stale note or draft patch. 7. If an action recovery includes `adapter_health_update: <adapter> -> suspect|broken`, update the local overlay workflow that references that adapter so future agents go straight to the fallback path.
---
Lookup Order
Read local overlay first, then global seed:
~/.opencli/sites/<site>/sitemap/ # local overlay
sitemaps/<site>/ # repo seed (top-level)
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 `state` or `find` with semantic anchors.
- 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:
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:
1. Find the local workflow file under `~/.opencli/sites/<site>/sitemap/workflows/` whose `Best path` references the adapter command. 2. 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. 3. Set `adapter_health: suspect` or `broken` as directed. 4. Add a short stale note with observed error, current URL, and timestamp. 5. 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.
Read more
name: opencli-browser-sitemap description: 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. allowed-tools: Bash(opencli:*), Read, Edit, Write, Grep
opencli-browser-sitemap
Use this skill when `opencli browser open` or `opencli browser analyze` reports `sitemap.available: true`, or when the user asks you to use a site's sitemap.
The sitemap is **prior knowledge**, not ground truth. It should reduce blind clicking, but it must never override the live browser state.
---
Consumption Loop
1. Run or reuse `opencli browser <session> state` to know the current page. 2. Read only the smallest relevant sitemap files:
- `SITE.md` for site-level orientation.
- One matching `pages/<page-id>.md` for current state.
- One matching `workflows/<task-id>.md` for the user goal.
- `pitfalls.md` only when blocked or warned by the workflow.
3. Prefer the workflow's **Best path**. If it names an adapter such as `opencli twitter post`, use that before raw browser actions. 4. If the adapter is unavailable or fails, use the **Fallback path** browser workflow. 5. After each navigation or state-changing action, refresh `state` and compare the workflow's `state_signature`. 6. If reality disagrees, trust reality, continue probing, and write a local stale note or draft patch. 7. If an action recovery includes `adapter_health_update: <adapter> -> suspect|broken`, update the local overlay workflow that references that adapter so future agents go straight to the fallback path.
---
Lookup Order
Read local overlay first, then global seed:
~/.opencli/sites/<site>/sitemap/ # local overlay sitemaps/<site>/ # repo seed (top-level)
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 `state` or `find` with semantic anchors.
- 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:
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:
1. Find the local workflow file under `~/.opencli/sites/<site>/sitemap/workflows/` whose `Best path` references the adapter command. 2. 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. 3. Set `adapter_health: suspect` or `broken` as directed. 4. Add a short stale note with observed error, current URL, and timestamp. 5. 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.
Convert any website into a CLI & run Browser Use on your logged-in Chrome. Turn websites, browser sessions, Electron apps, and local tools into deterministic interfaces for humans and AI agents.
Repo: jackwener/opencli
Other skills on opencli.
- /opencli-adapter-author
Use when writing an OpenCLI adapter for a new site or adding a new command to an existing site. Guides end-to-end from first recon through field decoding, adapter coding, and verify. Replaces opencli-oneshot / opencli-explorer. For ad-hoc browser driving (no adapter), see
Open skill - /opencli-autofix
Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.
Open skill - /opencli-browser
Use when an agent needs to drive a real Chrome window via opencli — inspect a page, fill forms, click through logged-in flows, or extract data ad-hoc. Covers the selector-first target contract, compound form fields, stale-ref handling, network capture, and the agent-native
Open skill - /opencli-sitemap-author
Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting
Open skill - /opencli-usage
Use at the start of any OpenCLI session — this is the top-level map of what `opencli` can do, how to discover adapters, what flags and output formats are universal, and which specialized skill to load next. Point here when an agent asks "what can opencli do?" or "how do I find
Open skill - /smart-search
基于 opencli 命令的智能搜索路由器。当用户想要使用 OpenCLI、CLI 或 API 搜索、查询、查找或研究信息时,尤其是涉及指定网站、社交媒体、技术资料、新闻、购物、旅游、求职、金融或中文内容时,务必使用此 skill
Open skill

