Skip to content
cccskills
FreePublished on GitHub

regen-impact

Use after the Lean model changed and before touching backend code — regenerates Kotlin from Lean, lists changed generated symbols, the hand-written files and contract tests that reference them, and golden regressions, so the blast radius is known before implementation.

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

See how to install

Files included (1)

  • SKILL.md1.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

再生成の影響範囲

Lean を変えたら、実装に着手する前に影響範囲を機械で出す。

cradle regen-impact            # 再生成 → 差分 → 参照元 → golden 回帰
cradle regen-impact --dry-run  # 見るだけ(生成ディレクトリを元に戻す)
cradle regen-impact --no-regen # 作業ツリーの生成物の差分だけを読む

読み方

  1. 生成物の差分: 変わった / 増えた / 消えたファイル。消えた interface は実装クラスがコンパイルできなくなる(それが TODO リスト)。
  2. 影響を受ける手書きコード: 変わったシンボルを参照する src/main / src/test。ここが追随の対象。
  3. 参照元の無い生成シンボル: 新しい interface・契約テスト。これから実装する。
  4. 未配線の契約テスト: 抽象契約テストに具象サブクラスが無いもの。配線するまで「テストは無い」。
  5. golden 回帰: 変えるつもりのなかった流れが変わっていないか。CHANGED は意図した変更かを 1 件ずつ判断する。

決めごと

  • 生成ディレクトリに未コミットの差分がある状態では回さない(どこからどこまでが今回の変更か分からなくなる)。
  • 影響範囲の一覧を先にユーザーに示してから実装に入る(想定外の広がりは設計の見直しのサイン)。
  • 生成ログの note は失敗として読む。

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

Use when adding or changing REST endpoints or the OpenAPI contract — deriving endpoints from the Lean commands and views, writing documents/codebase/openapi.yaml first, then regenerating the backend controller interfaces and the frontend client.

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

asuka1975/cradle5Updated Oct 1, 2026

Use after a backend build succeeds or whenever authentication, authorization, actor/identity handling, external service calls (IdP, JWKS, DB, clock), logging, observability, configuration or error contracts are in play — delegates to the backend-design-reviewer agent for a design-quality review of the current branch.

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

asuka1975/cradle5Updated Oct 1, 2026

Use when it is time to make the backend follow the Lean model — regenerate Kotlin from Lean, implement the generated interfaces (UseCase, QueryService, Repository, Entity), wire every generated contract test, make the build green, then run the design and SQL reviews. Backend comes after the human confirmed the screens.

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

asuka1975/cradle5Updated Oct 1, 2026

cradle

Free

Use when you need the current position in the Lean spec-driven pipeline, or any deterministic check of a Cradle project — status, golden regression, Lean layer walls, regeneration impact, unslop lint, ddd cleanup. Runs the scripts under scripts/ and reports their output verbatim.

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

asuka1975/cradle5Updated Oct 1, 2026

Use to start a new product on Cradle or to add the Cradle skeleton to an existing repository — writes cradle.json, the project-facts instruction (.apm/instructions/project.instructions.md), documents/{ddd,ai-notes,infra-design,codebase} templates, CI, and a compiling Lean executable-spec scaffold with a minimal example domain, mockup and CLI.

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

asuka1975/cradle5Updated Oct 1, 2026

Use when the product owner asks where the project stands, what to do next, or which phase of the Lean spec-driven pipeline is current — runs cradle status and proposes exactly one next step.

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

asuka1975/cradle5Updated Oct 1, 2026

See all skills by asuka1975

Report a problem with this skill