跳到正文
Skillpedia
网站与界面(前端)75k · #2922

link-text

它能做什么

这项技能检查页面上的链接文字,并用描述性的短语替换含糊的措辞。适用于制作或编辑网页、希望页面便于屏幕阅读器使用的人。

适用场景

  • ✓当你请智能体检查页面上的链接文字是否清晰的时候。
  • ✓当页面上有很多写着“阅读更多”或“了解更多”的链接,而你想改进它们的时候。
  • ✓当你在搭建组件或设计系统,需要脱离上下文也能看懂的链接的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-text/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-text/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2922
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能