Open5
Learn Go with TestsをAIに助けてもらいながら進める
Hello World / git commit
まずは記事の通り手動でコミット
Gemini CLI
Extract the logic inside main to another function
コレだけでテストまで書いてくれました。
先ほどテストまで自動で書いてくれましたが、それがAIの気まぐれ?かもしれないので、ルール化してみます。ルールの書き方自体もAIに聞いています。
Gemini CLI
Add a file to tell Gemini CLI that always run `go test .` after making changes.
Also, if any test fails, analyze it and present the possible reasons to me, before making any additional code changes. Add this rule to a file for Gemini CLI.
Add another Gemini CLI rule to include my prompts in a git commit message.