rab-cdp-debug SKILL.md skillA
rab-cdp-debug from ximing/rab is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ximing/rab/rab-cdp-debug@v0.2.10-beta.0Pins v0.2.10-beta.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ximing/rab
- Path
skills/rab-cdp-debug/SKILL.md- Versions recorded
- 2
- Latest version
- v0.2.10-beta.0, committed Aug 25, 2026
- First version recorded
- Aug 5, 2026
- Size
- 18,798 bytes
- Repository stars
- 12
- License
- MIT
用于指导 Agent 通过 Chrome DevTools MCP 的 `evaluate_script` 工具,结合 `window.__RS_ROOT_CONTAINER__` API 对 `@rabjs/react` 应用进行逻辑验证。当用户提到 Service 逻辑验证、Chrome DevTools 调试 Service、CDP 操控 rsjs Service、浏览器页面中调试 Service 实例 时,应优先使用这个 skill。适用场景包括:使用 chrome-devtools-mcp 的 evaluate_script 访问 Service 实例、验证 Service 状态、调用 Service 方法、通过 listServices 枚举当前页面所有 Service。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# window.**RS_ROOT_CONTAINER** 调试指南(Chrome DevTools MCP)
本 skill 告知 Agent 如何通过 **Chrome DevTools MCP** 的 `evaluate_script` 工具,利用 `@rabjs/devtools` 挂载的 `window.__RS_ROOT_CONTAINER__` 能力,对 Service 层进行功能验证与状态检查。
---
## 前置条件:初始化挂载
`window.__RS_ROOT_CONTAINER__` **不会自动挂载**,必须由应用入口显式初始化。
1. 安装依赖:
```bash
pnpm add @rabjs/devtools
```
2. 在应用入口(如 `main.tsx`)调用一次:
```ts
import { setupWindowRootContainer } from '@rabjs/devtools';
setupWindowRootContainer();
```
如果目标页面尚未接入,先引导用户完成上述初始化步骤,再进行后续调试。SSR 安全:非浏览器环境下调用会自动跳过。
---
## 能力概述
`window.__RS_ROOT_CONTAINER__` 是 `setupWindowRootContainer()` 在浏览器环境下挂载的全局访问句柄,暴露整棵容器树的查询接口。
**挂载时机**:应用入口调用 `setupWindowRootContainer()` 时。
### 容器树结构
```
global (getGlobalContainer()) ← 真正的根,与 React 无关
└─ RSRootInner_1 ← RSRoot 的 bindServices 容器
└─ ProductPage_2 ← 页面级 bindServices 容器
└─ CartDomain_3 ← Domain 级 bindServices 容器
```
### RSRootContainerHandle 接口
```ts
interface RSRootContainerHandle {
container: Container; // global 容器实例
getService(instanceId: string): Service | undefined;
getContainer(containerName: string): Container | undefined;
…Read the whole file at its exact version.
How to install
mdr add ximing/rab/rab-cdp-debug@sha256:a7e7a7292a79e0edThe line at the top of this page pins the label v0.2.10-beta.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_jzb26zjst5j7zydr)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Aug 5, 2026 and Aug 25, 2026, about one every 21 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.2.10-beta.0 latest | 2026-08-25 | d8c722b | 18,798 B | A | view · diff |
| v0.2.10-beta.0 | 2026-08-05 | 089655f | 18,347 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (18798 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
ximing/rab · 12 stars · license MIT · pushed 2026-11-02 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_jzb26zjst5j7zydr GET https://markdownregistry.com/api/v1/resolve?ref=ximing/rab/rab-cdp-debug GET https://markdownregistry.com/api/v1/blob/a7e7a7292a79e0eda744e3d6fe04aba9104f52b93b7cf784a6eddfac82352ced
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.