managing-project-rules
Creates and updates modular project rules for Claude Code in .claude/rules/ directory. Use when creating, updating, or modifying rule files, organizing project guidelines, setting up code standards, or when user mentions "create rules", "update rules", "add rules", or "rule configuration".
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o managing-project-rules.zip https://jpskill.com/download/19045.zip && unzip -o managing-project-rules.zip && rm managing-project-rules.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19045.zip -OutFile "$d\managing-project-rules.zip"; Expand-Archive "$d\managing-project-rules.zip" -DestinationPath $d -Force; ri "$d\managing-project-rules.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
managing-project-rules.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
managing-project-rulesフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 2
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] managing-project-rules
目標: Claude Code のベストプラクティスに従い、.claude/rules/ 内に焦点を絞った、よく整理されたルールファイルを維持・作成します。
重要: ルールは簡潔で、焦点を絞り、トピックごとに整理されている必要があります。参照ドキュメントの構造に従ってください。
ワークフロー
フェーズ 1: 評価
references/project-rules-docs.mdの参照ドキュメントを読みます。.claude/rules/内の既存のルールを分析し、パターンを理解します。- ルールファイルが存在するかどうかを確認します(更新か新規作成か)。
- ルールのスコープを決定します(一般的かパス固有か)。
- 適切なファイル名と構成を特定します。
フェーズ 2: 設定
- 更新の場合: 既存のファイルを読み込み、構造を保持します。
- ルールのトピックとスコープを明確に定義します。
- 明確なセクションとリストでコンテンツを構成します。
- パス固有のルールには YAML フロントマターを適用します。
- コンテンツは一つのトピックに焦点を絞ります。
フェーズ 3: 実装
.claude/rules/内に新規ルールファイルを作成するか、既存のファイルを更新します。- 必要に応じて、より良い整理のためにサブディレクトリを使用します。
- パス固有のルールのフロントマター構文を検証します。
- ファイルの場所、スコープ、および行った変更を報告して完了を報告します。
ルール
- 1つのルールファイルにつき1つのトピック(code-style、testing、security)。
- 説明的なファイル名を使用します(kebab-case)。
- パス固有のフロントマターは本当に必要な場合のみ使用します。
- 更新の場合: セクションを拡張し、重複を削除し、既存のコンテンツを保持します。
- 主要な構造変更を行う前にユーザーに相談します。
受け入れ基準
.claude/rules/ディレクトリにルールファイルが作成または更新されていること。- コンテンツが焦点を絞り、よく整理されていること。
- パス固有のルールに対して YAML フロントマターが有効であること。
- ファイル名が説明的で、kebab-case に従っていること。
- 既存のルールとの競合がないこと。
- レポートにファイルの場所、スコープ、および変更の概要が含まれていること。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Goal: Create and maintain focused, well-organized rule files in .claude/rules/ following Claude Code best practices.
IMPORTANT: Rules should be concise, focused, and organized by topic. Follow the reference documentation structure.
Workflow
Phase 1: Assessment
- Read reference documentation at
references/project-rules-docs.md - Analyze existing rules in
.claude/rules/to understand patterns - Check if rule file exists (update vs create)
- Determine rule scope (general vs path-specific)
- Identify appropriate filename and organization
Phase 2: Configuration
- For updates: read existing file and preserve structure
- Define rule topic and scope clearly
- Structure content with clear sections and lists
- Apply YAML frontmatter for path-specific rules
- Keep content focused on one topic
Phase 3: Implementation
- Create new or update existing rule file in
.claude/rules/ - Use subdirectories for better organization if needed
- Validate frontmatter syntax for path-specific rules
- Report completion with file location, scope, and changes made
Rules
- One topic per rule file (code-style, testing, security)
- Use descriptive filenames (kebab-case)
- Path-specific frontmatter only when truly needed
- For updates: extend sections, remove duplicates, preserve existing content
- Consult user before major structural changes
Acceptance Criteria
- Rule file created or updated in
.claude/rules/directory - Content is focused and well-organized
- YAML frontmatter valid for path-specific rules
- Filename is descriptive and follows kebab-case
- No conflicts with existing rules
- Report includes file location, scope, and summary of changes
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,038 bytes)
- 📎 references/project-rules-docs.md (3,350 bytes)