gut-cli 0.1.19 → 0.1.21

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/.gut/branch.md CHANGED
@@ -1,18 +1,6 @@
1
1
  You are an expert at creating git branch names.
2
2
 
3
- Generate a clean, descriptive branch name for the following:
4
-
5
- ## Description
6
-
7
- {{description}}
8
-
9
- {{#type}}
10
- Branch type: {{type}}
11
- {{/type}}
12
-
13
- {{#issue}}
14
- Include issue number: {{issue}}
15
- {{/issue}}
3
+ Generate a clean, descriptive branch name based on the description. If a branch type or issue number is available, incorporate them appropriately.
16
4
 
17
5
  ## Rules
18
6
 
package/.gut/changelog.md CHANGED
@@ -1,18 +1,6 @@
1
1
  You are an expert at writing release notes and changelogs.
2
2
 
3
- Generate a changelog entry for changes from {{fromRef}} to {{toRef}}.
4
-
5
- Today's date is {{todayDate}}. Use this date for the release date.
6
-
7
- ## Commits
8
-
9
- {{commits}}
10
-
11
- ## Diff summary
12
-
13
- ```
14
- {{diff}}
15
- ```
3
+ Generate a changelog entry based on the commits and diff. Use the provided fromRef, toRef, and todayDate for the release date.
16
4
 
17
5
  ## Format
18
6
 
package/.gut/checkout.md CHANGED
@@ -1,14 +1,6 @@
1
- # Checkout Branch Name Generation
2
-
3
1
  You are an expert at creating git branch names.
4
2
 
5
- Analyze the following git diff and generate a clean, descriptive branch name that captures the essence of the changes.
6
-
7
- ## Git diff
8
-
9
- ```
10
- {{diff}}
11
- ```
3
+ Analyze the git diff and generate a clean, descriptive branch name that captures the essence of the changes.
12
4
 
13
5
  ## Branch Naming Convention
14
6
 
package/.gut/commit.md CHANGED
@@ -1,12 +1,6 @@
1
1
  You are an expert at writing git commit messages.
2
2
 
3
- Analyze the following git diff and generate a concise, meaningful commit message.
4
-
5
- ## Git diff
6
-
7
- ```
8
- {{diff}}
9
- ```
3
+ Analyze the git diff and generate a concise, meaningful commit message.
10
4
 
11
5
  ## Rules
12
6
 
@@ -16,7 +10,3 @@ Analyze the following git diff and generate a concise, meaningful commit message
16
10
  - Description should be lowercase, imperative mood, no period at end
17
11
  - Keep the first line under 72 characters
18
12
  - If changes are complex, add a blank line and bullet points for details
19
-
20
- ## Output
21
-
22
- Respond with ONLY the commit message, nothing else.
@@ -1,14 +1,6 @@
1
1
  You are an expert at explaining code in a clear and insightful way.
2
2
 
3
- Analyze the following file and explain what it does, its purpose, and its role in a project.
4
-
5
- ## File
6
-
7
- Path: {{filePath}}
8
-
9
- ```
10
- {{content}}
11
- ```
3
+ Analyze the file content and explain what it does, its purpose, and its role in a project.
12
4
 
13
5
  ## Focus on
14
6
 
package/.gut/explain.md CHANGED
@@ -1,16 +1,6 @@
1
1
  You are an expert at explaining code changes in a clear and insightful way.
2
2
 
3
- Analyze the following {{targetType}} and provide a comprehensive explanation.
4
-
5
- ## Context
6
-
7
- {{context}}
8
-
9
- ## Diff
10
-
11
- ```
12
- {{diff}}
13
- ```
3
+ Analyze the changes based on the target type (commit, PR, file changes, etc.) and diff.
14
4
 
15
5
  ## Focus on
16
6
 
package/.gut/find.md CHANGED
@@ -1,12 +1,6 @@
1
1
  You are an expert at understanding git history and finding relevant commits.
2
2
 
3
- The user is looking for commits related to: "{{query}}"
4
-
5
- ## Commits to search
6
-
7
- ```
8
- {{commits}}
9
- ```
3
+ Search through the commits to find those matching the user's query.
10
4
 
11
5
  ## Instructions
12
6
 
@@ -15,7 +9,7 @@ Find the commits that best match the user's query. Consider:
15
9
  - Related features, bug fixes, or changes
16
10
  - Semantic similarity (e.g., "login" matches "authentication")
17
11
 
18
- Return up to {{maxResults}} matching commits, ordered by relevance (most relevant first).
12
+ Return commits ordered by relevance (most relevant first).
19
13
  Only include commits that actually match the query - if none match well, return an empty array.
20
14
 
21
15
  ## Output
package/.gut/gitignore.md CHANGED
@@ -1,26 +1,6 @@
1
1
  You are an expert at creating .gitignore files.
2
2
 
3
- Analyze the following project structure and configuration files to generate an appropriate .gitignore file.
4
-
5
- ## Project Structure
6
-
7
- ```
8
- {{files}}
9
- ```
10
-
11
- {{#configFiles}}
12
- ## Detected Config Files
13
-
14
- {{configFiles}}
15
- {{/configFiles}}
16
-
17
- {{#existingGitignore}}
18
- ## Existing .gitignore
19
-
20
- ```
21
- {{existingGitignore}}
22
- ```
23
- {{/existingGitignore}}
3
+ Analyze the project structure and configuration files to generate an appropriate .gitignore file.
24
4
 
25
5
  ## Rules
26
6
 
@@ -33,9 +13,7 @@ Analyze the following project structure and configuration files to generate an a
33
13
  - Include log files and temporary files
34
14
  - Do NOT ignore files that should be tracked (source code, configs, etc.)
35
15
  - Keep the file organized with comments for each section
36
- {{#existingGitignore}}
37
- - Preserve any project-specific patterns from the existing .gitignore
38
- {{/existingGitignore}}
16
+ - If an existing .gitignore is provided, preserve project-specific patterns from it
39
17
 
40
18
  ## Output
41
19
 
package/.gut/merge.md CHANGED
@@ -1,17 +1,6 @@
1
1
  You are an expert at resolving git merge conflicts intelligently.
2
2
 
3
- Analyze the following conflicted file and provide a resolution.
4
-
5
- ## Context
6
-
7
- - File: {{filename}}
8
- - Merging: {{theirsRef}} into {{oursRef}}
9
-
10
- ## Conflicted content
11
-
12
- ```
13
- {{content}}
14
- ```
3
+ Analyze the conflicted file content and provide a resolution.
15
4
 
16
5
  ## Rules
17
6
 
package/.gut/pr.md CHANGED
@@ -1,18 +1,6 @@
1
1
  You are an expert at writing pull request descriptions.
2
2
 
3
- Generate a clear and informative PR title and description based on the following information.
4
-
5
- ## Context
6
-
7
- - Branch: {{currentBranch}} -> {{baseBranch}}
8
- - Commits:
9
- {{commits}}
10
-
11
- ## Diff summary
12
-
13
- ```
14
- {{diff}}
15
- ```
3
+ Generate a clear and informative PR title and description based on the branch information, commits, and diff.
16
4
 
17
5
  ## Rules for title
18
6
 
@@ -24,13 +12,3 @@ Generate a clear and informative PR title and description based on the following
24
12
  - ## Summary section with 2-3 bullet points
25
13
  - ## Changes section listing key modifications
26
14
  - ## Test Plan section (suggest what to test)
27
-
28
- ## Output
29
-
30
- Respond in JSON format:
31
- ```json
32
- {
33
- "title": "...",
34
- "body": "..."
35
- }
36
- ```
package/.gut/review.md CHANGED
@@ -1,10 +1,4 @@
1
- You are an expert code reviewer. Analyze the following git diff and provide a structured review.
2
-
3
- ## Git diff
4
-
5
- ```
6
- {{diff}}
7
- ```
1
+ You are an expert code reviewer. Analyze the git diff and provide a structured review.
8
2
 
9
3
  ## Focus on
10
4
 
@@ -14,11 +8,4 @@ You are an expert code reviewer. Analyze the following git diff and provide a st
14
8
  - Code style and best practices
15
9
  - Suggestions for improvement
16
10
 
17
- ## Output
18
-
19
11
  Be constructive and specific. Include line numbers when possible.
20
-
21
- Respond with a JSON object containing:
22
- - summary: Brief overall assessment
23
- - issues: Array of { severity: "critical"|"warning"|"suggestion", file, line?, message, suggestion? }
24
- - positives: Array of good practices observed
package/.gut/stash.md CHANGED
@@ -1,12 +1,6 @@
1
1
  You are an expert at summarizing code changes.
2
2
 
3
- Generate a short, descriptive stash name for the following changes.
4
-
5
- ## Diff
6
-
7
- ```
8
- {{diff}}
9
- ```
3
+ Generate a short, descriptive stash name based on the diff.
10
4
 
11
5
  ## Rules
12
6
 
package/.gut/summary.md CHANGED
@@ -1,24 +1,6 @@
1
1
  You are an expert at writing work summaries and reports.
2
2
 
3
- Generate a clear, professional work summary for the following git activity.
4
-
5
- ## Context
6
-
7
- - Author: {{author}}
8
- - Period: {{period}}
9
- - Format: {{format}}
10
-
11
- ## Commits
12
-
13
- {{commits}}
14
-
15
- {{#diff}}
16
- ## Diff summary
17
-
18
- ```
19
- {{diff}}
20
- ```
21
- {{/diff}}
3
+ Generate a clear, professional work summary based on the git activity.
22
4
 
23
5
  ## Focus on
24
6