Skip to content

feat: add ./scripts/ai fix <issue#> command#1344

Merged
svarlamov merged 1 commit into
mainfrom
tooling/ai-fix-issue
May 12, 2026
Merged

feat: add ./scripts/ai fix <issue#> command#1344
svarlamov merged 1 commit into
mainfrom
tooling/ai-fix-issue

Conversation

@svarlamov
Copy link
Copy Markdown
Member

@svarlamov svarlamov commented May 12, 2026

Summary

  • Adds ./scripts/ai fix <issue#> subcommand that automates the full lifecycle of fixing a GitHub issue
  • Creates a fix/<issue>-<timestamp> branch on a new worktree from origin/main
  • Launches Claude in --dangerously-skip-permissions mode with a comprehensive prompt instructing it to:
    1. Fetch and understand the issue via gh
    2. Reproduce/verify the bug
    3. Fix using TDD (write failing test, implement, confirm passing)
    4. Run lint and fmt
    5. Commit, push, create a PR
    6. Iteratively monitor CI and address review feedback until green

Test plan

  • python3 scripts/ai fix --help shows correct usage
  • python3 scripts/ai fix 999999999 gives clear error for non-existent issue
  • Python syntax validated via ast.parse
  • task lint and task fmt pass clean

🤖 Generated with Claude Code


Open in Devin Review

Adds a new subcommand that creates a worktree from origin/main on a
fix/<issue>-<timestamp> branch and launches Claude with a pre-filled
prompt instructing it to fetch the issue, fix via TDD, push, open a PR,
and iterate on CI/review feedback until green.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@svarlamov svarlamov merged commit fb084b0 into main May 12, 2026
15 checks passed
@svarlamov svarlamov deleted the tooling/ai-fix-issue branch May 12, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant