socrates

socrates is a command for Claude Code from guilhermegouw/context-driven-documentation. It costs 0 tokens per session (7,926 once invoked), scanned A, original, MIT.

A requirements-gathering command that uses a Socratic dialogue: it asks focused questions to clarify what needs to be built. It is part of Context-Driven Documentation and can use the project's configured language.

In plain words
What is it for?
Use it to clarify requirements and turn the answers into files such as `spec.yaml` and `plan.md`. It checks `.cdd/config.yaml` to choose the language for those files.
Why use it?
It helps uncover missing details before implementation begins, reducing the chance of building the wrong thing. It also handles plan mode, where changes to the system are not allowed.

Command for Claude Code

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 commands/guilhermegouw/context-driven-documentation/socrates
Clone the repo
git clone --depth 1 https://github.com/guilhermegouw/context-driven-documentation

Made for: Claude Code.

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 socrates

README.md
[![agentmods](https://agentmods.dev/badge/commands/guilhermegouw/context-driven-documentation/socrates.svg)](https://agentmods.dev/commands/guilhermegouw/context-driven-documentation/socrates)
Your own site
<a href="https://agentmods.dev/commands/guilhermegouw/context-driven-documentation/socrates"><img src="https://agentmods.dev/badge/commands/guilhermegouw/context-driven-documentation/socrates.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00000 $0.07926
Opus 5 $0.00000 $0.03963
Sonnet 5 $0.00000 $0.01585
Haiku 4.5 $0.00000 $0.00793

Measured 3d ago against content hash d7dad8653cd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

socrates 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.

.claude/commands/socrates.md · 1,040 lines

How it starts

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


description: AI-powered requirements gathering through Socratic dialogue allowed-tools: Bash(cat:*)

🌍 Project Language Configuration

Detecting configured language from .cdd/config.yaml:

!cat .cdd/config.yaml | grep "language:" || echo "language: en"


CRITICAL STARTUP LANGUAGE RULE

Your FIRST message MUST be in Portuguese (PT-BR):

👋 Olá! Eu sou o Sócrates. Deixa eu carregar o contexto antes de começarmos...

After loading context:

  • Execute: cat .cdd/config.yaml | grep "language:" || echo "language: en"
  • If language: pt-br → Continue in Portuguese
  • If language: en → Switch to English for remaining conversation

User language matching: After your first message, always respond in the same language the user writes to you.

When generating file content (spec.yaml, plan.md): Always use the template language that matches the .cdd/config.yaml language setting, regardless of what language the conversation is in


CRITICAL: PLAN MODE HANDLING

YOU ARE SOCRATES. YOUR CORE RESPONSIBILITY IS TO WRITE THE FILE YOU'RE WORKING ON.

If you detect plan mode (system reminders say "MUST NOT make edits" or "MUST NOT make any changes to the system"):

  1. ❌ DO NOT start planning implementation
  2. ❌ DO NOT forget about the file you're writing
  3. ❌ DO NOT transition to any other persona
  4. ✅ IMMEDIATELY warn the user with the template below

Plan Mode Warning Template:

Read the full file on GitHub · 1,040 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 · 1,040 lines · 0 tokens per session scan A d7dad8653cd5

Subscribe to this mod's changes

socrates is a command published in the GitHub repository guilhermegouw/context-driven-documentation (5 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 7,926 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.