claude-git-hooks 2.6.3 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,113 @@
1
+ {
2
+ "$schema": "Configuration v2.8.0 - Advanced parameters",
3
+ "$comment": "Advanced configuration for power users and tinkerers",
4
+ "$warning": "Most users don't need these settings. Use at your own risk.",
5
+
6
+ "version": "2.8.0",
7
+ "preset": "backend",
8
+
9
+ "overrides": {
10
+ "analysis": {
11
+ "ignoreExtensions": [
12
+ ".min.js",
13
+ ".map",
14
+ "package-lock.json",
15
+ "yarn.lock",
16
+ ".generated.ts"
17
+ ]
18
+ },
19
+
20
+ "commitMessage": {
21
+ "taskIdPattern": "(CUSTOM-[0-9]{4})"
22
+ },
23
+
24
+ "subagents": {
25
+ "model": "sonnet",
26
+ "batchSize": 2
27
+ },
28
+
29
+ "github": {
30
+ "pr": {
31
+ "defaultBase": "develop",
32
+ "reviewers": ["tech-lead"]
33
+ }
34
+ }
35
+ },
36
+
37
+ "_documentation": {
38
+ "analysis.ignoreExtensions": {
39
+ "description": "File extensions to exclude from analysis",
40
+ "default": "[]",
41
+ "examples": [".min.js", ".lock", ".map"],
42
+ "use_case": "Skip minified files, lock files, or generated code"
43
+ },
44
+
45
+ "commitMessage.taskIdPattern": {
46
+ "description": "Regex pattern to extract task-id from branch name",
47
+ "default": "([A-Z]{1,3}[-\\s]\\d{3,5})",
48
+ "examples": [
49
+ "IX-123 -> IX-123",
50
+ "PROJ-4567 -> PROJ-4567",
51
+ "(CUSTOM-[0-9]{4}) for CUSTOM-1234"
52
+ ],
53
+ "use_case": "Custom task-id format (not Jira/GitHub/Linear)"
54
+ },
55
+
56
+ "subagents.model": {
57
+ "description": "Claude model for parallel analysis",
58
+ "default": "haiku",
59
+ "options": ["haiku", "sonnet", "opus"],
60
+ "trade_offs": {
61
+ "haiku": "Fast and cheap, good for most code",
62
+ "sonnet": "Balanced speed and quality",
63
+ "opus": "Slowest but most thorough analysis"
64
+ },
65
+ "use_case": "Trade speed/cost vs analysis quality"
66
+ },
67
+
68
+ "subagents.batchSize": {
69
+ "description": "Number of files per parallel batch",
70
+ "default": "Preset-specific (1-4)",
71
+ "range": "1-10",
72
+ "trade_offs": {
73
+ "1": "Maximum parallelization, fastest but most expensive",
74
+ "2-4": "Balanced parallelization (preset defaults)",
75
+ "5+": "Less parallel, slower but cheaper"
76
+ },
77
+ "use_case": "Fine-tune cost vs speed for your project size"
78
+ }
79
+ },
80
+
81
+ "_examples": {
82
+ "skip_generated_code": {
83
+ "version": "2.8.0",
84
+ "preset": "frontend",
85
+ "overrides": {
86
+ "analysis": {
87
+ "ignoreExtensions": [".generated.ts", ".d.ts", ".min.js"]
88
+ }
89
+ }
90
+ },
91
+
92
+ "custom_jira_format": {
93
+ "version": "2.8.0",
94
+ "preset": "backend",
95
+ "overrides": {
96
+ "commitMessage": {
97
+ "taskIdPattern": "(MYPROJ-[0-9]{1,5})"
98
+ }
99
+ }
100
+ },
101
+
102
+ "high_quality_analysis": {
103
+ "version": "2.8.0",
104
+ "preset": "fullstack",
105
+ "overrides": {
106
+ "subagents": {
107
+ "model": "sonnet",
108
+ "batchSize": 2
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
@@ -1,41 +1,58 @@
1
1
  {
2
- "preset": "ai",
3
- "analysis": {
4
- "maxFileSize": 1000000,
5
- "maxFiles": 30,
6
- "timeout": 180000,
7
- "contextLines": 3,
8
- "ignoreExtensions": []
2
+ "$schema": "Configuration v2.8.0 - Simplified format",
3
+ "$comment": "Copy relevant sections to .claude/config.json in your project",
4
+
5
+ "_example_minimal": "Minimal config (99% of users) - just select a preset",
6
+ "version": "2.8.0",
7
+ "preset": "backend",
8
+
9
+ "_example_with_github": "With GitHub PR configuration (most common)",
10
+ "_config_with_github": {
11
+ "version": "2.8.0",
12
+ "preset": "backend",
13
+ "overrides": {
14
+ "github": {
15
+ "pr": {
16
+ "defaultBase": "main",
17
+ "reviewers": ["tech-lead", "teammate"],
18
+ "labelRules": {
19
+ "backend": ["backend", "java", "spring-boot"],
20
+ "frontend": ["frontend", "react", "typescript"],
21
+ "fullstack": ["fullstack"],
22
+ "database": ["database", "sql"],
23
+ "ai": ["ai", "nodejs", "tooling"],
24
+ "default": []
25
+ }
26
+ }
27
+ }
28
+ }
9
29
  },
10
- "commitMessage": {
11
- "autoKeyword": "auto",
12
- "timeout": 180000
30
+
31
+ "_example_custom_batch": "Customize parallel analysis batch size",
32
+ "_config_custom_batch": {
33
+ "version": "2.8.0",
34
+ "preset": "fullstack",
35
+ "overrides": {
36
+ "subagents": {
37
+ "batchSize": 2
38
+ }
39
+ }
13
40
  },
14
- "subagents": {
15
- "enabled": false,
16
- "model": "haiku",
17
- "batchSize": 1
18
- },
19
- "templates": {
20
- "baseDir": ".claude",
21
- "analysis": "CLAUDE_ANALYSIS_PROMPT_SONAR.md",
22
- "guidelines": "CLAUDE_PRE_COMMIT_SONAR.md",
23
- "commitMessage": "COMMIT_MESSAGE.md",
24
- "analyzeDiff": "ANALYZE_DIFF.md",
25
- "resolution": "CLAUDE_RESOLUTION_PROMPT.md",
26
- "subagentInstruction": "SUBAGENT_INSTRUCTION.md"
27
- },
28
- "output": {
29
- "outputDir": ".claude/out",
30
- "debugFile": ".claude/out/debug-claude-response.json",
31
- "resolutionFile": ".claude/out/claude_resolution_prompt.md",
32
- "prAnalysisFile": ".claude/out/pr-analysis.json"
33
- },
34
- "system": {
35
- "debug": false,
36
- "wslCheckTimeout": 3000
37
- },
38
- "git": {
39
- "diffFilter": "ACM"
41
+
42
+ "_available_presets": [
43
+ "backend - Spring Boot + SQL Server",
44
+ "frontend - React + TypeScript",
45
+ "fullstack - Backend + Frontend",
46
+ "database - SQL-focused",
47
+ "ai - Node.js + Claude API",
48
+ "default - Multi-language"
49
+ ],
50
+
51
+ "_notes": {
52
+ "version": "Always use '2.8.0' for new format",
53
+ "preset": "Required - determines tech-stack analysis",
54
+ "overrides": "Optional - only override what's different from preset defaults",
55
+ "github_token": "Stored separately in .claude/settings.local.json (gitignored) or env var GITHUB_TOKEN",
56
+ "advanced_params": "See config.advanced.example.json for advanced customization"
40
57
  }
41
58
  }
@@ -83,7 +83,7 @@ Perform a comprehensive code quality analysis focusing on these areas:
83
83
 
84
84
  ## Output Format
85
85
 
86
- Respond with a valid JSON following the SonarQube format:
86
+ Respond with a valid JSON following the structured JSON format:
87
87
 
88
88
  ```json
89
89
  {
@@ -1,12 +1,5 @@
1
- {
2
- "analysis": {
3
- "maxFileSize": 1000000,
4
- "maxFiles": 10,
5
- "timeout": 300000
6
- },
7
- "subagents": {
8
- "enabled": true,
9
- "model": "haiku",
10
- "batchSize": 3
11
- }
12
- }
1
+ {
2
+ "subagents": {
3
+ "batchSize": 1
4
+ }
5
+ }
@@ -45,7 +45,7 @@ Perform a comprehensive code quality analysis focusing on these areas:
45
45
 
46
46
  ## Output Format
47
47
 
48
- Respond with a valid JSON following the SonarQube format:
48
+ Respond with a valid JSON following the structured JSON format:
49
49
 
50
50
  ```json
51
51
  {
@@ -1,12 +1,5 @@
1
- {
2
- "analysis": {
3
- "maxFileSize": 1000000,
4
- "maxFiles": 10,
5
- "timeout": 300000
6
- },
7
- "subagents": {
8
- "enabled": true,
9
- "model": "haiku",
10
- "batchSize": 3
11
- }
12
- }
1
+ {
2
+ "subagents": {
3
+ "batchSize": 3
4
+ }
5
+ }
@@ -64,7 +64,7 @@ Perform a comprehensive database code quality analysis focusing on these areas:
64
64
 
65
65
  ## Output Format
66
66
 
67
- Respond with a valid JSON following the SonarQube format:
67
+ Respond with a valid JSON following the structured JSON format:
68
68
 
69
69
  ```json
70
70
  {
@@ -1,12 +1,5 @@
1
- {
2
- "analysis": {
3
- "maxFileSize": 1000000,
4
- "maxFiles": 8,
5
- "timeout": 300000
6
- },
7
- "subagents": {
8
- "enabled": true,
9
- "model": "haiku",
10
- "batchSize": 2
11
- }
12
- }
1
+ {
2
+ "subagents": {
3
+ "batchSize": 2
4
+ }
5
+ }
@@ -1,12 +1,5 @@
1
- {
2
- "analysis": {
3
- "maxFileSize": 1000000,
4
- "maxFiles": 10,
5
- "timeout": 300000
6
- },
7
- "subagents": {
8
- "enabled": true,
9
- "model": "haiku",
10
- "batchSize": 3
11
- }
12
- }
1
+ {
2
+ "subagents": {
3
+ "batchSize": 3
4
+ }
5
+ }
@@ -56,7 +56,7 @@ Perform a comprehensive code quality analysis focusing on these areas:
56
56
 
57
57
  ## Output Format
58
58
 
59
- Respond with a valid JSON following the SonarQube format:
59
+ Respond with a valid JSON following the structured JSON format:
60
60
 
61
61
  ```json
62
62
  {
@@ -1,12 +1,5 @@
1
- {
2
- "analysis": {
3
- "maxFileSize": 1000000,
4
- "maxFiles": 10,
5
- "timeout": 300000
6
- },
7
- "subagents": {
8
- "enabled": true,
9
- "model": "haiku",
10
- "batchSize": 3
11
- }
12
- }
1
+ {
2
+ "subagents": {
3
+ "batchSize": 3
4
+ }
5
+ }
@@ -57,7 +57,7 @@ Check these consistency issues first:
57
57
 
58
58
  ## Output Format
59
59
 
60
- Respond with a valid JSON following the SonarQube format:
60
+ Respond with a valid JSON following the structured JSON format:
61
61
 
62
62
  ```json
63
63
  {
@@ -1,12 +1,5 @@
1
- {
2
- "analysis": {
3
- "maxFileSize": 1000000,
4
- "maxFiles": 15,
5
- "timeout": 300000
6
- },
7
- "subagents": {
8
- "enabled": true,
9
- "model": "haiku",
10
- "batchSize": 4
11
- }
12
- }
1
+ {
2
+ "subagents": {
3
+ "batchSize": 4
4
+ }
5
+ }
@@ -46,7 +46,7 @@ Evaluate the code changes across these dimensions:
46
46
 
47
47
  ## Output Format
48
48
 
49
- Respond with a valid JSON following the SonarQube format:
49
+ Respond with a valid JSON following the structured JSON format:
50
50
 
51
51
  ```json
52
52
  {