Skip to content
cccskills
FreePublished on GitHub

mspec-lessons-analyzer

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

<!-- @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 が空の場合)
  • 書き込み操作は一切行わない(読み取り専用)

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

tubone24/mspec5Updated Jun 9, 2026

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

The English summary is being prepared. Showing the original description.

tubone24/mspec5Updated Jun 9, 2026

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

The English summary is being prepared. Showing the original description.

tubone24/mspec5Updated Jun 9, 2026

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

The English summary is being prepared. Showing the original description.

tubone24/mspec5Updated Jun 9, 2026

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

The English summary is being prepared. Showing the original description.

tubone24/mspec5Updated Jun 9, 2026

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

The English summary is being prepared. Showing the original description.

tubone24/mspec5Updated Jun 9, 2026

See all skills by tubone24

Report a problem with this skill