/wire:segmentfrom wire
Interacts with Twilio Segment's Public API to manage event-tracking sources, destinations, and tracking plans. Supports workspace audits and migration planning.
Ships in wire. 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.
None: SKILL.md is the whole skill.
Before proceeding, append a one-line entry to .wire/execution_log.md:
| YYYY-MM-DD HH:MM | skill | segment | activated | Segment Public API work triggered this skill |
If .wire/execution_log.md does not exist, create it with the standard header first (see specs/utils/execution_log.md). If no .wire/ directory exists in the current repo, skip this step.
ingestion_audit is running against a client that uses Segment.Segment does not ship an official MCP server. This skill drives Segment via the Segment Public API — token-authenticated REST endpoints, called using WebFetch or by writing throwaway Python / curl scripts inside the release's dev/ folder.
Base URLs (region matters):
| Workspace region | Base URL |
|---|---|
| US (default) | https://api.segmentapis.com |
| EU | https://eu1.api.segmentapis.com |
Authentication: Bearer token, generated inside the Segment workspace at Settings → Access Management → Tokens. Use a Public API token (distinct from the legacy Config API token). Treat the token as a secret.
Auth header (verbatim):
Authorization: Bearer $SEGMENT_TOKEN
Transport: HTTPS only (port 443). HTTP/1.1 and HTTP/2 are accepted; plain HTTP on port 80 is rejected.
Reference: https://docs.segmentapis.com/
The Public API is GraphQL-style under REST. The endpoints most relevant to ingestion-audit work:
| Endpoint | Purpose |
|---|---|
GET / | Workspace identity — sanity check the token works |
GET /sources | List all sources in the workspace |
GET /sources/{id} | Source detail: type, slug, attached schema, library config |
GET /destinations | List all destinations |
GET /destinations/{id} | Destination detail: target, settings, source filter |
GET /sources/{id}/connected-destinations | Source → destination routing |
GET /tracking-plans | List tracking plans |
GET /tracking-plans/{id} | Tracking plan rules: events, properties, types, allowed values |
GET /tracking-plans/{id}/sources | Sources using a given tracking plan |
GET /workspaces/{id} | Workspace metadata |
For the full surface refer to https://docs.segmentapis.com/.
export SEGMENT_TOKEN='your-token-here'
export SEGMENT_BASE='https://api.segmentapis.com' # or eu1 variant for EU workspaces
curl -s -H "Authorization: Bearer $SEGMENT_TOKEN" "$SEGMENT_BASE/" | head -20
ingestion_audit for a platform_migration release where source = SegmentWhen migration.ingestion_tool: segment is set in status.md:
GET /sources and writes the source inventory to audit/ingestion_audit.md and the machine-readable CSV.Output is the standard ingestion_audit.md format. The Segment-specific addition: a migration path matrix flagging which destinations have direct RudderStack equivalents (most do), which need replacement (e.g. some legacy custom destinations), and which are warehouse destinations that the platform_migration release will rebuild on the new warehouse.
The most common Segment migration is to RudderStack (Segment's main open-source / self-hostable alternative). The tracking-plan schema is nearly identical; the SDKs are drop-in replacements at the API level. The migration_strategy artifact for from: segment → to: rudderstack is largely client SDK swap + tracking plan re-host + destination re-mapping rather than warehouse migration.
If migrating Segment + a warehouse together, run two parallel platform_migration releases: one for Segment → RudderStack, one for the warehouse pair (e.g. BigQuery → Snowflake).
When a new pipeline_only or full_platform release picks Segment as the ingestion tool:
pipeline-generate step should follow Segment's source-specific patterns.| Term | What it means |
|---|---|
| Source | A point where events enter Segment (analytics.js, iOS SDK, Android SDK, server SDK, cloud source) |
| Destination | A target where events are routed (warehouse, marketing tool, analytics tool) |
| Tracking plan | Schema for the events a source is allowed to emit |
| Workspace | Top-level Segment account; tokens are workspace-scoped |
| Public API token | Bearer token for the modern Public API (Settings → Access Management → Tokens) |
| Config API | The older API; deprecated in favour of the Public API for new work |
.wire/, not in env files, not in scripts.ingestion_audit.md output captures destination + source names, not credentials — secrets never appear in audit artifacts.$SEGMENT_TOKEN.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
segment, segment-public-api, event-tracking, cdp, ingestion-audit
npx claudepluginhub rittmananalytics/wire-plugin --plugin wire74 skills in this plugin
/add-analytics-instrumentationEnd-to-end analytics instrumentation workflow for a PR, branch, file, directory, or feature. Reads the code, discovers what events should be tracked, and produces a concrete instrumentation plan — all in one shot. Use this skill whenever a user wants to add analytics to a PR, asks "instrument this PR", "add tracking to this branch", "what analytics does this file need", "instrument the checkout flow", "run the full instrumentation workflow", or any request that implies going from code changes to a tracking plan. Also trigger when the user gives you a PR link, branch name, file path, or feature description and mentions analytics, events, or instrumentation. This is the main entry point for the analytics workflow — prefer it over calling the individual steps (diff-intake, discover-event-surfaces, instrument-events) separately.
/agents-schemaPublish and read warehouse metadata through dbt Labs' Agents Schema (the AGENTS schema inside Snowflake, Databricks or BigQuery, written by the agents-schema CLI from a dbt manifest, LookML, Omni, OSI, Sigma and markdown skills). Activates when the user mentions Agents Schema, agents_schema, AGENTS.ROOT, the agents-schema CLI or its GitHub workflows, warehouse-delivered skills, or asks how an AI agent should find governed context for a warehouse. Used by /wire:agents_schema-generate, -validate and -review, and for ad-hoc work against an AGENTS schema./airbyteSkill for managing Airbyte connections and data ingestion via the Airbyte Agent MCP server at mcp.airbyte.ai. Activates when the user mentions Airbyte, an Airbyte connection, Airbyte source / destination, or wants to audit / build / migrate an Airbyte deployment. Distinguishes between the hosted Agent MCP (for AI agents using connectors) and managing an existing Airbyte Cloud / OSS workspace./airflowProactive skill for Apache Airflow 2.x and Cloud Composer work in a client's existing Airflow repo. Auto-activates when writing or changing a DAG file, a DAG helper, or the config a DAG reads; when deploying DAG files to a dev environment; when checking whether a DAG parsed or a run succeeded; when tasks are stuck in queued; and when the pipeline or orchestration artifact uses Airflow. Covers the Airflow rule set (lint_conventions.py --domain airflow), safe dev deploy through airflow_deploy.py, sync and parse checks, run and task checks through Cloud Logging, causes of queued tasks and a list of known faults. Every environment value comes from .wire/engagement/airflow_environments.yml./analyze-account-healthSummarizes B2B account health by analyzing usage patterns, engagement trends, risk signals, and expansion opportunities. Use for customer success reviews, renewal preparation, QBRs, or account prioritization./analyze-ai-topicsAnalyzes what users ask AI agents about and how well each topic is served. Only use when the user has Amplitude Agent Analytics instrumented in their project. Use when the user asks "what are people asking the AI", "top AI topics", "where is the AI struggling", "AI coverage gaps", "what should we improve in our AI", or wants product insights from AI conversation patterns.
Other plugins' skills for the same job