state-builder

state-builder is a skill for Claude Code, Codex from violetfleming47/deal-intelligence. It costs 86 tokens per session (5,567 once invoked), scanned A, original, MIT.

A data-processing skill that combines outputs from several deal-reading tools into a versioned snapshot of a sales opportunity's current state. A CRM is software that stores customer and sales records.

In plain words
What is it for?
Use it to assemble available signals about a deal into five state dimensions and write a new version only when the state changes. It does not read the CRM or conversation provider directly.
Why use it?
It gives later parts of a deal-intelligence system one consolidated view instead of making them interpret separate reader results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to assemble available signals about a deal into five state dimensions and write a new version only when the state changes. It does not read the CRM or conversation provider directly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/violetfleming47/deal-intelligence/state-builder
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 violetfleming47/deal-intelligence --skill state-builder
Clone the repo
git clone --depth 1 https://github.com/violetfleming47/deal-intelligence

Made for: Claude Code, Codex.

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 state-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/violetfleming47/deal-intelligence/state-builder/github.svg)](https://agentmods.dev/skills/violetfleming47/deal-intelligence/state-builder)
Your own site
<a href="https://agentmods.dev/skills/violetfleming47/deal-intelligence/state-builder"><img src="https://agentmods.dev/badge/skills/violetfleming47/deal-intelligence/state-builder/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 state-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/violetfleming47/deal-intelligence/state-builder"><img src="https://agentmods.dev/badge/skills/violetfleming47/deal-intelligence/state-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,567 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.00086 $0.05567
Opus 5.5 $0.00034 $0.02227
Sonnet 5.5 $0.00017 $0.01113
Haiku 4.5 $0.00009 $0.00557

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

Security

Grade A, and why

state-builder 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 2mo 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.

skills/state-builder/SKILL.md · 500 lines

How it starts

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

State Builder — Deal State Projection

Adapting this skill: All CRM-specific values are wrapped in {{PLACEHOLDER}} markers. Before deploying, pull your CRM and transcript provider schemas (see guides/data-mapping-guide.md), map your field names and stage IDs to the placeholders, and hardcode them into this skill. The logic and structure are universal — only the field names and API calls change.

Starter note: This skill references F08, the cadence-reader skill, and the supabase-reading-guide. In the starter, F08 queries return empty results and no cadence data is available. The assembler builds deal state from the 3 available reader outputs (deal-tracker, conversation-scanner, blocker-scanner). Cadence and use-case dimensions are populated when those readers are added in the full system.

You are the State Builder for {{COMPANY_NAME}}'s Deal Intelligence pipeline. You aggregate all available reader outputs from di_raw_signals and di_signal_classifications into the five-dimension di_deal_state snapshot. You are the bridge between the inbound layer and everything downstream.

Boundary

You answer one question: Given all spotter outputs since the last assembly, what is the current five-dimension state of each deal?

You do NOT:

  • Read CRM or transcript provider directly. Everything comes through di_* tables (reader outputs).
  • Interpret signals. You aggregate what the spotters classified. If a reader classified a contact as primary_sponsor, you carry that forward. You don't re-assess.
  • Detect patterns. You produce the data that pattern detection agents consume.
  • Score deals. You produce a factual snapshot.
  • Recommend actions. You are pure aggregation.
  • Delete or overwrite previous versions. SCD Type 2 — new version rows only.

Framework Loading

Load each framework individually (single query per framework to avoid MCP response size limits):

SELECT content FROM di_frameworks WHERE framework_id = 'F08' AND status = 'active';
SELECT content FROM di_frameworks WHERE framework_id = 'supabase-reading-guide' AND status = 'active';

Read the full file on GitHub · 500 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. 2mo ago First seen · 500 lines · 86 tokens per session scan A eff6dd7a7652

Subscribe to this mod's changes

state-builder is a skill published in the GitHub repository violetfleming47/deal-intelligence (4 stars, last pushed 5mo ago), licensed MIT. It adds 86 tokens to every session and 5,567 once invoked, about $0.0003 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

Other skills, from other repositories