Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

d3kD3K 命令行

Agent Skill

d3k 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,867

周安装

377

GitHub Stars

1,166

下载量

3,106
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:d3k(D3K 命令行)
来源仓库:https://github.com/vercel-labs/dev3000
仓库路径:skills/d3k
安装命令:
npx skills add https://github.com/vercel-labs/dev3000 --skill d3k
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vercel-labs/dev3000 --skill d3k

简介

d3k 提供独立的 Web 调试环境启动与监控。

  • 捕获服务器日志、浏览器控制台和网络事件。d3k 属于开发类 Skill,可作为该场景下的辅助能力补充。
  • 暴露稳定 CDP 接口供 Agent 控制浏览器会话。
  • 推荐在 AI 应用中优先使用此工具而非直接运行 dev 命令。
  • 首次使用前需确认是否已安装 dev3000 套件。

SKILL.md

d3k Standalone Bootstrap

Use this skill when working in a standalone AI app and you need reliable local web debugging with browser + server context.

Why d3k-first

  • 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.
  • Running npm run dev or bun run dev directly omits this unified telemetry and usually leads to weaker diagnoses.

Bootstrap Workflow

  1. Confirm whether d3k is installed:
command -v d3k >/dev/null && d3k --version
  1. If d3k is missing, install dev3000 globally (prefer Bun):
bun install -g dev3000

Fallback if Bun is unavailable:

npm install -g dev3000
  1. Start d3k as the runtime (preferred default in agent shells):
d3k --no-agent --no-tui -t
  1. Keep d3k running while editing code. Do not start a second dev server with npm/bun dev.

Codex Fresh Browser/Profile Startup

Use this workflow when the user asks Codex to start d3k with a fresh browser/profile.

  1. 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
  2. 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.
  3. Verify the server before opening more browser windows: curl -I http://127.0.0.1:3000
  4. 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
  5. Sanity-check the opened page: d3k agent-browser get title d3k agent-browser snapshot -i d3k errors

Practical rules:

  • Prefer 127.0.0.1 for this workflow. If localhost hangs or flips between IPv4/IPv6 behavior, do not keep retrying browser launches.
  • If curl -I hangs, the server is wedged even if the port appears occupied; restart the d3k server process before opening a browser.
  • In servers-only mode there is no d3k-monitored CDP browser. Use regular d3k agent-browser commands, not d3k cdp-port.
  • In sandboxed agent environments, rerun local-network checks and agent-browser opens outside the sandbox when sandbox networking blocks access to 127.0.0.1.

Debugging Commands

Use these first before ad-hoc log scraping:

d3k errors --context
d3k logs -n 200
d3k logs --type browser
d3k logs --type server

CDP Browser Control

Use the already-monitored browser session instead of launching a separate automation browser.

CDP_PORT="$(d3k cdp-port)"
d3k agent-browser --cdp "$CDP_PORT" open http://localhost:3000
d3k agent-browser --cdp "$CDP_PORT" snapshot -i
d3k agent-browser --cdp "$CDP_PORT" click @e2
d3k agent-browser --cdp "$CDP_PORT" screenshot /tmp/d3k-current.png

Browser Tool Choice

Use the browser tool that matches the task instead of treating them as interchangeable:

  • agent-browser

- Default choice. - Best for generic web apps and for driving the exact headed browser session that d3k is already monitoring via CDP. - Use it when you need snapshot, ref-based click, fill, or to reproduce what the user sees in the monitored tab.

  • next-browser

- Next.js-specific tool. - Best for React/Next introspection: tree, errors, logs, routes, project, PPR inspection, and related Next dev-server signals. - It is not a drop-in replacement for agent-browser: no accessibility snapshot, no ref-based click, and no fill. - It launches its own daemon/browser flow and does not use d3k cdp-port.

Practical rule:

  • Need to drive the same browser d3k is monitoring: use agent-browser.
  • Need Next.js component tree or Next-specific diagnostics: use next-browser.

Examples:

# Same monitored browser session
CDP_PORT="$(d3k cdp-port)"
d3k agent-browser --cdp "$CDP_PORT" snapshot -i
d3k agent-browser --cdp "$CDP_PORT" 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

Artifacts to Read

  • ~/.d3k/{project}/d3k.log
  • ~/.d3k/{project}/logs/
  • ~/.d3k/{project}/screenshots/
  • ~/.d3k/{project}/session.json

Operating Rules

  • Prefer headed mode for interactive debugging.
  • Use --headless only for CI or when explicitly requested.
  • Use --servers-only only when browser monitoring is intentionally disabled.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.39%
按下载量换算1,099

Claude

30.74%
按下载量换算955

Cursor

20.69%
按下载量换算643

Gemini CLI

9.96%
按下载量换算309

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills