Pular para o conteúdo

Comandos do /dr

Compatível com dr3.4.25

Este catálogo lista todos os comandos do plugin, com a descrição original de cada um. Os comandos de uso mais frequente têm página própria com exemplos e observações — são os que aparecem como link.

Os grupos seguem a função do comando. Comandos da mesma família ficam juntos, com o comando principal à frente dos seus subcomandos: /dr:review abre a lista da Revisão, seguido dos subcomandos em ordem alfabética — /dr:review:branch, /dr:review:changes e os demais.

Comandos por grupo

Os 100 comandos do /dr, agrupados como no guia do plugin. Comando com página aberta vira link; os demais estão descritos aqui mesmo.

Correção e diagnóstico

4 comandos

Diagnosticar problemas de código, build, performance ou UI e aplicar a correção.

Revisão

6 comandos

Revisar mudanças pendentes, branches, PRs e o trabalho de uma task.

Documentação

10 comandos

Gerar README, changelog, docs técnicas, índices e diagramas do projeto.

  • /dr:diagramCreate Excalidraw diagrams to visualize workflows, architectures, or concepts
  • /dr:doc:apiDocument an API endpoint or route with request/response specs, middleware, and integration details
  • /dr:doc:change-logCreate or update CHANGELOG file from git commit history
  • /dr:doc:code-summaryAnalyze project code and docs to create a development-focused context document
  • /dr:doc:featuresGenerate functional feature documentation for non-technical audiences
  • /dr:doc:full-architectureGenerate full repository knowledge base
  • /dr:doc:project-indexGenerate comprehensive project documentation and knowledge base
  • /dr:doc:readmeCreate or update the project README.md with structured content
  • /dr:doc:taskDocument a completed task with technical details extracted from code and task artifacts
  • /dr:doc:tech-documentGenerate technical documentation for components, APIs, and modules with architecture details

Análise

6 comandos

Analisar qualidade, segurança, performance e cobertura de testes.

  • /dr:analysis:code-analyzeAnalyze code quality, security, performance with specialized agents
  • /dr:analysis:performanceAnalyze code performance bottlenecks and optimization opportunities
  • /dr:analysis:project-structureAnalyze and document the project directory structure and architecture
  • /dr:analysis:securityAnalyze code security with specialized agents
  • /dr:analysis:standardsAnalyze code adherence to style guides and project conventions
  • /dr:analysis:test-coverageAnalyze test coverage and identify untested code

Refatoração

5 comandos

Refatorar funções, arquivos, classes, módulos e features.

  • /dr:refactor:classRefactor one or more classes applying SOLID principles
  • /dr:refactor:featureRefactor a complete feature across multiple files and modules
  • /dr:refactor:fileRefactor one or more files for improved readability, performance, or patterns
  • /dr:refactor:functionRefactor one or more functions to reduce complexity and improve clarity
  • /dr:refactor:moduleRefactor one or more modules/directories to improve structure and cohesion

Criação

5 comandos

Gerar páginas, componentes, módulos, APIs e scripts no padrão do projeto.

  • /dr:new:apiScaffold a new API endpoint or route with validation and error handling
  • /dr:new:componentScaffold a new UI component with optional test and story files
  • /dr:new:moduleScaffold a new module or package with directory structure, types, and barrel exports
  • /dr:new:pageScaffold a new page or route matching the project's framework conventions
  • /dr:new:scriptScaffold a new utility script with proper boilerplate for the project's language

Testes

5 comandos

Criar, melhorar e rodar testes, incluindo testes de UI.

  • /dr:test:create-testsGenerate comprehensive tests for existing code with smart scenario detection
  • /dr:test:improve-testsEnhance existing tests by improving coverage, assertions, and readability
  • /dr:test:run-testsExecute tests with intelligent runner detection and formatted results
  • /dr:test:taskTest a task implementation: run the tests covering its changed files, create missing ones, and triage failures
  • /dr:test:uiTest UI interactively using Playwright MCP browser automation

Execução de scripts

8 comandos

