doctor

doctor is a command for Claude Code from linofcp007/advogado-pt. It costs 33 tokens per session (641 once invoked), scanned A, original, MIT.

A command that checks whether the advogado-pt legal-assistance installation is working. It examines Node.js, the built MCP server, the command-line tool, and a sample MCP tool call.

In plain words
What is it for?
It helps verify installation, build the MCP server when needed, validate the command-line configuration, and test that the server’s tools answer.
Why use it?
It identifies missing builds, incompatible Node.js versions, unavailable commands, or a server that does not respond, then reports how to correct them.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the advogado-pt plugin — 2 skills, 22 commands, 2 hooks, 1 MCP server shipped together

Good fit It helps verify installation, build the MCP server when needed, validate the command-line configuration, and test that the server’s tools answer.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/linofcp007/advogado-pt/doctor
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/linofcp007/advogado-pt

Made for: Claude Code.

Or install advogado-pt, the plugin that ships this one along with the rest of its 2 skills, 22 commands, 2 hooks, 1 MCP server.

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 doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/linofcp007/advogado-pt/doctor/github.svg)](https://agentmods.dev/commands/linofcp007/advogado-pt/doctor)
Your own site
<a href="https://agentmods.dev/commands/linofcp007/advogado-pt/doctor"><img src="https://agentmods.dev/badge/commands/linofcp007/advogado-pt/doctor/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 doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/linofcp007/advogado-pt/doctor"><img src="https://agentmods.dev/badge/commands/linofcp007/advogado-pt/doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 641 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.00033 $0.00641
Opus 5 $0.00016 $0.00320
Sonnet 5 $0.00007 $0.00128
Haiku 4.5 $0.00003 $0.00064

Measured 9d ago against content hash 4a63bdf3b8b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

doctor 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 9d 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.

commands/doctor.md · 27 lines

What it actually says

Ativa a skill advogado-pt e faz um diagnóstico da instalação ($ARGUMENTS, se indicado).

Verifica, por esta ordem, e reporta o que falta:

  1. Node ≥ 18 — corre node --version. Se inferior a 18, avisa que o servidor MCP e o CLI exigem Node 18 ou superior (ver mcp-server/package.jsonengines).
  2. Build do servidor MCP — confirma se mcp-server/dist/index.js existe. Se não existir, instrui: cd mcp-server && npm install && npm run build.
  3. CLI disponível — se cli/advogado-pt.mjs doctor estiver disponível, corre-o; caso contrário usa node cli/advogado-pt.mjs (ajuda) e node cli/advogado-pt.mjs mcp-config claude-code para validar que o caminho do servidor resolve.
  4. Tools MCP respondem — chama uma tool de conteúdo leve, p. ex. listar_areas_juridicas (ou listar_templates), e confirma que devolve resultados. Se falhar, é sinal de que o servidor não está a correr ou não foi compilado (volta ao passo 2).

No fim, apresenta um resumo claro: o que está OK e o que precisa de ser corrigido, com os comandos exatos a executar.

EN: Activate the advogado-pt skill and run an install diagnostic ($ARGUMENTS, if given). Check, in order, and report what is missing:

  1. Node ≥ 18 — run node --version; below 18, warn that the MCP server and CLI require Node 18+ (see mcp-server/package.jsonengines).
  2. MCP server build — confirm mcp-server/dist/index.js exists; if not, instruct cd mcp-server && npm install && npm run build.
  3. CLI available — if cli/advogado-pt.mjs doctor works, run it; otherwise use node cli/advogado-pt.mjs (help) and node cli/advogado-pt.mjs mcp-config claude-code to validate the server path resolves.
  4. MCP tools respond — call a light content tool, e.g. listar_areas_juridicas (or listar_templates), and confirm it returns results; if it fails, the server is not running or not built (back to step 2).

Finally, give a clear summary of what is OK and what needs fixing, with the exact commands to run.

Exemplos · Examples: "as tools do advogado-pt não respondem", "check why the MCP server isn't loading".

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. 9d ago First seen · 27 lines · 33 tokens per session scan A 4a63bdf3b8b0

Subscribe to this mod's changes

doctor is a command published in the GitHub repository linofcp007/advogado-pt (0 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 641 once invoked, about $0.0002 per session on Opus 5. 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.