Home / Commands / alirezarezvani/claude-skills

cs-reflect

/cs-reflect β€” Mid-conversation reflection: halts current thread, re-reads full conversation from original goal forward, runs 5-dimension analysis. Slash command for Claude Code, Codex CLI, Gemini CLI.

commandLicense: MIT Source: alirezarezvani/claude-skills

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/cs-reflect.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/docs/commands/cs-reflect.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/cs-reflect.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/docs/commands/cs-reflect.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source β†—

---
title: "/cs-reflect β€” Slash Command for AI Coding Agents"
description: "/cs-reflect β€” Mid-conversation reflection: halts current thread, re-reads full conversation from original goal forward, runs 5-dimension analysis. Slash command for Claude Code, Codex CLI, Gemini CLI."
---

# /cs-reflect

<div class="page-meta" markdown>
<span class="meta-badge">:material-console: Slash Command</span>
<span class="meta-badge">:material-github: <a href="https://github.com/alirezarezvani/2-claude-skills/tree/main/productivity/reflect/commands/cs-reflect.md">Source</a></span>
</div>


**Command:** `/cs-reflect`

The `cs-reflect` persona pauses execution and honestly reassesses where the conversation has been heading.

## When to Run

- Conversation has gone 10+ turns deep on implementation details without strategic check-in
- Repeated dead-ends or pivots within a short span
- You suspect the framing has drifted from the original goal
- You want a bias check before committing to next steps
- Pre-decision sanity check on a substantive direction change

## When NOT to Run

- Quick lookups or factual questions
- Conversations <5 turns deep (not enough to reflect on)
- Mid-task when you just need execution, not reassessment

## What You Get

A flowing-prose reassessment covering:

1. **Macro Perspective** β€” original goal vs current direction; drift detection
2. **Gap Analysis** β€” unverified assumptions, missing stakeholders, skipped constraints, dismissed alternatives
3. **Reflective Inquiry** β€” right problem vs adjacent easier one? Simpler path overcomplicated? Harder valuable path avoided?
4. **Bias Check** β€” confirmation / sunk cost / anchoring / complexity / recency
5. **Contextual Alignment** β€” does direction serve goals + best use of time

Closing with **one of three recommendations**:

- **Continue** β€” and why (specific evidence)
- **Pivot to {direction}** β€” and what to drop
- **Pause for {question}** β€” and which question to answer first

## Trigger Phrases (auto-invoke without /cs:)

**Explicit:**
- "reflect"
- "take a step back" / "step back"
- "zoom out"
- "are we missing something"
- "bigger picture"
- "what are we missing"
- "let's pause"
- "sanity check this"
- "are we on track"
- "are we overthinking this"
- "forest for the trees"

**Implicit (no phrase needed):**
- 10+ turns of implementation detail without strategic check-in
- User shows signs of frustration or stuck-ness
- Repeated dead-ends or pivots within a short span

## Discipline

- **Re-read FULL conversation** β€” from original goal forward, not just recent turns
- **Honest output** β€” no manufactured problems when path is solid; specific reasoning when validating
- **Flowing prose** β€” no headers, no bullet lists
- **Specific evidence** β€” anchor every observation to specific conversation moments
- **Closing recommendation mandatory** β€” Continue / Pivot / Pause every time
- **Low-intake** β€” max 1 optional clarifier (only when context is too thin)
- **No name references** β€” generic second-person throughout

## Workflow

```bash
# When triggered, the skill:
# 1. Halts current thread (no continuation of the in-progress task)
# 2. Re-reads full conversation from original goal
# 3. Runs 5-dimension analysis in head
# 4. Delivers flowing-prose reassessment

# Optional pre-flight: scan for bias patterns + depth signals
python ${CLAUDE_PLUGIN_ROOT}/skills/reflect/scripts/conversation_depth_analyzer.py --conversation /tmp/transcript.txt
python ${CLAUDE_PLUGIN_ROOT}/skills/reflect/scripts/bias_pattern_detector.py --conversation /tmp/transcript.txt

# Post-flight: validate output meets discipline
python ${CLAUDE_PLUGIN_ROOT}/skills/reflect/scripts/directional_recommendation_validator.py --output /tmp/output.txt
```

## Stop Conditions

- Reflection complete + closing recommendation delivered β†’ done
- Context too thin β†’ 1 clarifying question, then run
- User says "stop reflecting" β†’ drop back to task immediately

## Anti-Patterns Rejected

- Hardcoded user names or specific domain references
- Structured-report output (headers, bullets) when prose is required
- Manufactured problems when things are actually fine
- Vague reassurance ("looks good!") instead of specific reasoning
- Reassessing only recent turns instead of the full conversation
- Skipping the closing directional recommendation

## Related

- Agent: [`cs-reflect`](https://github.com/alirezarezvani/claude-skills/tree/main/productivity/reflect/agents/cs-reflect.md)
- Skill: [`reflect`](https://github.com/alirezarezvani/claude-skills/tree/main/productivity/reflect/skills/reflect/SKILL.md)
- Source spec: `megaprompts/02-reflect-megaprompt.md` (maintainer-local draft spec β€” gitignored, not in the public repo)
- Sibling: `/cs-capture` (productivity, brain-dump organizer)
- Adjacent (different shape): `/cs-grill-me`, `/cs-grill-with-docs`

---

**Version:** 1.0.0
**Source:** Path-B direct conversion of `megaprompts/02-reflect-megaprompt.md`