link-text
它能做什么
这项技能检查页面上的链接文字,并用描述性的短语替换含糊的措辞。适用于制作或编辑网页、希望页面便于屏幕阅读器使用的人。
适用场景
- ✓当你请智能体检查页面上的链接文字是否清晰的时候。
- ✓当页面上有很多写着“阅读更多”或“了解更多”的链接,而你想改进它们的时候。
- ✓当你在搭建组件或设计系统,需要脱离上下文也能看懂的链接的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-text/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把页面中只写着“点击这里”或“阅读更多”的链接文字改得更清楚。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会读取每个链接,检查其文字本身是否说明了目的地。如果没有,它会建议更清晰的措辞或无障碍标签。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Use descriptive link text
Screen reader users navigate by listing all links—'click here' repeated 10 times tells them nothing, while descriptive links let them jump directly to relevant content.
Quick Reference
- Avoid generic text like 'click here', 'read more', 'learn more'
- Link text should describe the destination without surrounding context
- Use links for navigation to a URL, not for in-page actions
- Use aria-label when visual design requires short text
- Include file type and size for download links
Check
Review all links and verify text describes the destination. Avoid generic phrases like 'click here', 'read more', 'learn more' without additional context. Check that screen readers can understand link purpose out of context.
Fix
Replace generic link text with descriptive phrases. Use aria-label or aria-labelledby when visual design requires short text but context is needed. Ensure each link's purpose is clear from its text alone.
Explain
Explain how screen reader users often navigate by listing all links on a page, and why 'click here' repeated multiple times provides no useful information about where each link leads.
Code Review
Review the rendered markup and interactive states that affect Use descriptive link text. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/link-text
常见问题
链接文字对屏幕阅读器用户为什么重要?
许多屏幕阅读器用户会逐个跳转页面上的所有链接,因此每个链接都需要能够独立看懂。
什么时候需要 aria-label?
当视觉设计只能放下简短文字,而链接仍需要更多上下文时,aria-label 会有帮助。
下载链接需要特别说明什么吗?
需要。这项技能建议在下载链接文字中注明文件类型和大小。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use descriptive link text. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #2922
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。