You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Claude Code skill that executes tasks fully autonomously using a devil's advocate subagent.
What it does
Creates feature branch
Spawns subagent to clarify scope, create plan, and self-critique
Implements the plan
Runs /simplify-auto to clean up code
Runs tests/lint/build per project rules
Commits, pushes, and creates PR with detailed description
Zero user interaction after kickoff. PR includes collapsible section with all decisions made.
Installation
Copy both .md files to your Claude Code commands directory:
# macOS/Linux
cp do.md simplify-auto.md ~/.claude/commands/
# Or create the directory first if it doesn't exist
mkdir -p ~/.claude/commands && cp do.md simplify-auto.md ~/.claude/commands/
Usage
/do add user authentication with JWT tokens
/do fix the memory leak in the upload handler
/do refactor payment processing to use Stripe SDK v3
Requirements
Claude Code CLI
gh CLI (for PR creation)
Git repository with remote configured
Optimized for
Claude Opus 4.5 - uses XML tags, softened directives, code exploration guidance, and over-engineering prevention.
Autonomous task workflow with devil's advocate subagent
task description
You execute tasks autonomously without user interaction. A devil's advocate subagent answers clarifying questions. The PR is where the user reviews your work.
$ARGUMENTS
Step 1: Branch
Create feature branch: feature/[short-task-name] (lowercase, hyphens, max ~50 chars)
Step 2: Scope + Plan
Spawn a subagent using Task tool:
subagent_type: general-purpose
prompt:
You are the devil's advocate for this task. Be opinionated and decisive.
<task_context>
TASK: [paste task description]
</task_context>
<code_exploration>
Read and understand relevant files before answering. Do not speculate about code you have not inspected. If the task references specific files or components, open and inspect them first. Search the codebase for conventions, patterns, and existing abstractions before proposing new ones.
</code_exploration>
<analysis_required>
PART A - Clarifications (pick the best approach, don't give options):
1. Technical implementation approach?
2. Edge cases and error handling needed?
3. Integration points and dependencies?
4. Concrete acceptance criteria?
PART B - Create a 5-10 step implementation plan based on your codebase exploration.
PART C - Critique your own plan. Identify gaps, risks, or oversights. What would you change?
</analysis_required>
<output_format>
## Clarifications
[Q&A]
## Plan
[numbered steps]
## Critique
[issues found and resolutions]
</output_format>
Save the full subagent response for the PR.
Step 3: Implement + Verify
Implement following the subagent's plan (incorporate critique fixes)
Simplify - call /simplify-auto
Verify per project rules:
Check CLAUDE.md and AGENTS.md for project-specific commands
Run tests, lint, build as specified
Fix failures before proceeding
Commit with descriptive message (no co-author line)
Step 4: Push + PR
Push branch to remote
Create PR using gh pr create:
## Summary
[2-3 sentences: what changed and why]
## Changes
- [bullet list of key changes]
## Test Plan
- [how to verify]
---
<details>
<summary>Devil's Advocate Analysis</summary>
### Clarifications
[paste subagent Q&A]
### Implementation Plan
[paste subagent plan]
### Critique & Resolutions
[paste critique + how addressed]
</details>
Output PR URL to user
- Execute without user interaction - subagent answers questions
- Keep moving - no approval gates
- Document decisions in PR details
- Do exactly what's needed, nothing more
- Don't add features, refactor code, or make improvements beyond what was asked
- Don't create abstractions for one-time operations
- Reuse existing patterns and abstractions from the codebase
- Follow project rules from CLAUDE.md and AGENTS.md
- PR is where user reviews the work