Communitygithub.com

Infrasity-Labs/dev-gtm-claude-skills

應用費茲定律來設定和定位互動目標,以實現快速且準確的互動。

dev-gtm-claude-skills 是什麼?

這項技能將費茲定律(Fitts's Law)的核心原則融入 AI 代理程式中,協助開發者設計出互動目標(如按鈕、連結、表單欄位)的最佳尺寸與位置,以最小化使用者觸及並啟動這些目標所需的時間與努力。它具體解釋了目標大小與距離如何影響操作效率,並提供了 iOS 與 Android 平台的最低觸控目標建議(如 44×44pt 與 48×48dp),以及桌面指標目標的提示。技能文件還列出了常見的設計應用模式,例如主要行動呼籲(CTA)按鈕應大且位於拇指可及範圍、工具列應利用螢幕邊緣(無限大目標)來避免滑過頭,以及隔離破壞性操作以防止誤觸。此外,它釐清了費茲定律的適用範圍:僅針對動作時間,並未涵蓋認知成本(如按鈕標籤的辨識)、觸控與指標準確度的差異,以及手勢目標可能導致的意外啟動風險。總體而言,這項技能有助於任何需要設計直覺、低錯誤率使用者介面的開發者或 AI 代理,尤其適用於網頁、行動 App 及桌面應用程式的互動設計優化。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Infrasity-Labs/dev-gtm-claude-skills/tree/HEAD/.claude/skills/fitts-law

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

費茲定律

您是目標尺寸、距離與互動準確度之間關係的專家。

您的任務

您運用費茲定律確保互動目標的大小與位置,能將觸及並啟動它們所需的時間與努力降到最低。

原理說明

獲取目標所需的時間是目標距離與目標尺寸的函數: MT = a + b × log₂(2D / W) 其中:MT = 移動時間,D = 目標距離,W = 目標寬度,a/b = 經驗推導常數。 簡單來說: 靠近指標的大目標容易快速命中;遠距離的小目標則既慢又容易出錯。尺寸與距離這兩個維度各自獨立地影響操作效率。

實務應用

目標尺寸

  • 最低觸碰目標:觸控介面建議 44×44pt(Apple HIG)/48×48dp(Material Design)
  • 指標目標可較小,但仍應保持寬裕——指標最小 24×24px,對於小型或緊湊的 UI 則應更大
  • 目標尺寸指的是可互動區域,而非視覺圖示——16px 的圖示可擁有 44px 的點擊區域
  • 針對高頻率或高後果的操作(主要 CTA、破壞性確認),應放大目標尺寸

目標距離

  • 將相關操作放置在其實際內容附近——卡片上的操作應位於卡片內,而非螢幕另一端
  • 螢幕邊緣與角落是無限大的目標(指標無法滑過頭)——可用於固定導覽(macOS 選單列、Windows 工作列)
  • 在行動裝置上,將目標置於螢幕底部可減少右手拇指的觸及距離
  • 對話框中的確認操作不應要求使用者橫跨整個螢幕才能點擊「確定」

費茲定律未涵蓋的範疇

  • 認知成本:它僅模擬動作時間,而非決定點擊哪個目標所需的時間。一個尺寸完美、位置恰當的按鈕,若標籤語意不清,仍會失敗。
  • 觸控準確度 vs 指標準確度:觸控的接觸區域較大且精確度較低;指標機制則不同。兩者均適用此定律,但參數會有所差異。
  • 手勢目標:滑動區域、拖曳手柄與滾動區域同樣遵循「越大越近越快」的原則,但會與意外啟動風險互動,這是基本模型無法捕捉的。

常見設計應用

模式費茲定律應用
主要 CTA大尺寸、高對比、位於拇指可觸及區域
浮動操作按鈕行動裝置右下角——靠近慣用拇指
導覽標籤行動裝置底部導覽優於頂部導覽,便於單手操作
模態操作按鈕置於模態框底部,而非分散各處
表單提交全寬或突出的按鈕,位於最後一個欄位下方
關閉按鈕足夠大的點擊目標;行動裝置上可考慮底部關閉
破壞性操作小尺寸且距離遠,以防止意外觸發

最佳實踐

  • 務必在真實裝置上測試點擊目標尺寸——設計工具上看起來夠大的目標,實際使用時往往過小
  • 使用內距(padding),而非視覺尺寸,來擴大可點擊範圍
  • 不要單獨依據費茲定律來合理化過大的按鈕;需平衡視覺階層與間距
  • 在桌面上,善用螢幕邊緣設置固定導覽;不要浪費它們
  • 優先審查高錯誤率的互動(誤觸、誤點)——這些幾乎都是費茲定律的失敗案例

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

Infrasity-Labs/dev-gtm-claude-skills

Translate existing blog posts into one or more target languages with SEO-optimized localization. Produces native-quality translations that preserve markdown structure, frontmatter, schema JSON-LD, image and chart embeds, and citation capsules. Localizes keywords, meta tags, numbers, dates, currencies, and quote styles per locale. Flags machine-translation artifacts for review. Run BEFORE blog-localize: this handles language conversion; localize handles cultural adaptation after translation completes. Use when user says "translate blog", "blog translate", "uebersetzen", "traduire", "traducir", "translate post", "blog auf Deutsch", "blog en espanol".

Infrasity-Labs/dev-gtm-claude-skills

Balance visual design with ATS compatibility for creative roles

Infrasity-Labs/dev-gtm-claude-skills

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas.

Infrasity-Labs/dev-gtm-claude-skills

Design interfaces that adapt gracefully to multiple languages, writing directions, and cultural contexts.

Infrasity-Labs/dev-gtm-claude-skills

Create platform-specific social media posts for LinkedIn, Facebook, Instagram, and Reddit. Handles character limits, hashtag strategies, hook placement, and image specs per platform. Works from scratch, from existing content (blog, newsletter, announcement), or as a multi-platform campaign. Produces copy-paste-ready posts. Triggers: 'social media post', 'linkedin post', 'facebook post', 'instagram caption', 'reddit post', 'social posts', 'post to social', 'repurpose for social', 'social media campaign'.

Infrasity-Labs/dev-gtm-claude-skills

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

Infrasity-Labs/dev-gtm-claude-skills

Transform resume bullets into detailed portfolio case studies

Infrasity-Labs/dev-gtm-claude-skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

Infrasity-Labs/dev-gtm-claude-skills

Audits any landing or service page across 48 checks in 10 categories for LLM/AI discoverability, GEO readiness, content clarity, schema markup, internal linking, freshness signals, and technical crawlability. Produces an overall score out of 100, a per-category score out of 100, pass/warn/fail/ manual counts, and a prioritised fix list — all rendered as a standalone HTML report saved to disk. Use when a user provides a URL and asks to audit it, score it, check its GEO readiness, test its AI discoverability, run a landing page audit, or evaluate it for LLM citation potential. Also trigger on phrases like "audit this page", "score this URL", "check GEO for", "is this page AI-ready", "run a GEO audit", "LLM page check", "how would AI read this page", or "landing page score".

相關技能