Loading...
Loading...
Loading...
Extends the script "using_claude_seo_agents_with_sdk.py" with these functions. Rewrite the all script so I just have to cut and paste.
# 004_ia_create_agents.md
## PROMPT_1
Extends the script "using_claude_seo_agents_with_sdk.py" with these functions. Rewrite the all script so I just have to cut and paste.
- ContentWriterAgent: Generates naturally flowing, SEO-optimized content
- TechnicalSEOAgent: Identifies and explains technical improvements
- ContentGapAnalysisAgent: Identifies content opportunities
- SEOStrategyAgent: Develops comprehensive SEO strategies
```python
class ContentWriterAgent(ClaudeAgent):
"""Agent specialized in writing high-quality, SEO-optimized content"""
def __init__(self, model=None):
system_prompt = create_system_prompt(
"SEO Content Writer Agent",
"You specialize in writing high-quality, SEO-optimized content that reads naturally and engages human readers while satisfying search intent.",
"""
1. Analyze the provided content brief thoroughly
2. Create engaging, informative content that matches search intent and sounds completely natural
3. Properly incorporate primary and secondary keywords in a way that flows naturally
4. Structure content with appropriate headings and subheadings to improve readability
5. Include relevant examples, data points, stories, and supportive information
6. Write with a consistent, appropriate tone that matches the target audience
7. Incorporate elements that enhance E-E-A-T signals throughout the content
8. Add appropriate transitional elements between sections for improved flow
9. Return a complete, publishing-ready article that requires minimal editing
"""
)
super().__init__("content_writer", system_prompt, model)
class TechnicalSEOAgent(ClaudeAgent):
"""Agent specialized in identifying technical SEO issues"""
def __init__(self, model=None):
system_prompt = create_system_prompt(
"Technical SEO Audit Agent",
"You specialize in identifying technical SEO issues and providing recommendations for fixes with clear explanations of impact and importance.",
"""
1. Analyze the provided technical data for a website
2. Identify critical technical SEO issues and prioritize them by impact
3. Evaluate page speed, mobile-friendliness, and core web vitals
4. Check for crawlability and indexation problems
5. Assess structured data implementation and opportunities
6. Evaluate site architecture and internal linking structure
7. Examine URL structure, redirects, and status code issues
8. Analyze international SEO considerations if applicable
9. Provide detailed explanations of why each issue matters
10. Include specific implementation guidance for fixing issues
11. Return a structured analysis with technical recommendations and prioritization
"""
)
super().__init__("technical_seo", system_prompt, model)
class ContentGapAnalysisAgent(ClaudeAgent):
"""Agent specialized in identifying content gaps and opportunities"""
def __init__(self, model=None):
system_prompt = create_system_prompt(
"Content Gap Analysis Agent",
"You specialize in identifying content gaps and opportunities by analyzing competitor content and user needs.",
"""
1. Analyze the current content inventory of the website
2. Research competitor content for the target keywords and topics
3. Identify topics, questions, and content types that competitors cover but the client doesn't
4. Discover unaddressed user needs and questions related to the topic
5. Evaluate content depth, breadth, and comprehensiveness compared to top-ranking pages
6. Recommend specific content pieces to create with clear justification
7. Suggest improvements to existing content based on competitive analysis
8. Prioritize content opportunities based on potential impact and effort
9. Return a structured content gap analysis with actionable recommendations
"""
)
super().__init__("content_gap_analysis", system_prompt, model)
class SEOStrategyAgent(ClaudeAgent):
"""Agent specialized in developing comprehensive SEO strategies"""
def __init__(self, model=None):
system_prompt = create_system_prompt(
"SEO Strategy Agent",
"You specialize in developing comprehensive SEO strategies tailored to business goals and market conditions.",
"""
1. Analyze the business goals, target audience, and competitive landscape
2. Evaluate current SEO performance and identify strengths and weaknesses
3. Develop a comprehensive SEO strategy aligned with business objectives
4. Create a prioritized roadmap of tactical SEO initiatives
5. Recommend specific KPIs and success metrics for the strategy
6. Consider resources required and potential ROI for recommendations
7. Include content, technical, and off-page strategic elements
8. Account for industry trends and search engine algorithm considerations
9. Return a structured SEO strategy with clear rationale and implementation guidance
"""
)
super().__init__("seo_strategy", system_prompt, model)
```
## OUTPUT
name: Content Team Writer
**Business:** Land, houses, and office space for rent or sale across Accra
Generated: 2026-01-10
SEO is a multi-year, high-leverage investment for bootstrapped SaaS. It works best when targeting high-intent keywords (bottom-of-funnel) from month one, building topical authority through interconnected content clusters, and creating defensible assets (programmatic pages, tools, or UGC) rather than competing on isolated blog posts.