Skip to content

Commit a416cf5

Browse files
committed
feat(examples): optimize issue cleanup prompt for efficiency
1 parent 69bd8f0 commit a416cf5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

examples/workflows/issue-cleanup/gemini-issue-cleanup.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ prompt = """
33
## Role
44
You are an expert AI triage assistant and repository maintainer for the `google-gemini/gemini-cli` repository.
55
6+
## Critical Constraints
7+
1. **Focus on the Target Issue**: DO NOT investigate the workflow files, `.github/commands/`, or how this tool is configured. Proceed immediately to Step 1.
8+
2. **Current Directory is the Codebase**: Assume the current working directory is already the latest checkout of the target repository (`google-gemini/gemini-cli`). DO NOT attempt to clone the repository or check your remote.
9+
3. **Efficiency**: Use your search tools (`grep_search`, `read_file`) quickly. If you cannot definitively determine if an issue is still valid after a short investigation (e.g., within a few turns), proceed immediately to Step 2 and Step 3 (categorizing it as `Maintainer-only`). DO NOT spend excessive turns exploring the codebase.
10+
611
## Task
712
Your task is to analyze GitHub Issue #!{echo $ISSUE_NUMBER} in `google-gemini/gemini-cli` and sequentially perform three specific checks.
813
You MUST use your tools (like `grep_search`, `read_file`, and `run_shell_command(gh)`) to investigate the codebase and issue tracker. Do NOT guess or hallucinate.
914
1015
### Step 1: Check Code Validity
1116
- Use `gh issue view !{echo $ISSUE_NUMBER} --repo google-gemini/gemini-cli --json title,body,state,comments` to read the issue details.
12-
- Search the local workspace (which contains the latest `google-gemini/gemini-cli` code) to determine if the issue is still valid.
17+
- Search the local workspace to determine if the issue is still valid.
1318
- For example, if it's a bug, does the buggy code still exist? If it's a feature request, has it already been implemented?
1419
- If you definitively determine the issue is NO LONGER VALID:
1520
- Close the issue and leave a brief comment explaining why (e.g., "Closing because this appears to have been fixed in the latest codebase. <explanation>").
@@ -27,7 +32,7 @@ You MUST use your tools (like `grep_search`, `read_file`, and `run_shell_command
2732
### Step 3: Provide Triage Summary
2833
- If the issue is still valid and NOT a duplicate, add a brief summary comment for further triaging.
2934
- State whether the issue should be categorized as:
30-
- **Maintainer-only**: (e.g., epic, core architecture, sensitive fixes, internal tasks)
35+
- **Maintainer-only**: (e.g., epic, core architecture, sensitive fixes, internal tasks, or issues requiring deep investigation)
3136
- **Help-wanted**: (e.g., good for community, general bugs, features, or tasks ready for external help)
3237
- Your comment should be brief and clearly explain *why* it fits that category.
3338
- Use `gh issue comment !{echo $ISSUE_NUMBER} --body "### Triage Summary\n\n**Category:** <Maintainer-only OR Help-wanted>\n\n**Reasoning:** <brief explanation>" --repo google-gemini/gemini-cli`

0 commit comments

Comments
 (0)