Community程式設計與開發github.com

validate-skills

驗證此儲存庫中的技能是否遵循 agentskills.io 規範及 Claude Code 最佳實務。可透過 /validate-skills 指令使用。

validate-skills 是什麼?

此技能用於自動化驗證 `skills/` 目錄下的所有技能,確保它們符合 agentskills.io 的規範以及 Claude Code 的最佳實務。它會逐一檢查每個技能目錄,包括名稱格式(1-64 個字元、小寫字母數字與連字號)、目錄名稱與 name 欄位是否一致、description 長度等規範,以及 Claude Code 要求的第三人稱描述、主體不超過 500 行、單層載入原則等最佳實務。支援跨平台使用(如 Claude Code、Cursor、Codex),可透過 `fd` 工具自動掃描技能目錄,並以結構化格式回報通過或失敗的檢查結果。此技能對於維護大型技能儲存庫的品質至關重要,能自動化審查流程,減少人為遺漏。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/callstackincubator/agent-skills/tree/main/.claude/skills/validate-skills

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

驗證技能

驗證 skills/ 中的所有技能是否符合 agentskills.io 規範以及 Claude Code 最佳實務。

驗證檢查清單

對於每個技能目錄,驗證:

規範遵循 (agentskills.io)

檢查項目規則
name 格式1-64 字元,小寫字母數字 + 連字號,無前導/結尾/連續連字號
name 符合目錄名稱目錄名稱必須等於 name 欄位
description 長度1-1024 字元,不可為空
選用欄位是否有效若存在 license、metadata、compatibility 則需檢查

最佳實務 (Claude Code)

檢查項目規則
描述格式第三人稱,說明做什麼 + 何時使用
主體長度少於 500 行
載入深度為一層SKILL.md 是唯一的漸進式揭露進入點:每個參考檔案必須可從 SKILL.md 直達。參考檔案之間可以互相交叉連結以方便導航(請參閱下方備註)。
連結使用 Markdown使用 [text](https://raw.githubusercontent.com/callstackincubator/agent-skills/main/path) 而非裸檔案名稱
無冗餘請勿在主體中重複描述內容
簡潔僅加入 Claude 尚未具備的上下文

一層深度 vs. 交叉連結。 一層深度規則針對的是漸進式揭露載入鏈 — 只能透過先載入另一個參考才能發現的參考(SKILL.md → a.md → b.md,其中 b.md 未從 SKILL.md 連結)。這是一個缺陷:它會對載入器隱藏內容。

這不禁止導航用交叉連結。根據 AGENTS.md,參考檔案結尾應包含「相關技能」頁尾以連結同層級參考,這是必需的。只要兩個端點也能直接從 SKILL.md 到達,交叉連結就沒問題。僅在參考內容僅能透過另一個參考內容到達時標記為缺陷。

如何執行

  1. 尋找所有技能目錄:

    fd -t d -d 1 . skills/
    
  2. 對每個技能,讀取 SKILL.md 並根據上述規則檢查

  3. 以以下格式回報問題:

    ## 驗證結果
    
    ### skills/example-skill
    - [PASS] name 格式有效
    - [FAIL] name "example" 與目錄 "example-skill" 不符
    - [PASS] description 長度正確(156 字元)
    

參考資料

Individual skills in this repo

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

agent-device

Automates interactions for Apple-platform apps (iOS, tvOS, macOS) and Android devices. Use when navigating apps, taking snapshots/screenshots, tapping, typing, scrolling, or extracting UI info across mobile, TV, and desktop targets.

assess-react-native-migration

Assesses whether and how an existing mobile product should migrate to React Native. Use when auditing one or more product repositories for migration readiness, including products whose iOS, Android, and other clients live in separate directories or repositories; choosing brownfield, greenfield, or a checkpoint-based path; defining a representative trial; or preparing a baseline and ROI decision before implementation. When product scope or material evidence is unavailable, grills the stakeholder with exactly one question per turn instead of sending a questionnaire.

callstackincubator/github

GitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation. Use when working with GitHub PRs, merging strategies, or repository management tasks.

callstackincubator/validate-skills

Validates skills in this repo against agentskills.io spec and Claude Code best practices. Use via /validate-skills command.

create-react-native-library

Scaffolds React Native libraries with create-react-native-library for standalone libraries or local native modules and views. Use when creating or working on React Native libraries or adding native functionality in an existing app.

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", or "test this app" on mobile. Produces a structured report with reproducible evidence: screenshots, optional repro videos, and detailed steps for every issue.

github-actions

GitHub Actions workflow patterns for React Native iOS simulator and Android emulator cloud builds with downloadable artifacts. Use when setting up CI build pipelines or downloading GitHub Actions artifacts via gh CLI and GitHub API.

react-native-best-practices

Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to tasks involving Hermes optimization, JS thread blocking, bridge overhead, FlashList, native modules, or debugging jank and frame drops.

react-native-brownfield-migration

Implements an accepted incremental brownfield migration from native iOS or Android to React Native or Expo using @callstack/react-native-brownfield. Use after the brownfield path has been selected, when setting up the integration, packaging XCFramework or AAR artifacts, or adding React Native surfaces to native hosts.

react-native-testing

Write tests using React Native Testing Library (RNTL) v13 and v14 (`@testing-library/react-native`). Use when writing, reviewing, or fixing React Native component tests. Covers: render, screen, queries (getBy/getAllBy/queryBy/findBy), Jest matchers, userEvent, fireEvent, waitFor, and async patterns. Supports v13 (React 18, sync render) and v14 (React 19+, async render). Triggers on: test files for React Native components, RNTL imports, mentions of "testing library", "write tests", "component tests", or "RNTL".

react-native-tv-best-practices

Reviews React Native TV apps for focus/D-pad navigation, 10-foot UI layout, TV playback/DRM integration, low-memory TV performance, and TV accessibility. Use when building, debugging, or reviewing react-native-tvos, Expo TV, Amazon Vega/Kepler, or React Native web TV targets where the issue depends on remote input, TV focus, TV packaging, TV hardware, or TV playback constraints.

react-navigation

Provides React Navigation UI patterns for stacks, tabs, drawers etc. Use when building navigation UIs with React Navigation, configuring headers, bottom sheets or handling safe areas and insets.

upgrading-react-native

Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

writing-user-docs

House style for user-facing documentation — voice, scope, structure, and what to leave out. Use this skill whenever writing, editing, or reviewing anything a user reads to learn how to use a tool — help center articles, getting-started guides, tutorials, feature docs, README usage sections, in-app help, release notes, or FAQ entries. Trigger it even when the request is phrased plainly — "document this feature", "write docs for X", "explain this to users", "write a README for this library", "turn these notes into a guide" — and even when no style guidelines are mentioned. Also use it to review existing docs for tone, bloat, or leaked implementation detail. Do not use it for internal engineering docs, architecture write-ups, RFCs, or code comments.

相關技能