first-run

作者: anthropic

引導新用戶完成首次電腦使用代理運行(環境檢查、安全的僅瀏覽器任務,然後打開軌跡檢視器)。

npx skills add https://github.com/anthropics/claude-quickstarts --skill first-run

First run

Walk the user through running this demo for the first time. Be conversational and pause for confirmation between phases; the goal is that they understand what each step does, not just that the commands succeed.

0. Orient

Briefly say what is about to happen: you will check their setup, run one safe browser-only task that does not touch their mouse or keyboard, and then open the trajectory viewer so they can see what the model saw.

1. Environment check

Never read the contents of .env. Do not cat, grep (without -q), Read, or otherwise display it — the user's API key must never appear in this conversation or in your context. Only check for its presence.

  • Confirm a virtual environment is active and dependencies are installed: python -c "import computer_use, playwright; print('ok')". If that import fails, point them at the Installation section of README.md and stop.
  • Confirm .env exists and the API key is set without ever printing it: [ -f .env ] && grep -q '^ANTHROPIC_API_KEY=.' .env && echo 'API key: set' || echo 'API key: missing' If missing, copy .env.example to .env and ask the user to open it in their own editor and paste their key into it (do not ask them to paste the key into chat, and do not edit .env for them). Wait until they confirm.
  • Run the macOS permission preflight non-fatally: python -c "from computer_use.preflight import check_and_warn; check_and_warn(require=False)" and explain any warnings. These permissions are only needed for the desktop computer tool, which the first task does not use, so it is fine to continue without them for now.

2. Run a safe browser-only task

Explain that this task uses only the headless browser tool, so nothing on their screen will move. Then run:

CU_ENABLE_COMPUTER_USE_TOOLS=false python -m computer_use \
  "Navigate to https://en.wikipedia.org/wiki/Special:Random three times, \
   take a screenshot each time, then summarize what you saw."

While it runs, narrate what the streamed output means (dim thinking text, the cyan tool-call lines, the yellow tool-result lines, the [usage] line). When it finishes, point out the trajectory: runs/... path that was printed.

3. Open the trajectory viewer

python -m streamlit run dev_ui/trajectory_viewer/app.py

Tell them to pick the newest run in the sidebar, expand the System prompt section to see exactly what the model was told, and scroll through the turns to see each screenshot inline.

4. Next steps

Offer two follow-ups and let them choose:

  • Try the desktop tool: once Screen Recording and Accessibility are granted, run python -m computer_use "open TextEdit and type hello world". Warn them again that this will move their real mouse and keyboard.
  • Explore the dev UIs: the tool panel at python -m uvicorn dev_ui.tool_panel.server:app --reload lets them call each tool by hand without the model in the loop.

End by pointing at the Configuration and Effective caching and context pruning sections of README.md for the deeper material.

來自 anthropic 的更多技能

access
anthropic
管理 Discord 頻道存取權限 — 核准配對、編輯允許清單、設定私訊/群組政策。當使用者要求配對、核准某人、查詢誰被允許時使用…
official
session-report
anthropic
從 ~/.claude/projects 的對話記錄中,生成一份可探索的 HTML 報告,內容涵蓋 Claude Code 工作階段的使用情況(包含 token、快取、子代理、技能及高成本提示)。
official
build-mcp-server
anthropic
當使用者要求「建立 MCP 伺服器」、「建立 MCP」、「製作 MCP 整合」、「為 Claude 包裝 API」、「暴露工具給…」時,應使用此技能。
official
cookbook-audit
anthropic
根據評分標準審核 Anthropic Cookbook 筆記本。每當要求進行筆記本審查或審核時使用。
official
handle-complaint
anthropic
處理進線客戶投訴的完整流程——提取背景資訊、草擬回覆,並建議營運改善方案。可接受選填的電子郵件或工單編號……
official
use-case-triage
anthropic
快速判斷某項處理活動是否需要PIA、強制性的GDPR DPIA,或可直接進行——揭露隱私政策衝突,並引導至正確的…
official
board-minutes
anthropic
根據您指定的格式,自動草擬董事會或委員會會議記錄。自動從您的日曆中偵測即將召開的董事會及委員會會議,詢問議程及…
official
renewal-tracker
anthropic
顯示即將到來的取消截止日期的合約,並在通知窗口關閉前發出警告,依據維護中的續約登記表進行操作。當用戶詢問時使用…
official