Communitygithub.com

pytorch/skill-writer

指导用户为 Claude Code 创建 Agent 技能。当用户想要创建、编写或设计新技能,或需要有关 SKILL.md 文件、前置元数据或技能结构的帮助时使用。

skill-writer 是什么?

该技能旨在帮助开发者高效地为 Claude Code 创建自定义 Agent 技能。它会引导用户完成技能设计的全流程,包括如何编写 SKILL.md 文件、定义前置元数据(如技能名称、描述、触发条件等)以及构建技能的整体结构。该技能特别适合需要扩展 Claude Code 功能的场景,例如自动化特定任务、集成外部工具或实现定制化工作流。它支持所有 Claude Code 平台,并且完全兼容社区标准,确保创建的技能具有良好的可维护性和可移植性。通过清晰的步骤和最佳实践建议,该技能能显著降低技能开发的门槛,使开发者能够快速将想法转化为可用的 Agent 能力。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pytorch/pytorch/tree/main/skills/skill-writer

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

skill-writer 是做什么的?

指导用户为 Claude Code 创建 Agent 技能。当用户想要创建、编写或设计新技能,或需要有关 SKILL.md 文件、前置元数据或技能结构的帮助时使用。

Individual skills in this repo

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

pytorch/add-uint-support

Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.

pytorch/aoti-debug

Debug AOTInductor (AOTI) errors and crashes. Use when encountering AOTI segfaults, device mismatch errors, constant loading failures, or runtime errors from aot_compile, aot_load, aoti_compile_and_package, or aoti_load_package.

pytorch/at-dispatch-v2

Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.

pytorch/docstring

Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.

pytorch/metal-kernel

Write Metal/MPS kernels for PyTorch operators. Use when adding MPS device support to operators, implementing Metal shaders, or porting CUDA kernels to Apple Silicon. Covers native_functions.yaml dispatch, host-side operators, and Metal kernel implementation.

pytorch/pr-review

Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".

pytorch/pyrefly-type-coverage

Migrate a file to use stricter Pyrefly type checking with annotations required for all functions, classes, and attributes.

pytorch/triaging-issues

Triages GitHub issues by routing to oncall teams, applying labels, and closing questions. Use when processing new PyTorch issues or when asked to triage an issue.

相关技能