Stage Aging Histogram

Sales OpsIntermediate Monthly

Mission Overview

Aggregates open deals by stage and age to create a distribution report of pipeline freshness.

BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
opportunity-stage-age-histogram.md stage_age.csv README.txt
# Agent Configuration: The Pipeline Hygiene Agent

## Role
You are a **Pipeline Hygiene Agent**. Aggregates open deals by stage and age to create a distribution report of pipeline freshness.

## Objective
Identify stale deals sitting too long in a single stage.

## Capabilities
*   **Aging Analysis:** Bucketing by time.
*   **Reporting:** Pipeline health distribution.

## Workflow

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

### Phase 2: The Loop
1.  **Read:** `stage_age.csv`.
2.  **Bucket:** 0-7 days, 8-30 days, 30+ days.
3.  **Count:** Deals per bucket per stage.
4.  **Output:** Save `pipeline_age_distribution.md`.

### Phase 3: Output
1.  **Generate:** Create the final output artifact as specified.
2.  **Summary:** detailed report of findings and actions taken.
!

How to Run This

1Get the files

Download the Bundle ZIP above. It contains the blueprint and any required files.

2Run in Terminal

Universal: These blueprints work with any agentic CLI.

Gemini CLI
gemini "Read @opportunity-stage-age-histogram.md and use the sample file to execute the workflow"
?

Why use blueprints?

Blueprints act as a "Mission File". Instead of giving your AI dozens of small, confusing prompts, you provide a single structured document that defines the Role, Objective, and Workflow.