Agent Skills
› Tracer-Cloud/opensre
› github-security-fix
github-security-fix
GitHub用于自动修复 GitHub 安全警报、Dependabot 和 CodeQL 代码质量问题。通过调用 fix_github_security_alert 工具,支持直接修复漏洞或生成 PR,适用于各类代码扫描和质量检查告警的自动化处理。
Trigger Scenarios
用户请求修复 GitHub 安全或代码质量问题
提供 GitHub 安全警报 URL 或提及 Dependabot/CodeQL 告警
Install
npx skills add Tracer-Cloud/opensre --skill github-security-fix -g -y
SKILL.md
Frontmatter
{
"demo": "Remediate the open Dependabot and CodeQL alerts",
"name": "github-security-fix",
"description": "Remediate GitHub security \/ Dependabot \/ CodeQL \/ code-quality alerts via fix_github_security_alert"
}
══════════════════════════════════════════════════════════ GITHUB SECURITY AND QUALITY FIX SKILL — interactive-shell action agent: ══════════════════════════════════════════════════════════
WHEN TO USE:
- The user asks to fix/remediate GitHub security and quality issues, security alerts, Security and quality findings, Code Quality findings, Dependabot alerts, CodeQL/code-scanning alerts, vulnerable dependencies, or repo security issues.
- The user says "hey fix the security issues", "fix the security issues in owner/repo", "fix the security and quality issues", or "fix the opensre repo security issues and raise a PR".
- A GitHub security alert URL,
/security/code-scanningpage URL, or/security/qualityURL is provided.
USE THIS TOOL:
fix_github_security_alert
DO NOT USE THIS SKILL FOR:
- Ordinary GitHub issue/PR create, close, comment, assign, label, merge, or repo
reads. Use
github_cli. - Live incident RCA. Use
investigation_start. - Secret-scanning remediation. The tool will refuse it because the secret must be revoked/rotated outside the repo before code cleanup.
HARD RULES:
- For broad repo requests, call:
fix_github_security_alert(owner?, repo?, alert_type="auto", open_pr=<user asked PR>)and let the tool select one open supported security or quality finding. - If no owner/repo is named, omit both and let the tool use the current checkout's GitHub origin.
- If the user supplies an alert URL,
/security/code-scanningpage URL, or/security/qualityURL, pass it asalert_url. - If they name a Dependabot alert, code-scanning alert, CodeQL alert, or Code
Quality finding number, pass
alert_typeandalert_number. - Use
alert_type="code_quality"for GitHub/security/qualitystandard findings such as unused import, empty except, unreachable code, or mixed returns. - Use
alert_type="code_scanning"for GitHub/security/code-scanningpages or broad CodeQL/code-scanning requests. - Set
open_pr=trueonly when they ask to open/raise/create a PR or "ship" the fix; otherwise leave it false for a local diff. - Never use
github_clito run a rawghworkflow around this. The fixer owns alert context, fix execution, branch safety, and PR creation. - The tool fixes findings itself: built-in fixers first, then an auto-detected
coding agent CLI (no configuration needed). Never add coding-agent advice,
CLI names, or install commands beyond what the tool's
errortext already says, and never make an external agent the user's next step. - If the tool returns
response_text, output exactly that text and stop. - If the tool reports no automatic patch, reply in one short line from
error. Do not say "next steps", do not add numbered options, do not list example commands, and do not ask a broad follow-up question. - After the tool returns, reply briefly from the result: finding type/number,
changed files, and PR URL if present. If
error_kindis set, explain the required next step fromerror.
Compact examples:
- "fix the security issues in Tracer-Cloud/opensre and raise a PR" → fix_github_security_alert(owner="Tracer-Cloud", repo="opensre", alert_type="auto", open_pr=true)
- "hey fix the security issues" → fix_github_security_alert(alert_type="auto")
- "fix the code quality findings on https://github.com/Tracer-Cloud/opensre/security/quality" → fix_github_security_alert(alert_url="https://github.com/Tracer-Cloud/opensre/security/quality", alert_type="code_quality")
- "fix Dependabot alert 12 in this repo" → fix_github_security_alert(alert_type="dependabot", alert_number=12)
- "fix https://github.com/acme/app/security/code-scanning/7 and open a PR" → fix_github_security_alert(alert_url="https://github.com/acme/app/security/code-scanning/7", open_pr=true)
- "fix the code scanning errors on https://github.com/Tracer-Cloud/opensre/security/code-scanning and raise a PR" → fix_github_security_alert(alert_url="https://github.com/Tracer-Cloud/opensre/security/code-scanning", alert_type="code_scanning", open_pr=true)
Version History
-
087938e
Current 2026-08-27 19:28
移除结论拦截并恢复技能演示,优化无工具回复及能力查询提示。
- 8bfe7b1 2026-08-19 21:46


