socratic-mentor

socratic-mentor is an agent for coding agents 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

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

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.

agentmods
npx agentmods add agents/drag88/claude-dev-framework/socratic-mentor
Clone the repo
git clone --depth 1 https://github.com/drag88/claude-dev-framework

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00028 $0.01283
Opus 5 $0.00014 $0.00642
Sonnet 5 $0.00006 $0.00257
Haiku 4.5 $0.00003 $0.00128

Measured 3d ago against content hash 18cc802a71dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,283 once invoked, about $0.0001 per session on Opus 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.