claude-flow-novice 2.14.22 → 2.14.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/cfn-seo-coordinator.md +410 -414
  2. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/competitive-seo-analyst.md +420 -423
  3. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/content-atomization-specialist.md +577 -580
  4. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/content-seo-strategist.md +242 -245
  5. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/eeat-content-auditor.md +386 -389
  6. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/geo-optimization-expert.md +266 -269
  7. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/link-building-specialist.md +288 -291
  8. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/local-seo-optimizer.md +330 -333
  9. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/programmatic-seo-engineer.md +241 -244
  10. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/schema-markup-engineer.md +427 -430
  11. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/seo-analytics-specialist.md +373 -376
  12. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/seo-validators/accessibility-validator.md +561 -565
  13. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/seo-validators/audience-validator.md +480 -484
  14. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/seo-validators/branding-validator.md +448 -452
  15. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/seo-validators/humanizer-validator.md +329 -333
  16. package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/technical-seo-specialist.md +227 -231
  17. package/claude-assets/agents/cfn-dev-team/CLAUDE.md +9 -29
  18. package/claude-assets/agents/cfn-dev-team/analysts/root-cause-analyst.md +1 -4
  19. package/claude-assets/agents/cfn-dev-team/architecture/goal-planner.md +1 -4
  20. package/claude-assets/agents/cfn-dev-team/architecture/planner.md +1 -4
  21. package/claude-assets/agents/cfn-dev-team/architecture/system-architect.md +1 -4
  22. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +536 -540
  23. package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +1 -4
  24. package/claude-assets/agents/cfn-dev-team/coordinators/epic-creator.md +1 -5
  25. package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +1 -3
  26. package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +1 -5
  27. package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +688 -692
  28. package/claude-assets/agents/cfn-dev-team/dev-ops/github-commit-agent.md +113 -117
  29. package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +536 -540
  30. package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +735 -739
  31. package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +901 -905
  32. package/claude-assets/agents/cfn-dev-team/developers/backend-developer.md +1 -4
  33. package/claude-assets/agents/cfn-dev-team/developers/data/data-engineer.md +581 -585
  34. package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +272 -276
  35. package/claude-assets/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +1 -4
  36. package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +322 -325
  37. package/claude-assets/agents/cfn-dev-team/developers/frontend/ui-designer.md +1 -5
  38. package/claude-assets/agents/cfn-dev-team/developers/graphql-specialist.md +611 -615
  39. package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +1 -4
  40. package/claude-assets/agents/cfn-dev-team/documentation/pseudocode.md +1 -4
  41. package/claude-assets/agents/cfn-dev-team/documentation/specification-agent.md +1 -4
  42. package/claude-assets/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +105 -108
  43. package/claude-assets/agents/cfn-dev-team/product-owners/cto-agent.md +1 -5
  44. package/claude-assets/agents/cfn-dev-team/product-owners/power-user-persona.md +176 -180
  45. package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +53 -30
  46. package/claude-assets/agents/cfn-dev-team/reviewers/quality/cyclomatic-complexity-reducer.md +375 -321
  47. package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +52 -30
  48. package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +51 -35
  49. package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +703 -707
  50. package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +897 -901
  51. package/claude-assets/agents/cfn-dev-team/testers/e2e/playwright-tester.md +1 -5
  52. package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +1 -5
  53. package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +465 -469
  54. package/claude-assets/agents/cfn-dev-team/testers/playwright-tester.md +1 -4
  55. package/claude-assets/agents/cfn-dev-team/testers/tester.md +1 -4
  56. package/claude-assets/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +1 -5
  57. package/claude-assets/agents/cfn-dev-team/testers/validation/validation-production-validator.md +1 -3
  58. package/claude-assets/agents/cfn-dev-team/testing/test-validation-agent.md +309 -312
  59. package/claude-assets/agents/cfn-dev-team/utility/agent-builder.md +529 -550
  60. package/claude-assets/agents/cfn-dev-team/utility/analyst.md +1 -4
  61. package/claude-assets/agents/cfn-dev-team/utility/claude-code-expert.md +1040 -1043
  62. package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +86 -89
  63. package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +753 -757
  64. package/claude-assets/agents/cfn-dev-team/utility/researcher.md +1 -6
  65. package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +626 -630
  66. package/claude-assets/agents/custom/cfn-system-expert.md +258 -261
  67. package/claude-assets/agents/custom/claude-code-expert.md +141 -144
  68. package/claude-assets/agents/custom/test-mcp-access.md +24 -26
  69. package/claude-assets/agents/project-only-agents/npm-package-specialist.md +343 -347
  70. package/claude-assets/cfn-agents-ignore/cfn-seo-team/AGENT_CREATION_REPORT.md +481 -0
  71. package/claude-assets/cfn-agents-ignore/cfn-seo-team/DELEGATION_MATRIX.md +371 -0
  72. package/claude-assets/cfn-agents-ignore/cfn-seo-team/HUMANIZER_PROMPTS.md +536 -0
  73. package/claude-assets/cfn-agents-ignore/cfn-seo-team/INTEGRATION_REQUIREMENTS.md +642 -0
  74. package/claude-assets/cfn-agents-ignore/cfn-seo-team/cfn-seo-coordinator.md +410 -0
  75. package/claude-assets/cfn-agents-ignore/cfn-seo-team/competitive-seo-analyst.md +420 -0
  76. package/claude-assets/cfn-agents-ignore/cfn-seo-team/content-atomization-specialist.md +577 -0
  77. package/claude-assets/cfn-agents-ignore/cfn-seo-team/content-seo-strategist.md +242 -0
  78. package/claude-assets/cfn-agents-ignore/cfn-seo-team/eeat-content-auditor.md +386 -0
  79. package/claude-assets/cfn-agents-ignore/cfn-seo-team/geo-optimization-expert.md +266 -0
  80. package/claude-assets/cfn-agents-ignore/cfn-seo-team/link-building-specialist.md +288 -0
  81. package/claude-assets/cfn-agents-ignore/cfn-seo-team/local-seo-optimizer.md +330 -0
  82. package/claude-assets/cfn-agents-ignore/cfn-seo-team/programmatic-seo-engineer.md +241 -0
  83. package/claude-assets/cfn-agents-ignore/cfn-seo-team/schema-markup-engineer.md +427 -0
  84. package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-analytics-specialist.md +373 -0
  85. package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/accessibility-validator.md +561 -0
  86. package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/audience-validator.md +480 -0
  87. package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/branding-validator.md +448 -0
  88. package/claude-assets/cfn-agents-ignore/cfn-seo-team/seo-validators/humanizer-validator.md +329 -0
  89. package/claude-assets/cfn-agents-ignore/cfn-seo-team/technical-seo-specialist.md +227 -0
  90. package/dist/agents/agent-loader.js +467 -133
  91. package/dist/agents/agent-loader.js.map +1 -1
  92. package/dist/cli/config-manager.js +91 -109
  93. package/dist/cli/config-manager.js.map +1 -1
  94. package/package.json +2 -2
  95. /package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/AGENT_CREATION_REPORT.md +0 -0
  96. /package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/DELEGATION_MATRIX.md +0 -0
  97. /package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/HUMANIZER_PROMPTS.md +0 -0
  98. /package/{claude-assets/agents → .claude/cfn-agents-ignore}/cfn-seo-team/INTEGRATION_REQUIREMENTS.md +0 -0
