pipeline-history

pipeline-history is a skill for Claude Code from yaniv-golan/affinity-sdk. It costs 27 tokens per session (1,091 once invoked), scanned A, original, MIT.

A workflow skill for analyzing how sales deals move through pipeline stages over time. A pipeline is the sequence of stages a deal passes through before completion.

In plain words
What is it for?
Measuring funnel conversion, stage duration, deal progression timelines, and movement between specific stages.
Why use it?
It defines the steps for exporting current deals, retrieving field-change history, and estimating API calls before fetching data.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the affinity-crm-mcp-unofficial plugin — 3 skills shipped together , and of affinity-crm-mcp-unofficial

Good fit Measuring funnel conversion, stage duration, deal progression timelines, and movement between specific stages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yaniv-golan/affinity-sdk/pipeline-history
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yaniv-golan/affinity-sdk --skill pipeline-history
Clone the repo
git clone --depth 1 https://github.com/yaniv-golan/affinity-sdk

Made for: Claude Code.

Or install affinity-crm-mcp-unofficial, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pipeline-history

README.md
[![agentmods](https://agentmods.dev/badge/skills/yaniv-golan/affinity-sdk/pipeline-history/github.svg)](https://agentmods.dev/skills/yaniv-golan/affinity-sdk/pipeline-history)
Your own site
<a href="https://agentmods.dev/skills/yaniv-golan/affinity-sdk/pipeline-history"><img src="https://agentmods.dev/badge/skills/yaniv-golan/affinity-sdk/pipeline-history/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pipeline-history

Your own site · 80×15
<a href="https://agentmods.dev/skills/yaniv-golan/affinity-sdk/pipeline-history"><img src="https://agentmods.dev/badge/skills/yaniv-golan/affinity-sdk/pipeline-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,091 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01091
Opus 5.5 $0.00011 $0.00436
Sonnet 5.5 $0.00005 $0.00218
Haiku 4.5 $0.00003 $0.00109

Measured 24d ago against content hash f2e98c158cf9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pipeline-history scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mcp/.claude-plugin/skills/pipeline-history/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pipeline History Analysis

When to Use

  • Historical pipeline analysis (how deals progressed over time)
  • Funnel conversion rates (what % of deals reached each stage)
  • Stage duration analysis (how long deals stay in each stage)
  • Deal progression timelines (when did a deal move from X to Y)

Workflow

All commands use execute-read-command. Do not pass --json in argv — JSON output is automatic.

Step 1: Identify the Status Field

execute-read-command(command: "field ls", argv: ["--list-id", "YOUR_LIST_NAME"])

Look for a dropdown field tracking deal stages (typically named "Status", "Stage", or "Pipeline Stage"). Note its fieldId (e.g., field-260415).

Step 2: Export Current State

execute-read-command(command: "list export", argv: ["YOUR_LIST_NAME", "--field", "Status", "--max-results", "50"])

JSON output key is data.rows. Each row contains listEntryId, entityId, entityName, and current field values.

Step 3: Estimate API Cost (REQUIRED)

execute-read-command(command: "field history-bulk", argv: ["<field-id>", "--list-id", "YOUR_LIST_NAME", "--all", "--strategy", "field", "--dry-run"])

--strategy field reads the field's whole history in a few calls (one per 10,000 changes) and keeps the rows for this list's entries. For a global field (dry run fieldKind: "global", e.g. a company field) it reads the field's history across the whole org and keeps this list's companies or people; if that holds more than 200,000 changes it stops with an error — then sample with --max-results (one call per company or person, at most 500 via MCP). A global field's rows include changes from before the company joined the list. Enriched fields have no history. Check estimatedApiCalls (the per-entry worst case) in the dry run before running it.

Step 4: Fetch History

execute-read-command(command: "field history-bulk", argv: ["<field-id>", "--list-id", "YOUR_LIST_NAME", "--max-results", "50"])

For all entries (after the dry run):

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · +2 lines f2e98c158cf9
  2. 27d ago Changed · +10 lines 3fe51810ba15
  3. 2mo ago First seen · 82 lines · 27 tokens per session scan A 8ad022dc41e8

Subscribe to this mod's changes

pipeline-history is a skill published in the GitHub repository yaniv-golan/affinity-sdk (2 stars, last pushed 3d ago), licensed MIT. It adds 27 tokens to every session and 1,091 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pipeline-history compared with skills from other repositories

pipeline-history next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pipeline-historyyaniv-golan/affinity-sdkSkill23d agoMITA27Claude Code
merit-lhvElnora-AI/elnora-merit-aktivaSkill105d agoApache-2.0A227Claude Code
merit-payments-bankElnora-AI/elnora-merit-aktivaSkill105d agoApache-2.0A215Claude Code
merit-tsdElnora-AI/elnora-merit-aktivaSkill105d agoApache-2.0A298Claude Code
merit-purchase-invoicesElnora-AI/elnora-merit-aktivaSkill105d agoApache-2.0A199Claude Code
merit-stripeElnora-AI/elnora-merit-aktivaSkill105d agoApache-2.0A201Claude Code
merit-vat-kmdElnora-AI/elnora-merit-aktivaSkill105d agoApache-2.0A213Claude Code