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

migration-validation-explorer

Exploratory data-migration validation and QA ideation workflow. Use when you need to discover hidden risks, generate new validation angles, and converge mapping specs/validation reports into a prioritized QA backlog for CRM migrations. Version 2.0, updated 2025-12-28.

インストール方法を見る

含まれるファイル(12)

  • SKILL.md8.6 KB
  • assets/exploration_log_template.md1.9 KB
  • assets/hypothesis_worksheet.md2.9 KB
  • assets/qa_backlog_template.md4.0 KB
  • references/divergence_library.md3.7 KB
  • references/focus_catalog.md2.4 KB
  • references/hypothesis_generation_guide.md5.7 KB
  • references/lens_library.md4.2 KB
  • references/seed_examples.md6.3 KB
  • scripts/exploratory_profiler.py9.8 KB
  • scripts/hypothesis_tester.py12.3 KB
  • scripts/perspective_combiner.py13.6 KB

SKILL.md(原文)

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

Migration Validation Explorer

A repeatable, inventive exploratory workflow to discover hidden risks in CRM migration data, then converge them into a QA-ready backlog.

When to Use

  • Mapping spec, validation plan, and validation report exist
  • You suspect undiscovered issues (coverage gaps, silent failures, edge cases)
  • Need to generate new validation angles beyond standard checklists
  • Want automated data profiling and hypothesis testing

What "Detection" Means

  1. Spec ambiguity: contradiction, missing rule, unclear definition
  2. Verification-ready hypothesis: concrete check (query/diff/sample) with pass/fail criteria
  3. Coverage gap: existing validation misses this area or only tests happy path
  4. Behavioral risk: data matches but system behavior will diverge (approvals, reports, integrations)

Inputs Required

Minimum:

  • Mapping spec (latest)
  • Data model/schema (objects, fields, relationships)
  • Validation plan + report(s)
  • Dataset extracts (legacy + transformed + loaded)

Locate files:

rg --files -g '*validation*report*'
rg --files -g '*mapping*spec*'

Core Principles

1. Triangulate: Never Trust a Single Oracle

Use >= 2 oracles per check:

  • Record counts by segment
  • Sum checks (money) + reconciliation
  • Referential integrity
  • UI views vs admin queries
  • Report totals vs drill-down

2. "Missing" Might Mean "Not Visible"

Always validate both:

  • Admin view (truth of storage)
  • Business-user view (truth of operation)

3. Convergence Is a Product

Every cycle must produce:

  • A runnable check, OR
  • A clarified rule, OR
  • A regression test, OR
  • A monitoring metric

4. ID Normalization Is Critical

Learned Pattern: Float format .0 suffix causes ID comparison failures.

# ALWAYS normalize IDs before comparison
def normalize_id(id_val):
    if pd.isna(id_val):
        return None
    return str(id_val).replace('.0', '').strip()

Workflow Overview

Step 0: Preparation

0.1 Establish Mission:

  • Identify business-critical flows (money, compliance, customer impact)
  • Define acceptance thresholds (allowable mismatch %, max missing refs)

0.2 Build Focus Catalog (>= 20 items):

Load references/focus_catalog.md for the full category list

Key buckets: Keys/IDs, Relationships, Normalization, Status/Stage, Ownership, Dates, Money, Volume/Dedup, Automation, Integrations, Reporting, Archiving

0.3 Run Initial Data Profiling:

python scripts/exploratory_profiler.py <data_file.xlsx>

Step 1: Random Focus Cycle (x10)

Pick one focus item randomly. For each:

  1. Focus: One catalog item
  2. Diverge: Generate 6-12 failure mode hypotheses using 4 perspectives

    Load references/hypothesis_generation_guide.md for perspective prompts

  3. Prioritize: Score hypotheses using priority formula
  4. Converge: Select top 2-3 plausible/high-impact risks
  5. Verify: Define minimal experiments (queries, diffs, samples)
  6. Deepen: Root cause -> remediation -> prevention
  7. Generalize: Apply pattern to >= 2 other objects/flows

