본문으로 건너뛰기
cccskills
무료GitHub에 공개

creating-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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md2.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Creating Claude Rules

Overview

Rules in .claude/rules/ are modular instructions scoped to specific files via glob patterns. They load automatically with same priority as CLAUDE.md.

When to Use

  • Creating new rules in .claude/rules/
  • Fixing rules that use wrong frontmatter (globs instead of paths)
  • Migrating Cursor rules to Claude format
  • Organizing project-specific conventions

Quick Reference

FieldClaudeCursor
Path patternspathsglobs
Always applyOmit pathsalwaysApply: true
DescriptionNot documenteddescription

Frontmatter

Path-Scoped Rules

---
paths:
  - 'src/api/**/*.ts'
  - 'tests/**/*.test.ts'
---

Or single pattern:

---
paths: src/**/*.{ts,tsx}
---

Global Rules

Omit frontmatter entirely - applies to all files:

# TypeScript Conventions

Use .js extensions in imports.

Common Mistakes

# ❌ 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"
---

Directory Structure

.claude/rules/
├── testing.md          # Path-scoped or global
├── typescript.md
└── frontend/           # Subdirectories supported
    └── react.md

Files discovered recursively. Use subdirectories to organize.

Glob Patterns

PatternMatches
**/*.tsAll .ts files anywhere
src/**/*Everything under src/
*.mdMarkdown in root only
**/*.{ts,tsx}.ts and .tsx files
{src,lib}/**/*.ts.ts in src/ or lib/

Reference

https://code.claude.com/docs/en/memory#modular-rules-with-claude/rules/

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when you need Codex to coordinate multiple agents through Agent Relay for peer-to-peer messaging, lead/worker handoffs, or shared status tracking across sub-agents and terminals.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

AgentWorkforce/relay8872026년 10월 18일 업데이트

Use when testing web applications with visual verification - automates Chrome browser interactions, element selection, and screenshot capture for confirming UI functionality

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

AgentWorkforce/relay8872026년 10월 18일 업데이트

Use when coordinating multiple AI agents with Agent Relay's workflow engine and need to pick the right orchestration pattern - covers the 10 core patterns (fan-out, pipeline, hub-spoke, consensus, mesh, handoff, cascade, dag, debate, hierarchical) plus 14 specialized ones, with decision framework and accurate SDK/YAML examples.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

AgentWorkforce/relay8872026년 10월 18일 업데이트

Use when creating Agent Skills packages (SKILL.md format) for Codex CLI, GitHub Copilot, or Amp - provides the agentskills.io specification with frontmatter constraints, directory structure, and validation rules

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

AgentWorkforce/relay8872026년 10월 18일 업데이트

Use when creating or improving Claude Code agents. Expert guidance on agent file structure, frontmatter, persona definition, tool access, model selection, and validation against schema.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

AgentWorkforce/relay8872026년 10월 18일 업데이트

Use when creating or publishing Claude Code hooks - covers executable format, event types, JSON I/O, exit codes, security requirements, and PRPM package structure

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

AgentWorkforce/relay8872026년 10월 18일 업데이트

AgentWorkforce의 스킬 모두 보기

이 스킬의 문제 신고