AGENT SKILL

drwil-serve

Give the human the link to the project's live, read-only view (drwil serve), starting it if needed. Use when the human runs /drwil-serve, asks for the project's view or its link, or uses a tool that cannot show the link at session start.

License 许可
MIT
所属仓库
wdubilly/drwil
最近更新
2026-11-15
Stars
★ 0
Forks
0

01 前言 Front Matter

name
drwil-serve
description
Give the human the link to the project's live, read-only view (drwil serve), starting it if needed. Use when the human runs /drwil-serve, asks for the project's view or its link, or uses a tool that cannot show the link at session start.

03 SKILL.md 正文

The project's live view (/drwil-serve)

  1. Run npx drwil serve --welcome at the project root. It starts the server in the background on 127.0.0.1 when it is not running, publishes it on the private network when Tailscale can, and prints one line.
  2. Give that line to the human as it is, including what it says about opening the view from a phone. It carries no token. Do not open a browser.
  3. If the command fails, give its error message as it is.

Never start the server with --host on the human's behalf, and never ask for, read, write or repeat DRWIL_SERVE_TOKEN or a link holding a token: outside 127.0.0.1 the human sets that variable in their own terminal and starts npx drwil serve --host <address> there.

At session start

Offered by drwil init, off until the human says yes (npx drwil init --serve-autostart or --no-serve-autostart to change the answer). When on, a session-start hook starts the server, on 127.0.0.1 only:

Tool Server started Link shown to the human
Claude Code yes yes, by systemMessage, never sent to the model (tried on 2.1.319)
Gemini CLI yes yes, by systemMessage (documented, not tried)
Codex yes yes, by systemMessage, shown as a warning (documented, not tried)
Copilot CLI yes no channel: it reads only additionalContext, so /drwil-serve gives the link
Cursor no hook delivered no channel: run the command of step 1

04 同仓库更多 Skills

wdubilly
wdubilly/drwil

drwil-progress

Generate a static HTML dashboard (project progress, contract coverage) with nothing to deploy. Use for a quick overview before a meeting, resuming a project, or a review.

★ 0
wdubilly
wdubilly/drwil

drwil-usage

Measure the tokens consumed per workstream and record the closing workstream's line in .drwil/usage.jsonl. Use when closing a workstream, or when asked what a workstream cost, to feed the dashboard and the analysis reports.

★ 0
wdubilly
wdubilly/drwil

drwil-start

Start a workstream, or a queue of workstreams, with one human gesture — open a poll of the scoped briefs; the human's answer, read by the tool, moves governance to BUILD (when several briefs are chosen, the next ones are queued and started by the agent after each closing). Use when the human wants to start implementing one or several briefs.

★ 0
wdubilly
wdubilly/drwil

drwil-scope

At the end of a scoping pushed (brief or intention committed on a scoping branch, its PR open), set its PR to automatic merge with the tool, without a poll — the automatic merge is the default behaviour. Use when a scoping is pushed and its PR opened, or when the human runs /drwil-scope.

★ 0
wdubilly
wdubilly/drwil

run-locally

Run the project locally for development — prerequisites, success signals, known pitfalls on first startup.

★ 0
wdubilly
wdubilly/drwil

refactor-without-breaking

Split or restructure existing code without changing its behavior — characterization tests first, small committed steps, bugs found committed separately. Use for every refactor.

★ 0