Logo Seo Agent

Seo Agent

Cộng đồng
TheMattBerman
seo-agent

Self-improving SEO system. Finds keywords via DataForSEO, writes content that ranks, monitors GSC for what's climbing, then writes MORE content to push winners higher. A feedback loop, not a one-shot tool.

Tổng quan

Nhà phát hànhTheMattBerman
Kho mãseo-kit
Tên kỹ năngseo-agent
Sao
100
Bản fork
26
Tệp đi kèm
3
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được TheMattBerman công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Seo Agent trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/TheMattBerman/seo-kit/tree/main/skills/seo-agent
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TheMattBerman/seo-kit.git /tmp/seo-kit
mkdir -p .claude/skills
cp -r /tmp/seo-kit/skills/seo-agent .claude/skills/seo-agent
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Seo Agent trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Seo Agent ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Seo Agent không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

SEO Agent — The Self-Improving SEO Loop

Most SEO tools do one thing. Discover keywords. Write content. Check rankings. Done.

This isn't that.

The SEO Agent is a feedback loop — a system that finds opportunities, acts on them, watches what happens, and feeds those results back into the next round of work. Every cycle makes the next cycle smarter. Rankings climb. The content library grows. And you're always pushing the keywords that are already moving instead of starting from scratch.

"Don't just rank. Rank, learn, and rank higher."


The Loop

DISCOVER → WRITE → MONITOR → OPTIMIZE → REPEAT

1. DISCOVER (seo-discover.sh) Pull your current GSC rankings. Find what's in the strike zone (positions 5-20). Hit DataForSEO for related keywords you're missing. Score opportunities by volume, competition, and current position. Output a prioritized hit list.

2. WRITE (You + Claude) Take the top opportunity from discovery. Generate publication-ready SEO content — outline, draft, optimized headers, FAQs, schema markup. Brand voice from workspace/brand/voice-profile.md baked in.

3. MONITOR (seo-monitor.sh) Run weekly. Pull current GSC data. Compare to last snapshot. Flag what's climbing, what's dropping, what just cracked the strike zone. This is your radar.

4. OPTIMIZE (seo-compete.sh + Claude) Take the winners from monitoring — content climbing from 15 → 8. Write supporting articles that link to them. Add internal links from existing content. Push the climbers over the finish line.

5. REPEAT Discovery now has more context. Monitor has more history. Every loop compounds.


The Strike Zone

Positions 5–20 are where SEO leverage lives.

  • Position 1–4: Already winning. Defend.
  • Position 5–20: ⚡ THE STRIKE ZONE — close enough to move, not yet getting the clicks. A supporting article, better internal links, or a refreshed page can jump these 5–10 spots. That's the difference between 2% CTR and 8% CTR.
  • Position 21+: Too far out. Needs a full content build.

The Agent focuses energy here by default.


Scripts

All scripts live in ~/clawd/skills/seo-agent/scripts/. All use bash + curl + jq. No Python. No npm.

seo-discover.sh — Find Your Next Opportunity

bash
./seo-discover.sh --site sc-domain:example.com [--seeds "keyword1,keyword2"] [--limit 20]

What it does:

  1. Pulls your GSC top queries (last 28 days)
  2. Filters for strike zone keywords (positions 5–20)
  3. Hits DataForSEO for keyword suggestions around your top queries
  4. Gets search volume + competition for all candidates
  5. Scores and ranks opportunities
  6. Outputs a prioritized JSON list

Output fields: keyword, current_position, search_volume, competition, opportunity_score

Add --json for raw machine-readable output. Default is a human-readable table.

seo-monitor.sh — Track What's Moving

bash
./seo-monitor.sh --site sc-domain:example.com [--days 28]

What it does:

  1. Pulls current GSC data
  2. Loads previous snapshot from ~/clawd/workspace/seo-agent/snapshots/
  3. Diffs positions: climbing, dropping, new entries
  4. Highlights strike zone keywords ready to push
  5. Flags content losing ground (act before it falls further)
  6. Saves new snapshot for next comparison

Snapshots stored at: ~/clawd/workspace/seo-agent/snapshots/SITE-YYYY-MM-DD.json

seo-compete.sh — Find Their Keywords, Take Them

bash
./seo-compete.sh --site example.com --competitor competitor.com [--limit 30]

What it does:

  1. Uses DataForSEO to find all keywords your competitor ranks for
  2. Cross-references against your rankings
  3. Returns the gap — keywords they're winning that you're not targeting
  4. Scored by their position + search volume (easiest wins first)

This feeds directly back into DISCOVER as a seed list.


Configuration

On first use, create ~/clawd/workspace/seo-agent/config.yaml:

yaml
site: "sc-domain:example.com"
competitors:
  - competitor1.com
  - competitor2.com
content_directory: "./content"
monitor_frequency: "weekly"
target_positions: [5, 20]   # the strike zone
min_search_volume: 100

Scripts read this config automatically. Override any setting with CLI flags.


Setup

1. DataForSEO Credentials

bash
export DATAFORSEO_LOGIN=your@email.com
export DATAFORSEO_PASSWORD=yourpassword

2. Google Search Console Auth

Same auth as gsc-report. If you've set that up, you're ready.

Options:

  • export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
  • gcloud auth application-default login
  • export GOOGLE_ACCESS_TOKEN=ya29.xxx

3. Your Site URL

Find your exact property URL in Search Console. It's either:

  • https://example.com (URL prefix property)
  • sc-domain:example.com (domain property — broader, recommended)

4. (Optional) Brand Voice

Drop your brand voice profile at ~/clawd/workspace/brand/voice-profile.md. The agent reads this when generating content briefs and drafts. Run the brand-voice skill first if you haven't.


Running the Full Loop

Week 1 — Discovery

Run: seo-discover.sh --site your-site --limit 20
Output: Prioritized keyword hit list
Action: Pick top 3 opportunities → generate content with Claude

Week 2+ — Monitor + Optimize

Run: seo-monitor.sh --site your-site
Output: What moved, what's in strike zone
Action: Find climbers → write supporting content → add internal links

Ongoing — Compete

Run: seo-compete.sh --site your-site --competitor their-site
Output: Their keywords, your gaps
Action: Feed gaps back into discovery as seeds

How Claude Uses This

When you run the SEO Agent loop, Claude:

  1. Reads discovery output → selects the best opportunity based on your goals
  2. Generates a full content brief: target keyword, secondary keywords, outline, angle, word count, FAQ section, schema markup suggestions
  3. Drafts the article (or hands off outline for your writer)
  4. Reads monitor output → identifies what to optimize next
  5. Writes supporting articles with internal link strategy built in
  6. Updates workspace/brand/learnings.md with what's working

DataForSEO Endpoints Used

PurposeEndpoint
Keyword volumePOST /v3/keywords_data/google_ads/search_volume/live
Related keywordsPOST /v3/keywords_data/google_ads/keywords_for_keywords/live
Keyword expansionPOST /v3/dataforseo_labs/google/keyword_suggestions/live
SERP checkPOST /v3/serp/google/organic/live/advanced
Competitor keywordsPOST /v3/dataforseo_labs/google/competitors_domain/live
Keyword gapsPOST /v3/dataforseo_labs/google/domain_intersection/live

API base: https://api.dataforseo.com Auth: HTTP Basic — $DATAFORSEO_LOGIN:$DATAFORSEO_PASSWORD


Output Files

PathContents
workspace/seo-agent/snapshots/SITE-DATE.jsonWeekly ranking snapshots
workspace/seo-agent/config.yamlYour site config
workspace/brand/learnings.mdRanking insights (appended)
workspace/brand/keyword-plan.mdActive keyword targets

Why This Works

Most people do SEO once and forget it. They publish and pray.

The SEO Agent turns SEO into a system. Every week you know:

  • What moved
  • Why it moved
  • What to do next

Compound that for 6 months and you've got a content moat competitors can't buy their way out of.

The scripts are the engine. You (and Claude) are the brain. Together, that's the loop.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Seo Agent làm được gì?

Self-improving SEO system. Finds keywords via DataForSEO, writes content that ranks, monitors GSC for what's climbing, then writes MORE content to push winners higher. A feedback loop, not a one-shot tool.

Vì sao nên dùng Seo Agent trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Seo Agent là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Seo Agent trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/TheMattBerman/seo-kit/tree/main/skills/seo-agent. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Seo Agent?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Seo Agent với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Seo Agent với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Seo Agent có miễn phí không?

Kỹ năng này được TheMattBerman phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