Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 17:55:23 +08:00
commit ff43aa6f4d
42 changed files with 4239 additions and 0 deletions

35
commands/dom.md Normal file
View File

@@ -0,0 +1,35 @@
---
description: Inspect DOM structure. Get page summary, element HTML, or tree visualization.
allowed-tools: Bash(*)
argument-hint: [selector | --tree]
model: haiku
---
# DOM Inspection
Inspect the page's DOM structure.
```bash
node ~/.claude/plugins/*/skills/website-debug/scripts/browser-dom.js $ARGUMENTS
```
## Usage
- No arguments: Page summary (element counts, headings, structure)
- `selector`: Get element's outerHTML
- `selector --inner`: Get element's innerHTML
- `--tree`: Visual DOM tree (3 levels deep)
- `--tree --depth=5`: Custom depth
## Examples
```bash
# Page overview
/dom
# Get specific element
/dom ".header"
# DOM tree visualization
/dom --tree
```