From d22e33ced50d347442df5731c64f3b1e2a1b09e0 Mon Sep 17 00:00:00 2001 From: Mehmet Mutlu <90329858+mutlumehmet@users.noreply.github.com> Date: Wed, 11 Nov 2026 15:13:52 +0000 Subject: [PATCH] answer-buttons 0.4.0: Status button (where are we, where you left off) Co-Authored-By: Claude Opus 5.5 --- .claude-plugin/marketplace.json | 2 +- README.md | 2 +- plugins/answer-buttons/.claude-plugin/plugin.json | 4 ++-- plugins/answer-buttons/README.md | 11 +++++++---- plugins/answer-buttons/commands/status.md | 4 ++++ plugins/answer-buttons/hooks/register.tsx | 12 ++++++++++-- plugins/answer-buttons/tests/answer-buttons.test.ts | 7 ++++--- 7 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 plugins/answer-buttons/commands/status.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 14d2c25..4f3e95f 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -28,7 +28,7 @@ { "name": "answer-buttons", "source": "./plugins/answer-buttons", - "description": "Three small buttons under Claude's last answer: Plain English, Shorter, and Plain & short" + "description": "Four small buttons under Claude's last answer: Plain English, Shorter, Plain & short, and Status" }, { "name": "skill-stats", diff --git a/README.md b/README.md index bef90c8..fd7988a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Small mods for long sessions. Install them all with `/plugin install toolkit@meh answer-buttons: one click asks for the short version of the last answer
-answer-buttons: Plain English, Shorter and Plain & short buttons under the last answer +answer-buttons: Plain English, Shorter, Plain & short and Status buttons under the last answer skill-stats: a table of skills counted from your past sessions
diff --git a/plugins/answer-buttons/.claude-plugin/plugin.json b/plugins/answer-buttons/.claude-plugin/plugin.json index 54e15aa..9852164 100644 --- a/plugins/answer-buttons/.claude-plugin/plugin.json +++ b/plugins/answer-buttons/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "answer-buttons", - "version": "0.3.1", - "description": "Three small buttons under Claude's last answer: Plain English, Shorter, and Plain & short", + "version": "0.4.0", + "description": "Four small buttons under Claude's last answer: Plain English, Shorter, Plain & short, and Status", "author": { "name": "Mehmet Mutlu" }, diff --git a/plugins/answer-buttons/README.md b/plugins/answer-buttons/README.md index b6e7d14..71c83d9 100644 --- a/plugins/answer-buttons/README.md +++ b/plugins/answer-buttons/README.md @@ -1,6 +1,6 @@ # answer-buttons -A Claude Code mod that draws three small buttons under Claude's last answer. Part of +A Claude Code mod that draws four small buttons under Claude's last answer. Part of [claude-plugins](../../README.md). ## What it does @@ -10,9 +10,12 @@ A Claude Code mod that draws three small buttons under Claude's last answer. Par | `✎ Plain English` | Asks for the answer again in plain words: what the thing is, one labelled analogy and where it stops being true, where it is, and what breaks if it is wrong | | `✂ Shorter` | Asks for the same answer cut to its point in 2 or 3 sentences, keeping any yes/no question and any copyable draft word for word | | `✎✂ Plain & short` | Plain words, held to 2 or 3 sentences | +| `◷ Status` | Asks where things stand: what is done, what is in progress, where Claude left off, what waits on you, and the next step | + +Every button sends an English prompt, whatever language the conversation is in. The buttons show only under the last answer, never while Claude is working. From the keyboard: -`/answer-buttons:shorter` and `/answer-buttons:plain-short`. +`/answer-buttons:shorter`, `/answer-buttons:plain-short` and `/answer-buttons:status`. ## Settings @@ -23,10 +26,10 @@ The buttons show only under the last answer, never while Claude is working. From ## What it reads and does - **Reads**: whether Claude is answering and which answer is the latest, to draw the buttons under it. -- **Does**: on a press, sends a fixed prompt as your message (Plain English, Shorter, Plain & short), or runs the skill named in `plain_skill`. +- **Does**: on a press, sends a fixed prompt as your message (Plain English, Shorter, Plain & short, Status), or runs the skill named in `plain_skill`. - **Hooks**: `turn.start` and `turn.complete` only track whether a turn is running. `ui.render` on the answer adds the button row under the last answer and leaves the answer itself unchanged. - **Commands it runs**: only when you press a Plain button and the `plain_skill` setting names a skill, it runs that one skill (`/` with a fixed argument written in this mod's code, asking it to re-explain your last answer, or to do so in 2 or 3 sentences). With `plain_skill` empty it runs no command at all. It never runs a command on its own, only on your press. -- **What goes into the prompts it submits**: one of three fixed sentences written in this mod's code (ask Claude to re-explain the last answer in plain English, to say it shorter, or both), sent as your own message in the same session. It reads the conversation only to find which answer is the latest, and copies none of its text into the prompt. +- **What goes into the prompts it submits**: one of four fixed sentences written in this mod's code (ask Claude to re-explain the last answer in plain English, to say it shorter, both, or to report where the work stands), sent as your own message in the same session. It reads the conversation only to find which answer is the latest, and copies none of its text into the prompt. - **Privacy**: see [PRIVACY.md](../../PRIVACY.md). - **Never**: sends anything anywhere (no network calls, no telemetry). diff --git a/plugins/answer-buttons/commands/status.md b/plugins/answer-buttons/commands/status.md new file mode 100644 index 0000000..8db4eb7 --- /dev/null +++ b/plugins/answer-buttons/commands/status.md @@ -0,0 +1,4 @@ +--- +description: Ask where things stand and where Claude left off +--- +Where are we? Give me the current status in a few lines: what is done, what is in progress, where you left off, anything waiting on me, and the next step. Keep it short. diff --git a/plugins/answer-buttons/hooks/register.tsx b/plugins/answer-buttons/hooks/register.tsx index 2915344..2f71986 100644 --- a/plugins/answer-buttons/hooks/register.tsx +++ b/plugins/answer-buttons/hooks/register.tsx @@ -1,10 +1,12 @@ -// answer-buttons: three small buttons under Claude's last answer. +// answer-buttons: four small buttons under Claude's last answer. // ✎ Plain English asks for that answer again in plain words // ✂ Shorter asks for the same answer, cut down // ✎✂ Plain & short plain words, held to 2 or 3 sentences +// ◷ Status asks where things stand and where Claude left off // The two Plain buttons send a built in prompt, or run the skill the plain_skill // setting names. From the keyboard: /answer-buttons:shorter and -// /answer-buttons:plain-short (commands/), and that skill's own command. +// /answer-buttons:plain-short and /answer-buttons:status (commands/), and that +// skill's own command. Every prompt is English, whatever language the chat is in. import type { Register } from 'claude-code' @@ -26,6 +28,9 @@ export const SHORTER_PROMPT = 'Make your last answer shorter: lead with what it means for me in 2 or 3 sentences, ' + 'keep any yes/no question and any copyable draft exactly as they were, drop the rest. ' + 'Reply in the same language as before.' +export const STATUS_PROMPT = + 'Where are we? Give me the current status in a few lines: what is done, what is in progress, ' + + 'where you left off, anything waiting on me, and the next step. Keep it short.' // The final text of the last main conversation answer, and whether a turn is // running. Module variables: a hot reload clears them, which only hides the @@ -81,6 +86,9 @@ export const register: Register = (on, options) => { + ) diff --git a/plugins/answer-buttons/tests/answer-buttons.test.ts b/plugins/answer-buttons/tests/answer-buttons.test.ts index c88c3a2..5a07644 100644 --- a/plugins/answer-buttons/tests/answer-buttons.test.ts +++ b/plugins/answer-buttons/tests/answer-buttons.test.ts @@ -1,6 +1,6 @@ import { expect, test } from 'claude-code/testing' // @ts-ignore: the test kit loads .tsx paths; tsc wants allowImportingTsExtensions -import { isLastBlock, PLAIN_ARGS, PLAIN_PROMPT, PLAIN_SHORT_ARGS, PLAIN_SHORT_PROMPT, SHORTER_PROMPT } from '../hooks/register.tsx' +import { isLastBlock, PLAIN_ARGS, PLAIN_PROMPT, PLAIN_SHORT_ARGS, PLAIN_SHORT_PROMPT, SHORTER_PROMPT, STATUS_PROMPT } from '../hooks/register.tsx' const ANSWER = 'First block.\n\nLast block of the answer.' @@ -37,7 +37,7 @@ test('isLastBlock matches only the block that ends the answer', () => { expect(isLastBlock('anything', '')).toBe(false) }) -test('the last block gets all three buttons, and each sends its prompt when no skill is set', async ($, on) => { +test('the last block gets all four buttons, and each sends its prompt when no skill is set', async ($, on) => { const submitted: string[] = [] engine(on, submitted) await $.turn.start({ turnId: 't1', text: 'q' }) @@ -50,9 +50,10 @@ test('the last block gets all three buttons, and each sends its prompt when no s await ui.press({ key: 'plain' }) await ui.press({ key: 'shorter' }) await ui.press({ key: 'plain-short' }) + await ui.press({ key: 'status' }) await ui.unmount() } - expect(submitted).toEqual([PLAIN_PROMPT, SHORTER_PROMPT, PLAIN_SHORT_PROMPT, PLAIN_PROMPT, SHORTER_PROMPT, PLAIN_SHORT_PROMPT]) + expect(submitted).toEqual([PLAIN_PROMPT, SHORTER_PROMPT, PLAIN_SHORT_PROMPT, STATUS_PROMPT, PLAIN_PROMPT, SHORTER_PROMPT, PLAIN_SHORT_PROMPT, STATUS_PROMPT]) }) test('an earlier block gets no buttons', async ($, on) => {