Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

domscribedomscribe 搜索

Agent Skill

domscribe 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

470

周安装

20

GitHub Stars

161

下载量

165
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:domscribe(domscribe 搜索)
来源仓库:https://github.com/patchorbit/domscribe
仓库路径:skills/domscribe
安装命令:
npx skills add https://github.com/patchorbit/domscribe --skill domscribe
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/patchorbit/domscribe --skill domscribe

简介

该技能桥接 UI 界面与源代码,建立运行时元素到源码位置的映射。

  • 适用于调试、代码理解或文档生成时需要定位具体实现细节的场景。
  • 支持双向查询:UI 点击定位源码,源码行号查看运行时状态。
  • 需启动 domscribe 服务并保持浏览器与开发环境连通。
  • domscribe 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Domscribe

Domscribe bridges running UI and source code. It maps every rendered element to its exact source location and captures live runtime context (props, state, DOM). This works in two directions:

  • UI → Code: User clicks an element in the browser, Domscribe captures it as an annotation with source location, runtime context, and user intent. You claim and implement it.
  • Code → UI: You're editing a source file and want to know what an element looks like at runtime. Query by file and line to get live props, state, and DOM snapshot.

Setup / Initialization

If domscribe.status returns active: false, Domscribe is not yet configured in this workspace. The .domscribe/ directory is created automatically when the dev server starts with the Domscribe bundler plugin configured. Follow this procedure to set it up:

  1. Confirm dormant state — call domscribe.status. If active: false, proceed. Note the cwd in the response.
  2. Detect framework — read package.json (at cwd, or at the appRoot from domscribe.config.json if it exists) and match dependencies against the table below.
  3. Detect package manager — check which lockfile exists at the project root.
  4. Install the package — run the appropriate install command via Bash (e.g., pnpm add -D @domscribe/next).
  5. Edit the bundler config — read the config file and apply the integration pattern. Load references/config-patterns.md for the exact import, transformation, and example for each framework.
  6. Update .gitignore — if .domscribe is not already listed, append a # Domscribe artifacts comment and .domscribe entry.
  7. Inform the user — tell them to start (or restart) their dev server. Domscribe activates automatically on first run.

Framework Detection

Check dependencies and devDependencies in package.json. Match top-down (first match wins):

DependencyFramework
nextnext
nuxtnuxt
react + vitereact-vite
react (no vite)react-webpack
vue + vitevue-vite
vue (no vite)vue-webpack
vite onlyother-vite
webpack onlyother-webpack

Package Mapping

FrameworkPackageConfig file
next@domscribe/nextnext.config.ts
nuxt@domscribe/nuxtnuxt.config.ts
react-vite@domscribe/reactvite.config.ts
react-webpack@domscribe/reactwebpack.config.js
vue-vite@domscribe/vuevite.config.ts
vue-webpack@domscribe/vuewebpack.config.js
other-vite@domscribe/transformvite.config.ts
other-webpack@domscribe/transformwebpack.config.js

Package Manager Detection

LockfilePackage manager
pnpm-lock.yamlpnpm
yarn.lockyarn
bun.lock / bun.lockbbun
(none)npm

Install command pattern: <pm> add -D <package> (pnpm/yarn/bun) or npm install -D <package>.

Monorepo Projects

If domscribe.config.json exists at the project root with an appRoot field, the frontend app lives in that subdirectory. Install packages and find the bundler config relative to appRoot.

If the project appears to be a monorepo (e.g., apps/, packages/ directories, workspace config in package.json) but no domscribe.config.json exists, ask the user which directory contains the frontend app. Then write domscribe.config.json at the project root:

{ "appRoot": "apps/web" }

After Setup

The MCP server starts in dormant mode when no .domscribe/ directory exists. After the user starts their dev server, the bundler plugin creates .domscribe/ automatically. The MCP server will need to restart to detect the new workspace and transition to active mode with the full tool suite.

Editing Components (Code → UI)

Why query runtime state? Source code alone doesn't tell you what props a component actually received, whether a conditional branch rendered, what CSS classes were applied, or what text the user sees. domscribe.query.bySource gives you the live truth from the browser.

When to query (these tasks benefit):

  • Visual/styling bugs — "the button is the wrong color." Query reveals the actual className, inline styles, and computed attributes so you can see what CSS is winning.
  • Conditional rendering bugs — "this section doesn't show up." Query tells you rendered: false or shows the actual props/state that control the condition.
  • Prop tracing — "the title shows 'undefined'." Query shows componentProps with the actual values flowing through, revealing where the chain breaks.
  • Verifying your edit worked — After editing, query the same location to confirm the DOM, props, and text updated as expected (HMR will have applied your change).

