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.
Implementação
2 comandosConstruir uma funcionalidade nova ou alterar código existente com agentes especialistas.
/dr:changeModify and alter existing code, features, or components with intelligent change detection and tracking/dr:implementImplement new features or change existing code, orchestrated end-to-end by subagents (plan, implement, test, review)
Planejamento e execução
8 comandosPlanejar tarefas complexas e executar checklists com agentes em paralelo.
/dr:executeExecute tasks from TaskChecklist using parallel subagent dispatch/dr:fast-executeFast execution of TaskChecklist tasks in batches: one agent runs related tasks in a single pass without delaying their dependents/dr:planInteractive planning - agent-led interview in 2-8 question cycles, then the task plan (__TaskPlan.md, __TaskChecklist.json, agents assigned) built from the decisions/dr:spawnBreakdown tasks and dispatch parallel specialist agents/dr:plan:autoAutonomous planning - no questions, the planner assumes open decisions and lists them in the plan - DOCUMENTATION ONLY/dr:plan:deep-planDeep planning with code exploration - attempts to plan first, questions emerge from gaps/dr:plan:feature-planPlan large-scale features with architectural analysis - PLAN & DOCUMENTATION ONLY/dr:plan:interactiveInteractive planning - agent-led interview in 2-8 question cycles, then the task plan (__TaskPlan.md, __TaskChecklist.json, agents assigned) built from the decisions
Git
13 comandosCommit, branch, push, PR e o ciclo completo de publicação.
/dr:git:branchCreate or switch git branches safely with pending changes protection/dr:git:commitIntelligent git commit with conventional format and auto-staging/dr:git:create-repoCreate a new remote repository, selecting account, name, and visibility interactively/dr:git:fix-pr-issuesAutomatically fix issues from PR review comments by delegating to specialized agents/dr:git:mergeGit merge with conflict resolution and strategy selection/dr:git:prCreate structured pull request with auto-generated description/dr:git:pushGit push with remote tracking, upstream setup, and safety checks/dr:git:rebaseGit rebase with safety checks and conflict resolution guidance/dr:git:restoreDiscard uncommitted changes with smart file resolution and safety checks/dr:git:revertRevert commits with smart resolution from descriptions, messages, or context/dr:git:setupUnified Git setup: identity, gh CLI, SSH, .gitignore, and DR_AI git preferences/dr:git:shipComplete git cycle: commit, push, and create pull request/dr:git:stashGit stash operations for saving and restoring work-in-progress
Correção e diagnóstico
4 comandosDiagnosticar problemas de código, build, performance ou UI e aplicar a correção.
/dr:debugDiagnose issues in code, builds, or system behavior and fix them after user confirmation/dr:fixExecute systematic diagnosis with Sequential analysis and fix bug/dr:fix:errorDiagnose error message root cause and apply fix/dr:fix:parallelFix multiple bugs in parallel using specialized subagents
Revisão
6 comandosRevisar mudanças pendentes, branches, PRs e o trabalho de uma task.
/dr:reviewReview code with flexible context specification and optional parallel fixes via specialized agents/dr:review:branchReview all changes in a branch compared to base and fix issues after confirmation/dr:review:changesReview pending git changes (staged and unstaged) and fix issues after confirmation/dr:review:featureReview a complete feature across related files holistically and fix issues after confirmation/dr:review:prReview Pull Request with parallel quality analysis, optional inline comments, and fixes after confirmation/dr:review:taskReview a task implementation against its plan, checklist, and acceptance criteria, fixing issues after user confirmation
Documentação
10 comandosGerar 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 comandosAnalisar 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 comandosRefatorar 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 comandosGerar 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 comandosCriar, 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 comandosRodar 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 comandosPré-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 comandosSessõ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 comandosPerguntar, explicar e resumir atividade em linguagem natural.
/dr:talk:activity-summaryAutomatically generates a comprehensive development activity summary by analyzing task records and git history/dr:talk:askAnswer questions about project structure, organization, and documentation without code analysis/dr:talk:explainProvide clear explanations of code, concepts, or system behavior with educational focus/dr:talk:helpDR_AI Commands from the comprehensive guide
Pesquisa
2 comandosPesquisa online com agentes paralelos e síntese estruturada.
/dr:research:deepDeep online research with user interaction, 5-15 parallel agents, and comprehensive analysis/dr:research:quickQuick online research on any topic with 3 parallel agents and concise summary
Conteúdo
3 comandosCriar, 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 comandosConfigurar 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

