socratic-review

rysweet/amplihack · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/rysweet/amplihack --skill socratic-review
0 commentsdiscussion
summary

You are initiating a Socratic code review session. Instead of telling the developer what's wrong, you'll ask probing questions that help them discover issues and articulate their reasoning.

skill.md

Socratic Code Review

You are initiating a Socratic code review session. Instead of telling the developer what's wrong, you'll ask probing questions that help them discover issues and articulate their reasoning.

When to Use This Skill

Use Socratic review when:

  • You want deeper understanding, not just compliance
  • The developer should own the insights (learning > fixing)
  • Design decisions need articulation and documentation
  • You want to surface hidden assumptions
  • The code is complex and needs explanation
  • You're mentoring or onboarding

Use traditional review when:

  • Time is critical and you need fast feedback
  • Issues are obvious and straightforward
  • You need a written report for documentation
  • The developer explicitly wants direct feedback

Usage

# Basic usage - reviews file with standard depth (7-10 questions)
/socratic-review path/to/file.py

# Quick review - 3-5 focused questions
/socratic-review path/to/file.py --depth=quick

# Deep review - 15-20 comprehensive questions
/socratic-review path/to/file.py --depth=deep

# Review specific function/class
/socratic-review path/to/file.py --focus="function_name"

# Review a directory
/socratic-review src/auth/

# Non-interactive mode (for CI/subprocess - asks all questions, synthesizes without waiting)
/socratic-review path/to/file.py --non-interactive

# Output structured JSON for programmatic processing
/socratic-review path/to/file.py --non-interactive --output=review.json

# Write insights to DECISIONS.md
/socratic-review path/to/file.py --write-decisions

How It Works

1. Context Analysis

First, I'll analyze the code to understand:

  • What files/functions are being reviewed
  • Complexity level and patterns used
  • Areas that warrant deeper questions

2. Question Selection

Based on the code, I'll select questions from six categories:

  • Design: Why was this approach chosen?
  • Edge Cases: What happens in unusual situations?
  • Clarity: How would you explain this?
  • Philosophy: Does this follow project principles?
  • Failure Modes: What could go wrong?
  • Testing: How do you know it works?

3. Dialogue

I'll ask questions one at a time and wait for your responses:

**Q1** [Category: Design]
Why did you choose to store session data in memory rather than a database?

[WAIT FOR YOUR RESPONSE]

After each answer, I may:

  • Ask a follow-up question if the answer reveals uncertainty
  • Move to the next question if understanding is solid
  • Note insights for the final synthesis

4. Synthesis

After all questions, I'll summarize:

  • Insights Revealed: What became clear through dialogue
  • Assumptions Surfaced: Hidden assumptions that were exposed
  • Recommendations: What should change based on the dialogue
  • Strengths: What you clearly understood well

Depth Levels

Quick (3-5 questions, ~5 min)

Best for:

  • Small bug fixes
  • Simple changes
  • Obvious code

Focus: Highest-risk areas only

Standard (7-10 questions, ~15 min)

Best for:

  • Feature implementations
  • Refactoring
  • Typical PRs

Focus: All question categories covered

Deep (15-20 questions, ~30 min)

Best for:

  • Security-sensitive code
  • Core infrastructure
  • Architectural changes

Focus: Comprehensive with follow-ups

Example Session

## Socratic Review: auth/login.py

I'm going to ask you some questions about this login implementation.
There are no wrong answers - the goal is to think through the design together.

---

**Q1** [Category: Design]
I see you're storing session data in an in-memory dictionary.
Why did you choose this approach over Redis or database storage?

> Your answer: "It was simpler to implement and we don't have many users yet."

That makes sense for simplicity. **Follow-up**: What would trigger you to
migrate to a different storage mechanism?

> Your answer: "Um... I guess when we scale? Or add multiple servers?"

**Insight noted**: Migration criteria aren't clearly defined.

---

**Q2** [Category: Edge Case]
What happens if a user's session expires while they're submitting a form?

> Your answer: "I... actually haven't thought about that."

**Insight noted**: Session timeout during active use is unhandled.

---

[... more questions ...]

---

## Review Synthesis

### Insights Revealed

- Session storage is pragmatic but migration path unclear
- Session timeout during active use is unhandled

### Assumptions Surfaced

- Single server deployment assumption
- Users won't have long form submissions

### Recommendations

1. Document session storage migration criteria
2. Add graceful session timeout handling

### Strengths Identified

- Clear awareness of simplicity trade-offs
- Quick recognition of gaps when prompted

Integration with Workflow

Socratic review can replace standard review at Step 11 of DEFAULT_WORKFLOW:

Step 11: Review the Code

