@weavetab/skills 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +108 -108
  3. package/ROUTER.md +43 -43
  4. package/bin/cli.js +232 -232
  5. package/browser/dom-strategy.md +121 -119
  6. package/browser/form-automation.md +84 -87
  7. package/browser/interaction-pipeline.md +242 -216
  8. package/browser/tab-and-window.md +136 -136
  9. package/desktop/desktop-targeting.md +85 -85
  10. package/desktop/electron-discovery.md +115 -115
  11. package/developer/github-forensics.md +89 -74
  12. package/dist/bundled/weavetab-all.md +1885 -1709
  13. package/dist/bundled/weavetab-browser.md +526 -501
  14. package/dist/bundled/weavetab-desktop.md +176 -176
  15. package/dist/bundled/weavetab-developer.md +84 -67
  16. package/dist/bundled/weavetab-documents.md +184 -142
  17. package/dist/bundled/weavetab-memory.md +259 -233
  18. package/dist/bundled/weavetab-network-and-perf.md +250 -223
  19. package/dist/bundled/weavetab-plugins.md +88 -83
  20. package/dist/bundled/weavetab-resilience.md +244 -216
  21. package/dist/bundled/weavetab-security.md +93 -87
  22. package/dist/granular/browser_dom-strategy.md +121 -119
  23. package/dist/granular/browser_form-automation.md +84 -87
  24. package/dist/granular/browser_interaction-pipeline.md +242 -216
  25. package/dist/granular/browser_tab-and-window.md +136 -136
  26. package/dist/granular/desktop_desktop-targeting.md +85 -85
  27. package/dist/granular/desktop_electron-discovery.md +115 -115
  28. package/dist/granular/developer_github-forensics.md +89 -74
  29. package/dist/granular/documents_canvas-and-visual-capture.md +117 -103
  30. package/dist/granular/documents_office-document-ingestion.md +91 -63
  31. package/dist/granular/memory_selector-memory-system.md +127 -127
  32. package/dist/granular/memory_session-trail.md +111 -95
  33. package/dist/granular/memory_site-learning.md +62 -53
  34. package/dist/granular/network-and-perf_device-and-environment.md +100 -87
  35. package/dist/granular/network-and-perf_network-intercept-and-mock.md +97 -84
  36. package/dist/granular/network-and-perf_performance-and-vitals.md +86 -84
  37. package/dist/granular/plugins_hooks-and-overrides.md +40 -35
  38. package/dist/granular/plugins_plugin-runtime.md +63 -63
  39. package/dist/granular/resilience_loop-breaker.md +72 -67
  40. package/dist/granular/resilience_session-time-travel.md +146 -131
  41. package/dist/granular/resilience_stale-ref-recovery.md +61 -53
  42. package/dist/granular/security_rbac-and-policies.md +50 -47
  43. package/dist/granular/security_secret-containment-protocol.md +62 -59
  44. package/documents/canvas-and-visual-capture.md +117 -103
  45. package/documents/office-document-ingestion.md +91 -63
  46. package/evals/evaluator.js +146 -146
  47. package/evals/scenarios.json +239 -239
  48. package/memory/selector-memory-system.md +127 -127
  49. package/memory/session-trail.md +111 -95
  50. package/memory/site-learning.md +61 -52
  51. package/network-and-perf/device-and-environment.md +100 -87
  52. package/network-and-perf/network-intercept-and-mock.md +97 -84
  53. package/network-and-perf/performance-and-vitals.md +86 -84
  54. package/package.json +74 -73
  55. package/plugins/hooks-and-overrides.md +40 -35
  56. package/plugins/plugin-runtime.md +63 -63
  57. package/resilience/loop-breaker.md +72 -67
  58. package/resilience/session-time-travel.md +146 -131
  59. package/resilience/stale-ref-recovery.md +61 -53
  60. package/security/rbac-and-policies.md +50 -47
  61. package/security/secret-containment-protocol.md +62 -59
  62. package/skills.json +425 -426
  63. package/src/api.js +239 -239
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 fy2ne
3
+ Copyright (c) 2026 fy2ne <hello@fy2ne.me>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,108 +1,108 @@
1
- # Weavetab MCP Skills (`@weavetab/skills`)
2
-
3
- [![npm version](https://img.shields.io/npm/v/@weavetab/skills.svg)](https://www.npmjs.com/package/@weavetab/skills)
4
- [![GitHub stars](https://img.shields.io/github/stars/Weavetab/skills.svg?style=social)](https://github.com/Weavetab/skills)
5
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
-
7
- Enterprise domain-driven agent intelligence for `@weavetab/mcp` (v2.5.0). Drop-in operational guides, failure recovery heuristics, and protocol rules for **Antigravity**, **Cursor**, **Cline**, **Windsurf**, and **OpenClaw**.
8
-
9
- - **Website:** [weavetab.dev](https://weavetab.dev)
10
- - **Core MCP Server:** [`@weavetab/mcp`](https://www.npmjs.com/package/@weavetab/mcp)
11
- - **Plugin SDK:** [`@weavetab/sdk`](https://www.npmjs.com/package/@weavetab/sdk)
12
-
13
- ---
14
-
15
- ## 1. Architectural Philosophy: The Step-0 Router
16
-
17
- Rather than forcing LLMs to read dozens of flat files or guess between vague difficulty tiers, `@weavetab/skills` provides a deterministic Step-0 decision engine via [`ROUTER.md`](ROUTER.md).
18
-
19
- Agents classify their immediate intent in one turn and jump directly to the target domain guide:
20
-
21
- ```
22
- @weavetab/skills/
23
- ├── ROUTER.md # Universal Intent Decision Matrix (Step-0)
24
- ├── browser/ # Web & Chromium DOM Navigation Engine
25
- ├── desktop/ # Native Desktop & Electron Application Automation
26
- ├── memory/ # Cross-Session Adaptive Selector Learning & History
27
- ├── resilience/ # Time-Travel Checkpoints, Stale Refs, Loops & Captchas
28
- ├── security/ # Zero-Leak Secret Containment & RBAC Guardrails
29
- ├── plugins/ # Dynamic Extension Loading, Hooks & Custom Tools
30
- ├── network-and-perf/ # TLS Forensics, Interception, Core Web Vitals & Emulation
31
- ├── documents/ # Word, Excel, CSV, PDF & Canvas Ingestion
32
- ├── developer/ # GitHub Local Clone & API Repository Forensics
33
- ├── evals/ # Executable Agent Evaluation & Benchmark Harness
34
- ├── dist/ # Compiled targets (granular + bundled domain profiles)
35
- ├── bin/cli.js # Interactive Multi-Agent Installer
36
- └── src/api.js # Programmatic Framework Generator & Adapter Engine
37
- ```
38
-
39
- ---
40
-
41
- ## 2. The 9 Operational Domains & 44-Tool Matrix
42
-
43
- Every single one of the **44 official tools** in `@weavetab/mcp` is documented with verified parameters and runtime patterns:
44
-
45
- | Domain | Primary Tools | Operational Capabilities |
46
- | :--- | :--- | :--- |
47
- | **`browser/`** | `browser_map`, `browser_find`, `browser_click`, `browser_type`, `browser_fill`, `browser_key`, `browser_pointer`, `browser_upload`, `browser_tabs`, `browser_scroll`, `browser_dialog`, `browser_burst`, `browser_highlight`, `browser_clipboard` | Token-conserving DOM walks (`lite: true`), volatile `w:NN` handles, atomic multi-field inputs, OS file upload bypass. |
48
- | **`desktop/`** | `browser_detect`, any tool with `app` argument | Zero-terminal scanning for Slack, Discord, VS Code, Notion, Obsidian; routing actions directly to native Electron windows. |
49
- | **`memory/`** | `browser_pattern_learn`, `browser_thoughts`, `browser_automation`, `browser_recording` | Cross-session origin selector decay, compiling manual interaction trails into deterministic macros via `browser_burst`. |
50
- | **`resilience/`**| `browser_checkpoint`, `browser_cookies`, `browser_storage`, `browser_captcha` | Time-travel state snapshots (`save`, `restore`) for instant rollbacks, 4-tier SPA stale ref healing, loop breaker (`browser_map`, `browser_wait`). |
51
- | **`security/`** | `browser_type_secret`, RBAC tiers | Hardware-grade zero-bleed guarantee (passwords masked in HUD, CDP logs, and conversation transcripts). |
52
- | **`plugins/`** | `list_plugins`, `load_plugin` | Runtime discovery and dynamic loading of verified npm community plugins into the active MCP session. |
53
- | **`network-and-perf/`** | `browser_network_intercept`, `browser_performance`, `browser_wait`, `browser_emulate` | API mocking, TLS certificate chain audits, Core Web Vitals (LCP/CLS), device presets & 3G throttling. |
54
- | **`documents/`**| `browser_office`, `browser_pdf`, `browser_canvas`, `browser_screenshot`, `browser_viewport`, `browser_extract_design` | Ingesting Excel spreadsheets, Word `.docx`, and CSVs into structured JSON; full-page screenshots and canvas inspection. |
55
- | **`developer/`**| `browser_github` | Sub-millisecond local repo inspection, PR diffs, and issue triage without burning browser turns. |
56
-
57
- ---
58
-
59
- ## 3. Interactive Installation
60
-
61
- Inject formatted skills and rules directly into your AI agent environment:
62
-
63
- ```bash
64
- npx @weavetab/skills
65
- ```
66
-
67
- The interactive installer prompts you for:
68
- 1. **Domain Scope**: Full Enterprise Suite (All 9 Domains), Web Core, Desktop, Resilience, or Forensics.
69
- 2. **Target Agent Framework**:
70
- - **Antigravity**: Generates `.agent/skills/weavetab-<domain>/SKILL.md` with standard YAML frontmatter.
71
- - **Cursor**: Generates `.cursor/rules/weavetab-<domain>.mdc` with MDC frontmatter.
72
- - **Cline**: Appends formatted sections to `.clinerules`.
73
- - **Windsurf**: Generates `.windsurf/rules/weavetab-<domain>.md`.
74
- - **OpenClaw & RooCode**: Generates respective agent rules.
75
- - **Raw Markdown**: Generates portable `weavetab-skills/`.
76
-
77
- ---
78
-
79
- ## 4. Programmatic API
80
-
81
- Install skills programmatically from setup scripts or custom CLIs:
82
-
83
- ```javascript
84
- const { installSkills, getSkills, getSkill, getRouterMatrix } = require('@weavetab/skills');
85
-
86
- // Install targeted domains into Cursor
87
- await installSkills({
88
- targetFramework: '.cursor',
89
- domains: ['browser', 'resilience', 'security']
90
- });
91
-
92
- // Query skills catalog
93
- const webSkills = getSkillsByDomain('browser');
94
- ```
95
-
96
- ---
97
-
98
- ## 5. Automated Benchmark & Evaluation Suite (`evals/`)
99
-
100
- Run the automated evaluation harness to verify that all 48 tools are covered and that skill guidance strictly passes test scenarios without legacy hallucinations:
101
-
102
- ```bash
103
- npm test
104
- ```
105
-
106
- ---
107
-
108
- *Built with precision for the Weavetab Ecosystem.*
1
+ # Weavetab Skills (`@weavetab/skills`)
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@weavetab/skills.svg)](https://www.npmjs.com/package/@weavetab/skills)
4
+ [![GitHub stars](https://img.shields.io/github/stars/Weavetab/skills.svg?style=social)](https://github.com/Weavetab/skills)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ Enterprise domain-driven agent intelligence for `@weavetab/mcp` (v2.5.2). Drop-in operational guides, failure recovery heuristics, and protocol rules for **Antigravity**, **Cursor**, **Cline**, **Windsurf**, and **OpenClaw**.
8
+
9
+ - **Website:** [weavetab.dev](https://weavetab.dev)
10
+ - **Core MCP Server:** [`@weavetab/mcp`](https://www.npmjs.com/package/@weavetab/mcp)
11
+ - **Plugin SDK:** [`@weavetab/sdk`](https://www.npmjs.com/package/@weavetab/sdk)
12
+
13
+ ---
14
+
15
+ ## 1. Architectural Philosophy: The Step-0 Router
16
+
17
+ Rather than forcing LLMs to read dozens of flat files or guess between vague difficulty tiers, `@weavetab/skills` provides a deterministic Step-0 decision engine via [`ROUTER.md`](ROUTER.md).
18
+
19
+ Agents classify their immediate intent in one turn and jump directly to the target domain guide:
20
+
21
+ ```
22
+ @weavetab/skills/
23
+ |-- ROUTER.md # Universal Intent Decision Matrix (Step-0)
24
+ |-- browser/ # Web & Chromium DOM Navigation Engine
25
+ |-- desktop/ # Native Desktop & Electron Application Automation
26
+ |-- memory/ # Cross-Session Adaptive Selector Learning & History
27
+ |-- resilience/ # Time-Travel Checkpoints, Stale Refs, Loops & Captchas
28
+ |-- security/ # Zero-Leak Secret Containment & RBAC Guardrails
29
+ |-- plugins/ # Dynamic Extension Loading, Hooks & Custom Tools
30
+ |-- network-and-perf/ # TLS Telemetry, Interception, Core Web Vitals & Emulation
31
+ |-- documents/ # Word, Excel, CSV, PDF & Canvas Ingestion
32
+ |-- developer/ # GitHub API Repository Forensics
33
+ |-- evals/ # Executable Agent Evaluation & Benchmark Harness
34
+ |-- dist/ # Compiled targets (granular + bundled domain profiles)
35
+ |-- bin/cli.js # Interactive Multi-Agent Installer
36
+ `-- src/api.js # Programmatic Framework Generator & Adapter Engine
37
+ ```
38
+
39
+ ---
40
+
41
+ ## 2. The 9 Operational Domains & 41-Tool Matrix
42
+
43
+ Every single one of the **41 official tools** in `@weavetab/mcp` is documented with verified parameters and runtime patterns:
44
+
45
+ | Domain | Primary Tools | Operational Capabilities |
46
+ | :--- | :--- | :--- |
47
+ | **`browser/`** | `browser_map`, `browser_find`, `browser_click`, `browser_type`, `browser_fill`, `browser_key`, `browser_pointer`, `browser_upload`, `browser_tabs`, `browser_scroll`, `browser_dialog`, `browser_burst`, `browser_highlight`, `browser_clipboard` | Token-conserving DOM walks (`lite: true`), volatile `w:NN` handles, atomic multi-field inputs, OS file upload bypass. |
48
+ | **`desktop/`** | `browser_detect`, any tool with `app` argument | Zero-terminal scanning for Slack, Discord, VS Code, Notion, Obsidian; routing actions directly to native Electron windows. |
49
+ | **`memory/`** | `browser_pattern_learn`, `browser_thoughts`, `browser_automation`, `browser_recording` | Cross-session origin selector decay, compiling manual interaction trails into deterministic macros via `browser_burst`. |
50
+ | **`resilience/`**| `browser_checkpoint`, `browser_cookies`, `browser_storage`, `browser_captcha` | Time-travel state snapshots (`save`, `restore`) for instant rollbacks, 4-tier SPA stale ref healing, loop breaker (`browser_map`, `browser_wait`). |
51
+ | **`security/`** | `browser_type_secret`, RBAC tiers | Hardware-grade zero-bleed guarantee (passwords masked in HUD, CDP logs, and conversation transcripts). |
52
+ | **`plugins/`** | CLI plugin management (`weavetab plugins`) | Runtime discovery and dynamic loading of verified npm community plugins via the CLI. Plugin lifecycle is not an MCP tool surface. |
53
+ | **`network-and-perf/`** | `browser_network_intercept`, `browser_performance`, `browser_wait`, `browser_emulate` | API mocking, TLS/SSL certificate metadata & timing telemetry, Core Web Vitals (LCP/CLS), device presets & 3G throttling. |
54
+ | **`documents/`**| `browser_office`, `browser_pdf`, `browser_canvas`, `browser_screenshot`, `browser_viewport`, `browser_extract_design` | Ingesting Excel spreadsheets, Word `.docx`, and CSVs into structured JSON; full-page screenshots and canvas inspection. |
55
+ | **`developer/`**| *(plugin: `github`)* | GitHub REST/raw API inspection, PR diffs, and issue triage via `@weavetab/plugin-github` — no browser turns burned. |
56
+
57
+ ---
58
+
59
+ ## 3. Interactive Installation
60
+
61
+ Inject formatted skills and rules directly into your AI agent environment:
62
+
63
+ ```bash
64
+ npx @weavetab/skills
65
+ ```
66
+
67
+ The interactive installer prompts you for:
68
+ 1. **Domain Scope**: Full Enterprise Suite (All 9 Domains), Web Core, Desktop, Resilience, or Forensics.
69
+ 2. **Target Agent Framework**:
70
+ - **Antigravity**: Generates `.agent/skills/weavetab-<domain>/SKILL.md` with standard YAML frontmatter.
71
+ - **Cursor**: Generates `.cursor/rules/weavetab-<domain>.mdc` with MDC frontmatter.
72
+ - **Cline**: Appends formatted sections to `.clinerules`.
73
+ - **Windsurf**: Generates `.windsurf/rules/weavetab-<domain>.md`.
74
+ - **OpenClaw & RooCode**: Generates respective agent rules.
75
+ - **Raw Markdown**: Generates portable `weavetab-skills/`.
76
+
77
+ ---
78
+
79
+ ## 4. Programmatic API
80
+
81
+ Install skills programmatically from setup scripts or custom CLIs:
82
+
83
+ ```javascript
84
+ const { installSkills, getSkills, getSkill, getRouterMatrix } = require('@weavetab/skills');
85
+
86
+ // Install targeted domains into Cursor
87
+ await installSkills({
88
+ targetFramework: '.cursor',
89
+ domains: ['browser', 'resilience', 'security']
90
+ });
91
+
92
+ // Query skills catalog
93
+ const webSkills = getSkillsByDomain('browser');
94
+ ```
95
+
96
+ ---
97
+
98
+ ## 5. Automated Benchmark & Evaluation Suite (`evals/`)
99
+
100
+ Run the automated evaluation harness to verify that all 41 tools are covered and that skill guidance strictly passes test scenarios without legacy hallucinations:
101
+
102
+ ```bash
103
+ npm test
104
+ ```
105
+
106
+ ---
107
+
108
+ *Built with precision for the Weavetab Ecosystem.*
package/ROUTER.md CHANGED
@@ -1,43 +1,43 @@
1
- # Weavetab Agent Intent Decision Matrix (Step-0 Router)
2
-
3
- Welcome to the **Weavetab MCP Skills Routing Engine**.
4
-
5
- When executing browser or desktop automation via `@weavetab/mcp`, **do not read the entire skills directory**. Match your immediate intent against the matrix below and jump directly to the target domain guide.
6
-
7
- ---
8
-
9
- ## Intent Routing Table
10
-
11
- | If your objective is... | Read Domain Guide | Primary MCP Tools |
12
- | :--- | :--- | :--- |
13
- | **Inspect DOM, extract text, locate elements, save tokens** | [`browser/dom-strategy.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/browser/dom-strategy.md) | `browser_map`, `browser_find`, `browser_scrape`, `browser_snapshot` |
14
- | **Click, type, press keys, pointer trajectories, file upload** | [`browser/interaction-pipeline.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/browser/interaction-pipeline.md) | `browser_click`, `browser_type`, `browser_key`, `browser_pointer`, `browser_upload` |
15
- | **Fill multi-field forms, select dropdowns, checkboxes** | [`browser/form-automation.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/browser/form-automation.md) | `browser_fill`, `browser_select` |
16
- | **Manage tabs, window creation, tab crash recovery** | [`browser/tab-and-window.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/browser/tab-and-window.md) | `browser_tabs` |
17
- | **Discover running Electron apps (Slack, Discord, VS Code)** | [`desktop/electron-discovery.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/desktop/electron-discovery.md) | `browser_detect` |
18
- | **Control native desktop applications with MCP tools** | [`desktop/desktop-targeting.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/desktop/desktop-targeting.md) | Any tool passing `app: "<name>"` |
19
- | **Bypass DOM walks using learned & cached selectors** | [`memory/selector-memory-system.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/memory/selector-memory-system.md) | Telemetry & selector history |
20
- | **Recall multi-step site workflows, quirks & fast-path replay** | [`memory/site-learning.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/memory/site-learning.md) | `browser_pattern_learn` |
21
- | **Compile manual action history into reusable macros** | [`memory/session-trail.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/memory/session-trail.md) | `browser_burst` (`compile_from_history`) |
22
- | **Handle React/Next/Vue detached elements & re-renders** | [`resilience/stale-ref-recovery.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/resilience/stale-ref-recovery.md) | 4-tier auto-recovery heuristic |
23
- | **Save/restore checkpoints & rollback failed workflows** | [`resilience/session-time-travel.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/resilience/session-time-travel.md) | `browser_checkpoint` |
24
- | **Break infinite interaction loops or handle CAPTCHAs** | [`resilience/loop-breaker.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/resilience/loop-breaker.md) | `browser_map`, `browser_captcha` |
25
- | **Enter passwords, API keys, or sensitive credentials** | [`security/secret-containment-protocol.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/security/secret-containment-protocol.md) | `browser_type_secret` |
26
- | **Enforce RBAC boundaries & sandbox viewer agents** | [`security/rbac-and-policies.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/security/rbac-and-policies.md) | RBAC security layer |
27
- | **Discover & dynamically load community plugins** | [`plugins/plugin-runtime.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/plugins/plugin-runtime.md) | `list_plugins`, `load_plugin` |
28
- | **Intercept tool execution pipelines via SDK hooks** | [`plugins/hooks-and-overrides.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/plugins/hooks-and-overrides.md) | SDK Plugin Hooks |
29
- | **Mock API endpoints, stub tracking, analyze TLS certs** | [`network-and-perf/network-intercept-and-mock.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/network-and-perf/network-intercept-and-mock.md) | `browser_network_intercept` |
30
- | **Measure Core Web Vitals (LCP, CLS) & wait conditions** | [`network-and-perf/performance-and-vitals.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/network-and-perf/performance-and-vitals.md) | `browser_performance`, `browser_wait` |
31
- | **Emulate mobile devices, CPU throttle, mock location** | [`network-and-perf/device-and-environment.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/network-and-perf/device-and-environment.md) | `browser_emulate` |
32
- | **Ingest Word (.docx), Excel (.xlsx), CSV files** | [`documents/office-document-ingestion.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/documents/office-document-ingestion.md) | `browser_office` |
33
- | **Capture screenshots, PDF exports, canvas pixels & visual marks** | [`documents/canvas-and-visual-capture.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/documents/canvas-and-visual-capture.md) | `browser_screenshot`, `browser_canvas`, `browser_pdf`, `browser_map` |
34
- | **Sub-ms local Git repo parsing & PR/issue triage** | [`developer/github-forensics.md`](file:///c:/Users/fy2ne/Music/Weavetab/skills/developer/github-forensics.md) | `browser_github` |
35
-
36
- ---
37
-
38
- ## The 4 Golden Operational Rules for Weavetab Agents
39
-
40
- 1. **Environment Handshake First**: Always call `browser_detect` at the start of a session to discover available browsers and configured desktop apps (Discord, Slack, etc.) and check their live connection status (`connected`, `running_no_debug`, `offline`).
41
- 2. **Token Conservation**: NEVER call `browser_map` on large modern web apps without `lite: true` unless you strictly require full hierarchy data. For keyword navigation, always prefer `browser_find`.
42
- 3. **Volatile Handle Discipline**: Always use the returned volatile ref IDs (`w:NN`) directly. Do NOT attempt to construct speculative CSS selectors from scratch.
43
- 4. **Zero Secret Leakage**: Pass all authentication credentials, API keys, and sensitive tokens through `browser_type_secret`. Never use `browser_type` or `browser_fill` for credentials.
1
+ # Weavetab Agent Intent Decision Matrix (Step-0 Router)
2
+
3
+ Welcome to the **Weavetab MCP Skills Routing Engine**.
4
+
5
+ When executing browser or desktop automation via `@weavetab/mcp`, **do not read the entire skills directory**. Match your immediate intent against the matrix below and jump directly to the target domain guide.
6
+
7
+ ---
8
+
9
+ ## Intent Routing Table
10
+
11
+ | If your objective is... | Read Domain Guide | Primary MCP Tools |
12
+ | :--- | :--- | :--- |
13
+ | **Inspect DOM, extract text, locate elements, save tokens** | [`browser/dom-strategy.md`](browser/dom-strategy.md) | `browser_map`, `browser_find`, `browser_scrape`, `browser_snapshot` |
14
+ | **Click, type, press keys, pointer trajectories, file upload** | [`browser/interaction-pipeline.md`](browser/interaction-pipeline.md) | `browser_click`, `browser_type`, `browser_key`, `browser_pointer`, `browser_upload` |
15
+ | **Fill multi-field forms, select dropdowns, checkboxes** | [`browser/form-automation.md`](browser/form-automation.md) | `browser_fill`, `browser_select` |
16
+ | **Manage tabs, window creation, tab crash recovery** | [`browser/tab-and-window.md`](browser/tab-and-window.md) | `browser_tabs` |
17
+ | **Discover running Electron apps (Slack, Discord, VS Code)** | [`desktop/electron-discovery.md`](desktop/electron-discovery.md) | `browser_detect` |
18
+ | **Control native desktop applications with MCP tools** | [`desktop/desktop-targeting.md`](desktop/desktop-targeting.md) | Any tool passing `app: "<name>"` |
19
+ | **Bypass DOM walks using learned & cached selectors** | [`memory/selector-memory-system.md`](memory/selector-memory-system.md) | Telemetry & selector history |
20
+ | **Recall multi-step site workflows, quirks & fast-path replay** | [`memory/site-learning.md`](memory/site-learning.md) | `browser_pattern_learn` |
21
+ | **Compile manual action history into reusable macros** | [`memory/session-trail.md`](memory/session-trail.md) | `browser_burst` (`compile_from_history`) |
22
+ | **Handle React/Next/Vue detached elements & re-renders** | [`resilience/stale-ref-recovery.md`](resilience/stale-ref-recovery.md) | 4-tier auto-recovery heuristic |
23
+ | **Save/restore checkpoints & rollback failed workflows** | [`resilience/session-time-travel.md`](resilience/session-time-travel.md) | `browser_checkpoint` |
24
+ | **Break infinite interaction loops or handle CAPTCHAs** | [`resilience/loop-breaker.md`](resilience/loop-breaker.md) | `browser_map`, `browser_captcha` |
25
+ | **Enter passwords, API keys, or sensitive credentials** | [`security/secret-containment-protocol.md`](security/secret-containment-protocol.md) | `browser_type_secret` |
26
+ | **Enforce RBAC boundaries & sandbox viewer agents** | [`security/rbac-and-policies.md`](security/rbac-and-policies.md) | RBAC security layer |
27
+ | **Discover & dynamically load community plugins** | [`plugins/plugin-runtime.md`](plugins/plugin-runtime.md) | CLI plugin management (no MCP tool) |
28
+ | **Intercept tool execution pipelines via SDK hooks** | [`plugins/hooks-and-overrides.md`](plugins/hooks-and-overrides.md) | SDK Plugin Hooks |
29
+ | **Mock API endpoints, stub tracking, analyze TLS certs** | [`network-and-perf/network-intercept-and-mock.md`](network-and-perf/network-intercept-and-mock.md) | `browser_network_intercept` |
30
+ | **Measure Core Web Vitals (LCP, CLS) & wait conditions** | [`network-and-perf/performance-and-vitals.md`](network-and-perf/performance-and-vitals.md) | `browser_performance`, `browser_wait` |
31
+ | **Emulate mobile devices, CPU throttle, mock location** | [`network-and-perf/device-and-environment.md`](network-and-perf/device-and-environment.md) | `browser_emulate` |
32
+ | **Ingest Word (.docx), Excel (.xlsx), CSV files** | [`documents/office-document-ingestion.md`](documents/office-document-ingestion.md) | `browser_office` |
33
+ | **Capture screenshots, PDF exports, canvas pixels & visual marks** | [`documents/canvas-and-visual-capture.md`](documents/canvas-and-visual-capture.md) | `browser_screenshot`, `browser_canvas`, `browser_pdf`, `browser_map` |
34
+ | **GitHub repository forensics, PR diffs & issue triage** | [`developer/github-forensics.md`](developer/github-forensics.md) | plugin: `github` |
35
+
36
+ ---
37
+
38
+ ## The 4 Golden Operational Rules for Weavetab Agents
39
+
40
+ 1. **Environment Handshake First**: Always call `browser_detect` at the start of a session to discover available browsers and configured desktop apps (Discord, Slack, etc.) and check their live connection status (`connected`, `running_no_debug`, `offline`).
41
+ 2. **Token Conservation**: NEVER call `browser_map` on large modern web apps without `lite: true` unless you strictly require full hierarchy data. For keyword navigation, always prefer `browser_find`.
42
+ 3. **Volatile Handle Discipline**: Always use the returned volatile ref IDs (`w:NN`) directly. Do NOT attempt to construct speculative CSS selectors from scratch.
43
+ 4. **Zero Secret Leakage**: Pass all authentication credentials, API keys, and sensitive tokens through `browser_type_secret`. Never use `browser_type` or `browser_fill` for credentials.