一键导入
droid-cli
Background knowledge for droid-control workflows -- not invoked directly. Droid CLI target patterns, shortcuts, modes, and launch helpers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Background knowledge for droid-control workflows -- not invoked directly. Droid CLI target patterns, shortcuts, modes, and launch helpers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Background knowledge for droid-control workflows -- not invoked directly. Recording lifecycle for terminal and browser sessions.
Background knowledge for droid-control workflows -- not invoked directly. Desktop-control driver mechanics for native GUI app automation via trycua cua-driver.
Control terminal TUIs and web/Electron apps for testing, demos, QA, and computer-use tasks. Use when you need to automate a CLI, drive a browser, record a demo, or capture proof artifacts.
Create a pull request with Conventional Commits formatting, a templated body, and local verification. Use when the user asks to create a PR, open a PR, submit changes for review, or put code up for review.
Follow up on an existing PR by rebasing on the base branch, addressing reviewer comments, fixing CI issues, and pushing updates. Use when the user provides a PR URL or number and wants to get it ready for merge.
Intercept and debug HTTP traffic from any CLI, service, or script using HTTP Toolkit. Use when you need to inspect LLM API calls, backend requests, auth flows, or debug network-level issues across any language or runtime.
| name | droid-cli |
| description | Background knowledge for droid-control workflows -- not invoked directly. Droid CLI target patterns, shortcuts, modes, and launch helpers. |
| user-invocable | false |
The orchestrator routed you here. Layer these target-specific patterns on top of the driver skill you already loaded.
Droid-specific shortcuts, modes, and launch patterns.
| Action | Key chord | Result |
|---|---|---|
| Toggle Spec mode | shift tab | toggles Spec mode on/off |
| Cycle autonomy | ctrl l | Off > Low > Med > High > Off |
| Cycle models | ctrl n | cycles available models |
| Cycle reasoning | tab | High > none > Low > Medium > High |
| Cancel / close / stop | esc | stops streaming, closes overlays |
| Clear input | ctrl u | clears current line |
| Toggle bash mode | ! on empty input | switches prompt between > and $ |
| Help / shortcuts | ? | opens keybinding help |
| Multiline input | shift enter | inserts newline without submitting |
When a dialog shows Use up/down to navigate...: up/down moves the highlight, enter selects, esc closes.
| Command | Purpose |
|---|---|
/help | Show commands |
/settings | Open settings menu |
/model | Open model selector |
/clear or /new | Start a new session |
/sessions | Browse previous sessions |
/review | Start AI code review |
/status | Show current config |
/cost | Show usage / cost |
/compress [prompt] | Summarize and move to fresh session |
Type @ to open file suggestions, filter by typing, tab to accept, esc to cancel:
$TCTL -s demo type "review @"
$TCTL -s demo type "package.json"
$TCTL -s demo press tab
| State | What to look for |
|---|---|
| Spec mode on | input border shows Spec |
| Bash mode on | prompt is $ |
| Idle / ready | prompt is > with no spinner |
| Dialog open | boxed menu + navigation hint |
| File suggestions | dropdown under input |
| Thinking | Thinking... and stop hint |
droid-dev worksdroid-dev is a thin bash shim at ~/.local/bin/droid-dev. It runs bun against whichever checkout DROID_DEV_REPO_ROOT points to — it does NOT use a pre-compiled binary. This means:
npm run setup (in any checkout) installs the shim. Switching branches is instant via --repo-root.node_modules installed (npm install at the repo root). If missing, the bun launch fails.tctl --repo-root sets DROID_DEV_REPO_ROOT automatically and pins the session to that worktree.droid-devdroid-dev launches require --repo-root (or --env DROID_DEV_REPO_ROOT=...). tctl enforces this — launches without it will fail:
# tuistory (default — virtual PTY)
$TCTL launch "droid-dev" -s demo --backend tuistory \
--repo-root /path/to/worktree \
--cols 120 --rows 36
# true-input (real terminal proof — headless Wayland compositor)
$TCTL launch "droid-dev" -s demo --backend true-input \
--repo-root /path/to/worktree
For comparisons, launch separate sessions pointing at different worktrees:
$TCTL launch "droid-dev" -s before --backend tuistory \
--repo-root /path/to/baseline-worktree \
--cols 120 --rows 36 --record /tmp/before.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolor
$TCTL launch "droid-dev" -s after --backend tuistory \
--repo-root /path/to/candidate-worktree \
--cols 120 --rows 36 --record /tmp/after.cast \
--env FORCE_COLOR=3 --env COLORTERM=truecolor
For before/after comparisons, you need two worktree paths — one for the baseline and one for the candidate.
git worktree list in any checkout. The main clone (often on dev or main) is a valid baseline.git worktree add /tmp/baseline-worktree dev (or the relevant base branch).node_modules: Run npm install in any worktree that lacks it. This is the only setup needed — no npm run setup or CLI build per branch.--repo-root: Each tctl launch pins to one worktree.tctl's runner script launches droid-dev via bash -lc, which loads a clean login shell. Stale FACTORY_* env vars from parent processes are typically overridden by the runner. If you suspect env contamination, pass explicit overrides with --env.
Non-interactive single-shot execution:
droid exec "analyze this file"
droid exec --auto medium "run the tests"
Enable debug logging by passing the log file path via --env:
$TCTL launch "droid-dev" -s demo --backend tuistory \
--repo-root /path/to/worktree \
--env FACTORY_LOG_FILE=/tmp/droid-test.log
tail -f /tmp/droid-test.log