Придумал я вот такую автоматизацию для Claude Code Сначала: install-github-app — установите гитхаб

Придумал я вот такую автоматизацию для Claude Code

Сначала: /install-github-app — установите гитхаб плагин в репо, внутри СС уже есть инстркция как это делать

Потом: /sandbox — чтобы СС задавал поменьше вопросов

Потом: /pr-draft — тут мне что не нравится, что он создает черновик, нужно зайди по ссылке и создать PR вручную (новую ветку надо новую создать заранее).

Потом: /plan — переключите в режим планирования

Промпт:

1. Comment "@claude review" to request a review
2. Wait 3 minutes and check the reviewer's response
3. Fix all issues
4. Commit and push the changes
5. Repeat until no more issues
6. Then merge, delete branch, switch to main and pull

и вишенка на торте shift+tab (чтобы очистить контекстное окно)

🤯

После этого можно пойти в спортзал на полчасика, агенты начнут сами переписываться и ревьюить и исравлять найденные баги. Конечно, не всегда они исправляют то, что надо исправлять. Но скажу по моему опыту, исправлятют они там куда больше, чем портят.

____

I came up with this automation for Claude Code.

First: /install-github-app — install the GitHub plugin in the repo; there are instructions for doing this within CC.

Then: /sandbox — so CC asks fewer questions.

Then: /pr-draft — what I don’t like here is that it creates a draft; you need to follow the link and create a PR manually (you need to create a new branch in advance).

Then: /plan — switch to planning mode

Prompt:

1. Comment "@claude review" to request a review
2. Wait 3 minutes and check the reviewer's response
3. Fix all issues
4. Commit and push the changes
5. Repeat until there are no more issues
6. Then merge, delete branch, switch to main, and pull

And the icing on the cake: shift+tab (to clear the context window)

🤯

After that, you can go to the gym for half an hour, and the agents will start chatting and reviewing and fixing any bugs they find. Of course, they don’t always fix what needs fixing. But in my experience, they fix far more than they break.

Комментарии

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *