gitlink
仓库创建 2026年6月24日最近提交 23 天前SkillHot 收录 22 天前
▸ 精选理由
简化分享代码位置的流程,自动处理不同 git host 的 URL 细节。
这个 Skill 做什么
把仓库中的文件或行范围转成可点击的代码主机永久链接(permalink)。
把仓库里某个文件或行范围变成可点击的永久 web 链接(permalink),方便发给同事精确定位代码位置。适合需要分享 snippet、指派 review 或在文档里引用具体行时用。特点是会按代码主机拼对 URL、按提交定锚点,确保链接长期有效。
▸ 展开 SKILL.md 英文原文
Build shareable, clickable web permalinks to specific lines of code on the repo's git host. Use this whenever the user wants to share, link to, or point someone at a snippet, function, file, or line range — phrasings like "send me a link to these lines", "get a permalink", "shareable link to this code".
0
Stars
0
Forks
5
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/juff17/docify/master/skills/gitlink/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/juff17/docify/master/skills/gitlink/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# gitlink — shareable permalinks to code Turn code locations into web links anyone can click. The work splits cleanly: **you** figure out which file and lines the user means; the bundled script turns that into a correct URL for whatever host the repo lives on. Let the script own the fiddly parts (parsing the remote, picking the right URL shape per host, pinning to a commit) so links are correct and consistent. ## Why permalinks pin to a commit By default the script links to the current commit SHA, not a branch. A link like `.../blob/main/app.py#L40-L52` silently rots — as `main` moves, those line numbers point at different code. A commit-pinned link keeps showing exactly what the user mea
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有