Community编程与开发github.com

验证技能

根据 agentskills.io 规范和 Claude Code 最佳实践验证本仓库中的技能。可通过 /validate-skills 命令使用。

验证技能 是什么?

该技能用于自动验证 `skills/` 目录下每个技能是否符合 agentskills.io 规范以及 Claude Code 最佳实践。它执行一系列检查,包括技能名称格式(仅限小写字母数字和连字符,长度 1–64 字符)、目录名称与 name 字段一致性、描述长度范围(1–1024 字符),以及可选字段的有效性。在最佳实践方面,该技能检查描述是否采用第三人称、正文是否少于 500 行、加载深度是否仅为一层(即从 SKILL.md 可直接访问所有引用文件,避免仅通过另一引用文件才能发现的隐藏内容),并要求使用 Markdown 格式的链接而非裸文件名。此外,它还确保正文不重复描述内容,且只添加 Claude 不已有的上下文。该技能可被任何集成 /validate-skills 命令的 AI 代理平台使用,例如 Claude Code。技能通过读取每个子目录中的 SKILL.md 并对照规则列表进行比对来工作,最终以清晰的 PASS/FAIL 格式报告结果。

兼容平台✓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 的新对话。

文档

验证技能 是做什么的?

根据 agentskills.io 规范和 Claude Code 最佳实践,验证 skills/ 中的所有技能。

验证清单

针对每个技能目录,验证以下项目:

规范遵从性(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
    - [通过] name 格式有效
    - [失败] name "example" 与目录 "example-skill" 不匹配
    - [通过] 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.

相关技能