When NOT to query (save the round-trip):

  • Pure logic changes (utils, hooks with no DOM output, API calls)
  • Creating new files or components from scratch (nothing to query yet)
  • Refactoring (renames, extractions, moves)
  • Type errors or build failures (the compiler already tells you what's wrong)

Prerequisite: Runtime queries require the user's dev server to be running and the target component to be rendered in an open browser tab. Before calling domscribe.query.bySource, confirm with the user that they have the relevant page open. If you get browserConnected: false or runtime.rendered: false, ask the user to navigate to the page that renders the component and retry.

Workflow:

  1. Confirm the page is open — ask the user if they have the page with the target component open in their browser. If not, ask them to navigate there first.
  2. Before editing (if the task matches the scenarios above): Call domscribe.query.bySource with the file path and line number. Inspect runtime.componentProps, runtime.componentState, and runtime.domSnapshot.
  3. Edit the component source code.
  4. After editing: Call domscribe.query.bySource again to verify your changes took effect in the live browser.

Quick Commands (MCP Prompts)

CommandPurpose
process_nextProcess next queued annotation
check_statusSystem health and queue counts
explore_componentList elements in a component
find_annotationsSearch annotation history

All Tools Reference

Tool names below use their MCP registration names (e.g., domscribe.query.bySource). Your client may map these differently — use whatever tool name your environment exposes for the domscribe MCP server.

Source Query (Code → UI)

ToolPurpose
domscribe.query.bySourceGet runtime context for a source location (file + line)
domscribe.manifest.queryFind all manifest entries by file, component, or tag name
domscribe.manifest.statsManifest coverage statistics (entry/file/component counts)

Element Resolution (UI → Code)

ToolPurpose
domscribe.resolveGet source location for element ID
domscribe.resolve.batchResolve multiple element IDs

Annotation Workflow

ToolPurpose
domscribe.annotation.processClaim next queued annotation (atomic)
domscribe.annotation.respondStore your implementation message
domscribe.annotation.updateStatusMark as processed or failed
domscribe.annotation.listList annotations by status
domscribe.annotation.getGet full annotation details
domscribe.annotation.searchSearch by element, file, or text

System

ToolPurpose
domscribe.statusRelay health, manifest, queue counts

Using domscribe.query.bySource

When you're working in a source file and want to understand what an element looks like at runtime, query by file path and line number:

Input:

  • file (required): Absolute file path as stored in the manifest. Use domscribe.manifest.query to discover exact paths.
  • line (required): Line number (1-indexed).
  • tolerance (optional): Match elements within N lines of the target (default: 0, exact match).
  • column (optional): Narrow to a specific column (0-indexed).
  • includeRuntime (optional): Skip the browser query if you only need manifest data (default: true).

Output:

  • sourceLocation: Confirmed file, line range, tag name, component name.
  • runtime: Live data from the browser (if connected) — componentProps, componentState, domSnapshot (tag, attributes, innerText).
  • browserConnected: Whether a browser client is connected via WebSocket.

Use domscribe.manifest.query first if you don't know the exact line — it returns all entries for a file, component, or tag, which you can then target with domscribe.query.bySource.

Annotation Lifecycle

queued → processing → processed
                   ↘ failed (with errorDetails)
       any status → archived
  • queued: Waiting for agent to claim
  • processing: Agent is working on it (claimed atomically)
  • processed: Successfully implemented
  • failed: Could not implement (include errorDetails)
  • archived: Removed from active queue

Annotation Workflow

  1. Claim an annotation via domscribe.annotation.process
  2. Understand the response:

- userIntent: What the user wants (e.g., "Make this button red") - sourceLocation.file: Source file path - sourceLocation.line: Line number - sourceLocation.componentName: React/Vue component name - element.innerText: Visible text (verify correct element) - runtimeContext.componentProps: Current prop values

  1. Navigate to sourceLocation.file:sourceLocation.line
  2. Implement the change based on userIntent
  3. Verify via domscribe.query.bySource — call with the same file and line to confirm your changes are reflected in the live browser (HMR will have updated the page)
  4. Store your response via domscribe.annotation.respond with the annotation ID and a message describing what you did
  5. Complete the annotation via domscribe.annotation.updateStatus with status processed (or failed with errorDetails)

Error Handling

SituationAction
found: falseNo match — queue empty or no manifest entry
browserConnected: falseRuntime data unavailable; manifest data still returned
Source file missingMark failed with details
Ambiguous intentAsk user for clarification before implementing
Partial successMark processed, note limitations in response
Cannot implementMark failed with errorDetails explaining why

Key Principles

  • Read userIntent carefully — it's the user's actual words
  • Use domscribe.query.bySource to verify runtime state before and after changes
  • Use element.innerText to confirm you're changing the right element
  • Use runtimeContext to understand current component state
  • Make minimal, focused changes
  • Provide clear explanation via domscribe.annotation.respond
  • Search with domscribe.annotation.search to check for related prior work

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.94%
按下载量换算56

Claude

31.05%
按下载量换算51

Cursor

16.06%
按下载量换算26

Gemini CLI

9.38%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills