# Pm Segment

> Segment connector knowledge and safe action guide.

- Skill: `polymetrics-ai/pm-segment` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add polymetrics-ai/pm-segment`
- Raw SKILL.md: https://api.skillmd.com/api/skills/polymetrics-ai/pm-segment/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: polymetrics-ai (https://skillmd.com/u/polymetrics-ai)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/polymetrics-ai/pm-segment

---


# pm-segment

## Purpose

Reads Segment workspace, source, and destination metadata through the Segment Public API.

## Icon

- id: pm-sample
- asset: icons/pm-sample.svg
- source: polymetrics
- review_status: polymetrics
- review_url: https://github.com/polymetrics-ai/cli

## Capabilities

- check=true catalog=true read=true write=false query=false
- Integration type: api

## Authentication

- Use pm credentials add with --from-env or --value-stdin for secret fields.

## Configuration

- base_url
- api_token (secret) (required)

## ETL Streams

- workspaces:
  - primary key: id
  - fields: id(string), name(string), slug(string), updated_at(string)
- sources:
  - primary key: id
  - fields: id(string), name(string), slug(string), updated_at(string)
- destinations:
  - primary key: id
  - fields: id(string), name(string), slug(string), updated_at(string)

## Sync Modes

- ETL sync modes: full_refresh_append, full_refresh_overwrite

## Security

- read risk: external Segment Public API read of workspace, source, and destination metadata
- approval: none; read-only, no reverse-ETL writes implemented by legacy
- Never pass secret values in chat, shell arguments, logs, docs, or JSON output.

## Commands

### Inspect as a manual

```bash
pm connectors inspect segment
```

### Inspect as structured JSON

```bash
pm connectors inspect segment --json
```

## Agent Rules

- Run pm connectors inspect segment before creating credentials or plans.
- Use --json only when the caller needs structured output; use the manual for human-readable guidance.
- Never ask the user to paste secret values into chat.

