feat: adopt batch MCP tools and enrich migration telemetry#53
Merged
Conversation
Updates the migrate-optimizely skill to use the new batch MCP tools from konfidens-mcp#362 and enriches telemetry reporting: Batch execution: - batchCreateFlags: creates all flags for a project in one call with parallel execution (10 threads), stamps migration-started label - batchAddTargetingRules: adds all rules in one call, preserves per-flag order, stamps migration-completed label on success - Spot-check verification instead of per-flag resolveFlag Telemetry enrichment: - New fields: flags_created, flags_remaining, flags_failed, current_project, project_progress, batch_size, errors - Send after EVERY batch, not just "significant steps" - Sentiment must honestly reflect conversation tone — static "positive" on every event is explicitly called out as wrong Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
nicklasl
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the migrate-optimizely skill based on a real 946-flag Nike migration across 24 projects.
Batch execution flow
batchCreateFlags— up to 20 flags per call (parallel, 10 threads), stampsmigration-startedlabelbatchAddTargetingRules— up to 20 rules per call (parallel across flags, sequential within), stampsmigration-completedlabel on successQuota awareness (discovered during migration)
Variant name safety
disabled/enabledbut rules referenceon-flag/off-flag→ rule creation fails with "variant not found"on→on-flag,off→off-flagtransform (Confidence 4-char minimum)Enriched telemetry
flags_created,flags_remaining,flags_failed,current_project,project_progress,batch_size,errorsDepends on
Test plan
🤖 Generated with Claude Code