Duplicate Detectiveのロゴ

Duplicate Detective

組織
microsoft
duplicate-detective

Identifies potential duplicate Accounts, Contacts, or Leads in Dataverse using intelligent fuzzy matching that catches nicknames, abbreviations, phone format variations, and address similarities. Use when user says "find duplicates", "check for duplicate accounts", "are there any duplicate contacts", "duplicate detection", "clean up duplicates", "merge duplicates", or "data quality check".

Add to TypingMind

概要

公開者microsoft
リポジトリdataverse-business-skills
スキル名duplicate-detective
スター
52
フォーク
9
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    microsoftがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Duplicate Detective」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/microsoft/dataverse-business-skills/tree/main/skills/duplicate-detective
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/microsoft/dataverse-business-skills.git /tmp/dataverse-business-skills
mkdir -p .claude/skills
cp -r /tmp/dataverse-business-skills/skills/duplicate-detective .claude/skills/duplicate-detective
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDuplicate Detectiveを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDuplicate Detectiveを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Duplicate Detectiveは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Duplicate Detective

Sales and marketing teams often accumulate duplicate records due to data entry variations, imports from multiple sources, and inconsistent naming conventions. Standard Dataverse duplicate detection rules are limited (max 5 rules per table) and miss subtle duplicates. This skill provides intelligent duplicate detection to maintain data quality and prevent wasted effort on duplicate outreach.

Instructions

Step 1: Determine Scope of Duplicate Check

Ask the user or infer from context:

  1. Target Table: Account, Contact, or Lead (or all three)
  2. Scope:
    • Full scan of all records
    • Specific subset (e.g., records created in last 30 days)
    • Check against a specific record (e.g., "Find duplicates of Contoso")
  3. Matching Threshold: Strict (high confidence only) or Relaxed (include possible matches)
Step 2: Query Source Records

Based on scope, retrieve records to analyze:

For Accounts:

SELECT accountid, name, telephone1, telephone2, emailaddress1, 
       address1_line1, address1_city, address1_stateorprovince, address1_postalcode,
       websiteurl, numberofemployees, industrycode
FROM account 
WHERE statecode = 0

For Contacts:

SELECT contactid, firstname, lastname, fullname, emailaddress1, emailaddress2,
       telephone1, mobilephone, jobtitle, accountid,
       address1_line1, address1_city, address1_stateorprovince, address1_postalcode
FROM contact
WHERE statecode = 0

For Leads:

SELECT leadid, firstname, lastname, fullname, companyname, emailaddress1,
       telephone1, mobilephone, jobtitle, address1_line1, address1_city,
       address1_stateorprovince, address1_postalcode, websiteurl
FROM lead
WHERE statecode = 0
Step 3: Apply Fuzzy Matching Algorithms

3.1 Company/Account Name Matching Detect duplicates even with variations:

  • Abbreviation Handling: "International Business Machines" ↔ "IBM"
  • Legal Suffix Normalization: "Contoso Inc." ↔ "Contoso Corporation" ↔ "Contoso LLC"
  • Common Abbreviations: "Mfg" = "Manufacturing", "Intl" = "International"
  • Word Order Variations: "Microsoft Corporation" ↔ "Corporation Microsoft"
  • Punctuation & Spacing: "A.B.C. Company" ↔ "ABC Company"
  • The/A Prefix Handling: "The Contoso Group" ↔ "Contoso Group"

Matching Logic:

  1. Normalize both names (lowercase, remove punctuation, expand abbreviations)
  2. Calculate string similarity using:
    • Levenshtein distance (edit distance)
    • Jaro-Winkler similarity (handles transpositions)
    • Token-based matching (matching words regardless of order)
  3. Score: 90%+ = High confidence match, 75-89% = Possible match

3.2 Person Name Matching Detect duplicate contacts/leads:

  • Nickname Resolution: "Robert" ↔ "Bob" ↔ "Rob" ↔ "Bobby"
  • Name Variations: "William" ↔ "Will" ↔ "Bill" ↔ "Billy"
  • Initial Matching: "J. Smith" ↔ "John Smith"
  • Name Order: "John Smith" ↔ "Smith, John"
  • Hyphenated Names: "Mary Smith-Jones" ↔ "Mary Jones"
  • Middle Name Handling: "John Michael Smith" ↔ "John Smith"

