software-engineering-docs
既存または新規のアプリケーションに対し、ソースコードや既存ドキュメントから、構造化されたソフトウェアエンジニアリングドキュメント(要件定義、ユースケース、仕様、アーキテクチャ、テストなど)を生成、更新、標準化し、一貫性とドメイン境界を維持するSkill。
📜 元の英語説明(参考)
Generate and maintain structured software engineering documentation for new or existing applications. Use when asked to create, update, or normalize requirements.md, use_cases.md, specification.md, architecture.md, uml.md, or tests.md from source code and existing docs, and when enforcing consistency and domain boundaries (for example, preventing endpoint-level details in high-level requirements).
🇯🇵 日本人クリエイター向け解説
既存または新規のアプリケーションに対し、ソースコードや既存ドキュメントから、構造化されたソフトウェアエンジニアリングドキュメント(要件定義、ユースケース、仕様、アーキテクチャ、テストなど)を生成、更新、標準化し、一貫性とドメイン境界を維持するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o software-engineering-docs.zip https://jpskill.com/download/10624.zip && unzip -o software-engineering-docs.zip && rm software-engineering-docs.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/10624.zip -OutFile "$d\software-engineering-docs.zip"; Expand-Archive "$d\software-engineering-docs.zip" -DestinationPath $d -Force; ri "$d\software-engineering-docs.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
software-engineering-docs.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
software-engineering-docsフォルダができる - 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
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
ソフトウェアエンジニアリングドキュメント
概要
行レベルの実装詳細をドキュメント化することなく、コードベースと既存のドキュメントから一貫性のある、エンジニアリンググレードのドキュメントを作成します。要件をビジネスに焦点を当て、インターフェースとコントラクトを明示的にし、図を明示されたシステム境界に合わせます。
ワークフローの決定
記述する前に、次のいずれかのモードを正確に選択してください。
full-generationモード
- ドキュメントが欠落している、不完全である、または信頼できない場合に使用します。
- リポジトリのコンテキストをスキャンし、システムモデルを導き出し、必要なすべてのドキュメントを生成します。
doc-grounded-retrievalモード
- ドキュメントが既に存在し、ユーザーが質問をするか、対象を絞った更新を要求する場合に使用します。
- 既存のドキュメントを最初に読み込み、関連するセクションを抽出し、競合を調整し、明示的なファイル間の参照を使用して回答/更新します。
コア規則
- コードに残すべき実装の内部構造をドキュメント化しないでください。
- 機能要件をケイパビリティレベルに維持します。
requirements.mdにエンドポイントの URL、SQL、クラス名、またはハンドラー名を含めないでください。 - インターフェースと統合コントラクトを
requirements.mdではなくspecification.mdに記述します。 - すべての図と説明を、共有された単一のシステムモデルと一貫性のある状態に保ちます。
- ファイル間で安定した ID を使用します。
- 機能要件:
FR-### - 非機能要件:
NFR-### - ユースケース:
UC-### - コントラクト:
CON-### - 外部システム:
SYS-###
ステップ 1: プロジェクトコンテキストの構築
既存のアプリケーションについては、以下を検査します。
- 製品ドキュメント (
README、docs/、ADR) - ドメインモデル (エンティティ/値オブジェクト/イベント)
- 境界コード (コントローラー/ルート/コンシューマー/プロデューサー)
- 統合ポイント (キュー、DB、サードパーティサービス)
- テスト構造 (ユニット/統合/E2E カバレッジパターン)
scripts/project_inventory.sh を使用して、高速なベースラインインベントリを収集し、対象を絞ったファイル読み取りで調査結果を検証します。
ステップ 2: 標準システムモデルの構築
ドキュメントを生成する前に、以下を定義します。
- 主要なアクター
- 内部システム/サービスとその責任
- 外部システムとコントラクト
- コアドメインエンティティ
- 主要なビジネスフロー
- 品質属性 (セキュリティ、信頼性、スケーラビリティ、可観測性、パフォーマンス)
このシステムモデルを、生成されるすべてのドキュメントの唯一のソースとして扱います。
ステップ 3: ドキュメントセットの生成
references/templates.md を使用して、次の順序でドキュメントを生成します。
requirements.md
- 含めるもの: 目標、スコープ、
FR-*、NFR-*、制約、ケイパビリティレベルでの受け入れ基準。 - 除外するもの: エンドポイントパス、ペイロードスキーマ、テーブル名、フレームワーク固有の詳細。
use_cases.md
- アクター、トリガー、前提条件、メインフロー、代替フロー、例外、成功保証を含むすべての
UC-*ストーリーを含めます。 - システムインタラクション図 (Mermaid シーケンス/フローチャート) を含めます。
specification.md
- アーキテクチャスタイルの理論的根拠を含めます (たとえば、TDD/DDD/EDA/CQRS が該当する場合)。
- システム間の高レベルの運用コントラクト
CON-*を定義します。 - 各コントラクトについて、目的、入力/出力、前提条件、事後条件、障害モード、冪等性/再試行に関する注記を含めます。
architecture.md
- コンテキスト/コンテナレベルのシステム図を含めます。
- 各システムの責任、所有権境界、および依存関係を含めます。
uml.md
- 重要なエンティティの UML クラス/ドメイン図を含めます。
- ドメインに関連する場合にのみ、属性と動作レベルのメソッドを含めます。
- 永続性/ORM/ツール関連のノイズは省略します。
tests.md(該当する場合)
FR-*/NFR-*を検証戦略にマッピングします。- テストレベル (ユニット/統合/E2E/非機能) ごとのカバレッジを要約します。
- 重要なシナリオと品質ゲートをリストします。
ステップ 4: 一貫性ゲートの適用
references/quality-gates.md からチェックを適用してから、最終決定します。
- すべての
FR-*は、少なくとも 1 つのUC-*でカバーされています。 - すべての
UC-*は、1 つ以上のCON-*または内部操作にマッピングされます。 - 図内のすべての外部インタラクションは、
specification.mdで表現されています。 NFR-*は、tests.mdの測定可能な検証ノートにマッピングされます。- ファイル間で、システム/エンティティ/アクターの用語に矛盾はありません。
requirements.mdにエンドポイントレベルの詳細は含まれていません。
ステップ 5: ドキュメントに基づいた検索と更新
ドキュメントが既に存在し、ユーザーが焦点を絞った出力を要求する場合:
- 最初に既存のドキュメントから関連するセクションのみを読み取ります。
- 短いトレースマップ (
requirement -> use case -> contract -> test) を作成します。 - 必要なセクションのみを返すか、更新します。
- ユーザーがリファクタリングを要求しない限り、既存の ID を保持します。
- ドキュメントが競合する場合は、最新の信頼できるファイルを優先し、競合を明示的に呼び出します。
参考文献
必要に応じてのみロードします。
references/templates.mdreferences/quality-gates.mdreferences/diagram-patterns.md
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Software Engineering Docs
Overview
Produce consistent, engineering-grade documentation from codebases and existing docs without documenting line-level implementation details. Keep requirements business-focused, keep interfaces and contracts explicit, and keep diagrams aligned with stated system boundaries.
Workflow Decision
Choose exactly one mode before writing:
full-generationmode
- Use when docs are missing, incomplete, or untrusted.
- Scan repository context, derive the system model, then generate all required docs.
doc-grounded-retrievalmode
- Use when docs already exist and the user asks questions or asks for targeted updates.
- Read existing docs first, extract relevant sections, reconcile conflicts, and answer/update with explicit cross-file references.
Core Rules
- Do not document implementation internals that should remain in code.
- Keep functional requirements at capability level. Avoid endpoint URLs, SQL, class names, or handler names in
requirements.md. - Put interface and integration contracts in
specification.md, not inrequirements.md. - Keep all diagrams and narratives consistent with one shared system model.
- Use stable IDs across files:
- Functional requirements:
FR-### - Non-functional requirements:
NFR-### - Use cases:
UC-### - Contracts:
CON-### - External systems:
SYS-###
Step 1: Build Project Context
For existing applications, inspect:
- Product docs (
README,docs/, ADRs) - Domain model (entities/value objects/events)
- Boundary code (controllers/routes/consumers/producers)
- Integration points (queues, DBs, third-party services)
- Test structure (unit/integration/e2e coverage patterns)
Use scripts/project_inventory.sh to collect a fast baseline inventory, then validate findings with targeted file reads.
Step 2: Build Canonical System Model
Before generating docs, define:
- Primary actors
- Internal systems/services and responsibilities
- External systems and contracts
- Core domain entities
- Primary business flows
- Quality attributes (security, reliability, scalability, observability, performance)
Treat this system model as the single source for all generated documents.
Step 3: Generate Documentation Set
Use references/templates.md and generate documents in this order:
requirements.md
- Include: goals, scope,
FR-*,NFR-*, constraints, acceptance criteria at capability level. - Exclude: endpoint paths, payload schemas, table names, framework-specific details.
use_cases.md
- Include all
UC-*stories with actor, trigger, preconditions, main flow, alternates, exceptions, success guarantees. - Include system interaction diagrams (Mermaid sequence/flowchart).
specification.md
- Include architecture style rationale (for example TDD/DDD/EDA/CQRS where applicable).
- Define high-level operational contracts
CON-*between systems. - For each contract include: purpose, inputs/outputs, preconditions, postconditions, failure modes, idempotency/retry notes.
architecture.md
- Include context/container-level system diagram.
- Include each system responsibility, ownership boundary, and dependency relation.
uml.md
- Include UML class/domain diagrams for significant entities.
- Include attributes and behavior-level methods only when domain-relevant.
- Omit persistence/ORM/tooling noise.
tests.md(if applicable)
- Map
FR-*/NFR-*to validation strategy. - Summarize coverage by test level (unit/integration/e2e/non-functional).
- List critical scenarios and quality gates.
Step 4: Enforce Consistency Gates
Apply checks from references/quality-gates.md before finalizing:
- Every
FR-*is covered by at least oneUC-*. - Every
UC-*maps to one or moreCON-*or internal operations. - Every external interaction in diagrams is represented in
specification.md. NFR-*map to measurable verification notes intests.md.- No contradiction in terminology for systems/entities/actors across files.
- No endpoint-level details in
requirements.md.
Step 5: Doc-Grounded Retrieval and Update
When docs already exist and user asks for focused outputs:
- Read only relevant sections from existing docs first.
- Build a short trace map (
requirement -> use case -> contract -> test). - Return or update only the needed sections.
- Preserve existing IDs unless user asks for refactoring.
- If docs conflict, prefer newest authoritative file and call out the conflict explicitly.
References
Load only as needed:
references/templates.mdreferences/quality-gates.mdreferences/diagram-patterns.md