← スキル一覧に戻る

legacy-behavior-snapshot
by hohai99
⭐ 0🍴 1📅 2026年1月22日
SKILL.md
name: legacy-behavior-snapshot description: Captures existing system behavior before migration to ensure parity. Use at the start of any migration project. triggers: [migration-start, system-replacement] outputs: [behavior-catalog, test-baseline] depends_on: [system-context-extractor]
Legacy Behavior Snapshot
Purpose
Captures a complete record of existing system behavior before any migration work begins. This snapshot becomes the source of truth for validating that the new system maintains parity with the old.
When to Use
- Starting a migration project
- Replacing a legacy system
- Significant refactoring of critical paths
Snapshot Steps
- Identify Behavior Scope: Enumerate APIs, user flows, edge cases, and side effects.
- Capture Behavior Evidence: Document input, output, and evidence source for each behavior.
- Create Baseline Tests: Convert catalog entries into executable tests (
Given/When/Then). - Document Unknowns: Flag undocumented or non-deterministic behaviors explicitly.
Decision Tree
flowchart TD
A[Start Snapshot] --> B{Tests Exist?}
B -->|Yes| C[Convert Tests to Behavior Catalog]
B -->|No| D{Live System Access?}
D -->|Yes| E[Record Actual I/O from Logs/Traffic]
D -->|No| F[Derive Behavior from Code Analysis]
C --> G[Identify Missing Edge Cases]
E --> G
F --> G
G --> H[Finalize Behavior Catalog]
Review Checklist
- Determinism: Are non-deterministic outputs (IDs, timestamps) handled in tests?
- Completeness: Are 4xx and 5xx error states included in the catalog?
- Evidence: Is there a clear source (e.g. "observed in logs") for each behavior?
- Parity Readiness: Are inputs/outputs detailed enough to use for
regression-and-parity-check?
How to provide feedback
- Be specific: "The snapshot for 'Checkout' misses the 'Apply Coupon' side-effect on the
discountstable." - Explain why: "Missing side-effects lead to silent data discrepancies in the new system."
- Suggest alternatives: "Recommend adding a 'Side Effects' section to the checkout behavior ID: CART-001."
Blameless documentation of existing reality.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です