Agent Skills › gogs/gogs › ghsa

ghsa

GitHub

用于分析和修复 GitHub 安全公告 (GHSA) 的 Skill。通过获取漏洞详情、验证问题、定位代码、提出并实施修复方案,最终创建 PR 和更新日志,协助完成安全漏洞的闭环处理。

.agents/skills/ghsa/SKILL.md gogs/gogs

触发场景

用户输入 /ghsa <id> 要求 triage、verify 或 patch 已报告的 GHSA

安装

npx skills add gogs/gogs --skill ghsa -g -y
更多选项

非标准路径

npx skills add https://github.com/gogs/gogs/tree/main/.agents/skills/ghsa -g -y

不安装直接使用

npx skills use gogs/gogs@ghsa

指定 Agent (Claude Code)

npx skills add gogs/gogs --skill ghsa -a claude-code -g -y

安装 repo 全部 skill

npx skills add gogs/gogs --all -g -y

预览 repo 内 skill

npx skills add gogs/gogs --list

SKILL.md

Frontmatter
{
    "name": "ghsa",
    "description": "Analyze and help fix a GitHub Security Advisory (GHSA) in this repository. Use when the user types `\/ghsa <id>` or asks to triage, verify, or patch a reported GHSA."
}

GHSA

Analyze and help fix the GitHub Security Advisory (GHSA) provided as the skill argument.

Steps:

  1. Fetch the GHSA page using gh api repos/gogs/gogs/security-advisories and understand the vulnerability details (description, severity, affected versions, CWE).
  2. Verify the reported vulnerability actually exists, and why.
  3. Identify the affected code in this repository.
  4. Propose a fix with a clear explanation of the root cause and how the fix addresses it. Check for prior art in the codebase to stay consistent with existing patterns.
  5. Implement the fix. Only add tests when there is something meaningful to test at our layer.
  6. Run all the usual build and test commands.
  7. Add it to CHANGELOG.md with a placeholder for the PR link.
  8. Create a branch named after the GHSA ID, commit, and push.
  9. Create a pull request with a proper title and description, do not reveal too much detail and link the GHSA.
  10. If a changelog entry was added, update it with the PR link, then commit and push again.

版本历史

  • d460e50 当前 2026-08-20 16:21

同 Skill 集合

.agents/skills/react-doctor/SKILL.md

元信息

文件数
0
版本
dbbd717
Hash
dd1485a8
收录时间
2026-08-20 16:21

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-21 16:20
浙ICP备14020137号-1