Common Nickname Mappings:

Formal NameNicknames
RobertBob, Rob, Bobby, Robbie
WilliamWill, Bill, Billy, Willy
RichardRick, Rich, Dick
MichaelMike, Mikey
JamesJim, Jimmy, Jamie
ElizabethLiz, Beth, Betty, Lizzy
JenniferJen, Jenny
KatherineKate, Katie, Kathy, Cathy

3.3 Phone Number Matching Normalize and compare phone numbers:

  • Strip all formatting: "(555) 123-4567" → "5551234567"
  • Handle country code variations: "+1-555-123-4567" ↔ "555-123-4567"
  • Match across fields: telephone1 vs mobilephone vs telephone2
  • Consider area code changes for same base number

Phone Normalization Steps:

  1. Remove all non-numeric characters
  2. Remove leading country code if present (1 for US)
  3. Compare last 10 digits for US numbers
  4. Flag as match if any phone field matches

3.4 Email Address Matching Detect email-based duplicates:

3.5 Address Matching Detect address duplicates with variations:

  • Street Abbreviations: "Street" ↔ "St" ↔ "St."
  • Direction Abbreviations: "North" ↔ "N" ↔ "N."
  • Building/Suite Handling: "123 Main St Suite 100" ↔ "123 Main St"
  • Postal Code Normalization: "12345-6789" ↔ "12345"
  • State Variations: "California" ↔ "CA"

Address Normalization:

  1. Standardize street type abbreviations
  2. Standardize direction prefixes/suffixes
  3. Remove suite/apt/unit information for base comparison
  4. Normalize postal code to 5 digits
  5. Standardize state to 2-letter code
Step 4: Score and Rank Potential Duplicates

Composite Scoring Model: Calculate overall duplicate probability using weighted scores:

Field TypeWeight (Accounts)Weight (Contacts)Weight (Leads)
Name35%30%30%
Email25%30%30%
Phone20%20%20%
Address15%15%15%
Website5%-5%
Company (for contacts)-5%-

Score Thresholds:

  • High Confidence (90-100%): Almost certainly duplicates
  • Medium Confidence (75-89%): Likely duplicates, review recommended
  • Low Confidence (60-74%): Possible duplicates, investigate
Step 5: Group and Present Duplicate Sets

Organize Results:

Duplicate Set 1 (High Confidence - 95% match):
├── Record A: Contoso Inc. (accountid: xxx)
│   ├── Phone: (555) 123-4567
│   ├── Email: info@contoso.com
│   └── Address: 123 Main Street, Seattle, WA
└── Record B: Contoso Corporation (accountid: yyy)
    ├── Phone: 555.123.4567
    ├── Email: sales@contoso.com
    └── Address: 123 Main St, Seattle, WA 98101

Matching Signals:
- Company name: 92% similar (legal suffix variation)
- Phone: 100% match (format difference only)
- Address: 95% match (abbreviation variation)
Step 6: Provide Actionable Recommendations

For Each Duplicate Set, Recommend:

  1. Merge Recommendation:

    • Identify the "surviving" record (more complete, older, or more activity)
    • List fields to preserve from each record
    • Identify child records that would need reassignment
  2. Activity Analysis:

    • Count activities on each record
    • Identify which record has more recent engagement
    • Flag if merging would consolidate significant history
  3. Relationship Impact:

    • List opportunities linked to each account
    • Count contacts under each account
    • Identify potential data loss risks

Output Format:

DUPLICATE DETECTION SUMMARY
===========================

Scan Parameters:
- Table: Account
- Records Scanned: 5,432
- Date Range: All active records

Results:
- High Confidence Duplicates: 23 sets (46 records)
- Medium Confidence Duplicates: 45 sets (98 records)
- Low Confidence Duplicates: 12 sets (26 records)

TOP PRIORITY DUPLICATES (High Confidence):

1. [Account] Contoso Inc. ↔ Contoso Corporation
   Match Score: 95%
   Recommendation: Merge into "Contoso Inc." (more activity)
   Impact: 3 opportunities, 12 contacts would be consolidated
   
