Automated summary
This skill drives the d3k command-line tool, which merges browser and server logs into a single file so an agent can inspect errors, replay user actions in the browser, and confirm fixes.
Strengths
- Combines browser and server logs in one view, with a --context mode that surfaces the user actions leading up to an error
- Offers CDP-based browser automation (snapshot, click, fill, screenshot) to replay a bug after patching it
- Documents a concrete recipe for launching a fresh browser profile in servers-only mode, including clearing the stale agent-browser daemon first
- Ships practical gotchas: prefer 127.0.0.1, restart the server when curl -I hangs, and rerun network checks outside sandboxed environments
Limitations
- Assumes the app is already instrumented by d3k; without an active d3k session the errors/logs commands return little of value
- Heavily tied to the d3k CLI and ecosystem, with no coverage of installation or initial setup
- The before/after screenshot section is cut off, and CDP port handling differs between launch modes
Use it when an agent needs to debug a local web app by correlating browser and server logs, then verify the fix by replaying the same user flow.
Skip it on projects without d3k installed, or for debugging that involves no browser, such as a pure server-side fault or remote production log analysis.
Security analysis
SafeThe skill is pure documentation for a developer debugging CLI (d3k). It instructs running local commands such as `npm run dev`, `curl -I http://127.0.0.1:3000`, and headless browser automation against localhost or a user-supplied production URL. There is no obfuscation, no piping of remote scripts to a shell, no credential/token handling, and no destructive filesystem operations; screenshots and profile paths are confined to /tmp.
No concerns found
How this analysis is madeExamples
The submit button on /signup throws an error in my Next.js app. Run d3k errors --context to see what the user did before it failed, fix the code, then replay the flow with d3k agent-browser and confirm the error is gone.Start my app with d3k in servers-only mode on port 3000 with a fresh browser profile at /tmp/d3k-fresh-profile, verify the server with curl, open the page headed, and check for errors.I'm changing the layout of the pricing page. Capture a before screenshot from production, apply the change, then capture an after screenshot so I can attach both to the PR.name: "d3k" description: "d3k assistant for debugging web apps"
d3k Commands
d3k captures browser and server logs in a unified log file. Use these commands:
Viewing Errors and Logs
d3k errors # Show recent errors (browser + server combined)
d3k errors --context # Show errors + user actions that preceded them
d3k errors -n 20 # Show last 20 errors
d3k logs # Show recent logs (browser + server combined)
d3k logs --type browser # Browser logs only
d3k logs --type server # Server logs only
Other Commands
d3k fix # Deep analysis of application errors
d3k fix --focus build # Focus on build errors
d3k crawl # Discover app URLs
d3k crawl --depth all # Exhaustive crawl
Browser Interaction
d3k agent-browser auto-connects to the active session's browser via CDP:
d3k agent-browser open http://localhost:3000/page
d3k agent-browser snapshot -i # Get element refs (@e1, @e2)
d3k agent-browser click @e2
d3k agent-browser fill @e3 "text"
d3k agent-browser screenshot /tmp/shot.png
To target a different browser, run d3k agent-browser connect <port> first.
Codex Fresh Browser/Profile Startup
Use this workflow when the user asks Codex to start d3k with a fresh browser/profile.
-
Close any stale
agent-browserdaemon before launching with--profile. Otherwiseagent-browserwill reuse the existing daemon and print--profile ignored.d3k agent-browser close --all -
Start the app through d3k in
servers-onlymode and keep that command running. In Codex, this is more reliable than asking d3k to launch the browser itself when a fresh profile is required.d3k --no-agent --no-skills --servers-only --command "npm run dev -- -H 127.0.0.1 -p 3000" --port 3000 --startup-timeout 90 --no-tuiAdjust the package-manager command and port for the project. Prefer
--commandover--scriptwhen passing framework flags. For npm scripts, put flags after--; otherwise tools like Next.js can interpret the port as a project directory. -
Verify the server before opening more browser windows:
curl -I http://127.0.0.1:3000 -
Open the fresh profile as a separate browser step:
d3k agent-browser --profile /tmp/d3k-fresh-profile --headed open http://127.0.0.1:3000 -
Sanity-check the opened page:
d3k agent-browser get title d3k agent-browser snapshot -i d3k errors
Practical rules:
- Prefer
127.0.0.1for this workflow. Iflocalhosthangs or flips between IPv4/IPv6 behavior, do not keep retrying browser launches. - If
curl -Ihangs, the server is wedged even if the port appears occupied; restart the d3k server process before opening a browser. - In
servers-onlymode there is no d3k-monitored CDP browser. Use regulard3k agent-browsercommands, notd3k cdp-port. - In sandboxed agent environments, rerun local-network checks and
agent-browseropens outside the sandbox when sandbox networking blocks access to127.0.0.1.
Browser Tool Choice
Use agent-browser for browser work.
Practical rule:
- Need to drive the same monitored browser session: use
agent-browser. - Examples:
d3k agent-browser snapshot -i
d3k agent-browser click @e2
To make d3k prefer one locally when it launches helper browser commands, use:
d3k --browser-tool agent-browser
Fix Workflow
d3k errors --context- See errors and what triggered them- Fix the code
d3k agent-browser open <url>thend3k agent-browser click @e1to replayd3k errors- Verify fix worked
Creating PRs with Before/After Screenshots
When creating a PR for visual changes, always capture before/after screenshots to show the impact:
-
Before making changes, screenshot the production site:
d3k agent-browser open https://production-url.com/affected-page d3k agent-browser screenshot /tmp/before.png -
After making changes, screenshot localhost:
d3k agent-browser open http://localhost:3000/affected-page d3k agent-browser screenshot /tmp/after.png -
Or use the tooling API to capture multiple routes at once:
capture_before_after_screenshots( productionUrl: "https://myapp.vercel.app", routes: ["/", "/about", "/contact"] ) -
Include in PR description using markdown:
### Visual Comparison | Route | Before | After | |-------|--------|-------| | `/` |  |  |Upload screenshots by dragging them into the GitHub PR description.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/d3k-web-debugging-assistant-mrwakfpo/download' --output '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md.part' && mv '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md.part' '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md' && test -s '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/d3k' && cp -R '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo' '.claude/skills/d3k'Cursor
test -f '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md' && test -s '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/d3k' && cp -R '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo' '.cursor/skills/d3k'Codex
test -f '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md' && test -s '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/d3k' && cp -R '.skill-downloads/d3k-web-debugging-assistant-mrwakfpo' '.agents/skills/d3k'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/d3k-web-debugging-assistant-mrwakfpo'openskills read 'd3k-web-debugging-assistant-mrwakfpo'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/d3k-web-debugging-assistant-mrwakfpo/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.