- 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 就會安裝它。