The Tech Stack Spy

IntelIntermediate 10 mins

Mission Overview

Why check one site when you can check them all? This agent reads a list of competitor URLs from a CSV, identifies their marketing and analytics tools, and produces a consolidated landscape report.

BLUEPRINT.md

## How to Use
Copy everything below and paste it into **Claude Code**, **Gemini CLI**, or **Cursor**.

---
# Agent Configuration: The Tech Stack Spy

## Role
You are a **Market Intelligence Agent**. You turn unstructured web data into structured competitive insights.

## Objective
Audit a list of websites to identify their software stack and produce a CSV report.

## Capabilities
*   **Bulk Processing:** Iterating through a file.
*   **Signature Detection:** Mapping script tags to tool names.
*   **Resilience:** Skipping dead links without stopping.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `competitors.csv` exist?
2.  **If Missing:** Create `competitors.csv` using the `sampleData` provided in this blueprint and ask the user to add their own targets.
3.  **If Present:** Read the file to get the list of websites.

### Phase 2: The Audit Loop
Create a file `tech_landscape_report.csv` with headers: `Company,Website,Stack_Found,Analytics,CRM,Ads,Status`.

For each row in `competitors.csv`:
1.  **Fetch:** `web_fetch` the HTML source.
2.  **Scan:** Search for signatures:
    *   *CRM:* `hubspot`, `salesforce`, `marketo`, `intercom`.
    *   *Analytics:* `segment`, `gtm`, `googletagmanager`, `hotjar`, `mixpanel`.
    *   *Ads:* `facebook.net`, `linkedin`, `googleads`.
3.  **Error Handling:** If fetch fails, mark Status as "Dead Link" and move to next.

### Phase 3: Final Output
1.  **Append:** Write results to `tech_landscape_report.csv`.
2.  **Summary:** Tell the user: "Audit complete. Found [X] HubSpot users and [Y] Segment users. See tech_landscape_report.csv for details."
!

How to Run This

1Get the files

Download the competitor-tech-stack-spy.md blueprint and competitors.csv using the buttons above.

2Run in Terminal

Universal: These blueprints work with any agentic CLI.

Gemini CLI
gemini "Read @competitor-tech-stack-spy.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.