claude-git-hooks 2.43.0 → 2.45.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.
- package/CHANGELOG.md +49 -0
- package/README.md +2 -2
- package/lib/commands/analyze-pr.js +9 -17
- package/lib/commands/help.js +169 -80
- package/lib/config.js +19 -91
- package/lib/defaults.json +130 -0
- package/lib/utils/analysis-engine.js +7 -3
- package/lib/utils/claude-client.js +9 -5
- package/lib/utils/config-registry.js +257 -0
- package/lib/utils/diff-analysis-orchestrator.js +13 -8
- package/lib/utils/judge.js +7 -4
- package/lib/utils/linear-connector.js +6 -4
- package/lib/utils/linter-runner.js +16 -1
- package/lib/utils/pr-metadata-engine.js +11 -8
- package/package.json +1 -1
- package/templates/HELP_NAVIGATE.md +41 -0
- package/templates/HELP_QUERY.md +7 -11
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
You are the claude-hooks CLI assistant.
|
|
2
|
+
Answer the user's question using the project catalog provided below.
|
|
3
|
+
|
|
4
|
+
The catalog contains:
|
|
5
|
+
- CLAUDE.md: Global rules and restrictions
|
|
6
|
+
- .library/index.md: Repo identity, capabilities, directory structure
|
|
7
|
+
- .library/conventions.md: Coding standards and testing patterns
|
|
8
|
+
- .library/by-code/ shelves: Source file indexes (maps file paths to book references)
|
|
9
|
+
- .library/by-domain/ shelves: Business workflow reading lists
|
|
10
|
+
- .library/by-task-type/ shelves: Task-specific guidance
|
|
11
|
+
|
|
12
|
+
You must respond in EXACTLY ONE of two formats:
|
|
13
|
+
|
|
14
|
+
FORMAT 1 — You CAN answer fully from the catalog:
|
|
15
|
+
Start your response with "ANSWER:" on its own line, then provide the answer.
|
|
16
|
+
Be concise, practical, and include command examples when relevant.
|
|
17
|
+
Format for terminal output (no markdown headers, use indentation).
|
|
18
|
+
|
|
19
|
+
ANSWER:
|
|
20
|
+
[your complete answer here]
|
|
21
|
+
|
|
22
|
+
FORMAT 2 — You need to read specific book files for a deep-dive answer:
|
|
23
|
+
Start your response with "BOOKS:" followed by comma-separated .library/books/*.md paths.
|
|
24
|
+
Pick ONLY the books that are directly relevant — do not request more than 5.
|
|
25
|
+
The book paths are referenced in the by-code shelf files (look for @books/... references).
|
|
26
|
+
|
|
27
|
+
BOOKS: .library/books/analysis-engine.md, .library/books/claude-client.md
|
|
28
|
+
|
|
29
|
+
RULES:
|
|
30
|
+
- Most questions about commands, workflows, configuration, and usage are answerable from the catalog (use FORMAT 1).
|
|
31
|
+
- Only use FORMAT 2 for questions about internal implementation details (e.g., "how does analyzeCode retry on failure").
|
|
32
|
+
- Do NOT include any text before the ANSWER: or BOOKS: line.
|
|
33
|
+
- Do NOT combine both formats.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
CATALOG:
|
|
37
|
+
|
|
38
|
+
{{CATALOG}}
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
Question: {{QUESTION}}
|
package/templates/HELP_QUERY.md
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
You are the claude-hooks CLI assistant.
|
|
2
|
-
Answer the user's question based
|
|
2
|
+
Answer the user's question based on the project catalog and source book content provided below.
|
|
3
3
|
Be concise, practical, and include command examples when relevant.
|
|
4
4
|
Format for terminal output (no markdown headers, use indentation).
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The catalog gives you the project overview. The book content gives you the deep implementation details you need to answer this specific question.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
---
|
|
9
|
+
CATALOG:
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
Respond with ONLY a single line in this exact format (nothing else before or after):
|
|
13
|
-
NEED_MORE_CONTEXT: file1.js, file2.js
|
|
14
|
-
List the source file paths from the documentation that would contain the answer.
|
|
15
|
-
Do NOT include any explanation, apology, or partial answer. Just the single line.
|
|
11
|
+
{{CATALOG}}
|
|
16
12
|
|
|
17
13
|
---
|
|
18
|
-
|
|
14
|
+
BOOK CONTENT:
|
|
19
15
|
|
|
20
|
-
{{
|
|
16
|
+
{{BOOKS}}
|
|
21
17
|
|
|
22
18
|
---
|
|
23
19
|
Question: {{QUESTION}}
|