A powerful CLI tool for generating SEO-optimized content for the Akkuş Avukatlık website. This tool uses Claude AI to generate high-quality Turkish legal content that ranks well in search engines.
npm install @anthropic-ai/sdk
# Add to your .env file or shell profile
export ANTHROPIC_API_KEY="sk-your-api-key-here"
chmod +x tools/seo-assistant.js
node tools/seo-assistant.js help
node tools/seo-assistant.js generate service
Interactive prompts:
Output:
services/ directorynode tools/seo-assistant.js generate post
Interactive prompts:
Output:
posts/ directory with date prefixnode tools/seo-assistant.js generate faq
Interactive prompts:
Output:
node tools/seo-assistant.js optimize seo
Interactive prompts:
Output:
Generated files include:
---
slug: bosanma-ve-aile-hukuku
title: Boşanma ve Aile Hukuku
description: Boşanma, nafaka, velayet ve mal paylaşımı konularında uzman avukat
language: tr
image: /img/placeholder.jpg
draft: true
enableTOC: true
tags: [avukat, bosanma, izmir, ...]
seo:
title: "Boşanma Avukatı İzmir | Aile Hukuku Danışmanlığı"
description: "İzmir'de boşanma avukatı..."
slug: bosanma-ve-aile-hukuku
questions:
- question: "..."
answer: "..."
---
# Boşanma ve Aile Hukuku
[Comprehensive content generated by Claude]
## Istanbul'de Hukuki Destek
[CTA section]
---
slug: izmir-en-iyi-bosanma-avukati
title: İzmir'in En İyi Boşanma Avukatı
date: 2024-01-15T10:00:00Z
image: /img/placeholder.jpg
draft: true
services: bosanma-ve-aile-hukuku
tags: [bosanma, avukat, izmir, ...]
seo:
title: "İzmir'in En İyi Boşanma Avukatı | Tecrübeli Danışmanlık"
description: "En iyi boşanma avukatının özellikleri..."
slug: izmir-en-iyi-bosanma-avukati
questions: []
---
[Blog content]
questions:
- question: "Anlaşmalı boşanma süreci nasıl işler?"
answer: "Anlaşmalı boşanmada eşler boşanma ve sonuçları hakkında anlaşırlar..."
- question: "Çekişmeli boşanma davası ne kadar sürer?"
answer: "Çekişmeli boşanma davaları genellikle 1-2 yıl sürebilir..."
Edit tools/seo-config.json to customize:
{
"siteContext": {
"title": "Your firm name",
"location": "Your location",
"phone": "Your phone",
"email": "Your email"
},
"contentGuidelines": {
"minWordCount": 1000,
"maxWordCount": 2500,
"includedSections": ["definition", "process", "faq", "cta"]
}
}
draft: false when ready to publishseo:
title: "50-60 characters - Include keyword and location"
description: "150-160 characters - Start with action, include keyword"
slug: "keyword-slug-format"
# Verify key is set
echo $ANTHROPIC_API_KEY
# If not, add to shell profile (~/.zshrc or ~/.bash_profile)
export ANTHROPIC_API_KEY="sk-..."
# Then reload
source ~/.zshrc
If generated content is too generic:
Add to your npm scripts in package.json:
{
"scripts": {
"content:generate": "node tools/seo-assistant.js generate",
"content:optimize": "node tools/seo-assistant.js optimize seo",
"content:help": "node tools/seo-assistant.js help"
}
}
Then run:
npm run content:generate service
npm run content:optimize
# Service pages
node tools/seo-assistant.js generate service
# Answer prompts...
# Creates: services/bosanma-ve-aile-hukuku.md
# Blog posts
node tools/seo-assistant.js generate post
# Creates: posts/2024-01-15-bosanma-davasi-sureci.md
# FAQ sections
node tools/seo-assistant.js generate faq
# Output YAML to add to front matter
Create a script to generate multiple pieces:
#!/bin/bash
topics=(
"boşanma"
"nafaka"
"velayet"
"mal paylaşımı"
"ceza hukuku"
)
for topic in "${topics[@]}"; do
echo "Generating content for: $topic"
# Add automation here
done
For issues or suggestions:
seo-config.jsonRemember: This tool generates great starting content, but all legal content should be reviewed by qualified attorneys before publication.