Rodar dev, build, lint, testes e typecheck com saída resumida.

  • /dr:run:buildRun project build script with auto-detected package manager and structured error output
  • /dr:run:curlExecute HTTP requests with formatted output — JSON pretty-print, status codes, and headers
  • /dr:run:devStart the project development server with auto-detected package manager and URL display
  • /dr:run:formatRun project code formatter (Prettier, Biome, ESLint --fix) with auto-detection and structured output
  • /dr:run:lintRun project linter with grouped, human-readable output and optional auto-fix
  • /dr:run:previewRun project preview server after build with auto-detected package manager and URL display
  • /dr:run:testRun project test suite with auto-detected test runner and structured pass/fail summary
  • /dr:run:typecheckRun TypeScript type checking without emitting files, grouping errors by file with a structured summary

Contexto do projeto

9 comandos

Pré-computar os artefatos da base em .dr_ai/codebase/ e carregar contexto.

  • /dr:codebase-mapPre-compute codebase documentation artifacts (STACK, ARCHITECTURE, CONVENTIONS, STRUCTURE, TESTING, INTEGRATIONS, VISUAL) under .dr_ai/codebase/ with SHA-256 staleness tracking
  • /dr:context-loadLoad and analyze project context, configurations, and dependencies
  • /dr:codebase-map:architecturePre-compute ARCHITECTURE.md (layers, data flow, boundaries, design decisions) under .dr_ai/codebase/ with SHA-256 staleness tracking
  • /dr:codebase-map:conventionsPre-compute CONVENTIONS.md (naming, imports, module boundaries, error handling) under .dr_ai/codebase/ with SHA-256 staleness tracking
  • /dr:codebase-map:integrationsPre-compute INTEGRATIONS.md (external services, env vars scoped by where they are defined) under .dr_ai/codebase/ with SHA-256 staleness tracking
  • /dr:codebase-map:stackPre-compute STACK.md (runtimes per layer, canonical library choices, toolchain constraints) under .dr_ai/codebase/ with SHA-256 staleness tracking
  • /dr:codebase-map:structurePre-compute STRUCTURE.md (per-layer trees, where new code goes, shared resources) under .dr_ai/codebase/ with SHA-256 staleness tracking
  • /dr:codebase-map:testingPre-compute TESTING.md (test command, framework, suites, parallel-safety analysis) under .dr_ai/codebase/ with SHA-256 staleness tracking
  • /dr:codebase-map:visualPre-compute VISUAL.md (design system, color/typography/spacing tokens, component primitives) under .dr_ai/codebase/ with SHA-256 staleness tracking

Worktrees

6 comandos

Sessões Claude paralelas em worktrees irmãs do repositório.

  • /dr:worktree:cleanupBulk-remove worktrees whose branches are merged and prune orphan metadata
  • /dr:worktree:configInteractively generate or update .worktreeinclude with essential gitignored files
  • /dr:worktree:listList git worktrees with branch, ahead/behind, status and Claude state
  • /dr:worktree:removeSafely remove a git worktree with checks for dirty state and unpushed commits
  • /dr:worktree:spawnSpawn 1-3 parallel Claude sessions in sibling git worktrees
  • /dr:worktree:statusDetailed status of a single worktree: diff summary, files, CI, Claude state

Conversa

4 comandos

Perguntar, explicar e resumir atividade em linguagem natural.

Pesquisa

2 comandos

Pesquisa online com agentes paralelos e síntese estruturada.

Conteúdo

3 comandos

Criar, revisar e corrigir textos do produto.

  • /dr:content:createCreate compelling text content and apply it to project files
  • /dr:content:fixFix text content issues using review reports or automatic detection
  • /dr:content:reviewReview text content across directories for grammar, spelling, and quality issues

Configuração

4 comandos

Configurar regras, preferências, style guides e o settings.json do projeto.

  • /dr:config:basicConfigure minimal settings in .claude/settings.local.json
  • /dr:config:rulesConfigure the project rules
  • /dr:config:settingsConfigure the project settings
  • /dr:config:settings:setupInteractive wizard to create or update .dr_ai/settings.json