Description
Hi Brent, I need you to build a custom, lightweight plugin that automates content scheduling and drafting for the Riverview cleaning business website. The goal is to eliminate manual content planning. The plugin should manage a rolling editorial calendar inside WordPress and use Anthropic's API to draft high-quality, weekly blog posts. Scope of Work: Editorial Calendar Engine: Build a custom database table or custom post type system within WordPress to store, view, and manage a rolling calendar of blog topics, target keywords, and scheduled draft dates. Anthropic API Integration: Connect to the Anthropic API (using Claude 3.5 Sonnet) to generate comprehensive, SEO-friendly articles based on the scheduled topic. The system must enforce strict brand voice rules and handle markdown/HTML formatting cleanly. Automated Weekly Drafting: Use a WordPress cron job to automatically trigger the API, pull the next topic from the calendar, and save the generated text as a standard WordPress "Draft" once a week. Settings Page: Create a secure admin settings page to safely input and update the Anthropic API key, modify core system prompts, and adjust the weekly generation schedule. Required Tech Stack: CMS: WordPress (Custom Plugin Development, WP_Cron, Settings API). AI: Anthropic API (Claude). Languages: PHP, JavaScript, HTML, CSS. Deliverables: A fully tested, secure, and ready-to-install .zip plugin file. Clean, documented code adhering to WordPress coding standards. A brief walkthrough