Output per cycle: Use template from assets/exploration_log_template.md


4-Perspective Hypothesis Generation

Generate hypotheses from 4 distinct perspectives to ensure diversity:

IconPerspectiveFocus AreaExample Question
🏢Domain ExpertBusiness rules, compliance"What rule violations could occur?"
💻Tech ImplementerCode bugs, transforms"Where could the mapping fail?"
🔍Edge Case HunterBoundaries, special cases"What happens at extremes?"
📊Statistical SkepticDistributions, outliers"Is this concentration normal?"

Minimum: 2 hypotheses per perspective = 8 total per cycle


Priority Scoring

Formula: Priority = Impact × Probability × Testability

ScoreImpactProbabilityTestability
3All records affectedHigh (>50% likely)Simple query
2Category affectedMedium (10-50%)Complex conditions
1Rare casesLow (<10%)Manual verification

Thresholds:

  • 18-27: Test immediately
  • 8-17: Standard priority
  • 1-7: Test if time permits

Step 2: Cross-Pollination Cycle (x10)

Pick two lenses and fuse them into new hypotheses.

Load references/lens_library.md for available lenses

  1. Lens A + Lens B -> new hypothesis
  2. Apply to specific object/relationship/integration
  3. Verify with targeted checks
  4. Converge into Go/No-Go or follow-up
  5. Generalize into reusable test or monitoring rule

Combination Operators:

OperatorMeaningUse Case
ANDBoth perspectives must alignCross-source reference integrity
XORPerspectives should differInconsistency detection
SEQOne precedes the otherLifecycle state validation
REQDependency relationshipCascading reference checks

Step 3: Converge Into QA Backlog

Create backlog using assets/qa_backlog_template.md:

CheckScopeRiskEvidenceMethodPass CriteriaOwnerStatus

Risk scoring: Impact x Likelihood x Detectability (H/M/L)


Root Cause Taxonomy

When issue is verified, classify:

Root Cause:

  • Spec/definition (ambiguous rule)
  • Mapping/transform (wrong mapping, missing branch)
  • Load/automation (triggers suppressed/over-fired)
  • Operations/monitoring (silent failures)

Remediation:

  • Data fix (backfill, re-transform)
  • Design fix (model, field types, security)
  • Process fix (migration mode, runbook)
  • Monitoring fix (reconciliations, alerts)

Automation Scripts

Data Profiling

python scripts/exploratory_profiler.py <file.xlsx>

Generates comprehensive profile: null rates, distributions, potential issues.

Hypothesis Testing

from scripts.hypothesis_tester import *

# Reference integrity test
result = test_reference_integrity(
    detail_df, master_df,
    ref_col='AccountId',
    master_id_col='Id'
)

# Value concentration test
result = test_value_concentration(df, 'OwnerId', threshold=0.5)

# Generate report
report = generate_test_report(results)

Perspective Combination

python scripts/perspective_combiner.py

Displays lens catalog and generates random perspective combinations.


Quick Start: High-Impact Checks

If you must prioritize, start here:

See references/seed_examples.md for detailed examples

  1. Month-end boundaries (timezone/DateTime)
  2. Invoice totals + lifecycle status
  3. Cross-department view correctness
  4. Migration-mode automation control
  5. Integration retry idempotency
  6. Archive usability (searchable + permissioned)
  7. ID format consistency (int vs float .0 suffix)
  8. Owner concentration (single owner >50%)

Resources

ResourcePurposeWhen to Load
references/focus_catalog.mdFull focus category listStep 0.2
references/divergence_library.mdFailure mode patternsStep 1 (Diverge)
references/lens_library.mdCross-pollination lensesStep 2
references/hypothesis_generation_guide.md4-perspective promptsStep 1 (Diverge)
references/seed_examples.mdWorked examplesWhen stuck
assets/exploration_log_template.mdPer-cycle outputStep 1, 2
assets/qa_backlog_template.mdFinal backlog + gatesStep 3
assets/hypothesis_worksheet.mdHypothesis trackingStep 1
scripts/exploratory_profiler.pyData profilingStep 0.3
scripts/hypothesis_tester.pyAutomated testingStep 1 (Verify)
scripts/perspective_combiner.pyLens generationStep 2

