jpskill.com
✍️ ライティング コミュニティ

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本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
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
🪟 Windows (PowerShell)
$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. 1. 下の青いボタンを押して software-engineering-docs.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → software-engineering-docs フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

ソフトウェアエンジニアリングドキュメント

概要

行レベルの実装詳細をドキュメント化することなく、コードベースと既存のドキュメントから一貫性のある、エンジニアリンググレードのドキュメントを作成します。要件をビジネスに焦点を当て、インターフェースとコントラクトを明示的にし、図を明示されたシステム境界に合わせます。

ワークフローの決定

記述する前に、次のいずれかのモードを正確に選択してください。

  1. full-generation モード
  • ドキュメントが欠落している、不完全である、または信頼できない場合に使用します。
  • リポジトリのコンテキストをスキャンし、システムモデルを導き出し、必要なすべてのドキュメントを生成します。
  1. doc-grounded-retrieval モード
  • ドキュメントが既に存在し、ユーザーが質問をするか、対象を絞った更新を要求する場合に使用します。
  • 既存のドキュメントを最初に読み込み、関連するセクションを抽出し、競合を調整し、明示的なファイル間の参照を使用して回答/更新します。

コア規則

  1. コードに残すべき実装の内部構造をドキュメント化しないでください。
  2. 機能要件をケイパビリティレベルに維持します。 requirements.md にエンドポイントの URL、SQL、クラス名、またはハンドラー名を含めないでください。
  3. インターフェースと統合コントラクトを requirements.md ではなく specification.md に記述します。
  4. すべての図と説明を、共有された単一のシステムモデルと一貫性のある状態に保ちます。
  5. ファイル間で安定した ID を使用します。
  • 機能要件: FR-###
  • 非機能要件: NFR-###
  • ユースケース: UC-###
  • コントラクト: CON-###
  • 外部システム: SYS-###

ステップ 1: プロジェクトコンテキストの構築

既存のアプリケーションについては、以下を検査します。

  • 製品ドキュメント (READMEdocs/、ADR)
  • ドメインモデル (エンティティ/値オブジェクト/イベント)
  • 境界コード (コントローラー/ルート/コンシューマー/プロデューサー)
  • 統合ポイント (キュー、DB、サードパーティサービス)
  • テスト構造 (ユニット/統合/E2E カバレッジパターン)

scripts/project_inventory.sh を使用して、高速なベースラインインベントリを収集し、対象を絞ったファイル読み取りで調査結果を検証します。

ステップ 2: 標準システムモデルの構築

ドキュメントを生成する前に、以下を定義します。

  1. 主要なアクター
  2. 内部システム/サービスとその責任
  3. 外部システムとコントラクト
  4. コアドメインエンティティ
  5. 主要なビジネスフロー
  6. 品質属性 (セキュリティ、信頼性、スケーラビリティ、可観測性、パフォーマンス)

このシステムモデルを、生成されるすべてのドキュメントの唯一のソースとして扱います。

ステップ 3: ドキュメントセットの生成

references/templates.md を使用して、次の順序でドキュメントを生成します。

  1. requirements.md
  • 含めるもの: 目標、スコープ、FR-*NFR-*、制約、ケイパビリティレベルでの受け入れ基準。
  • 除外するもの: エンドポイントパス、ペイロードスキーマ、テーブル名、フレームワーク固有の詳細。
  1. use_cases.md
  • アクター、トリガー、前提条件、メインフロー、代替フロー、例外、成功保証を含むすべての UC-* ストーリーを含めます。
  • システムインタラクション図 (Mermaid シーケンス/フローチャート) を含めます。
  1. specification.md
  • アーキテクチャスタイルの理論的根拠を含めます (たとえば、TDD/DDD/EDA/CQRS が該当する場合)。
  • システム間の高レベルの運用コントラクト CON-* を定義します。
  • 各コントラクトについて、目的、入力/出力、前提条件、事後条件、障害モード、冪等性/再試行に関する注記を含めます。
  1. architecture.md
  • コンテキスト/コンテナレベルのシステム図を含めます。
  • 各システムの責任、所有権境界、および依存関係を含めます。
  1. uml.md
  • 重要なエンティティの UML クラス/ドメイン図を含めます。
  • ドメインに関連する場合にのみ、属性と動作レベルのメソッドを含めます。
  • 永続性/ORM/ツール関連のノイズは省略します。
  1. tests.md (該当する場合)
  • FR-* / NFR-* を検証戦略にマッピングします。
  • テストレベル (ユニット/統合/E2E/非機能) ごとのカバレッジを要約します。
  • 重要なシナリオと品質ゲートをリストします。

