/sme-communities:feip-dedup-sweepfrom sme-communities
Search for duplicate and overlapping FEIP projects by topic area or keywords, identify clusters, and coordinate consolidation via Slack DMs and Jira comments. Two modes: topic similarity search (ai_similarity on logfood) or term-based JQL search. Use when the user mentions FEIP dedup, finding duplicate FEIP projects, FEIP consolidation, overlapping innovation projects, or sweeping a topic area for duplicates. Triggers on 'feip dedup', 'duplicate feip', 'feip sweep', 'find overlapping feip', 'consolidate feip projects', 'feip topic search', 'dedup sweep'.
Ships in sme-communities. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A batch deduplication workflow for FEIP projects. Searches for overlapping innovation projects by topic area or keywords, identifies duplicate clusters, and coordinates consolidation through Slack outreach and Jira comments.
Announce at start: "I'm using the feip-dedup-sweep skill to find and consolidate overlapping FEIP projects."
Data layer: This skill queries the FEIP project data directly via logfood SQL (ai_similarity() on main.field_innovation.jira_issues) and Jira MCP. The SQL templates in resources/ are the same queries used by the fe-innovation-program plugin's feip-deduper skill — they're included here so this skill works independently without requiring that plugin to be installed.
Future integration: When the fe-innovation-program plugin is published to the Vibe marketplace, this skill can optionally delegate search to feip-project-discovery and feip-deduper instead of running the SQL directly. Until then, this skill is fully self-contained.
/usr/local/bin/databricks auth profiles | grep logfood
If expired, re-authenticate:
/usr/local/bin/databricks auth login --profile logfood
ToolSearch query: "select:mcp__jira__jira_read_api_call,mcp__jira__jira_write_api_call"
ToolSearch query: "select:mcp__slack__slack_write_api_call,mcp__slack__slack_read_api_call"
main.field_innovation.jira_issues + main.field_innovation.metrics_dashboarddf7eb7e74dc8866d/usr/local/bin/databricks (avoid old CLI version in PATH)/tmp (avoids bundle config conflicts)"wait_timeout": "0s" — ai_similarity() takes 60-120s across 4,600+ tickets. Poll with GET /api/2.0/sql/statements/{statement_id} until state is SUCCEEDED.Use AskUserQuestion to present the two modes:
Menu — How would you like to search? (2 options):
If the user's initial prompt clearly indicates a mode, skip the menu. E.g., "find duplicate FEIPs about migration" → Mode 1. "Find all lakebridge FEIPs" → Mode 2.
Ask the user for the topic area to search. Accept free text. Examples:
If the user provides a short phrase, expand it with related terms to improve recall. E.g., "DWH migration" → "data warehousing migration tool Snowflake Redshift Synapse SQL translation conversion code migration accelerator".
Store as {search_topic}.
Run the query from resources/topic_similarity_search.sql with:
{SEARCH_TEXT} = {search_topic}{LIMIT} = 25Execution pattern:
cd /tmp && /usr/local/bin/databricks api post --profile=logfood /api/2.0/sql/statements \
--json '{"warehouse_id":"df7eb7e74dc8866d","statement":"<SQL>","wait_timeout":"0s"}'
Poll for results. The query typically takes 60-120s (cold warehouse may take longer).
Show the top results above the collaboration threshold (>= 0.63) as a table:
| Score | Ticket | Status | Summary | Owner |
|--------|-------------|------------|----------------------------------|----------------|
| 0.7773 | FEIP-1631 | Idea | DB SQL Query Tuning Insights | Harika Mariyala|
Important: The logfood metrics_dashboard join often returns NULL for owner names. Note this to the user — we'll get real owners from Jira in the action phase.
Count and summarize: "Found N tickets above 0.63 threshold. N above 0.73 (likely duplicate range)."
Take the top 15-20 results and run the query from resources/pairwise_comparison.sql to find actual duplicate pairs.
Present pairs above 0.73 as a table:
| Score | Ticket A | Summary A | Ticket B | Summary B |
|--------|-------------|------------------------------|-------------|------------------------------|
| 0.8715 | FEIP-303 | DBSQL Serverless Scaling | FEIP-304 | DBSQL Serverless Platform Rec|
Identify clusters by grouping tickets that appear in multiple high-scoring pairs. A ticket that scores >= 0.78 with 3+ other tickets is a cluster anchor.
Scoring tiers (calibrated on 4,632 tickets, max ~0.83):
| Tier | Score | Meaning |
|---|---|---|
| Near-Certain Duplicate | >= 0.78 | Same idea, block/consolidate |
| Likely Duplicate | 0.73-0.77 | Strong overlap, recommend consolidation |
| Consolidation Opportunity | 0.68-0.72 | Related work, consider coordinating |
| Collaboration Opportunity | 0.63-0.67 | Complementary, potential collaborators |
Context-aware scoring: Vague inputs rarely exceed ~0.75. A 0.73 from vague input is equivalent to a 0.80 from detailed input. Adjust interpretation accordingly.
Present each cluster with:
Use AskUserQuestion: "Which clusters would you like to action? (select by number, or 'all')"
→ Proceed to Action Phase (Step 3).
Ask the user for keywords or product names. Examples:
Use Jira MCP to search:
mcp__jira__jira_read_api_call with endpoint "issues.search":
jql: "project = FEIP AND summary ~ '{search_terms}' ORDER BY created ASC"
max_results: 30
Also run a supplementary logfood similarity search using the terms to catch tickets that don't use the exact keywords but are semantically similar:
resources/topic_similarity_search.sql with {SEARCH_TEXT} = search termsShow all matching tickets as a table with key, summary, status, assignee, and created date.
If there are 5+ tickets, offer to run pairwise comparison (Step 1.4) to find which ones are actually duplicates vs. distinct workstreams.
Use AskUserQuestion: "Would you like to cross-compare these for duplicates, or proceed to action on specific tickets?"
→ If cross-compare: run Step 1.4 and Step 1.5, then proceed to Action Phase. → If action directly: proceed to Action Phase with selected tickets.
For each ticket in the selected cluster(s), fetch owner details via Jira MCP:
mcp__jira__jira_read_api_call with endpoint "issues.get":
issue_id: "{ticket_key}"
analysis_prompt: "Who is the reporter and assignee? Return display names and email addresses."
Also read existing comments to:
Per cluster, determine:
Present the recommendation to the user:
Cluster: "SQL Warehouse Optimization" (5 tickets)
Anchor: FEIP-1677 (QMetrics, Active, has working v1)
Coordination target: None identified (standalone cluster)
Owners to contact: Nikolaos Servos, Harika Mariyala, Nishant Deshpande
Tickets to comment: FEIP-1596, FEIP-1631, FEIP-1677, FEIP-1696, FEIP-2707
Use AskUserQuestion: "Approve this action plan? (yes / modify / skip this cluster)"
For each unique owner, draft a personalized Slack DM:
Present all drafted messages to the user for approval before sending.
Send via:
mcp__slack__slack_write_api_call with endpoint "chat.postMessage":
channel: "@{owner_username}"
text: "{drafted_message}"
Finding Slack usernames: Use the owner's email from Jira to look up their Slack handle:
mcp__slack__slack_read_api_call with endpoint "users.lookupByEmail":
email: "{owner_email}"
For each ticket in the cluster, post a structured comment:
Comment template (ADF format):
{
"type": "doc", "version": 1, "content": [{
"type": "paragraph", "content": [
{"type": "text", "text": "FEIP Dedup Pass — [Category]: ", "marks": [{"type": "strong"}]},
{"type": "text", "text": "[Context-specific message with links to overlapping tickets and coordination target]"}
]
}]
}
Each comment should include:
mcp__jira__jira_write_api_call with endpoint issues.add_commentSkip tickets that already have a "FEIP Dedup Pass" comment (detected in Step 3.1).
If a cluster has 10+ tickets, additionally:
After all actions are taken, present a summary:
## Dedup Sweep Summary
**Topic:** {search_topic}
**Date:** {today}
### Slack DMs Sent (N/N)
- {owner_name} — {ticket_keys}, {status}
### Jira Comments Posted (N/N)
- {ticket_key} — {comment_summary}
### Skipped (already commented)
- {ticket_key} — existing dedup comment from {date}
### Escalations
- {person} — {reason}
This skill is for batch/topic-level sweeps — finding all duplicates in an area. For checking a single ticket for duplicates, the fe-innovation-program plugin (maintained by Fred Abood in the field-innovation repo) has a dedicated feip-deduper skill invoked via /fe-innovate check FEIP-XXX for dupes. If the user asks about a single ticket, suggest that workflow instead.
FEIP plugin repo: https://github.com/databricks-field-eng/field-innovation/tree/main/vibe-plugins
FEIP plugin Slack: #fe-ip
FEIP plugin maintainer: Fred Abood ([email protected])
resources/topic_similarity_search.sql — Semantic similarity search across all active FEIP projects. Parameters: {SEARCH_TEXT}, {LIMIT}. Uses ai_similarity() on logfood.resources/pairwise_comparison.sql — Cross-comparison for finding duplicate pairs within a candidate set. Parameters: {TICKET_KEYS}, {LIMIT}. Uses ai_similarity() between ticket pairs.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub sarah-hord-db/vibe --plugin sme-communities