Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .claudecode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"prompt": "When making commits, always follow the Conventional Commits specification (e.g., fix: or feat:). Keep summaries under 50 characters."
}
8 changes: 8 additions & 0 deletions calc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def divide_numbers(a, b):
# Intentional Bug: This will crash if b is 0 instead of returning a safe fallback
return a / b

if __name__ == "__main__":
print("Result:", divide_numbers(10, 2))
print("Testing edge case with zero:")
print("Result:", divide_numbers(10, 0))
12 changes: 12 additions & 0 deletions git_agent_workflow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

echo "🚀 Starting automated Git workflow agent..."

# 1. Create a new descriptive feature branch safely
git checkout -b feature/fix-calculator-edge-case

# 2. Call Claude Code to inspect our branch changes and generate a PR description
echo "🤖 Calling Claude to draft our PR description..."
claude -p "Look at the git diff between this branch and main. Generate a clear, markdown-formatted Pull Request summary explaining what bug was fixed and why." > PR_DESCRIPTION.md

echo "✅ Workflow complete! PR template generated in PR_DESCRIPTION.md"