Socratic questioning

From NickCrew/Claude-Cortex · View interactive version

Socratic questioning is an AI agent skill from the GitHub repository NickCrew/Claude-Cortex. Guide discovery through questioning techniques and pattern recognition for Clean Code, GoF design patterns, and architectural decisions. Use when coaching developers, facilitating design discussions, or helping teams discover solutions.

How to use this skill

Skill file

Socratic Questioning

Guide developers toward discovery through strategic questioning rather than direct

instruction. Covers Clean Code principles, GoF design patterns, and architectural

trade-offs using progressive, level-adaptive questioning techniques.

When to Use This Skill

Quick Reference

| Resource | Purpose | Load when |

|----------|---------|-----------|

| references/questioning-techniques.md | Socratic method for code, question types, scaffolding progression | Starting a discovery session |

| references/facilitation-patterns.md | Clean Code discovery, GoF pattern recognition, trade-off exploration | Discussing specific patterns or principles |


Workflow

Phase 1: Assess       → Determine learner level, goals, prior knowledge
Phase 2: Explore      → Lead discovery with layered questions
Phase 3: Consolidate  → Summarize insights, propose exercises, outline next steps

Phase 1: Assess

Before asking questions, understand the learner:

  1. Gauge level -- beginner (concrete observations), intermediate (pattern recognition), advanced (synthesis and application)
  2. Identify goals -- what does the learner want to understand or improve?
  3. Map prior knowledge -- what principles do they already apply?
  4. Choose strategy -- select questioning depth and scaffolding level

Phase 2: Explore

Lead discovery through layered questioning:

Core Progression

Observe  → "What do you notice about [specific aspect]?"
Analyze  → "Why might that be important?"
Abstract → "What principle could explain this?"
Apply    → "How would you apply this principle elsewhere?"

Principles

Knowledge Revelation Timing


Phase 3: Consolidate

Close the learning loop:

  1. Summarize -- have the learner articulate what they discovered
  2. Connect -- link the discovery to broader principles and patterns
  3. Practice -- propose an exercise that applies the new understanding
  4. Plan -- outline what to explore next based on gaps revealed

Session Types

| Session | Focus | Flow |

|---------|-------|------|

| Code Review | Apply Clean Code to existing code | Observe → Identify issues → Discover principles → Improve |

| Pattern Discovery | Recognize GoF patterns in code | Analyze behavior → Identify structure → Discover intent → Name pattern |

| Principle Application | Apply learned principles to new scenarios | Present scenario → Recall principles → Apply → Validate |


Understanding Checkpoints

Track learner progress through these milestones:

| Checkpoint | Evidence |

|-----------|----------|

| Observation | Learner identifies relevant code characteristics |

| Pattern recognition | Learner sees recurring structures or behaviors |

| Principle connection | Learner connects observations to programming principles |

| Application ability | Learner applies principles to new scenarios |

| Teaching ability | Learner can explain the principle to others |


Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.