一键导入
gitcode-issue-analyzer
获取并分析GitCode仓库的issue信息(open/closed)。当用户想从GitCode收集issue、分析已关闭issue的解决方案、或获取开启issue的处理建议时调用。支持Ascend项目如mind-cluster、RecSDK等。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
获取并分析GitCode仓库的issue信息(open/closed)。当用户想从GitCode收集issue、分析已关闭issue的解决方案、或获取开启issue的处理建议时调用。支持Ascend项目如mind-cluster、RecSDK等。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
基于FastAPI知识库服务实现的RAG知识管理与检索技能,支持文档上传、解析、入库、删除、列表查询、内容检索、全文检索等能力,兼容PDF/DOCX/TXT/MD等格式,支持图片解析与多粒度描述入库,可直接对接Agent/机器人进行知识问答。
Analyzes pull requests and codebases for implementation and architecture issues, outputs structured analysis reports and refactoring suggestions. Use when reviewing PRs, examining code changes, conducting periodic codebase reviews, or when the user asks for refactoring/architecture analysis.
模型资源收集。联网搜索最新免费/优惠的AI模型资源信息(如各大云厂商优惠活动、免费API、Coding计划等),整理并生成配置指南文档。适用于用户询问"有什么便宜的模型推荐"、"免费模型有哪些"、"模型优惠"等场景。
系统化、安全地代码重构技能。能够识别代码坏味道、提供重构手法,支持制定计划、执行重构并验证结果。适用于代码质量提升、技术债清理、可维护性改进、代码优化、代码改进等场景。当用户请求重构代码、优化代码质量、修复代码问题或清理技术债时触发。
GitCode PR安全审查技能。用于自动审查GitCode仓库的Pull Request中的代码安全问题,使用sdk-security-audit技能进行代码安全分析,并将审查结果作为评论发布到对应的PR上。当用户需要对GitCode仓库的PR进行安全代码审查时使用此技能。
Generate reply drafts for a single GitCode issue; maintainer reviews before posting. Use when user asks to reply to or comment on an issue and provides a GitCode issue link; do not use when user only wants to fetch or query issue data. 针对单个 GitCode Issue 生成回复草稿,维护者审阅后可发送评论;仅当用户要回复或评论且提供链接时使用,仅获取或查询 issue 信息时勿用。Python 3.7+ standard library only.
| name | gitcode-issue-analyzer |
| description | 获取并分析GitCode仓库的issue信息(open/closed)。当用户想从GitCode收集issue、分析已关闭issue的解决方案、或获取开启issue的处理建议时调用。支持Ascend项目如mind-cluster、RecSDK等。 |
本技能帮助您从GitCode仓库获取并分析issue信息,特别是针对Ascend项目。
在以下情况下调用此技能:
对于Ascend项目,支持以下仓库:
您也可以在以下链接中查找更多仓库:https://gitcode.com/Ascend
此技能需要在环境变量 GITCODE_TOKEN 中存储GitCode API token。
在使用此技能之前,引导用户设置token:
# 临时设置(仅当前会话有效)
$env:GITCODE_TOKEN = "your_token_here"
# 永久设置(用户级别)
[Environment]::SetEnvironmentVariable("GITCODE_TOKEN", "your_token_here", "User")
# 永久设置(系统级别 - 需要管理员权限)
[Environment]::SetEnvironmentVariable("GITCODE_TOKEN", "your_token_here", "Machine")
# 临时设置(仅当前会话有效)
export GITCODE_TOKEN="your_token_here"
# 永久设置 - 添加到 ~/.bashrc 或 ~/.zshrc
echo 'export GITCODE_TOKEN="your_token_here"' >> ~/.bashrc
source ~/.bashrc
获取GitCode token的方法:
从用户的prompt中,使用以下模式提取仓库名称:
通过bash命令调用脚本获取issue,将 ${repo} 替换为从用户prompt中提取的仓库名称:
获取脚本位于skill目录下:.opencode/skill/gitcode-issue-analyzer/scripts/fetch/
将xlsx文件保存到此目录下:.opencode/skill/gitcode-issue-analyzer/
python scripts/fetch/fetch_open_issues.py ${repo}
将xlsx文件保存到此目录下:.opencode/skill/gitcode-issue-analyzer/
python scripts/fetch/fetch_closed_issues.py ${repo}
将xlsx文件保存到此目录下:.opencode/skill/gitcode-issue-analyzer/
python scripts/fetch/fetch_issue_comments.py ${repo}
python scripts/validate/validate_issue.py ${repo}
脚本会自动:
${repo_open_issue.xlsx} 和 ${repo_closed_issue.xlsx} 以及 ${repo_issue_comments.xlsx}通过bash命令调用脚本处理issue,将 ${repo} 替换为从用户prompt中提取的仓库名称:
分类脚本位于skill目录下:.opencode/skill/gitcode-issue-analyzer/scripts/classify/
python scripts/classify/classify_issue_comments.py ${repo_issue_comments.xlsx}
生成的issue评论处理文档放于skill目录的references目录下:.opencode/skill/gitcode-issue-analyzer/references/
注意,先生成完成issue评论处理文档后再进行步骤4:分析Issue
匹配脚本位于skill目录下:.opencode/skill/gitcode-issue-analyzer/scripts/match/
首先从references目录下的本地issue处理建议文档中匹配,调用python脚本:
python scripts/match/match_open_issues.py ${repo_open_issue.xlsx}
脚本会自动:
${repo_open_issue.xlsx} 文件对于没有匹配到的open_issue,则从网络对应仓库上查找。
如果匹配度高,则写入匹配建议到references目录下的markdown文档:.opencode/skill/gitcode-issue-analyzer/references/
每个仓库的doc目录下文档匹配处理建议:
查找仓库下的README文档和docs目录下的文档:
https://gitcode.com/Ascend/{repo}/blob/master/README.mdhttps://gitcode.com/Ascend/{repo}/tree/master/docs例如mind-cluster仓库:
https://gitcode.com/Ascend/mind-cluster/blob/master/README.mdhttps://gitcode.com/Ascend/mind-cluster/tree/master/docs如果在网络对应仓库上查找都没有匹配的,则采用网络上的公开资料:
重要要求:
如果匹配度高,则写入匹配建议到references目录下的markdown文档:.opencode/skill/gitcode-issue-analyzer/references/
分析已关闭的issue时,关注以下内容:
"帮我收集mind-cluster仓库下的issue信息,并分析closed的issue给出处理建议"
python scripts/fetch/fetch_open_issues.py mind-clusterpython scripts/fetch/fetch_closed_issues.py mind-clusterpython scripts/fetch/fetch_issue_comments.py mind-clusterpython scripts/validate/validate_issue.py mind-clustermind-cluster_open_issue.xlsx - 包含所有开启的issuemind-cluster_closed_issue.xlsx - 包含所有已关闭的issuemind-cluster_issue_comments.xlsx - 包含所有issue的评论提供摘要,包括: