agentleFS
zubair-trabzadazubair-trabzada/dataforseo-claude/skills/seo-report-pdf/SKILL.md

seo-report-pdf

Skill162 starsChanged 7 months agoMITView on GitHub

Generate a professional, client-ready PDF SEO report from a saved DataForSEO-powered audit. Produces a polished PDF with score gauges, prioritized action plan, keyword opportunity tables, and competitive landscape — ready to send to a client.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before running any of the steps below, always invoke the shared preflight check:

    line 12
  2. Very specific:

    Write them to ~/.claude/skills/seo/.env:

    line 30
  3. Very specific:

    Run a verification call: ~/.claude/skills/seo/scripts/keyword_research.py volume "test"

    line 36
  4. Distinctive:

    If verification succeeds (real JSON returned): tell the user "✅ Credentials verified.

    line 37
  5. Very specific:

    If status 40104 — Please verify your account: tell the user to verify their account at https://app.dataforseo.com/, then say "continue" to …

    line 38
  6. Distinctive:

    If any other auth error: ask them to double-check the API password (the long alphanumeric string from https://app.dataforseo.com/api-access …

    line 39
  7. Distinctive:

    When the PDF is generated, print the absolute path and (on macOS) offer to open it:

    line 63
  8. Distinctive:

    All sections gracefully skip if their data is missing from the audit JSON, so partial audits still render a valid PDF.

    line 82

≈ “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

Phase 0: Credential Preflight (REQUIRED — run BEFORE anything else)

Before running any of the steps below, always invoke the shared preflight check:

~/.claude/skills/seo/scripts/preflight.sh

If exit code is 0: credentials are configured — proceed with the rest of this skill silently.

If exit code is 2: the script prints the DataForSEO setup wizard to stdout. STOP, display that wizard to the user verbatim, and wait for them to paste credentials in this format:

login: their_email@example.com
password: their_api_password_here

When they reply:

  1. Parse login: and password: from their message.
  2. Write them to ~/.claude/skills/seo/.env:
    DATAFORSEO_LOGIN=<login>
    DATAFORSEO_PASSWORD=<password>
  3. chmod 600 ~/.claude/skills/seo/.env
  4. Run a verification call: ~/.claude/skills/seo/scripts/keyword_research.py volume "test"
  5. If verification succeeds (real JSON returned): tell the user "✅ Credentials verified. Running your command now..." and proceed with the original request.
  6. If status 40104 — Please verify your account: tell the user to verify their account at https://app.dataforseo.com/, then say "continue" to retry.
  7. If any other auth error: ask them to double-check the API password (the long alphanumeric string from https://app.dataforseo.com/api-access — not their account login password).

Never echo credentials back to the user, never include them in tool output, and never commit them.


SEO PDF Report Skill

Powered by: Reads the audit JSON produced by /seo audit, built from live DataForSEO API data. PDF generation uses ReportLab — no additional API calls.

Prerequisite

/seo audit <domain> must have run first and saved ~/.claude/skills/seo/output/<domain>-audit.json. If that file doesn't exist, tell the user to run the audit first.

Run

~/.claude/skills/seo/scripts/generate_pdf_report.py \
    --input ~/.claude/skills/seo/output/<domain>-audit.json \
    --output ~/.claude/skills/seo/output/<domain>-report.pdf

When the PDF is generated, print the absolute path and (on macOS) offer to open it:

open ~/.claude/skills/seo/output/<domain>-report.pdf

What's in the PDF

The generator (scripts/generate_pdf_report.py) reads the audit JSON and produces:

  • Cover with composite Overall / Keywords / Technical / Authority score cards
  • Executive Summary
  • Key Metrics block
  • Prioritized Action Plan table (color-coded by priority)
  • Top Keyword Opportunities table (with volume, CPC, difficulty, position)
  • Competitive Landscape table

All sections gracefully skip if their data is missing from the audit JSON, so partial audits still render a valid PDF.

Customization

To change colors/fonts/branding for a client deliverable, edit the constants at the top of scripts/generate_pdf_report.py:

BRAND_PRIMARY = colors.HexColor("#1f4e79")
BRAND_ACCENT  = colors.HexColor("#2e8b57")

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.