diffity-start

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Diffity Start Skill

Diffity启动技能

You are starting the diffity diff viewer so the user can see their changes in the browser.
你正在启动diffity差异查看器,以便用户可以在浏览器中查看他们的变更。

Instructions

操作步骤

  1. Check that
    diffity
    is available: run
    which diffity
    . If not found, install it with
    npm install -g diffity
    .
  2. Start the server using the Bash tool with
    run_in_background: true
    :
    • Command:
      diffity
    • Do NOT use
      &
      or
      --quiet
      — let the Bash tool handle backgrounding
    • The browser will open automatically and the session is auto-created on startup
  3. Wait 2 seconds, then verify the session exists by checking that
    .diffity/current-session
    file is present.
  4. Tell the user diffity is running and show them what they can do next. Keep it short — don't show session IDs, hashes, or other internals. Example:
    Diffity is running — check your browser.
    When you're ready:
    • Leave comments on the diff in your browser, then run /diffity-resolve to fix them
    • Or run /diffity-review to get an AI code review
  1. 检查
    diffity
    是否可用:运行
    which diffity
    。如果未找到,请使用
    npm install -g diffity
    进行安装。
  2. 使用Bash工具启动服务器,设置
    run_in_background: true
    • 命令:
      diffity
    • 请勿使用
      &
      --quiet
      — 让Bash工具处理后台运行
    • 浏览器会自动打开,会话会在启动时自动创建
  3. 等待2秒,然后通过检查是否存在
    .diffity/current-session
    文件来验证会话是否存在。
  4. 告知用户diffity正在运行,并向他们展示接下来可以执行的操作。保持简洁 — 不要显示会话ID、哈希值或其他内部信息。示例:
    Diffity正在运行 — 请查看你的浏览器。
    当你准备好时:
    • 在浏览器中的差异上添加注释,然后运行**/diffity-resolve**来修复这些问题
    • 或者运行**/diffity-review**获取AI代码审查