一键导入
d3k
// Bootstrap d3k in standalone AI apps (Codex, Cursor, Claude Code): detect/install dev3000, start d3k as the runtime, and use unified logs plus CDP browser control instead of running npm/bun dev directly.
// Bootstrap d3k in standalone AI apps (Codex, Cursor, Claude Code): detect/install dev3000, start d3k as the runtime, and use unified logs plus CDP browser control instead of running npm/bun dev directly.
Run DeepSec against a Vercel project checkout from dev3000. Use for one-click DeepSec setup, project context bootstrapping, bounded first-pass processing, and report generation.
Convert Next.js bundle analyzer data to NDJSON and explore it
| name | d3k |
| description | Bootstrap d3k in standalone AI apps (Codex, Cursor, Claude Code): detect/install dev3000, start d3k as the runtime, and use unified logs plus CDP browser control instead of running npm/bun dev directly. |
Use this skill when working in a standalone AI app and you need reliable local web debugging with browser + server context.
d3k captures server logs, browser console, network events, and screenshots in one timeline.d3k exposes a stable CDP endpoint so the agent can control the same browser session being monitored.npm run dev or bun run dev directly omits this unified telemetry and usually leads to weaker diagnoses.d3k is installed:command -v d3k >/dev/null && d3k --version
d3k is missing, install dev3000 globally (prefer Bun):bun install -g dev3000
Fallback if Bun is unavailable:
npm install -g dev3000
d3k --no-agent --no-tui -t
npm/bun dev.Use this workflow when the user asks Codex to start d3k with a fresh browser/profile.
Close any stale agent-browser daemon before launching with --profile. Otherwise agent-browser will reuse the existing daemon and print --profile ignored.
d3k agent-browser close --all
Start the app through d3k in servers-only mode 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-tui
Adjust the package-manager command and port for the project. Prefer --command over --script when 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:
127.0.0.1 for this workflow. If localhost hangs or flips between IPv4/IPv6 behavior, do not keep retrying browser launches.curl -I hangs, the server is wedged even if the port appears occupied; restart the d3k server process before opening a browser.servers-only mode there is no d3k-monitored CDP browser. Use regular d3k agent-browser commands, not d3k cdp-port.agent-browser opens outside the sandbox when sandbox networking blocks access to 127.0.0.1.Use these first before ad-hoc log scraping:
d3k errors --context
d3k logs -n 200
d3k logs --type browser
d3k logs --type server
Use the already-monitored browser session instead of launching a separate automation browser.
d3k agent-browser open http://localhost:3000
d3k agent-browser snapshot -i
d3k agent-browser click @e2
d3k agent-browser screenshot /tmp/d3k-current.png
d3k agent-browser auto-connects to the active session's browser via CDP. To target a different browser, run d3k agent-browser connect <port> first.
Use the browser tool that matches the task instead of treating them as interchangeable:
agent-browser
snapshot, ref-based click, fill, or to reproduce what the user sees in the monitored tab.next-browser
tree, errors, logs, routes, project, PPR inspection, and related Next dev-server signals.agent-browser: no accessibility snapshot, no ref-based click, and no fill.Practical rule:
agent-browser.next-browser.Examples:
# Same monitored browser session
d3k agent-browser snapshot -i
d3k agent-browser click @e2
# Next.js-specific inspection
d3k next-browser open http://localhost:3000
d3k next-browser tree
d3k next-browser errors
d3k next-browser logs
~/.d3k/{project}/d3k.log~/.d3k/{project}/logs/~/.d3k/{project}/screenshots/~/.d3k/{project}/session.json--headless only for CI or when explicitly requested.--servers-only only when browser monitoring is intentionally disabled.