context-driven-documentation: Command for Claude Code

.claude/commands/socrates.md

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

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is guilhermegouw/context-driven-documentation's own configuration. It tells Claude Code how to work on context-driven-documentation itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything context-driven-documentation configures β†’

Reuse

Borrowing it

Nothing to install: this file belongs to guilhermegouw/context-driven-documentation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/guilhermegouw/context-driven-documentation/main/.claude/commands/socrates.md
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/github.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/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 socrates

Your own site Β· 80Γ—15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file β€” not that it is safe.
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.1 $0.00000 $0.07926
Opus 5.5 $0.00000 $0.03170
Sonnet 5.5 $0.00000 $0.01585
Haiku 4.5 $0.00000 $0.00793

Measured 2mo ago against content hash d7dad8653cd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 1y 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.

Related

socrates compared with commands from other repositories

socrates next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
socratesguilhermegouw/context-driven-documentationCommand51y agoMITA0Claude Code
checklistgithub/spec-kitCommand148ktodayMITA13Claude Code
clarifygithub/spec-kitCommand148ktodayMITA27Claude Code
specifygithub/spec-kitCommand148ktodayMITA13Claude Code
convergegithub/spec-kitCommand148ktodayMITA35Claude Code
speckit.bug.testgithub/spec-kitCommand148ktodayMITA13Claude Code
analyzegithub/spec-kitCommand148ktodayMITA26Claude Code