UNPKG

claude-git-hooks

Version:

Git hooks with Claude CLI for code analysis and automatic commit messages

34 lines (28 loc) 1.05 kB
Analyze the following changes. CONTEXT: {{CONTEXT_DESCRIPTION}} {{SUBAGENT_INSTRUCTION}} Please generate: 1. A concise and descriptive PR title (maximum 72 characters) 2. A detailed PR description that includes: - Summary of changes - Motivation/context - Type of change (feature/fix/refactor/docs/etc) - Recommended testing 3. A suggested branch name following the format: type/short-description (example: feature/add-user-auth, fix/memory-leak) IMPORTANT: If these are local changes without push, the suggested branch name should be for creating a new branch from the current one. Respond EXCLUSIVELY with a valid JSON with this structure: ```json { "prTitle": "Interesting PR title", "prDescription": "detailed PR description with markdown", "suggestedBranchName": "type/suggested-branch-name", "changeType": "feature|fix|refactor|docs|test|chore", "breakingChanges": false, "testingNotes": "notes on necessary testing or 'None'" } ``` ## COMMITS {{COMMITS}} ## CHANGED FILES {{DIFF_FILES}} ## FULL DIFF {{FULL_DIFF}}