agentleFS
GenerativeAgentsGenerativeAgents/claude-code-book-chapter8/.claude/skills/repository-structure/SKILL.md

repository-structure

Skill114 starsChanged 11 months agoMITView on GitHub

リポジトリ構造定義書を作成するための詳細ガイドとテンプレート。リポジトリ構造定義時にのみ使用。

Files
SKILL.md

リポジトリ構造定義スキル

このスキルは、明確で保守しやすいリポジトリ構造を定義するための詳細ガイドです。

前提条件

リポジトリ構造定義を開始する前に、以下を確認してください:

必須ドキュメント

  1. docs/product-requirements.md (PRD)
  2. docs/functional-design.md (機能設計書)
  3. docs/architecture.md (アーキテクチャ設計書)

リポジトリ構造は、アーキテクチャ設計で決定された技術スタックとシステム構成を反映した具体的なディレクトリ構造を定義します。

既存ドキュメントの優先順位

重要: docs/repository-structure.md に既存のリポジトリ構造定義書がある場合、以下の優先順位に従ってください:

  1. 既存のリポジトリ構造定義書 (docs/repository-structure.md) - 最優先
    • プロジェクト固有のディレクトリ構造が記載されている
    • このスキルのガイドより優先する
  2. このスキルのガイド - 参考資料
    • 汎用的なテンプレートと例
    • 既存定義書がない場合、または補足として使用

新規作成時: このスキルのテンプレートとガイドを参照 更新時: 既存定義書の構造と内容を維持しながら更新

出力先

作成したリポジトリ構造定義書は以下に保存してください:

docs/repository-structure.md

テンプレートの参照

リポジトリ構造定義書を作成する際は、次のテンプレートを使用してください: ./template.md

詳細ガイド

さらに詳しい作成ガイドは次のファイルを参照してください: ./guide.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.