Choose review approach:
A) Standard review - Direct feedback from reviewer agent
B) Socratic review - Dialogue with socratic-reviewer agent

Use Socratic when:

- Learning is as important as fixing
- Design decisions need documentation
- Mentoring/onboarding context

Tips for Good Responses

When answering questions:

  1. Be specific: "It handles null by returning empty array" is better than "It should be fine"
  2. Acknowledge uncertainty: "I'm not sure what happens" is valuable - it reveals gaps
  3. Think out loud: Explain your reasoning, not just the answer
  4. Ask for clarification: If a question is unclear, say so

Feedback Loop: How Insights Return

The key question: how do insights from dialogue become actual improvements?

Interactive Mode (Default)

During live dialogue:

  1. Each question and response is captured
  2. Insights are noted inline
  3. At the end, a synthesis is produced
  4. You can use --write-decisions to persist insights to DECISIONS.md

Non-Interactive Mode (CI/Subprocess)

For automated contexts:

  1. All questions are asked rhetorically
  2. Agent analyzes code to identify likely issues
  3. Structured JSON output is produced
  4. Output can be posted to PR comments automatically

Auto-Detection: The skill automatically detects non-interactive contexts (e.g., claude --print, CI pipelines, no TTY) and switches to non-interactive mode. This prevents the frustrating pattern of asking questions, waiting for responses that can't come, and exiting INCONCLUSIVE with no useful output.

Posting to PR

# Run non-interactive review
/socratic-review src/auth/ --non-interactive --output=review.json

# Post results to PR
gh pr comment 123 --body "$(jq -r '.synthesis | "## Socratic Review\n\n### Insights\n" + (.insights_revealed | map("- " + .) | join("\n")) + "\n\n### Recommendations\n" + (.recommendations | map("- [" + .priority + "] " + .description) | join("\n"))' review.json)"

Exit on Inconclusive

If 3 questions go unanswered in interactive mode, the session exits with INCONCLUSIVE status. Socratic review requires willing participation - without it, exit cleanly rather than pretend to do something else. The user can then choose to run traditional /review instead.

What This Is NOT

  • Not a test: There are no wrong answers
  • Not criticism: Questions explore, not judge
  • Not a checklist: Questions adapt to your code and answers
  • Not replacement for tests: This is for understanding, not verification

Underlying Philosophy

This skill is based on:

  1. Feynman Technique: Teaching reveals gaps in understanding
  2. Socratic Method: Questions create deeper insight than answers
  3. Rubber Duck Debugging: Explaining forces thoroughness
  4. Pair Programming: Dialogue catches what solo work misses

Related

  • Agent: ~/.amplihack/.claude/agents/amplihack/specialized/socratic-reviewer.md
  • Traditional Review: /reviewing-code skill for direct feedback
  • Philosophy Check: philosophy-guardian agent for compliance

Execution

When this skill is invoked:

  1. Parse arguments (file path, depth level, focus)
  2. Read and analyze the target code
  3. Invoke the socratic-reviewer agent with context
  4. Facilitate the dialogue, waiting for user responses
  5. Synthesize findings at the end
Task(
  subagent_type="socratic-reviewer",
  prompt="Conduct Socratic review of [file] at [depth] level. Focus on: [areas]"
)

The agent will handle the question flow and wait for responses using [WAIT] markers.

how to use socratic-review

How to use socratic-review on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add socratic-review
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/rysweet/amplihack --skill socratic-review

The skills CLI fetches socratic-review from GitHub repository rysweet/amplihack and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/socratic-review

Reload or restart Cursor to activate socratic-review. Access the skill through slash commands (e.g., /socratic-review) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.533 reviews
  • Ganesh Mohane· Dec 16, 2024

    Solid pick for teams standardizing on skills: socratic-review is focused, and the summary matches what you get after install.

  • Min Martinez· Dec 16, 2024

    socratic-review reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Omar Desai· Nov 7, 2024

    I recommend socratic-review for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Dev Rao· Oct 26, 2024

    Useful defaults in socratic-review — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Piyush G· Sep 21, 2024

    Registry listing for socratic-review matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Zara Chawla· Sep 17, 2024

    We added socratic-review from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Luis Rao· Sep 13, 2024

    Solid pick for teams standardizing on skills: socratic-review is focused, and the summary matches what you get after install.

  • Luis Gill· Sep 5, 2024

    socratic-review reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Soo Singh· Aug 24, 2024

    Registry listing for socratic-review matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Shikha Mishra· Aug 12, 2024

    socratic-review reduced setup friction for our internal harness; good balance of opinion and flexibility.

showing 1-10 of 33

1 / 4