dr-claw · git:20260321.ece5e1c · 2026-03-21 · sha256 bf8aab1d32e86fc6

dr-claw git:20260321.ece5e1cA

Immutable. This exact content never changes and is served at /api/v1/blob/bf8aab1d32e86fc6.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_tflcb742kwoklidq/bf8aab1d32e86fc6502a3320fb107223f33808faee68e17b493120d9d345cd17.json

Then /plugin install dr-claw@markdownregistry-tflcb742kwoklidq in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: dr-claw
description: Dr. Claw skill for OpenClaw project discovery, idea intake, waiting-session triage, session replies, workflow control, and mobile reporting through the local drclaw CLI.
---

# Dr. Claw for OpenClaw

Use this skill when OpenClaw needs to operate Dr. Claw from chat or mobile, especially for:
- listing Dr. Claw projects
- finding sessions waiting for response
- replying into a session on the user's behalf
- continuing, approving, rejecting, retrying, or resuming workflows
- creating a new project from a fresh idea
- generating daily or per-project digests

## Preconditions

Before running Dr. Claw commands:

```bash
$DRCLAW_BIN server status
```

If the server is not running:

```bash
$DRCLAW_BIN server on
```

Assume the local wrapper exports these defaults when OpenClaw runs the skill:

```bash
DRCLAW_BIN=/Users/david/Library/Python/3.9/bin/drclaw
DRCLAW_URL=http://localhost:3001
```

When invoking the CLI from OpenClaw, prefer `$DRCLAW_BIN --url "$DRCLAW_URL" ...` instead of relying on PATH.

## Core operating rule

Prefer direct CLI facts over model guesses. For stateful operations, return the raw CLI result first, then summarize for the user.

When calling OpenClaw locally from automation or shell, use:

```bash
./scripts/openclaw_drclaw_turn.sh
```

This serializes `openclaw agent --local` calls per agent and avoids session-lock collisions.

## Project discovery

List projects:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" projects list
```

Inspect the latest message in a project:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" projects latest <project> --json
```

Inspect project progress and next actions:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" projects progress <project> --json
```

Create a new empty project workspace:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" projects create /absolute/path/to/project --name "Display Name" --json
```

Create a new project from a fresh idea and immediately start discussion:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" projects idea /absolute/path/to/project --name "Display Name" --idea "<idea text>" --json
```

Use `projects idea` for the “I suddenly have an idea” flow.

## Session lookup and waiting triage

List known sessions for one project:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" chat sessions --project <project> --json
```

List waiting sessions across all projects or one project:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" chat waiting --json
$DRCLAW_BIN --url "$DRCLAW_URL" chat waiting --project <project> --json
```

Recommended triage flow:
1. Resolve the project first if needed.
2. Use `chat waiting --json` to find actionable sessions.
3. Use `chat sessions --project ... --json` when the user wants more detail.

## Replying to an existing session

Once the user chooses a session:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" chat reply --project <project> --session <session-id> \
  --bypass-permissions --attach /path/to/file -m "<message>" --json
```

**Note:** Always use `--bypass-permissions` in automation to avoid being blocked by server-side tool approval requests. 

**Timeout & Heartbeat:** If you omit `--timeout`, the CLI will wait indefinitely (with a 1-hour safety cap) and use **heartbeat detection**. This is preferred for complex tasks like `Task 10` that run experiments.

If a specific provider (like Codex) is failing, add `--provider gemini` to the command to switch.

Immediately after replying, check whether the session is still processing:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" chat waiting --project <project> --json
```

If you need to wait until the session leaves the waiting list, use:

```bash
./scripts/drclaw_wait_until_clear.sh --project <project> --session <session-id>
```

The script returns JSON indicating whether the session cleared or timed out.

## Workflow control

Use these commands for workflow actions:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" workflow status --project <project> --json
$DRCLAW_BIN --url "$DRCLAW_URL" workflow continue --project <project> --session <session-id> --bypass-permissions -m "<instruction>" --json
$DRCLAW_BIN --url "$DRCLAW_URL" workflow approve --project <project> --session <session-id> --json
$DRCLAW_BIN --url "$DRCLAW_URL" workflow reject --project <project> --session <session-id> -m "<reason>" --json
$DRCLAW_BIN --url "$DRCLAW_URL" workflow retry --project <project> --session <session-id> --json
$DRCLAW_BIN --url "$DRCLAW_URL" workflow resume --project <project> --session <session-id> --bypass-permissions --json
```

## Digests and reporting

Daily digest:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" digest daily --json
```

Per-project digest:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" digest project --project <project> --json
```

Cross-project portfolio digest with recommended follow-ups:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" digest portfolio --json
```

Artifacts and workflow state:

```bash
$DRCLAW_BIN --url "$DRCLAW_URL" workflow status --project <project> --json
$DRCLAW_BIN --url "$DRCLAW_URL" taskmaster artifacts --project <project> --json
```

## Response format guidance for mobile / chat

Keep replies compact:
- first line: direct answer
- then: short project / session / status bullets if relevant
- always include exact session ids when asking the user to choose one
- when reporting a post-reply state, say whether the session is still processing or has cleared

## Reliable OpenClaw patterns

Pattern: list projects
1. Run `$DRCLAW_BIN --url "$DRCLAW_URL" projects list`.
2. Present short names, display names, and paths only when needed.

Pattern: user asks what needs attention
1. Run `$DRCLAW_BIN --url "$DRCLAW_URL" chat waiting --json`.
2. Group by project.
3. Present session id, provider, summary, and last activity.

Pattern: user asks OpenClaw to answer a waiting session
1. Run `$DRCLAW_BIN --url "$DRCLAW_URL" chat reply --project ... --session ... -m ... --json`.
2. Immediately run `$DRCLAW_BIN --url "$DRCLAW_URL" chat waiting --project ... --json`.
3. If the same session is still present, report that it is still processing.
4. Optionally run `drclaw_wait_until_clear.sh` and report the final clearance.

Pattern: user suddenly has a new idea
1. Pick a workspace path, usually `/Users/<user>/vibelab/<slug>`.
2. Run `$DRCLAW_BIN --url "$DRCLAW_URL" projects idea <path> --name <display-name> --idea <idea> --json`.
3. Return the created project, session id, and first Dr. Claw reply.
4. Continue the discussion with `$DRCLAW_BIN --url "$DRCLAW_URL" chat reply` on that session.

Pattern: user wants an update without opening Dr. Claw
1. Run `$DRCLAW_BIN --url "$DRCLAW_URL" digest daily --json`, `$DRCLAW_BIN --url "$DRCLAW_URL" digest project --project ... --json`, or `$DRCLAW_BIN --url "$DRCLAW_URL" digest portfolio --json`.
2. Use `digest portfolio` when the user wants cross-project progress, attention recommendations, or suggested replies.
3. Summarize only the load-bearing items: waiting sessions, task progress, blockers, next actions.