domscribe
Installation
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:
- Confirm dormant state — call
domscribe.status. Ifactive: false, proceed. Note thecwdin the response. - Detect framework — read
package.json(atcwd, or at theappRootfromdomscribe.config.jsonif it exists) and match dependencies against the table below. - Detect package manager — check which lockfile exists at the project root.
- Install the package — run the appropriate install command via Bash (e.g.,
pnpm add -D @domscribe/next). - Edit the bundler config — read the config file and apply the integration pattern. Load
references/config-patterns.mdfor the exact import, transformation, and example for each framework. - Update
.gitignore— if.domscribeis not already listed, append a# Domscribe artifactscomment and.domscribeentry. - Inform the user — tell them to start (or restart) their dev server. Domscribe activates automatically on first run.