CLAUDE.md — AI Assistant Guide

Project Overview

This is a Jekyll-based GitHub Pages site for a Rakuten Mobile employee referral campaign, hosted at mobile-friend.com. The site promotes sign-ups via a personal employee referral link and runs automated SEO blog article generation using the Claude API.

Primary language: Japanese (日本語)
Audience: Japanese consumers considering switching to Rakuten Mobile


Repository Structure

walktogether/
├── index.html                        # Main landing page (standalone HTML, NOT a Jekyll template)
├── blog/index.html                   # Blog listing page (Jekyll layout: default)
├── _layouts/
│   ├── default.html                  # Jekyll base layout (header, footer, CSS vars, GA4)
│   └── post.html                     # Blog post layout (extends default)
├── _posts/                           # Jekyll blog posts — auto-generated Markdown files
│   └── YYYY-MM-DD-{slug}.md
├── _config.yml                       # Jekyll site config
├── automation/
│   ├── generate_article.py           # Claude API script to generate SEO articles
│   └── requirements.txt              # Python deps (anthropic>=0.40.0)
├── .github/workflows/
│   └── auto_article.yml              # GitHub Actions: auto-generate + commit articles
├── CNAME                             # Custom domain: mobile-friend.com
└── .gitignore                        # Excludes assets/, _site/, .env, image files

Key Business Facts (Never Change Without Verification)

These values are factual campaign details embedded throughout the site and generated articles:

Item Value
Referral URL https://r10.to/henTIE
MNP (carrier switch) points 14,000pt
New signup / plan change points 11,000pt
Normal campaign (MNP) 13,000pt (for comparison)
Monthly plan price ¥3,278(税込)
Max referrals per person 5回線
Point payout schedule 紹介ログイン月の4ヶ月後から3ヶ月間に分割

Architecture Notes

Landing Page (index.html)

Blog (blog/index.html, _layouts/default.html, _layouts/post.html)

Blog Posts (_posts/)

Auto-Generation System

Script: automation/generate_article.py

Workflow: .github/workflows/auto_article.yml


Development Workflows

Adding a New Blog Post Manually

  1. Create _posts/YYYY-MM-DD-{slug}.md with front matter (title, date, description).
  2. Write Markdown body. End with a section linking to the referral URL.
  3. Commit and push to main. GitHub Pages rebuilds automatically.

Running Article Generation Locally

pip install -r automation/requirements.txt
export ANTHROPIC_API_KEY=sk-ant-...
python automation/generate_article.py

Triggering Auto-Generation Manually

Go to GitHub Actions → “SEO記事 自動生成・公開” → “Run workflow”.

Adding a New Topic to Auto-Generation

Edit the TOPICS list in automation/generate_article.py:

TOPICS = [
    ("キーワード文字列", "url-slug"),
    ...
]

The slug must be unique and URL-safe (ASCII, hyphens only).

Updating Campaign Points or Referral URL

These values appear in multiple places — update all of them:


Conventions


Jekyll Plugins (configured in _config.yml)

CLAUDE.md — AI Assistant Guide | 楽天モバイルで節約生活

` in default.html