-
Notifications
You must be signed in to change notification settings - Fork 33
fix(bugfix): comprehensive workflow improvements addressing 9 open issues #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
60a515a
1f33145
d4e3e21
0e5468e
9d9a0fc
99db059
2e24cd5
51342d4
44f926e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,49 @@ gh repo clone OWNER/REPO /workspace/repos/REPO | |
|
|
||
| This is read-only exploration — understand the code, don't change it. | ||
|
|
||
| ### Step 3: Summarize Your Understanding | ||
| ### Step 3: Check for Existing Work | ||
|
|
||
| Before investing effort, check whether this bug is already being addressed: | ||
|
|
||
| - **Check for linked PRs on the issue:** | ||
|
|
||
| ```bash | ||
| gh issue view NUMBER --repo OWNER/REPO --json body,comments --jq '[.body, .comments[].body] | join("\n")' | grep -i "pull\|PR\|#" | ||
| ``` | ||
|
|
||
| - **Scan recent PR titles for overlap:** | ||
|
|
||
| ```bash | ||
| gh pr list --repo OWNER/REPO --state open --limit 30 --json number,title,headRefName --jq '.[] | "\(.number)\t\(.title)"' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider documenting the rationale for The hardcoded limit of 30 for both PR and issue listings is reasonable for most repositories, but relevant work could be missed in high-activity projects. Consider adding a comment explaining this trade-off, or note that users can manually check if they suspect additional relevant work exists. Also applies to: 93-93 🤖 Prompt for AI Agents |
||
| ``` | ||
|
|
||
| Skim the titles for anything related to the bug's component, error, or | ||
| symptoms. If a PR looks relevant, read its description before proceeding. | ||
|
|
||
| - **Check for duplicate or related issues:** | ||
|
|
||
| ```bash | ||
| gh issue list --repo OWNER/REPO --state open --limit 30 --json number,title --jq '.[] | "\(.number)\t\(.title)"' | ||
| ``` | ||
|
|
||
| If you find an open PR that appears to directly address this bug, **stop here | ||
| and use `AskUserQuestion`** before continuing the assessment. Present the | ||
| options: | ||
|
|
||
| - "PR #N appears to address this bug — review it instead of starting fresh" | ||
| - "PR #N is related but doesn't fully cover it — continue with assessment" | ||
| - "Not sure if PR #N is relevant — continue with assessment" | ||
|
|
||
| This gate applies in both normal and speedrun mode. Do not continue to Step 4 | ||
| until the user responds. The `AskUserQuestion` tool triggers platform | ||
| notifications so the user knows you need their input. | ||
|
Comment on lines
+96
to
+106
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Check for plain-text wait instructions instead of AskUserQuestion in skill files.
# Search for wait/stop patterns that should be replaced with AskUserQuestion
rg -n -C3 --type=md 'stop.*wait|wait.*confirm|wait.*user.*respond|pause.*user' workflows/bugfix/.claude/skills/ | grep -v AskUserQuestionRepository: ambient-code/workflows Length of output: 1932 The assess skill correctly uses The assess phase at lines 96-106 properly uses the 🤖 Prompt for AI Agents |
||
|
|
||
| If duplicate or related issues are found (but no PR), note them in the | ||
| assessment and continue — these inform the assessment but don't block it. | ||
|
|
||
| If no existing work is found, note that and continue. | ||
|
|
||
| ### Step 4: Summarize Your Understanding | ||
|
|
||
| Present a clear, concise summary to the user covering: | ||
|
|
||
|
|
@@ -81,7 +123,7 @@ Present a clear, concise summary to the user covering: | |
| - **Severity/impact:** Your assessment of how serious this is, based on the | ||
| information available | ||
|
|
||
| ### Step 4: Identify What You Know vs. What's Missing | ||
| ### Step 5: Identify What You Know vs. What's Missing | ||
|
|
||
| Be explicit about gaps: | ||
|
|
||
|
|
@@ -93,7 +135,7 @@ Be explicit about gaps: | |
| - **Assumptions:** Any assumptions you're making — call them out so the user | ||
| can confirm or correct them | ||
|
|
||
| ### Step 5: Propose a Reproduction Plan | ||
| ### Step 6: Propose a Reproduction Plan | ||
|
|
||
| Based on your understanding, outline how you would approach reproduction: | ||
|
|
||
|
|
@@ -105,7 +147,7 @@ Based on your understanding, outline how you would approach reproduction: | |
| If the bug seems straightforward, the plan can be brief. If it's complex or | ||
| ambiguous, be thorough. | ||
|
|
||
| ### Step 6: Present to the User | ||
| ### Step 7: Present to the User | ||
|
|
||
| Deliver your assessment in this structure: | ||
|
|
||
|
|
@@ -115,6 +157,9 @@ Deliver your assessment in this structure: | |
| **Issue:** [title or one-line summary] | ||
| **Source:** [issue URL, conversation, etc.] | ||
|
|
||
| ### Existing Work | ||
| [Any related PRs, duplicate issues, or prior attempts — or "None found"] | ||
|
|
||
| ### Understanding | ||
| [Your 2-3 sentence summary of the bug] | ||
|
|
||
|
|
@@ -139,7 +184,17 @@ Deliver your assessment in this structure: | |
| Be direct. If the bug report is clear and complete, say so. If it's vague or | ||
| missing critical details, say that too. | ||
|
|
||
| ### Step 7: Write the Assessment Artifact | ||
| **If the bug doesn't actually apply**, say so clearly and present options: | ||
|
|
||
| - "This issue doesn't affect your project — here's why. Want to close it?" | ||
| - "The reported issue doesn't apply directly, but here's a related improvement | ||
| we could make (with trade-offs): ..." | ||
| - "This appears to be a duplicate of #N — should we close this one?" | ||
|
|
||
| Do not proceed to fix something you've concluded isn't broken. Present your | ||
| finding and let the user decide. | ||
|
|
||
| ### Step 8: Write the Assessment Artifact | ||
|
|
||
| Save your assessment to `artifacts/bugfix/reports/assessment.md` so that | ||
| subsequent phases (and speedrun resumption) can detect that this phase is | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Refine the grep pattern to reduce false positives.
The pattern
"pull\|PR\|#"is very broad and will match:#)"PR"in "PRIORITIZE")🔍 Suggested pattern refinement
This matches actual PR/issue references like
#123,PR#123, or `pull request `#123rather than arbitrary occurrences.📝 Committable suggestion
🤖 Prompt for AI Agents