2. [Contact] Bob Smith ↔ Robert Smith (both at Contoso)
   Match Score: 92%
   Recommendation: Merge into "Robert Smith" (more complete record)
   Impact: 8 activities would be consolidated

3. [Lead] ABC Manufacturing ↔ A.B.C. Mfg Company
   Match Score: 91%
   Recommendation: Review - may be parent/subsidiary
   Impact: Different addresses - verify relationship first
Step 7: Execute Merge (If Requested)

If user wants to proceed with merge:

  1. Document Current State:

    • Export both records' data
    • List all child records
  2. Update Child Records:

    • Reassign contacts to surviving account
    • Update opportunity regardingobjectid
    • Move activities to surviving record
  3. Merge Field Values:

    • Keep most complete values
    • Concatenate notes/descriptions if both have content
    • Preserve all email addresses and phone numbers
  4. Deactivate Duplicate:

    • Set statecode = 1 (Inactive) on duplicate record
    • Add note explaining it was merged

Dataverse Tables Used

TablePurpose
accountPrimary entity for company duplicates
contactPrimary entity for person duplicates
leadPrimary entity for lead duplicates
opportunityCheck for linked opportunities
activitypointerCount activities on each record
annotationDocument merge decisions

Key Fields Reference

account:

  • name (NVARCHAR 160) - Company name for matching
  • accountnumber (NVARCHAR 20) - Account number for exact matching
  • telephone1, telephone2 (PHONE) - Phone matching
  • emailaddress1 (EMAIL) - Email matching
  • address1_line1, address1_city, address1_stateorprovince, address1_postalcode - Address matching
  • websiteurl (URL) - Website matching
  • parentaccountid (LOOKUP → account) - Parent company relationship
  • statecode (STATE) - Active(0), Inactive(1) - Filter active only

contact:

  • firstname, lastname (NVARCHAR) - Name components
  • fullname (NVARCHAR) - Calculated full name
  • emailaddress1, emailaddress2 (EMAIL) - Email matching
  • telephone1, mobilephone (PHONE) - Phone matching
  • accountid (LOOKUP → account) - Parent account
  • jobtitle (NVARCHAR) - Additional matching signal
  • department (NVARCHAR) - Department for disambiguation
  • statecode (STATE) - Active(0), Inactive(1)

lead:

  • companyname (NVARCHAR 100) - Company matching
  • firstname, lastname, fullname (NVARCHAR) - Name matching
  • emailaddress1 (EMAIL) - Email matching
  • telephone1, mobilephone (PHONE) - Phone matching
  • address1_line1, address1_city, address1_stateorprovince - Address matching
  • websiteurl (URL) - Website matching
  • statecode (STATE) - Open(0), Qualified(1), Disqualified(2)
  • statuscode (STATUS) - New(1), Contacted(2) [Open]; Qualified(3) [Qualified]; Lost(4), Cannot Contact(5), No Longer Interested(6), Canceled(7) [Disqualified]

Fuzzy Matching Best Practices

  1. Always normalize before comparing:

    • Lowercase all text
    • Remove punctuation
    • Standardize abbreviations
  2. Use multiple matching signals:

    • Never flag as duplicate based on single field match
    • Require 2+ strong signals for high confidence
  3. Consider business context:

    • Same company name in different cities may be branches
    • Same person name at different companies = different people
    • Parent/subsidiary relationships are not duplicates
  4. Handle false positives:

    • "John Smith" is common - require additional signals
    • Generic company names need more verification
    • Allow user to mark "Not a Duplicate"

Examples

Example 1: Find Account Duplicates

User says: "Check for duplicate accounts in my CRM"

Actions:

  1. Query all active accounts from Dataverse
  2. Apply fuzzy matching on name, phone, email, address
  3. Group potential duplicates by confidence score
  4. Present high-confidence matches first

Result:

DUPLICATE DETECTION SUMMARY
- Records Scanned: 5,432 accounts
- High Confidence Duplicates: 23 sets
- Recommendation: Start with "Contoso Inc." ↔ "Contoso Corporation" (95% match)

Example 2: Check Specific Record for Duplicates

