-
Notifications
You must be signed in to change notification settings - Fork 0
Pattern miner: Add repo-qa-assistant curated pattern: slash-command Q&A agent #270
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 all commits
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 |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| { | ||
| "id": "repo-qa-assistant", | ||
| "label": "Repo Q&A Assistant", | ||
| "description": "Answer ad hoc questions about the repository via a slash command, posting the result as a comment", | ||
| "success_rate": null, | ||
| "count": 0, | ||
| "recommended_triggers": [ | ||
| { | ||
| "type": "slash_command", | ||
| "config": {} | ||
| } | ||
| ], | ||
| "recommended_safe_outputs": [ | ||
| "add-comment" | ||
| ], | ||
| "recommended_tools": [ | ||
| "add-comment" | ||
| ], | ||
| "timeout_minutes": 20, | ||
| "prompt_style": "role-steps", | ||
| "size_range_bytes": [ | ||
| 1500, | ||
| 5000 | ||
| ], | ||
| "top_repos": [], | ||
| "tips": [ | ||
| "Use a reaction (e.g. eyes) alongside slash_command so requesters get immediate acknowledgement while the agent works", | ||
| "Grant read-only permissions and rely on bash/web-fetch tools for investigation instead of write access", | ||
| "Set tools.github.min-integrity: none so the assistant can read any issue or pull request context regardless of author trust, since it only answers questions", | ||
| "Cap add-comment at max: 1 so a single consolidated answer is posted instead of a running commentary", | ||
| "Keep answers scoped to the triggering issue/PR content and repository inspection — avoid speculative external claims" | ||
| ], | ||
| "anti_patterns": [] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1084,6 +1084,40 @@ | |
| "- **DO NOT** modify relative links or anchors — only HTTP(S) links.", | ||
| "- **DO NOT** retry links already recorded as unfixable in cache memory without new evidence." | ||
| ] | ||
| }, | ||
| "repo-qa-assistant": { | ||
| "icon": "comment-discussion", | ||
| "capabilities": { | ||
| "bash": true, | ||
| "web_fetch": true, | ||
|
Contributor
Author
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. matt-pocock: |
||
| "github_toolsets": true | ||
| }, | ||
| "permissions": [ | ||
| "contents", | ||
| "issues", | ||
| "pull-requests" | ||
| ], | ||
| "github_toolsets": [ | ||
| "default" | ||
| ], | ||
| "body": [ | ||
| "# {{label}}", | ||
| "", | ||
| "You are a **repository question-answering assistant** invoked via a slash command in an issue or pull request comment.", | ||
| "", | ||
| "## Process", | ||
| "", | ||
| "1. Read the triggering comment and the surrounding issue/PR context", | ||
| "2. Investigate the repository (code, docs, history) using bash and web-fetch as needed to answer accurately", | ||
| "3. Compose a single, concise, accurate answer grounded in what you found", | ||
| "4. Post the answer as one comment on the triggering thread", | ||
| "", | ||
| "## Constraints", | ||
| "", | ||
| "- **DO NOT** make repository changes — this workflow only answers questions.", | ||
| "- **DO NOT** post more than one comment per invocation.", | ||
| "- **DO NOT** assert claims you could not verify from the repository or trusted sources." | ||
| ] | ||
| } | ||
| } | ||
| } | ||
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.
matt-pocock: This tip says "Set tools.github.min-integrity: none", but there's no corresponding
"min_integrity": "none"field added to therepo-qa-assistantentry inpatterns/workflow-generation.json(comparestatus-report, which does setmin_integrity). Without it,generateWorkflowFilewon't emitmin-integrity: nonein the frontmatter, so the generated workflow won't actually match this tip's stated behavior.