ステップ 4: 一貫性ゲートの適用

references/quality-gates.md からチェックを適用してから、最終決定します。

  1. すべての FR-* は、少なくとも 1 つの UC-* でカバーされています。
  2. すべての UC-* は、1 つ以上の CON-* または内部操作にマッピングされます。
  3. 図内のすべての外部インタラクションは、specification.md で表現されています。
  4. NFR-* は、tests.md の測定可能な検証ノートにマッピングされます。
  5. ファイル間で、システム/エンティティ/アクターの用語に矛盾はありません。
  6. requirements.md にエンドポイントレベルの詳細は含まれていません。

ステップ 5: ドキュメントに基づいた検索と更新

ドキュメントが既に存在し、ユーザーが焦点を絞った出力を要求する場合:

  1. 最初に既存のドキュメントから関連するセクションのみを読み取ります。
  2. 短いトレースマップ (requirement -> use case -> contract -> test) を作成します。
  3. 必要なセクションのみを返すか、更新します。
  4. ユーザーがリファクタリングを要求しない限り、既存の ID を保持します。
  5. ドキュメントが競合する場合は、最新の信頼できるファイルを優先し、競合を明示的に呼び出します。

参考文献

必要に応じてのみロードします。

  • references/templates.md
  • references/quality-gates.md
  • references/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:

  1. full-generation mode
  • Use when docs are missing, incomplete, or untrusted.
  • Scan repository context, derive the system model, then generate all required docs.
  1. doc-grounded-retrieval mode
  • 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

  1. Do not document implementation internals that should remain in code.
  2. Keep functional requirements at capability level. Avoid endpoint URLs, SQL, class names, or handler names in requirements.md.
  3. Put interface and integration contracts in specification.md, not in requirements.md.
  4. Keep all diagrams and narratives consistent with one shared system model.
  5. 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:

  1. Primary actors
  2. Internal systems/services and responsibilities
  3. External systems and contracts
  4. Core domain entities
  5. Primary business flows
  6. 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:

  1. requirements.md
  • Include: goals, scope, FR-*, NFR-*, constraints, acceptance criteria at capability level.
  • Exclude: endpoint paths, payload schemas, table names, framework-specific details.
  1. use_cases.md
  • Include all UC-* stories with actor, trigger, preconditions, main flow, alternates, exceptions, success guarantees.
  • Include system interaction diagrams (Mermaid sequence/flowchart).
  1. 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.
  1. architecture.md
  • Include context/container-level system diagram.
  • Include each system responsibility, ownership boundary, and dependency relation.
  1. 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.
  1. 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:

  1. Every FR-* is covered by at least one UC-*.
  2. Every UC-* maps to one or more CON-* or internal operations.
  3. Every external interaction in diagrams is represented in specification.md.
  4. NFR-* map to measurable verification notes in tests.md.
  5. No contradiction in terminology for systems/entities/actors across files.
  6. No endpoint-level details in requirements.md.

Step 5: Doc-Grounded Retrieval and Update

When docs already exist and user asks for focused outputs:

  1. Read only relevant sections from existing docs first.
  2. Build a short trace map (requirement -> use case -> contract -> test).
  3. Return or update only the needed sections.
  4. Preserve existing IDs unless user asks for refactoring.
  5. If docs conflict, prefer newest authoritative file and call out the conflict explicitly.

References

Load only as needed:

  • references/templates.md
  • references/quality-gates.md
  • references/diagram-patterns.md