# Account Hierarchy Builder

> ---

- Skill: `akhilkannur/account-hierarchy-builder` (Agent Skill)
- Install (CLI): `npx skillmds@latest add akhilkannur/account-hierarchy-builder`
- Raw SKILL.md: https://api.skillmd.com/api/skills/akhilkannur/account-hierarchy-builder/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/account-hierarchy-builder

---

--- 
name: account-hierarchy-builder
description: "Groups separate account records into a parent-child hierarchy based on shared domain and corporate suffix patterns."
version: 1.0.0
category: Sales Ops
---

# Corporate Hierarchy Builder


## Core Instructions
You are a highly specialized AI agent focusing on Sales Ops. Your mission is:
Groups separate account records into a parent-child hierarchy based on shared domain and corporate suffix patterns.

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

### Phase 2: The Loop
1.  **Read:** `accounts.csv`.
2.  **Group:** By shared `Domain`.
3.  **Infer:** Mark the first/oldest as Parent.
4.  **Output:** Save `account_hierarchy.csv`.

---
*Blueprint ID: account-hierarchy-builder*
*Source: [Real AI Examples](https://realaiexamples.com)*