@@ -0,0 +1,642 @@
1
+ # SEO Agent Integration Requirements
2
+
3
+ This document outlines the API integrations, service dependencies, and external tools required for the SEO specialist agents.
4
+
5
+ ## API Integrations
6
+
7
+ ### Google APIs
8
+
9
+ #### Google Search Console API
10
+ **Required by:**
11
+ - technical-seo-specialist
12
+ - seo-analytics-specialist
13
+
14
+ **Use cases:**
15
+ - Fetch crawl errors and index coverage
16
+ - Track search performance (impressions, clicks, CTR, position)
17
+ - Monitor Core Web Vitals
18
+ - Submit sitemaps
19
+
20
+ **Authentication:** OAuth 2.0
21
+ **Endpoints:**
22
+ - `searchconsole.sitemaps.list`
23
+ - `searchconsole.urlInspection.index.inspect`
24
+ - `searchanalytics.query`
25
+
26
+ ---
27
+
28
+ #### Google Analytics 4 API
29
+ **Required by:**
30
+ - seo-analytics-specialist
31
+
32
+ **Use cases:**
33
+ - Track organic traffic and user behavior
34
+ - Analyze conversion funnels
35
+ - Segment traffic by device, location, demographics
36
+ - Set up custom events and conversions
37
+
38
+ **Authentication:** OAuth 2.0 or Service Account
39
+ **Endpoints:**
40
+ - `properties.runReport`
41
+ - `properties.batchRunReports`
42
+
43
+ ---
44
+
45
+ #### PageSpeed Insights API
46
+ **Required by:**
47
+ - technical-seo-specialist
48
+
49
+ **Use cases:**
50
+ - Measure Core Web Vitals (LCP, FID, CLS)
51
+ - Analyze page performance scores
52
+ - Get optimization recommendations
53
+
54
+ **Authentication:** API Key
55
+ **Endpoint:**
56
+ - `https://www.googleapis.com/pagespeedonline/v5/runPagespeed`
57
+
58
+ ---
59
+
60
+ #### Google Rich Results Test API
61
+ **Required by:**
62
+ - schema-markup-engineer
63
+ - technical-seo-specialist
64
+
65
+ **Use cases:**
66
+ - Validate JSON-LD schema markup
67
+ - Check rich result eligibility
68
+ - Identify schema errors and warnings
69
+
70
+ **Authentication:** None (public API)
71
+ **Endpoint:**
72
+ - `https://search.google.com/test/rich-results`
73
+
74
+ ---
75
+
76
+ #### Google Business Profile API
77
+ **Required by:**
78
+ - local-seo-optimizer
79
+
80
+ **Use cases:**
81
+ - Manage GBP listing (update business info, hours, photos)
82
+ - Track GBP insights (views, clicks, calls)
83
+ - Respond to reviews
84
+
85
+ **Authentication:** OAuth 2.0
86
+ **Endpoints:**
87
+ - `accounts.locations.list`
88
+ - `accounts.locations.patch`
89
+ - `accounts.locations.reviews.list`
90
+
91
+ ---
92
+
93
+ #### Google Knowledge Graph Search API
94
+ **Required by:**
95
+ - geo-optimization-expert
96
+ - eeat-content-auditor
97
+
98
+ **Use cases:**
99
+ - Verify entity recognition
100
+ - Check author credentials in Knowledge Graph
101
+ - Validate organization presence
102
+
103
+ **Authentication:** API Key
104
+ **Endpoint:**
105
+ - `https://kgsearch.googleapis.com/v1/entities:search`
106
+
107
+ ---
108
+
109
+ ### SEO Tool APIs
110
+
111
+ #### SE Ranking API
112
+ **Required by:**
113
+ - content-seo-strategist
114
+ - link-building-specialist
115
+ - seo-analytics-specialist
116
+ - competitive-seo-analyst
117
+
118
+ **Use cases:**
119
+ - Keyword research (search volume, keyword difficulty, CPC)
120
+ - Rank tracking (daily/weekly keyword position monitoring)
121
+ - Backlink tracking (new/lost backlinks)
122
+ - Competitor analysis (keyword gaps, backlink gaps)
123
+
124
+ **Authentication:** API Key
125
+ **Endpoints:**
126
+ - `/keywords/suggestions`
127
+ - `/rankings/get`
128
+ - `/backlinks/summary`
129
+ - `/competitors/organic`
130
+
131
+ **Pricing:** Included in SE Ranking subscription (Pro plan recommended)
132
+
133
+ ---
134
+
135
+ #### Ahrefs API
136
+ **Required by:**
137
+ - link-building-specialist
138
+ - competitive-seo-analyst
139
+ - seo-analytics-specialist
140
+
141
+ **Use cases:**
142
+ - Backlink prospecting and analysis
143
+ - Competitor backlink profiles
144
+ - Domain Rating (DR) and URL Rating (UR)
145
+ - Content gap analysis
146
+
147
+ **Authentication:** API Key
148
+ **Endpoints:**
149
+ - `/site-explorer/v1/backlinks`
150
+ - `/site-explorer/v1/refdomains`
151
+ - `/keywords-explorer/v1/metrics`
152
+
153
+ **Pricing:** Requires Ahrefs subscription (Standard plan minimum)
154
+
155
+ ---
156
+
157
+ #### Moz API
158
+ **Required by:**
159
+ - link-building-specialist
160
+ - competitive-seo-analyst
161
+ - eeat-content-auditor
162
+
163
+ **Use cases:**
164
+ - Domain Authority (DA) scores
165
+ - Spam score calculation
166
+ - Link quality assessment
167
+
168
+ **Authentication:** Access ID + Secret Key
169
+ **Endpoints:**
170
+ - `/url-metrics`
171
+ - `/link-metrics`
172
+
173
+ **Pricing:** Requires Moz subscription or pay-per-use API credits
174
+
175
+ ---
176
+
177
+ ### AI & GEO APIs
178
+
179
+ #### Perplexity API
180
+ **Required by:**
181
+ - geo-optimization-expert
182
+
183
+ **Use cases:**
184
+ - Track citations in Perplexity search results
185
+ - Monitor AI search visibility
186
+ - Analyze citation patterns
187
+
188
+ **Authentication:** API Key
189
+ **Endpoint:** Custom (Perplexity API documentation)
190
+
191
+ ---
192
+
193
+ #### OpenAI API
194
+ **Required by:**
195
+ - geo-optimization-expert
196
+
197
+ **Use cases:**
198
+ - Test content visibility in ChatGPT
199
+ - Analyze AI model retrieval patterns
200
+ - Optimize content for AI consumption
201
+
202
+ **Authentication:** API Key
203
+ **Endpoints:**
204
+ - `/v1/chat/completions`
205
+
206
+ ---
207
+
208
+ ### Email & Outreach APIs
209
+
210
+ #### Hunter.io API
211
+ **Required by:**
212
+ - link-building-specialist
213
+
214
+ **Use cases:**
215
+ - Find email addresses for link building outreach
216
+ - Verify email deliverability
217
+ - Build contact lists
218
+
219
+ **Authentication:** API Key
220
+ **Endpoints:**
221
+ - `/v2/email-finder`
222
+ - `/v2/email-verifier`
223
+
224
+ **Pricing:** Free tier (25 searches/month), paid plans available
225
+
226
+ ---
227
+
228
+ ### Local SEO APIs
229
+
230
+ #### BrightLocal API
231
+ **Required by:**
232
+ - local-seo-optimizer
233
+
234
+ **Use cases:**
235
+ - Track local citations
236
+ - Monitor NAP consistency
237
+ - Audit local search rankings
238
+
239
+ **Authentication:** API Key
240
+ **Endpoints:**
241
+ - `/v1/citations/get`
242
+ - `/v1/lsrc/get`
243
+
244
+ **Pricing:** Requires BrightLocal subscription
245
+
246
+ ---
247
+
248
+ ## Service Dependencies
249
+
250
+ ### PostgreSQL
251
+ **Required by:** All agents
252
+
253
+ **Use cases:**
254
+ - Store keyword research data
255
+ - Track ranking history
256
+ - Store backlink data
257
+ - Cache API responses
258
+ - Store audit results
259
+
260
+ **Schema design:**
261
+ - `keywords` table (keyword, volume, difficulty, ranking)
262
+ - `backlinks` table (url, domain_authority, anchor_text)
263
+ - `schema_validation` table (page_url, schema_type, validation_status)
264
+ - `citations` table (directory, nap_status, link)
265
+
266
+ ---
267
+
268
+ ### Redis
269
+ **Required by:**
270
+ - technical-seo-specialist (cache performance metrics)
271
+ - programmatic-seo-engineer (cache rendered templates)
272
+ - All agents (CFN Loop coordination)
273
+
274
+ **Use cases:**
275
+ - Cache API responses (reduce API costs)
276
+ - Store temporary data during CFN Loop execution
277
+ - Agent coordination via pub/sub
278
+
279
+ ---
280
+
281
+ ### n8n Workflow Automation
282
+ **Required by:** All agents (optional, recommended)
283
+
284
+ **Use cases:**
285
+ - Automate keyword research triggers
286
+ - Schedule weekly SEO audits
287
+ - Automate outreach follow-ups
288
+ - Generate scheduled reports
289
+
290
+ **Workflows:**
291
+ - Weekly technical audit trigger
292
+ - Keyword ranking alerts
293
+ - Backlink notification (new/lost)
294
+ - Review response automation (GBP)
295
+
296
+ ---
297
+
298
+ ## External Tools
299
+
300
+ ### Screaming Frog SEO Spider
301
+ **Required by:**
302
+ - technical-seo-specialist
303
+
304
+ **Use cases:**
305
+ - Crawl site for technical issues
306
+ - Export crawl data (CSV format)
307
+ - Identify broken links, redirect chains
308
+
309
+ **Integration:** Export CSV → Parse with agent
310
+ **License:** Free (500 URLs) or paid license
311
+
312
+ ---
313
+
314
+ ### Copyscape
315
+ **Required by:**
316
+ - programmatic-seo-engineer
317
+ - eeat-content-auditor
318
+
319
+ **Use cases:**
320
+ - Detect duplicate content
321
+ - Check content uniqueness
322
+
323
+ **Integration:** Manual or API
324
+ **Pricing:** Pay-per-use ($0.03/search)
325
+
326
+ ---
327
+
328
+ ### Grammarly
329
+ **Required by:**
330
+ - eeat-content-auditor
331
+
332
+ **Use cases:**
333
+ - Assess readability scores
334
+ - Check grammar and clarity
335
+
336
+ **Integration:** Manual review or API (business plan)
337
+
338
+ ---
339
+
340
+ ### W3C Validator
341
+ **Required by:**
342
+ - eeat-content-auditor
343
+
344
+ **Use cases:**
345
+ - Validate HTML markup
346
+ - Ensure web standards compliance
347
+
348
+ **Integration:** Public API (free)
349
+ **Endpoint:** `https://validator.w3.org/nu/`
350
+
351
+ ---
352
+
353
+ ## Authentication & Security
354
+
355
+ ### API Key Management
356
+ - Store all API keys in environment variables
357
+ - Use `.env` file for local development
358
+ - Use secrets manager in production (AWS Secrets Manager, Vault)
359
+
360
+ **Required environment variables:**
361
+ ```bash
362
+ # Google APIs
363
+ GOOGLE_API_KEY=your_key_here
364
+ GOOGLE_OAUTH_CLIENT_ID=your_client_id
365
+ GOOGLE_OAUTH_CLIENT_SECRET=your_secret
366
+
367
+ # SEO Tools
368
+ SE_RANKING_API_KEY=your_key_here
369
+ AHREFS_API_KEY=your_key_here
370
+ MOZ_ACCESS_ID=your_id
371
+ MOZ_SECRET_KEY=your_key
372
+
373
+ # Outreach
374
+ HUNTER_API_KEY=your_key_here
375
+
376
+ # AI & GEO
377
+ OPENAI_API_KEY=your_key_here
378
+ PERPLEXITY_API_KEY=your_key_here
379
+
380
+ # Local SEO
381
+ BRIGHTLOCAL_API_KEY=your_key_here
382
+ ```
383
+
384
+ ---
385
+
386
+ ## Rate Limits & Quotas
387
+
388
+ ### Google APIs
389
+ - **PageSpeed Insights:** 25,000 requests/day (free tier)
390
+ - **Google Search Console:** 600 queries/minute
391
+ - **Google Analytics 4:** 10 concurrent requests
392
+
393
+ ### SEO Tool APIs
394
+ - **SE Ranking:** Varies by plan (Pro: 10,000 API calls/month)
395
+ - **Ahrefs:** 500 requests/month (Standard plan)
396
+ - **Moz:** 10 API calls/10 seconds (free tier)
397
+
398
+ ### Best Practices
399
+ - Implement exponential backoff for rate limit errors
400
+ - Cache API responses in Redis (TTL: 24 hours)
401
+ - Batch API requests when possible
402
+
403
+ ---
404
+
405
+ ## Cost Estimates
406
+
407
+ ### Monthly API Costs (Standard Setup)
408
+ | Service | Cost | Notes |
409
+ |---------|------|-------|
410
+ | Google APIs | $0 | Free tier sufficient for most use cases |
411
+ | SE Ranking (Pro) | $119/month | Keyword research, rank tracking |
412
+ | Ahrefs (Standard) | $199/month | Backlink analysis, competitor research |
413
+ | Moz (Medium) | $179/month | DA scores, spam score |
414
+ | Hunter.io (Starter) | $49/month | Email finding for outreach |
415
+ | BrightLocal (Single Business) | $35/month | Local SEO tracking |
416
+ | **Total Estimated Cost** | **$581/month** | For full SEO agent capabilities |
417
+
418
+ ### Cost Optimization Strategies
419
+ - Use SE Ranking as primary tool (combines keyword + backlink tracking)
420
+ - Ahrefs optional if budget constrained (use SE Ranking backlink data)
421
+ - Moz optional (can estimate DA using other metrics)
422
+ - Hunter.io free tier (25 searches/month) may suffice for small campaigns
423
+
424
+ **Minimum Viable Setup:** $119/month (SE Ranking only)
425
+
426
+ ---
427
+
428
+ ## Setup Instructions
429
+
430
+ ### 1. Google API Setup
431
+ ```bash
432
+ # Enable required APIs in Google Cloud Console
433
+ 1. Create project in Google Cloud Console
434
+ 2. Enable APIs:
435
+ - PageSpeed Insights API
436
+ - Google Search Console API
437
+ - Google Analytics Data API
438
+ - Google Business Profile API
439
+ - Knowledge Graph Search API
440
+ 3. Create credentials (API key for public APIs, OAuth 2.0 for others)
441
+ 4. Store credentials in .env file
442
+ ```
443
+
444
+ ### 2. SE Ranking Setup
445
+ ```bash
446
+ # Get API key from SE Ranking dashboard
447
+ 1. Login to SE Ranking
448
+ 2. Navigate to Settings → API
449
+ 3. Generate API key
450
+ 4. Add to .env: SE_RANKING_API_KEY=your_key_here
451
+ ```
452
+
453
+ ### 3. Database Setup (PostgreSQL)
454
+ ```sql
455
+ -- Create database
456
+ CREATE DATABASE seo_agent_db;
457
+
458
+ -- Create tables
459
+ CREATE TABLE keywords (
460
+ id SERIAL PRIMARY KEY,
461
+ keyword VARCHAR(255),
462
+ search_volume INT,
463
+ keyword_difficulty INT,
464
+ current_ranking INT,
465
+ competitor_ranking INT,
466
+ created_at TIMESTAMP DEFAULT NOW()
467
+ );
468
+
469
+ CREATE TABLE backlinks (
470
+ id SERIAL PRIMARY KEY,
471
+ source_url TEXT,
472
+ target_url TEXT,
473
+ domain_authority INT,
474
+ anchor_text VARCHAR(255),
475
+ link_type VARCHAR(50),
476
+ created_at TIMESTAMP DEFAULT NOW()
477
+ );
478
+
479
+ CREATE TABLE schema_validation (
480
+ id SERIAL PRIMARY KEY,
481
+ page_url TEXT,
482
+ schema_type VARCHAR(100),
483
+ validation_status VARCHAR(50),
484
+ errors TEXT,
485
+ warnings TEXT,
486
+ validated_at TIMESTAMP DEFAULT NOW()
487
+ );
488
+ ```
489
+
490
+ ### 4. Redis Setup
491
+ ```bash
492
+ # Install Redis
493
+ sudo apt-get install redis-server
494
+
495
+ # Start Redis
496
+ redis-server
497
+
498
+ # Test connection
499
+ redis-cli ping # Should return PONG
500
+ ```
501
+
502
+ ### 5. n8n Setup (Optional)
503
+ ```bash
504
+ # Install n8n
505
+ npm install n8n -g
506
+
507
+ # Start n8n
508
+ n8n start
509
+
510
+ # Access n8n UI at http://localhost:5678
511
+ ```
512
+
513
+ ---
514
+
515
+ ## Testing & Validation
516
+
517
+ ### API Connection Tests
518
+ ```bash
519
+ # Test Google PageSpeed Insights
520
+ curl "https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=https://example.com&key=YOUR_API_KEY"
521
+
522
+ # Test SE Ranking
523
+ curl -H "Authorization: Bearer YOUR_API_KEY" "https://api4.seranking.com/keywords/suggestions?keyword=genealogy"
524
+
525
+ # Test Ahrefs
526
+ curl -H "Authorization: Bearer YOUR_API_KEY" "https://api.ahrefs.com/v3/site-explorer/backlinks?target=example.com"
527
+ ```
528
+
529
+ ### Database Connection Test
530
+ ```bash
531
+ psql -h localhost -U postgres -d seo_agent_db -c "SELECT 1;"
532
+ ```
533
+
534
+ ### Redis Connection Test
535
+ ```bash
536
+ redis-cli ping
537
+ ```
538
+
539
+ ---
540
+
541
+ ## Troubleshooting
542
+
543
+ ### Common Issues
544
+
545
+ **1. Google API authentication errors**
546
+ - Verify OAuth credentials are correct
547
+ - Check API is enabled in Google Cloud Console
548
+ - Ensure service account has correct permissions
549
+
550
+ **2. SE Ranking rate limits**
551
+ - Implement caching (Redis TTL: 24 hours)
552
+ - Batch requests when possible
553
+ - Upgrade to higher plan if needed
554
+
555
+ **3. Database connection errors**
556
+ - Check PostgreSQL service is running
557
+ - Verify database credentials in .env
558
+ - Ensure database exists and tables are created
559
+
560
+ **4. Redis connection errors**
561
+ - Check Redis service is running (`redis-cli ping`)
562
+ - Verify Redis host and port in configuration
563
+ - Check firewall rules if using remote Redis
564
+
565
+ ---
566
+
567
+ ## Security Best Practices
568
+
569
+ 1. **Never commit API keys to Git**
570
+ - Use `.env` file (add to `.gitignore`)
571
+ - Use environment variables in production
572
+
573
+ 2. **Rotate API keys regularly**
574
+ - Set reminder to rotate keys every 90 days
575
+ - Revoke old keys after rotation
576
+
577
+ 3. **Limit API key permissions**
578
+ - Use read-only keys where possible
579
+ - Restrict API key usage by IP (if supported)
580
+
581
+ 4. **Monitor API usage**
582
+ - Set up alerts for unusual API activity
583
+ - Track costs in real-time
584
+
585
+ 5. **Encrypt sensitive data**
586
+ - Encrypt database backups
587
+ - Use HTTPS for all API calls
588
+ - Store credentials in secure secrets manager
589
+
590
+ ---
591
+
592
+ ## Agent-Specific Integration Notes
593
+
594
+ ### technical-seo-specialist
595
+ - Primary APIs: PageSpeed Insights, Google Search Console
596
+ - Heavy user of Redis caching (performance metrics)
597
+ - Requires Screaming Frog export data
598
+
599
+ ### content-seo-strategist
600
+ - Primary API: SE Ranking
601
+ - No external tools required
602
+ - Moderate PostgreSQL usage (keyword data)
603
+
604
+ ### programmatic-seo-engineer
605
+ - Primary service: PostgreSQL (source data)
606
+ - Heavy Redis usage (template caching)
607
+ - Requires Copyscape for duplicate detection
608
+
609
+ ### geo-optimization-expert
610
+ - Primary APIs: Perplexity, OpenAI, Knowledge Graph
611
+ - Emerging field (APIs may change)
612
+ - Light PostgreSQL usage
613
+
614
+ ### link-building-specialist
615
+ - Primary APIs: Ahrefs, SE Ranking, Hunter.io
616
+ - Heavy PostgreSQL usage (prospect tracking)
617
+ - Requires manual outreach tools (email client)
618
+
619
+ ### local-seo-optimizer
620
+ - Primary APIs: Google Business Profile, BrightLocal
621
+ - Moderate PostgreSQL usage (citation data)
622
+ - Requires manual GBP management
623
+
624
+ ### seo-analytics-specialist
625
+ - Primary APIs: Google Analytics 4, Google Search Console, SE Ranking
626
+ - Heavy PostgreSQL usage (historical data)
627
+ - Requires data visualization tools (Google Data Studio)
628
+
629
+ ### eeat-content-auditor
630
+ - Primary APIs: Knowledge Graph, LinkedIn (manual)
631
+ - Requires Copyscape, Grammarly, W3C Validator
632
+ - Heavy content analysis (manual review)
633
+
634
+ ### competitive-seo-analyst
635
+ - Primary APIs: SE Ranking, Ahrefs, SEMrush
636
+ - Heavy PostgreSQL usage (competitor data)
637
+ - No external tools required
638
+
639
+ ### schema-markup-engineer
640
+ - Primary API: Google Rich Results Test
641
+ - Light PostgreSQL usage (validation results)
642
+ - No external tools required