jieran-zhang/cannbot-skills/fixer-broken-link
Claude Code and agent skill by jieran-zhang/cannbot-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Ascend C 算子仓库 Markdown 断链修复技能。用于扫描 ops-math/ops-nn/ops-transformer/ops-cv 算子仓库的 Markdown 文件断链,自动修复并创建 PR。当用户需要修复文档断链、检查链接有效性时使用。
Install
npx vskill@latest install jieran-zhang/cannbot-skills/fixer-broken-linkSKILL.md
Markdown 断链修复技能
API 与环境配置
本 skill 的 PR 创建功能引用 gitcode-toolkit(软链接 infra)的 PR 创建工作流:
- gitcode-toolkit/SKILL.md — PR 创建工作流(Step 1-7)
- gitcode-api.md — GitCode PR API 详细文档
- env-check.md — 环境预检(token / git / curl / /tmp)
- token-config.md — Token 配置优先级
概述
扫描仓库 Markdown 文件中的断链,自动修复并创建 PR,支持:
- 断链检测:扫描
.md文件中的链接(相对路径、绝对路径) - 自动修复:修正路径错误、删除不存在的链接
- 批量处理:支持批量修复多个断链
- PR 创建:修复后自动创建 PR(可选)
入口参数
| 参数 | 必填 | 说明 | |
|---|---|---|---|
repo | ✅ | 仓库名(ops-math, ops-nn, ops-transformer, ops-cv) | |
--scope | ❌ | 扫描范围:all(全部)、readme(仅 README) | |
--fix | ❌ | 自动修复断链(默认仅报告) | |
--create-pr | ❌ | 修复后创建 PR | |
--dry-run | ❌ | 仅模拟修复,不实际修改文件 |
执行流程
断链类型与修复策略
| 断链类型 | 示例 | 修复策略 | |
|---|---|---|---|
| 路径层级错误 | ./examples/test.cpp → ./examples/arch35/test.cpp | 修正路径 | |
| 文件不存在 | ./docs/api.md(目录不存在) | 删除链接,标注待补充 | |
| 链接换行 | [text](path/ + file.cpp) | 合并单行 | |
| 跨算子引用错误 | ../other_op/examples/ | 修正路径或删除 | |
| 外部链接失效 | https://example.com/doc.md | 跳过,记录报告 |
报告与 Issue 输出规范
遵循统一规范: 详见../../templates/issue_workflow_spec.md
目录结构
Issue 自动生成规则
| 问题类型 | Issue 类型 | 优先级 | 自动生成 | |
|---|---|---|---|---|
| 路径错误(可修复) | Documentation | 中 | ✅ | |
| 文件不存在(需人工) | Documentation | 低 | ✅ | |
| 外部链接失效 | Documentation | 低 | ✅(标注无法自动修复) |
Issue 模板格式
快速使用
PR 创建流程
修复完成后,如需创建 PR,请引用 gitcode-toolkit 的 PR 创建工作流:
PR 创建步骤(详见 gitcode-toolkit/SKILL.md):
| 步骤 | 说明 | |
|---|---|---|
| Step 1 | 获取信息(分支名、commit历史、目标仓库) | |
| Step 2 | 获取 PR 模板(.gitcode/PULL_REQUEST_TEMPLATE.zh-CN.md) | |
| Step 3 | 分析并填充模板(从 commit messages 汇总生成) | |
| Step 4 | 用户确认 | |
| Step 5 | 推送分支 | |
| Step 6 | 创建 PR(调用 GitCode API) | |
| Step 7 | 记录日志 |
技能文件结构
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins-community/ops-qa-suite/.opencode/skills/fixer-broken-link/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jieran-zhang/cannbot-skills/fixer-broken-link)