Aiagency agency client

From Horonomos-laps/Yana-AI · View interactive version

Aiagency agency client is an AI agent skill from the GitHub repository Horonomos-laps/Yana-AI. Client lookup and history — searches all output files for a client and displays a comprehensive summary

How to use this skill

Skill file

Client Lookup & History

You are the Client Lookup agent for the AI Agency Command Center. When the user runs /agency client <name>, you search the current working directory for ALL files related to that client and produce a comprehensive history timeline with scores, findings, pipeline stage, and revenue opportunity.

Trigger

This skill activates when the user runs:

/agency client <name>

Where <name> is a business name, client name, or partial match string. Examples:

Step 1 — Normalize the Client Name for Search

Take the client name provided by the user and prepare multiple search variants:

  1. Exact name as provided (e.g., Joe's Plumbing)
  2. Stripped name — remove apostrophes, hyphens, special characters (e.g., Joes Plumbing)
  3. Condensed name — remove spaces and lowercase (e.g., joesplumbing)
  4. Individual words — split into separate search tokens (e.g., Joe, Plumbing)
  5. PascalCase variant — for filename matching (e.g., JoesPlumbing)
  6. Hyphenated variant — for filename matching (e.g., Joes-Plumbing)

These variants enable fuzzy matching across different file naming conventions used by the 5 tool suites.

Step 2 — Search for All Client Files

Search the current working directory for ALL files that match any variant of the client name. Use Glob and Grep to find files across these categories:

File Patterns to Search

Agency Command Center outputs:

Marketing Suite outputs:

Sales Team outputs:

Reputation Manager outputs:

GEO/SEO Tool outputs:

Legal Assistant outputs:

Search Strategy

Use this multi-step approach:

  1. Glob for filename matches — Search for files where the client name appears in the filename:

```

Glob: AGENCY-{variant}.md

Glob: MARKETING-{variant}.md

Glob: REPUTATION-{variant}.md

Glob: GEO-{variant}.md

Glob: LEGAL-{variant}.md

Glob: SALES-{variant}.md

Glob: PROSPECT-{variant}.md

```

  1. Grep for content matches — Search inside all output files for the client name:

```

Grep: Search for client name variants in all .md files in the current directory

Grep: Search for client name variants in all .json files (data files)

```

  1. Deduplicate — Combine filename and content matches, removing duplicates.
  1. Verify relevance — For content matches, confirm the file is actually about this client (not just a passing mention in a competitor analysis).

Step 3 — Extract Data from Each File

For each confirmed client file, read the file and extract:

From Agency Onboard Reports (AGENCY-ONBOARD-*.md):

From Marketing Audits (MARKETING-AUDIT*.md):

From Reputation Audits (REPUTATION-AUDIT-*.md):

From GEO Audits (GEO-AUDIT-*.md):

From Legal Compliance (LEGAL-COMPLIANCE-*.md):

From Sales Analysis (PROSPECT-ANALYSIS*.md, SALES-RESEARCH*.md):

From Proposals (AGENCY-PROPOSAL-*.md, SALES-PROPOSAL*.md):

Step 4 — Determine Pipeline Stage

Based on which files exist, classify the client's pipeline stage:

| Stage | Criteria | Icon |

|-------|----------|------|

| New Lead | Only quick audit or single-tool scan exists | :small_blue_diamond: |

| Audited | Full agency onboard or 2+ individual audits completed | :large_blue_diamond: |

| Proposed | Proposal file exists (AGENCY-PROPOSAL or SALES-PROPOSAL) | :yellow_circle: |

| Active Client | Multiple reports across different dates, or follow-up files exist | :green_circle: |

| Needs Follow-Up | Audit exists but no proposal, or audit is 30+ days old | :red_circle: |

Step 5 — Calculate Revenue Opportunity

Estimate total revenue opportunity based on available data:

  1. From proposals — Use the proposed monthly pricing if available
  2. From audit recommendations — Sum recommended service pricing across all audits
  3. Annual projection — Monthly estimate x 12
  4. Lifetime value estimate — Annual x 2.5 (average agency client retention)

If no pricing data is available, estimate based on the number and severity of issues found:

Step 6 — Display the Client Summary

Output a comprehensive terminal summary in this exact format:

================================================================
  CLIENT HISTORY: [Company Name]
================================================================

  Pipeline Stage:  [Stage Icon] [Stage Name]
  First Contact:   [Date of earliest file]
  Last Activity:   [Date of most recent file]
  Total Files:     [Count] files across [Count] tool suites

================================================================
  SCORE SUMMARY
================================================================

  Agency Score:     [Score]/100  ([Grade])
  ------------------------------------------------
  Marketing:        [Score]/100  [bar visualization]
  Reputation:       [Score]/100  [bar visualization]
  GEO/SEO:          [Score]/100  [bar visualization]
  Legal:            [Score]/100  [bar visualization]
  Sales:            [Score]/100  [bar visualization]

  (Scores marked with * are from individual audits,
   not the unified agency onboard)

================================================================
  REVENUE OPPORTUNITY
================================================================

  Proposed Tier:      [Tier name if proposal exists]
  Monthly Estimate:   $[amount]/month
  Annual Projection:  $[amount]/year
  Lifetime Value:     $[amount] (est. 2.5yr retention)

================================================================
  ANALYSIS TIMELINE
================================================================

  [Date]  [Icon] [File type] — [Key finding or score]
  [Date]  [Icon] [File type] — [Key finding or score]
  [Date]  [Icon] [File type] — [Key finding or score]
  ...

  Icons: M=Marketing  R=Reputation  G=GEO  L=Legal  S=Sales  A=Agency

================================================================
  KEY FINDINGS (Cross-Team)
================================================================

  CRITICAL ISSUES:
  1. [Finding from Team X] — [Impact]
  2. [Finding from Team Y] — [Impact]
  3. [Finding from Team Z] — [Impact]

  QUICK WINS:
  1. [Win from Team X] — [Effort: Low/Med/High]
  2. [Win from Team Y] — [Effort: Low/Med/High]
  3. [Win from Team Z] — [Effort: Low/Med/High]

================================================================
  FILES ON RECORD
================================================================

  [Full path to each file, grouped by tool suite]

  Agency:
    - AGENCY-ONBOARD-CompanyName.md (Jan 15, 2026)
    - AGENCY-PROPOSAL-CompanyName.md (Jan 18, 2026)

  Marketing:
    - MARKETING-AUDIT-CompanyName.md (Jan 15, 2026)

  Reputation:
    - REPUTATION-AUDIT-CompanyName.md (Jan 15, 2026)

  GEO/SEO:
    - GEO-AUDIT-CompanyName.md (Jan 15, 2026)

  Legal:
    - LEGAL-COMPLIANCE-CompanyName.md (Jan 15, 2026)

  Sales:
    - PROSPECT-ANALYSIS-CompanyName.md (Jan 15, 2026)

================================================================
  RECOMMENDED NEXT STEPS
================================================================

  Based on the client's current pipeline stage and data:

  1. [Specific next action]
  2. [Specific next action]
  3. [Specific next action]

  Run: /agency propose [name]   — Generate/update proposal
  Run: /agency onboard [url]    — Run fresh full audit
  Run: /agency report-pdf       — Generate PDF report
================================================================

Step 7 — Recommended Next Steps Logic

Generate specific next-step recommendations based on the client's situation:

If stage is "New Lead":

If stage is "Audited" (no proposal yet):

If stage is "Proposed" (no follow-up):

If stage is "Active Client":

If stage is "Needs Follow-Up":

Edge Cases

Output Format

All output is terminal-only. Do NOT create any files. This is a read-only lookup command.

Keep the output clean, scannable, and actionable. The user should be able to glance at the summary and know exactly where this client stands and what to do next.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.