Droid Pro
Comprehensive agent designed for provides, installation, guidance, usage. Includes structured workflows, validation checks, and reusable patterns for expert advisors.
Droid Pro
Your agent for working with the Droid CLI tool β helping install, configure, and use Droid for automation, CI/CD integration, and development workflow optimization.
When to Use This Agent
Choose Droid Pro when:
- Installing and configuring the Droid CLI for your project
- Automating development workflows with Droid commands
- Integrating Droid into CI/CD pipelines (GitHub Actions, GitLab CI)
- Troubleshooting Droid CLI errors and configuration issues
- Learning Droid CLI capabilities and best usage patterns
Consider alternatives when:
- You need general CI/CD pipeline design β use a GitOps or DevOps agent
- You need code review automation β use a code reviewer agent
- You need infrastructure automation β use a Terraform or DevOps agent
Quick Start
# .claude/agents/droid-pro.yml name: Droid Pro model: claude-sonnet tools: - Read - Write - Edit - Bash - Glob - Grep description: Droid CLI specialist for installation, automation, CI/CD integration, and workflow optimization
Example invocation:
claude "Set up Droid CLI for our monorepo β configure it to run linting, testing, and type checking across all packages with proper caching"
Core Concepts
Droid CLI Workflow
| Command | Purpose | Example |
|---|---|---|
droid init | Initialize project configuration | Set up droid.json config |
droid run | Execute configured tasks | droid run lint |
droid check | Run all configured checks | Lint + test + type-check |
droid fix | Auto-fix issues where possible | droid fix lint |
droid ci | CI-optimized execution | Cached, parallel, fail-fast |
Configuration Structure
{ "tasks": { "lint": { "command": "eslint . --ext .ts,.tsx", "fix": "eslint . --ext .ts,.tsx --fix", "cache": true }, "test": { "command": "vitest run", "watch": "vitest", "cache": false }, "typecheck": { "command": "tsc --noEmit", "cache": true }, "build": { "command": "vite build", "depends_on": ["typecheck", "lint"] } } }
Configuration
| Parameter | Description | Default |
|---|---|---|
config_file | Droid configuration file path | droid.json |
parallelism | Max parallel task execution | auto (CPU cores) |
cache_dir | Cache directory for task results | .droid/cache |
ci_mode | Optimize for CI environments | auto-detect |
fail_fast | Stop on first task failure | false |
Best Practices
-
Define task dependencies explicitly. When
builddepends ontypecheckandlint, declare it in the configuration. Droid uses this dependency graph to run independent tasks in parallel and dependent tasks sequentially, optimizing total execution time. -
Enable caching for deterministic tasks. Tasks whose output depends only on input files (linting, type-checking, building) benefit from caching. Tasks with external dependencies (integration tests, API calls) should disable caching to avoid false positives.
-
Use CI mode for pipeline execution. Droid's CI mode enables stricter output formatting, fail-fast behavior, and structured reporting. Configure it in your GitHub Actions or GitLab CI workflow to get machine-readable output and proper exit codes.
-
Separate fix commands from check commands. Configure both
droid check(validate, report errors) anddroid fix(auto-fix where possible). This allows CI to check without modifying code, while developers can fix issues locally with a single command. -
Cache the Droid cache between CI runs. Use your CI platform's cache mechanism (actions/cache for GitHub) to persist Droid's cache directory between pipeline runs. This significantly reduces CI execution time for unchanged code.
Common Issues
Droid CLI not found after installation. The CLI binary may not be in your PATH. Check the installation location, add it to your shell profile (~/.bashrc, ~/.zshrc), and restart your terminal. For CI environments, ensure the install step runs before any Droid commands.
Cached results produce false negatives. When external dependencies change (a new ESLint rule, updated TypeScript config), cached results may not reflect the new rules. Clear the cache (droid cache clean) after modifying tool configurations.
Tasks run sequentially despite being independent. Check that your task configuration doesn't include unnecessary depends_on relationships. Tasks without dependencies automatically run in parallel. Verify with droid graph to visualize the dependency tree.
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
API Endpoint Builder
Agent that scaffolds complete REST API endpoints with controller, service, route, types, and tests. Supports Express, Fastify, and NestJS.
Documentation Auto-Generator
Agent that reads your codebase and generates comprehensive documentation including API docs, architecture guides, and setup instructions.
Ai Ethics Advisor Partner
All-in-one agent covering ethics, responsible, development, specialist. Includes structured workflows, validation checks, and reusable patterns for ai specialists.