dotharness/dotcraft/dotcraft-desktop-debugging
Claude Code and agent skill by dotharness/dotcraft
- community
Checking that the SKILL.md file is still in the repository.
Use Playwright CLI to inspect and interact with a running CDP-enabled DotCraft Desktop.
Install
npx vskill@latest install dotharness/dotcraft/dotcraft-desktop-debuggingSKILL.md
DotCraft Desktop Debugging
Attach the official Playwright CLI to an existing DotCraft Desktop process without owning its lifecycle. Reuse one named session throughout the investigation.
Choose The Right Surface
- Use this skill to inspect or exercise the DotCraft Desktop renderer itself.
- Use the Browser skill for DotCraft's in-app browser and the Chrome skill for the user's Chrome. Their Playwright-compatible APIs are unrelated to Desktop CDP attachment.
- CDP must be enabled when Electron starts. Do not attempt process injection or attach to an instance that was started without a remote debugging port.
Connect Once
Prefer an already running debug-enabled Desktop. The default endpoint is http://127.0.0.1:9222; accept a different loopback endpoint when the caller provides one.
For source development, start Desktop from desktop/ in a long-lived terminal:
To select a workspace explicitly, forward Electron arguments after an additional --:
For a packaged build, start it explicitly with:
CDP is a startup capability: restart an instance that was opened without the flag. A debug-enabled window shows the CDP status indicator in its lower-right corner; if the indicator is absent, do not try to attach. Do not start Electron from Playwright CLI. dev:debug intentionally fails when port 9222 is already in use instead of choosing another instance or port.
From a DotCraft source checkout, use the repository-local playwright-cli binary. Run it with the stable session name dotcraft and the explicit loopback endpoint:
If the endpoint is not ready, stop and report it rather than starting another Desktop or scanning ports. Development builds may initially select their DevTools page. List tabs, then select the entry titled DotCraft before waiting for readiness:
Exercise The UI
- Start with
snapshotorfind, then use returned element refs or accessible Playwright locators. Do not invent selectors without inspecting current state. - Reuse
-s=dotcraftfor every command.snapshot,click,fill,type,press,console,requests, andscreenshotall operate on the same attached page. - For a stable multi-step sequence, use one inline
run-codecommand. Keep inline code short and limited to the requested UI flow. - Operate on the workspace and profile already selected by Desktop. Do not seed, reset, or mutate private application stores unless the user explicitly authorizes a separate product-state change.
- Store useful screenshots or traces under
.craft/attachments/. Remove incidental CLI output after the investigation. - The Desktop extension driver is deliberately narrow. Do not depend on private preload APIs, renderer stores, or application globals.
Detach Safely
The named session owns only its attached Playwright connection. End the investigation with:
Never use close, close-all, kill-all, tab-close, ElectronApplication.close(), or Browser.close. Do not terminate Desktop or AppServer processes, take ownership of Desktop stdout, or restart the user's instance without explicit authorization.
When interrupted, detach the named session if it remains available and leave Desktop, its tray process, plugin generations, and AppServer running. Remove only investigation artifacts that are no longer needed.
Persist Only Real Regression Tests
Do not create a scenario file merely to click, type, inspect, or take a screenshot. A Playwright file is appropriate only when the user asks for a repeatable test or the observed failure should become a maintained regression case. That is a separate implementation task with its own ownership and test review.
Keep scenario-specific smoke scripts out of the repository.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdesktop/resources/plugins/dotcraft-bundled/plugins/dotcraft/skills/dotcraft-desktop-debugging/SKILL.md
Popularity
- Repository stars
- 403
- Repository forks
- 20
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dotharness/dotcraft/dotcraft-desktop-debugging)