Output Summary

Per-cycle output:

Cycle #: [n]
Focus: [item]

DIVERGE (4 perspectives):
🏢 Domain: [2+ hypotheses]
💻 Tech: [2+ hypotheses]
🔍 Edge: [2+ hypotheses]
📊 Stats: [2+ hypotheses]

PRIORITIZE:
[Top 3 by priority score]

VERIFY:
[Checks executed, results]

CONVERGE:
Result: Pass/Fail/Unknown
Root Cause: [if issue found]
Actions: [remediation + generalization]

Final deliverables:

  • Prioritized QA backlog table
  • Quality gates checklist
  • Open questions/assumptions
  • Automated test scripts (reusable)

レビュー

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

同じリポジトリのスキル

概要と使いどころ

action-status-updater

無料日本語概要

Track and update action item status from natural language updates like 'Seanのメールには返信しておいた' or 'Lu対応予定'. Integrates with daily-comms-ops workflow. Use when managing action items across communication channels.

takusaotome/claude-skills-library92026年10月5日 更新

ai-adoption-consultant

無料日本語概要

AI活用提案の専門コンサルタントスキル。LLM・AIエージェントの活用事例知識を基に、業界別、部門別、シーン別に最適なAI導入提案を行います。システム化、業務改善、効率化を得意とし、具体的な活用事例、期待効果、導入ステップを含む実践的な提案を提供します。Use when proposing AI/LLM adoption strategies for specific industries, departments, or business scenarios.

takusaotome/claude-skills-library92026年10月5日 更新

Generate AI-powered BPO service proposals for Japanese companies in the US market. Use when creating outsourcing proposals with AI service menus, ROI estimation, implementation roadmaps, and bilingual (JA/EN) proposal documents for 在米日系企業向けAI実装.

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

takusaotome/claude-skills-library92026年10月5日 更新

ai-text-humanizer

無料日本語概要

AI(LLM)が生成した日本語テキストの「AI臭」を検出・診断し、人間らしい文章にリライトするスキル。 Use when: 「AIっぽい文章を直して」「人間らしくリライトして」「AI臭を消して」「この文章をもっと自然にして」 「テキストのAI感を減らして」「機械っぽさを取りたい」 "make this sound more human", "remove AI tone", "humanize this text", "detect if this is AI-generated". 6つのAI特有パターン(視覚的マーカー、単調なリズム、マニュアル的構成、非コミット姿勢、抽象語の濫用、 定型メタファー)を正規表現ベースで検出し、0-100のAI臭スコアを算出。3つの人間化技法 (バランスを崩す・客観を崩す・論理を崩す)でリライトを実行する。 Note: 検出スクリプトは日本語テキスト専用。英語テキストの場合はClaude自身がreferences/を参照して分析・リライトする。

takusaotome/claude-skills-library92026年10月5日 更新

Generate audit-ready internal control design documents from As-Is business process inventories. Produces control IDs, assertion mappings, procedures, SoD analysis, KPIs, materiality thresholds, and implementation roadmaps. Use when building internal controls for new audit engagements, SOX/J-SOX compliance, or process improvement initiatives.

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

takusaotome/claude-skills-library92026年10月5日 更新

Review audit-related documents (control design documents, bottleneck analyses, requirements definitions, etc.) for quality, scoring them 0-100 with a severity-rated findings list. Use when reviewing audit documents, checking control design quality, or verifying cross-document consistency. Supports documents governed by US GAAP, IFRS, or J-GAAP.

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

takusaotome/claude-skills-library92026年10月5日 更新

takusaotome のスキルをすべて見る

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