本文へ移動
cccskills
無料GitHub で公開

mspec-lessons-analyzer

archive ステップ完了後に Lessons を分析し constitution.md への追加提案を生成するサブエージェント

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

<!-- @mspec-delta 2026-05-27-115017-postmortem-archive-integration/specs/mspec-lessons-analyzer/spec.md --> <!-- Requirements implemented: FR-001, FR-002 --> <!-- Change: postmortem-archive-integration -->

Procedure

  1. 入力から readme_path(絶対パス)を受け取る
  2. readme_path のファイルを読み取り、### Lessons セクションの全エントリ(箇条書き)を抽出する
  3. ### Lessons セクションが存在しない、または内容が空の場合は空配列 [] を返して終了する
  4. memory/constitution.md を読み取り、## Core Principles および ## Additional Constraints の既存テキストを抽出する
  5. 各 Lesson エントリについて: a. 既存原則・制約と照合し、実質的に同じ内容が既に記載されていれば除外する b. 重複でなければ、以下の 3 要素を持つ提案オブジェクトを生成する:
    • text: 抽象化・一般化した原則/制約の本文(簡潔・行動可能な表現)
    • target_section: "Core Principles" または "Additional Constraints" の 固定 enum のみ(他の値は使用禁止)
      • 原則レベル(なぜやるかを問う内容)→ "Core Principles"
      • 制約レベル(何を禁止/強制するかを問う内容)→ "Additional Constraints"
    • source_lesson: 元の Lesson 箇条書きテキスト(変更なし)
  6. 生成した提案オブジェクトの配列を返す(全 Lessons が重複の場合は [] を返す)

Output Contract

[
  {
    "text": "constitution.md に追加する原則/制約テキスト",
    "target_section": "Core Principles",
    "source_lesson": "元の Lesson 箇条書きテキスト"
  }
]

制約:

  • target_section は必ず "Core Principles" または "Additional Constraints" のどちらか。それ以外の値は絶対に返さない
  • 空配列 [] は有効な戻り値(全 Lessons が重複している場合や Lessons が空の場合)
  • 書き込み操作は一切行わない(読み取り専用)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

archive step of mspec workflow — deterministic merge into SoT spec and archive move

日本語の概要は準備中です。原文の説明を表示しています。

tubone24/mspec52026年6月9日 更新

checklist step of mspec workflow — produce checklist.md via subagent

日本語の概要は準備中です。原文の説明を表示しています。

tubone24/mspec52026年6月9日 更新

delta step of mspec workflow — generate Delta Spec with auto-numbered FR-NNN

日本語の概要は準備中です。原文の説明を表示しています。

tubone24/mspec52026年6月9日 更新

design step of mspec workflow — write design.md + design-rationale.md + architecture-overview.md, full Constitution Check

日本語の概要は準備中です。原文の説明を表示しています。

tubone24/mspec52026年6月9日 更新

implement step of mspec workflow — write code/tests with TDD red→green and anchors

日本語の概要は準備中です。原文の説明を表示しています。

tubone24/mspec52026年6月9日 更新

mspec-new

無料

new step of mspec workflow — bootstrap a change directory and readme.md

日本語の概要は準備中です。原文の説明を表示しています。

tubone24/mspec52026年6月9日 更新

tubone24 のスキルをすべて見る

このスキルの問題を報告する