mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
* Introduces /aside — a mid-task side conversation command inspired by
Claude Code's native /btw feature. Allows users to ask a question while
Claude is actively working without losing task context or touching any files.
Key behaviors:
- Freezes current task state before answering (read-only during aside)
- Delivers answers in a consistent ASIDE / Back to task format
- Auto-resumes the active task after answering
- Handles edge cases: no question given, answer reveals a blocker,
question implies a task redirect, chained asides, ambiguous questions,
and answers that suggest code changes without making them
* Two documentation inconsistencies fixed:
* Fixed 4 pre-existing lint errors in skills/videodb/ that were causing CI to fail across all PR checks: - api-reference.md: add blockquote continuation line to fix MD028 - capture-reference.md: wrap bare URL to fix MD034 - SKILL.md: wrap bare URL to fix MD034
165 lines
5.8 KiB
Markdown
165 lines
5.8 KiB
Markdown
---
|
|
description: Answer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering.
|
|
---
|
|
|
|
# Aside Command
|
|
|
|
Ask a question mid-task and get an immediate, focused answer — then continue right where you left off. The current task, files, and context are never modified.
|
|
|
|
## When to Use
|
|
|
|
- You're curious about something while Claude is working and don't want to lose momentum
|
|
- You need a quick explanation of code Claude is currently editing
|
|
- You want a second opinion or clarification on a decision without derailing the task
|
|
- You need to understand an error, concept, or pattern before Claude proceeds
|
|
- You want to ask something unrelated to the current task without starting a new session
|
|
|
|
## Usage
|
|
|
|
```
|
|
/aside <your question>
|
|
/aside what does this function actually return?
|
|
/aside is this pattern thread-safe?
|
|
/aside why are we using X instead of Y here?
|
|
/aside what's the difference between foo() and bar()?
|
|
/aside should we be worried about the N+1 query we just added?
|
|
```
|
|
|
|
## Process
|
|
|
|
### Step 1: Freeze the current task state
|
|
|
|
Before answering anything, mentally note:
|
|
- What is the active task? (what file, feature, or problem was being worked on)
|
|
- What step was in progress at the moment `/aside` was invoked?
|
|
- What was about to happen next?
|
|
|
|
Do NOT touch, edit, create, or delete any files during the aside.
|
|
|
|
### Step 2: Answer the question directly
|
|
|
|
Answer the question in the most concise form that is still complete and useful.
|
|
|
|
- Lead with the answer, not the reasoning
|
|
- Keep it short — if a full explanation is needed, offer to go deeper after the task
|
|
- If the question is about the current file or code being worked on, reference it precisely (file path and line number if relevant)
|
|
- If answering requires reading a file, read it — but read only, never write
|
|
|
|
Format the response as:
|
|
|
|
```
|
|
ASIDE: [restate the question briefly]
|
|
|
|
[Your answer here]
|
|
|
|
— Back to task: [one-line description of what was being done]
|
|
```
|
|
|
|
### Step 3: Resume the main task
|
|
|
|
After delivering the answer, immediately continue the active task from the exact point it was paused. Do not ask for permission to resume unless the aside answer revealed a blocker or a reason to reconsider the current approach (see Edge Cases).
|
|
|
|
---
|
|
|
|
## Edge Cases
|
|
|
|
**No question provided (`/aside` with nothing after it):**
|
|
Respond:
|
|
```
|
|
ASIDE: no question provided
|
|
|
|
What would you like to know? (ask your question and I'll answer without losing the current task context)
|
|
|
|
— Back to task: [one-line description of what was being done]
|
|
```
|
|
|
|
**Question reveals a potential problem with the current task:**
|
|
Flag it clearly before resuming:
|
|
```
|
|
ASIDE: [answer]
|
|
|
|
⚠️ Note: This answer suggests [issue] with the current approach. Want to address this before continuing, or proceed as planned?
|
|
```
|
|
Wait for the user's decision before resuming.
|
|
|
|
**Question is actually a task redirect (not a side question):**
|
|
If the question implies changing what is being built (e.g., `/aside actually, let's use Redis instead`), clarify:
|
|
```
|
|
ASIDE: That sounds like a direction change, not just a side question.
|
|
Do you want to:
|
|
(a) Answer this as information only and keep the current plan
|
|
(b) Pause the current task and change approach
|
|
```
|
|
Wait for the user's answer — do not make assumptions.
|
|
|
|
**Question is about the currently open file or code:**
|
|
Answer from the live context. If the file was read earlier in the session, reference it directly. If not, read it now (read-only) and answer with a file:line reference.
|
|
|
|
**No active task (nothing in progress when `/aside` is invoked):**
|
|
Still use the standard wrapper so the response shape stays consistent:
|
|
```
|
|
ASIDE: [restate the question briefly]
|
|
|
|
[Your answer here]
|
|
|
|
— Back to task: no active task to resume
|
|
```
|
|
|
|
**Question requires a long answer:**
|
|
Give the essential answer concisely, then offer:
|
|
```
|
|
That's the short version. Want a deeper explanation after we finish [current task]?
|
|
```
|
|
|
|
**Multiple `/aside` questions in a row:**
|
|
Answer each one in sequence. After the last answer, resume the main task. Do not lose task state across a chain of asides.
|
|
|
|
**Aside answer implies a code change is needed:**
|
|
Note the change needed but do not make it during the aside:
|
|
```
|
|
ASIDE: [answer]
|
|
|
|
📝 Worth fixing: [what should be changed]. I'll flag this after the current task unless you want to address it now.
|
|
```
|
|
|
|
**Question is ambiguous or too vague:**
|
|
Ask one clarifying question — the shortest question that gets the information needed to answer. Do not ask multiple questions.
|
|
|
|
---
|
|
|
|
## Example Output
|
|
|
|
```
|
|
User: /aside what does fetchWithRetry() actually do?
|
|
|
|
ASIDE: what does fetchWithRetry() do?
|
|
|
|
fetchWithRetry() (src/api/retry.ts:12) attempts the request up to 3 times with
|
|
exponential backoff (250ms → 500ms → 1s). It only retries on 5xx responses and
|
|
network errors — 4xx errors are treated as final and not retried.
|
|
|
|
— Back to task: refactoring the auth middleware in src/middleware/auth.ts
|
|
```
|
|
|
|
```
|
|
User: /aside is the approach we're taking thread-safe?
|
|
|
|
ASIDE: is the current approach thread-safe?
|
|
|
|
No — the shared cache object in src/cache/store.ts:34 is mutated without locking.
|
|
Under concurrent requests this is a race condition. It's low risk in a single-process
|
|
Node.js server but would be a real problem with worker threads or clustering.
|
|
|
|
⚠️ Note: This could affect the feature we're building. Want to address this now or continue and fix it in a follow-up?
|
|
```
|
|
|
|
---
|
|
|
|
## Notes
|
|
|
|
- Never modify files during an aside — read-only access only
|
|
- The aside is a conversation pause, not a new task — the original task must always resume
|
|
- Keep answers focused: the goal is to unblock the user quickly, not to deliver a lecture
|
|
- If an aside sparks a larger discussion, finish the current task first unless the aside reveals a blocker
|
|
- Asides are not saved to session files unless explicitly relevant to the task outcome
|