一键导入
github-security-advisories
Manage GitHub Security Advisories: validate reports, draft GHSA/CVE/CVSS fields, patch private forks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage GitHub Security Advisories: validate reports, draft GHSA/CVE/CVSS fields, patch private forks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Shell out to claude CLI.
Run a multi-agent debate to compare options and converge on a decision.
Run the same task with multiple agents for reviews, critiques, or model comparison.
Autonomous large-task delivery agent. Use for long-running coding work that should go from objective or plan to implemented code, review fixes, PR/MR, and green CI with minimal human-in-the-loop gates.
Manage ClickUp tasks.
Generate a project template for Coolify
| name | github-security-advisories |
| description | Manage GitHub Security Advisories: validate reports, draft GHSA/CVE/CVSS fields, patch private forks. |
Use this skill for end-to-end GitHub Security Advisory (GHSA) handling: validate a vulnerability report, identify and implement a safe fix, commit it, prepare advisory form content, ask for the GHSA private fork/advisory identifier, and push the fix branch to the private fork.
origin unless the user explicitly asks.GHSA-hfqq-c3qm-38x8, not generic names like ghsa.TodoWrite to track each workflow stage.When the user provides a vulnerability report:
Valid, Likely valid, Needs more evidence, or Invalid.For XSS specifically:
Before editing when the fix is non-trivial:
For JavaScript-context values:
<?php echo Mage::helper('core')->jsonEncode($value) ?>
instead of:
"<?php echo $value ?>"
Use a branch name that references the report or advisory without leaking more than necessary. Examples:
git switch -c hackerone-3673977-product-name-stored-xss
or:
git switch -c GHSA-hfqq-c3qm-38x8
Before creating the branch:
git status --short
git branch --show-current
Do not overwrite unrelated local work.
After edits, inspect the diff carefully:
git diff --check
git diff
Run available focused tests or syntax checks. If local tooling is unavailable, state that clearly.
Commit only advisory-related files.
Suggested commit message format:
Fix stored XSS in MSRP JavaScript templates
or:
Fix <vulnerability class> in <component>
Commands:
git status --short
git add <files>
git diff --cached --check
git diff --cached
git commit -m "Fix <issue> in <component>"
git status --short
git log -1 --oneline
Provide copy/paste-ready content for the GitHub Security Advisory form.
Include:
Be explicit about uncertainty:
[PATCHED_VERSION] placeholders.After committing and preparing advisory fields, ask the user for the GHSA private fork details if not already provided.
Ask for one of:
https://github.com/OWNER/REPO/security/advisories/GHSA-hfqq-c3qm-38x8git@github.com:OWNER/REPO-ghsa-hfqq-c3qm-38x8.gitGHSA-hfqq-c3qm-38x8Do not guess the private fork URL unless the repo owner/name pattern is obvious and the user confirms.
Derive the remote name from the advisory ID:
GHSA-hfqq-c3qm-38x8
If the user provides an advisory URL:
https://github.com/OpenMage/magento-lts/security/advisories/GHSA-hfqq-c3qm-38x8
then remote name is:
GHSA-hfqq-c3qm-38x8
If the user provides a private fork URL like:
git@github.com:OpenMage/magento-lts-ghsa-hfqq-c3qm-38x8.git
infer remote name:
GHSA-hfqq-c3qm-38x8
Check existing remotes:
git remote -v
If a generic GHSA remote already exists, rename it to the advisory ID when appropriate:
git remote rename ghsa GHSA-hfqq-c3qm-38x8
If the correctly named remote does not exist, add it:
git remote add GHSA-hfqq-c3qm-38x8 git@github.com:OWNER/REPO-ghsa-hfqq-c3qm-38x8.git
If the remote exists but points elsewhere, stop and ask before changing it.
Push the current fix branch to the GHSA remote:
git branch --show-current
git push -u GHSA-hfqq-c3qm-38x8 HEAD
or explicitly:
git push -u GHSA-hfqq-c3qm-38x8 <branch-name>
Report:
Summarize succinctly:
Use this template when preparing advisory content.
## Title
<short vulnerability title>
## Ecosystem
Composer | npm | pip | Maven | Go | other
## Package name
<package name>
## Affected versions
<range or placeholder>
## Patched versions
<PATCHED_VERSION or placeholder>
## Weaknesses
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-116: Improper Encoding or Escaping of Output
## Severity / CVSS
Recommended: <Low|Medium|High|Critical>
CVSS v3.1: <vector>
Score: <score>
Rationale:
- AV: ...
- AC: ...
- PR: ...
- UI: ...
- S: ...
- C/I/A: ...
## Summary
<brief overview>
## Description
<technical root cause and vulnerable data flow>
## Impact
<what attacker can do and who is affected>
## Preconditions
- <condition 1>
- <condition 2>
## Affected components
- `<file or component>`
## Remediation
Upgrade to <PATCHED_VERSION> or apply <commit/patch>.
## Workarounds
- <temporary mitigation>
## Credits
<reporter / platform / report id>
## References
- <repo>
- <commit>
- <GHSA URL after publication>
Correct:
GHSA-hfqq-c3qm-38x8 git@github.com:OpenMage/magento-lts-ghsa-hfqq-c3qm-38x8.git
Incorrect:
ghsa git@github.com:OpenMage/magento-lts-ghsa-hfqq-c3qm-38x8.git
escapeHtml() is not a universal fix; output encoding must match the sink context.GHSA-...; private fork repo names often use lowercase ghsa-....