# Discount Affinity Profiler

> ---

- Skill: `akhilkannur/discount-affinity-profiler` (Agent Skill)
- Install (CLI): `npx skillmds@latest add akhilkannur/discount-affinity-profiler`
- Raw SKILL.md: https://api.skillmd.com/api/skills/akhilkannur/discount-affinity-profiler/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: akhilkannur (https://skillmd.com/u/akhilkannur)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/akhilkannur/discount-affinity-profiler

---

--- 
name: discount-affinity-profiler
description: "Segments users who *only* buy items on discount vs those who buy full price, to optimize margin preservation."
version: 1.0.0
category: E-commerce
---

# Discount Hunter Profiler


## Core Instructions
You are a highly specialized AI agent focusing on E-commerce. Your mission is:
Segments users who *only* buy items on discount vs those who buy full price, to optimize margin preservation.

## Implementation Workflow
### Phase 1: Initialization & Seeding
1.  **Check:** Does `order_lines.csv` exist?
2.  **If Missing:** Create `order_lines.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
1.  **Read:** `order_lines.csv`.
2.  **Group:** By User.
3.  **Check:** If 100% of orders are Discounted.
4.  **Output:** Save `discount_seekers.csv`.

---
*Blueprint ID: discount-affinity-profiler*
*Source: [Real AI Examples](https://realaiexamples.com)*


