- name
SKILL.md
技能文件保留在发布者的仓库中。
在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add AgentWorkforce/relay --skill creating-claude-rules-skill -a cursor -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add AgentWorkforce/relay --skill creating-claude-rules-skill -a claude-code -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add AgentWorkforce/relay --skill creating-claude-rules-skill -a codex -y在终端中粘贴复制的命令。它会把这个 SKILL.md 安装到对应的智能体中。
npx skills add AgentWorkforce/relay --skill creating-claude-rules-skill -a grok -y在 Grok Bot 聊天中发送复制的消息。Bot 会从 GitHub 获取这个 SKILL.md,并添加到你所有 Bot 共享的技能中。
Install this skill: https://github.com/AgentWorkforce/relay/tree/HEAD/.claude/skills/creating-claude-rules-skill来自发布者
Rules in .claude/rules/ are modular instructions scoped to specific files via glob patterns. They load automatically with same priority as CLAUDE.md.
.claude/rules/globs instead of paths)---
paths:
- 'src/api/**/*.ts'
- 'tests/**/*.test.ts'
---
Or single pattern:
---
paths: src/**/*.{ts,tsx}
---
Omit frontmatter entirely - applies to all files:
# TypeScript Conventions
Use .js extensions in imports.
# ❌ WRONG - globs is Cursor format
---
globs:
- '**/*.ts'
---
# ✅ CORRECT - Claude uses paths
---
paths:
- '**/*.ts'
---
# ❌ WRONG - alwaysApply is Cursor-only
---
alwaysApply: true
---
# ✅ CORRECT - just omit paths for global rules
# (no frontmatter needed)
# ❌ WRONG - unquoted patterns
---
paths:
- **/*.ts
---
# ✅ CORRECT - quote glob patterns
---
paths:
- '**/*.ts'
---
.claude/rules/
├── testing.md # Path-scoped or global
├── typescript.md
└── frontend/ # Subdirectories supported
└── react.md
Files discovered recursively. Use subdirectories to organize.
https://code.claude.com/docs/en/memory#modular-rules-with-claude/rules/
Use when creating or fixing .claude/rules/ files - provides correct paths frontmatter (not globs), glob patterns, and avoids Cursor-specific fields like alwaysApply
---name: creating-claude-rulesdescription: Use when creating or fixing .claude/rules/ files - provides correct paths frontmatter (not globs), glob…---# .claude/skills/creating-claude-rules-skill/SKILL.md常见问题
从发布者处下载 .claude/skills/creating-claude-rules-skill/SKILL.md,或复制路径后打开仓库。PlugMCP 只收录该技能,不托管文件。
发布者将它存放在 https://github.com/AgentWorkforce/relay。
Claude、Cursor、Codex 和 Grok Build 可以读取你从发布者仓库添加的 SKILL.md。在聊天中发送技能的 GitHub 文件夹链接,Grok Bot 就会安装它。