fix: clarify browser routing and repair relocated skill links
This commit is contained in:
@@ -1,10 +1,20 @@
|
||||
---
|
||||
name: browser-harness
|
||||
description: "Always use browser-harness for any web interaction: automation, scraping, testing, or site/app work."
|
||||
description: "Use browser-harness only when explicitly requested for direct CDP browser work or capabilities outside fast-browser's supported scope. Use fast-browser by default for supported local browser tests and regression scenarios."
|
||||
---
|
||||
|
||||
# browser-harness
|
||||
|
||||
## Browser tool routing
|
||||
|
||||
- Use **fast-browser** by default for supported local browser tests and regression scenarios: isolated sessions, bounded click/fill, reads/assertions, navigation/tabs/popups, and private failure evidence. In Pi, use its `fast_browser_*` tools and skill; use its scenario CLI for repeatable tests.
|
||||
- Use **browser-harness only by explicit user opt-in** for direct CDP work or capabilities outside fast-browser's scope. If fast-browser is unavailable or lacks a required capability, explain the limitation and ask before switching.
|
||||
- A failed, timed-out, or unverifiable fast-browser action is **not** permission to retry through browser-harness. Inspect state and resolve the outcome first; do not bypass origin restrictions, profile locks, or other safeguards.
|
||||
- Never let both tools control the same browser session, endpoint, or profile. Close the owned session before changing tools and use a separately owned browser. Do not attach this CLI to a fast-browser-managed session.
|
||||
- Other task-specific routing (such as Firecrawl for web research or Orca for its embedded browser) remains in effect. This skill does not claim all web work.
|
||||
|
||||
The instructions below apply only after browser-harness has been explicitly selected.
|
||||
|
||||
Direct browser control via CDP. For task-specific edits, use `agent-workspace/agent_helpers.py`. For setup, install, or connection problems, read https://github.com/browser-use/browser-harness/blob/main/install.md.
|
||||
|
||||
## When Not to Use
|
||||
|
||||
@@ -19,7 +19,7 @@ Treat [`config/pi-links.json`](../../../config/pi-links.json) as the source of t
|
||||
1. Run commands from the repository root.
|
||||
2. Read the manifest entry and the resource's `SKILL.md` or `index.ts` when diagnosing a mismatch.
|
||||
3. Resolve manifest validation errors before applying changes. Require unique skill names and existing entry points.
|
||||
4. Preserve collisions. The manager refuses regular files, directories, and links whose targets are outside this repository; report these for a human decision instead of replacing them manually.
|
||||
4. Preserve collisions. The manager refuses regular files, directories, and links whose targets are outside this repository; report these for a human decision instead of replacing them manually. For an explicitly approved repository relocation, use `sync --dry-run --migrate-from /absolute/old/root`, inspect the repairs, then `sync --migrate-from /absolute/old/root`. This only repairs manifest-declared destinations whose old target exactly matches the same repository-relative source under that old root. It does not migrate stale/unlisted links or local packages, and cannot be used with `prune`. Finish with a normal `check` without the migration option.
|
||||
5. Apply the authorized operation through `scripts/pi-links.mjs`.
|
||||
6. Run `./scripts/pi-links.mjs check` again. Completion requires exit code zero.
|
||||
7. Tell the user to run `/reload` when skill or extension exposure changed in the active Pi session.
|
||||
|
||||
Reference in New Issue
Block a user