User says: "Find duplicates of Fabrikam Inc."

Actions:

  1. Retrieve Fabrikam Inc. record details
  2. Compare against all other active accounts
  3. Apply weighted scoring across all matching fields
  4. Return ranked list of potential matches

Result:

Potential duplicates of "Fabrikam Inc.":
1. Fabrikam Incorporated (87% match) - Same phone, similar address
2. The Fabrikam Group (72% match) - Same website domain

Example 3: Contact Duplicate with Nickname

User says: "Are there duplicate contacts named Bob at Contoso?"

Actions:

  1. Search contacts at Contoso account
  2. Expand "Bob" to include Robert, Rob, Bobby
  3. Compare phone and email across matches
  4. Present findings with merge recommendation

Result:

Found potential duplicate:
- "Bob Smith" (created 2024-01-15) - 3 activities
- "Robert Smith" (created 2023-06-01) - 12 activities
Recommendation: Merge into "Robert Smith" (more complete record)

Troubleshooting

Error: Too many potential duplicates returned

Cause: Matching threshold too relaxed or common names in dataset Solution:

  • Increase confidence threshold to 85%+
  • Require 2+ matching signals for flagging
  • Filter by specific criteria (industry, geography)

Error: Known duplicates not detected

Cause: Significant spelling variations or missing data in fields Solution:

  • Check if key fields (email, phone) are populated
  • Review nickname mappings for person names
  • Consider adding custom abbreviation rules

Error: False positives flagged as duplicates

Cause: Common names or parent/subsidiary relationships Solution:

  • Review address and account hierarchy
  • Check if records are intentionally separate (branches, divisions)
  • Mark as "Not a Duplicate" to exclude from future scans

Fuzzy Matching Best Practices

よくある質問

AIスキル「Duplicate Detective」では何ができますか?

Identifies potential duplicate Accounts, Contacts, or Leads in Dataverse using intelligent fuzzy matching that catches nicknames, abbreviations, phone format variations, and address similarities. Use when user says "find duplicates", "check for duplicate accounts", "are there any duplicate contacts", "duplicate detection", "clean up duplicates", "merge duplicates", or "data quality check".

TypingMindでDuplicate Detectiveを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Duplicate Detectiveはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDuplicate Detectiveをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/microsoft/dataverse-business-skills/tree/main/skills/duplicate-detectiveを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Duplicate Detectiveを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Duplicate Detectiveで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDuplicate Detectiveを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Duplicate Detective」は無料ですか?

はい。microsoftがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る
Leonxlnxのロゴ

Design Taste Frontend

Leonxlnx
コミュニティ人気

tasteskill v2は、ありきたりな見た目を防ぐフロントエンド向けスキルです。One Page LoveやAwwwards Sites of the Dayなど、厳選された247のギャラリーサイトを調査し、ウェブサイトのアートディレクションを体系化しました。ライブラリから調査済みの方向性を選び……

7K
103.1K
37ファイル
表示
nexu-ioのロゴ

Magazine Web Ppt

nexu-io
組織人気

マーケティングとGTM業務向けです。ローンチ、キャンペーン、イベント、ブランド計画を、成長とパイプラインの成果に結び付けます。中核となるクエリ「annual-marketing-plan」を軸に、GTM戦略リードの判断を盛り込み…

11.2K
96.7K
9ファイル
表示
nexu-ioのロゴ

Html Ppt Zhangzara Coral

nexu-io
組織人気

GitHub、Discord、Xを活用したOpenDesignのコミュニティ成長キャンペーンです。成長の仕組み、コンテンツカレンダー、パイプラインの数値計画を紹介します。グロースチームやコミュニティリードが意思決定に活用できる、マーケティングとGTMのデッキとして制作…

11.2K
96.7K
2ファイル
表示
paperclipaiのロゴ

Release Announcement

paperclipai
組織人気

リリース告知を作成します。変更履歴、ブログ記事、アプリ内のお知らせ、ソーシャル投稿などを、ユーザーへの影響を冒頭に示し、対象ユーザーを明記して、不要な文章を加えずにアップグレードや移行の手順を含めて作成します。

16.2K
95.4K
指示
表示

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