socratic-mentor

socratic-mentor is an agent for Claude Code from drag88/claude-dev-framework. It costs 28 tokens per session (1,283 once invoked), scanned A, a copy of socratic-mentor, MIT.

An educational programming guide that helps you discover answers by asking carefully chosen questions. It draws on principles from Clean Code, a book about writing clearer and easier-to-maintain software.

In plain words
What is it for?
Use it to examine code, improve names and functions, and learn ideas such as single responsibility, low coupling, and dependency injection through guided questions.
Why use it?
It helps you understand why a coding practice matters instead of only copying a solution. This can make the knowledge easier to apply in new situations.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cdf plugin — 13 skills, 20 commands, 11 agents, 4 hooks shipped together

Good fit Use it to examine code, improve names and functions, and learn ideas such as single responsibility, low coupling, and dependency injection through guided questions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/drag88/claude-dev-framework/socratic-mentor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/drag88/claude-dev-framework

Made for: Claude Code.

Or install cdf, the plugin that ships this one along with the rest of its 13 skills, 20 commands, 11 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for socratic-mentor

README.md
[![agentmods](https://agentmods.dev/badge/agents/drag88/claude-dev-framework/socratic-mentor/github.svg)](https://agentmods.dev/agents/drag88/claude-dev-framework/socratic-mentor)
Your own site
<a href="https://agentmods.dev/agents/drag88/claude-dev-framework/socratic-mentor"><img src="https://agentmods.dev/badge/agents/drag88/claude-dev-framework/socratic-mentor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for socratic-mentor

Your own site · 80×15
<a href="https://agentmods.dev/agents/drag88/claude-dev-framework/socratic-mentor"><img src="https://agentmods.dev/badge/agents/drag88/claude-dev-framework/socratic-mentor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01283
Opus 5.5 $0.00011 $0.00513
Sonnet 5.5 $0.00006 $0.00257
Haiku 4.5 $0.00003 $0.00128

Measured 1mo ago against content hash 18cc802a71dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

socratic-mentor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to socratic-mentor — 144 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/socratic-mentor.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Socratic Mentor

Identity: Educational guide specializing in Socratic method for programming knowledge

Priority Hierarchy: Discovery learning > knowledge transfer > practical application > direct answers

Core Principles

  1. Question-Based Learning: Guide discovery through strategic questioning rather than direct instruction
  2. Progressive Understanding: Build knowledge incrementally from observation to principle mastery
  3. Active Construction: Help users construct their own understanding rather than receive passive information

Book Knowledge Domains

Clean Code (Robert C. Martin)

Core Principles Embedded:

  • Meaningful Names: Intention-revealing, pronounceable, searchable names
  • Functions: Small, single responsibility, descriptive names, minimal arguments
  • Comments: Good code is self-documenting, explain WHY not WHAT
  • Error Handling: Use exceptions, provide context, don't return/pass null
  • Classes: Single responsibility, high cohesion, low coupling
  • Systems: Separation of concerns, dependency injection

Socratic Discovery Patterns:

naming_discovery:
  observation_question: "What do you notice when you first read this variable name?"
  pattern_question: "How long did it take you to understand what this represents?"
  principle_question: "What would make the name more immediately clear?"
  validation: "This connects to Martin's principle about intention-revealing names..."

function_discovery:
  observation_question: "How many different things is this function doing?"
  pattern_question: "If you had to explain this function's purpose, how many sentences would you need?"
  principle_question: "What would happen if each responsibility had its own function?"
  validation: "You've discovered the Single Responsibility Principle from Clean Code..."

GoF Design Patterns

Pattern Categories Embedded:

  • Creational: Abstract Factory, Builder, Factory Method, Prototype, Singleton
  • Structural: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy
  • Behavioral: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, Visitor

Read the full file on GitHub · 154 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 154 lines · 28 tokens per session scan A 18cc802a71dc

Subscribe to this mod's changes

socratic-mentor is an agent published in the GitHub repository drag88/claude-dev-framework (2 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 1,283 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to socratic-mentor, differing in 144 lines, and is treated as a copy.

Related

Other agents, from other repositories

socratic-mentor

Educational guide specializing in Socratic method for programming knowledge with focus on discovery learning through strategic questioning.

SuperClaude-Org/SuperClaude_Framework · 24 tokens

learning-guide

Teach programming concepts and explain code with focus on understanding through progressive learning and practical examples.

SuperClaude-Org/SuperClaude_Framework · 19 tokens

beamer-translator

Specialist agent for translating Beamer LaTeX slides to Quarto RevealJS. Handles content translation, environment mapping, citation conversion, and formatting. Use as a subagent during the /translate-to-quarto workflow for the actual slide-by-slide translation work.

brycewang-stanford/Auto-Empirical-Research-Skills · 57 tokens

domain-reviewer

Substantive domain review for lecture slides. Template agent — customize the 5 review lenses for your field. Checks derivation correctness, assumption sufficiency, citation fidelity, code-theory alignment, and logical consistency. Use after content is drafted or before teaching.

brycewang-stanford/Auto-Empirical-Research-Skills · 56 tokens

pedagogy-reviewer

Holistic pedagogical review for academic slides. Checks narrative arc, prerequisite assumptions, worked examples, notation clarity, and deck-level pacing. Use after content is drafted.

brycewang-stanford/Auto-Empirical-Research-Skills · 39 tokens

quarto-fixer

Implements fixes from the quarto-critic agent. Applies changes to QMD files, re-renders slides, and verifies fixes. Does NOT make independent decisions — follows critic instructions exactly.

brycewang-stanford/Auto-Empirical-Research-Skills · 42 tokens