agentleFS
Varnan-TechVarnan-Tech/opendirectory/skills/geo-gap-fixer/SKILL.md

geo-gap-fixer

Skill671 starsChanged 6 months agoMITView on GitHub

Audit how often LLMs recommend your brand vs competitors and generate a GEO action plan.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when a user wants to audit their Generative Engine Optimization (GEO) share-of-voice to know which LLM prompts their brand …

    line 17
  2. Distinctive:

    Run the following scripts in order.

    line 41
  3. Distinctive:

    If you encounter issues while executing the pipeline, follow these rules:

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GEO Gap Fixer

Agent skill that audits LLM brand visibility and converts gaps into a concrete GEO content action plan.


When to Use

Use this skill when a user wants to audit their Generative Engine Optimization (GEO) share-of-voice to know which LLM prompts their brand is losing, understand why competitors are recommended instead, and get a specific content fix plan.

Do NOT use this skill for: general SEO audits, paid ad optimization, or continuous social media monitoring. This is a point-in-time LLM visibility audit.


Step 1: Inputs

To run the audit, the user must provide API keys and a configuration file. Ensure the following are set up:

  1. API Keys: At least 2 of 4 keys must be set in the environment or .env file (OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, PERPLEXITY_API_KEY).
  2. Dependencies: pip install openai anthropic google-genai
  3. Config File: config.json (copied from config.example.json) must contain:
    • brand_name (string, required)
    • competitors (list of strings, required, 1-10 entries)
    • category (string, required)
    • buyer_intent_prompts (list of strings, optional. If empty, 20 prompts are auto-generated)
    • target_llms (list of strings, optional)
    • website_url (string, optional)

Step 2: Execution Pipeline

Run the following scripts in order. Stop and ask for clarification if any script fails.

  1. python scripts/probe_llms.py (Optional: append --dry-run to test config without API calls)
    • Sends buyer-intent prompts to the configured LLM APIs.
    • Saves responses to data/raw_responses.json.
  2. python scripts/analyze_results.py
    • Analyzes raw responses for brand mentions, ranking, sentiment, and cited domains.
    • Saves structured analysis to data/analysis.json.
  3. python scripts/build_report.py
    • Assembles the final 5-section GEO audit report.
    • Saves to report/geo_audit_report.md and report/geo_audit_report.json.

Step 3: Outputs & Interpretation

The primary output is report/geo_audit_report.md. Present its findings to the user.

Key Sections to Interpret:

  1. Share-of-Voice Table: A mention rate below 30% is critical. Mention rate is the % of prompts where the brand is recommended.
  2. Prompt-Level Loss Log: Which exact prompts the brand lost and to whom.
  3. Competitor Language Patterns: The specific adjectives LLMs use for competitors.
  4. Citation Gap List: Domains LLMs cite that the brand is missing from.
  5. GEO Action Plan: Prioritized fixes (🔴 Critical, 🟡 High Priority, 🟢 Growth Plays).

Direct the user to the GEO Action Plan first, as it contains the concrete steps to fix the gaps identified in the audit.


Step 4: Error Handling

If you encounter issues while executing the pipeline, follow these rules:

ConditionAgent Action
Missing config.jsonTell the user to copy config.example.json and fill it out.
Invalid JSON in configNotify the user of the parse error location and ask them to fix it.
Missing required fieldsList the exact missing fields (brand_name, competitors, category).
No API keys setAsk the user to export at least 2 of the 4 supported API keys.
1 API key onlyWarn the user that results are less reliable, but proceed with the run.
Transient API failureThe script auto-retries. If it fails completely, it skips the provider.
Persistent API failureThe script skips the provider gracefully. Continue the pipeline.
Zero responsesThe script exits non-zero. Notify the user to check API keys or config.
Missing upstream data fileRe-run the preceding script in the pipeline (e.g., probe before analyze).

Limitations to keep in mind:

  • This is a point-in-time audit, not a background monitor.
  • Sentiment analysis uses keyword proximity, not deep NLP.
  • API costs apply for each run (typically ~$0.50–$2.00).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.