Claude
Skills
Sign in
Back

drawbridge-redraw

Included with Lifetime
$97 forever

Re-craft a prompt for the last brief — variation of the same target or a different one. Use when the user invokes /redraw.

AI Agents

What this skill does


> Converted from Claude Code command `/redraw`.
> Review and adapt: hooks and MCP tool IDs may need manual mapping for Codex.

# /redraw — variation of last brief

## Steps

### 1. Read last entry

```bash
source plugins/drawbridge/scripts/lib.sh
LAST=$(db_history_last)
```

If empty — stop and report: `No history yet. Run /draw first.`

Parse `LAST` as JSON to extract `brief` and `target`.

### 2. Resolve effective target

If `$ARGUMENTS` contains `-t <target>`, use that (and validate). Otherwise reuse the last `target`.

### 3. Craft a fresh prompt

Invoke the `prompt-crafting` skill with the same brief and the resolved target. Even if target is the same, produce a noticeably different framing (different angle / lighting / mood) — this is "redraw", not "rerun".

### 4. Copy + log + open

Same as `/draw`:
- `pbcopy` the prompt
- `db_history_append "$TARGET" "$BRIEF" "$PROMPT"`
- `db_open_url "$(db_target_url "$TARGET")"`

### 5. Report

```
target: <target>  (was: <previous target>)
brief: <brief>

prompt copied. opening <url>.
```

Show the new prompt in a fenced block.

Related in AI Agents